68 INFO(
"initiate play request");
70 INFO(
"the process is not synchronous and takes a while");
72 INFO(
"test playback state");
84 INFO(
"initiate play request");
86 INFO(
"the process is not synchronous and takes a while");
89 INFO(
"state is playing - initiate pause request");
91 INFO(
"the process is not synchronous and takes a while");
93 INFO(
"test playback state");
105 INFO(
"initiate play request");
107 INFO(
"the process is not synchronous and takes a while");
110 INFO(
"state is playing - initiate stop request");
112 INFO(
"the process is not synchronous and takes a while");
134 TEST_CASE(
"Client/PlaylistCurrentItem",
"test playlist current item")
145 CHECK(current == playlistItem);
152 TEST_CASE(
"Client/PlaylistSize",
"test getPlaylistLength")
213 TEST_CASE(
"Client/PlaylistStart",
"test playlistStart position")
242 TEST_CASE(
"Client/PlaylistIndexSet",
"test setPlaylistIndex")
254 TEST_CASE(
"Client/PlaylistStartBegins",
"test startPlaylist begins play")
270 vector<string> originalPlayList (client.
getPlayList(
false) );
280 CHECK(original.sstr.str() == current.
sstr.str());
286 TEST_CASE(
"Client/DeletePlaylist",
"test deletePlaylist")
291 vector<string> originalPlayList ( client.
getPlayList() );
307 CHECK( originalPlayList.size() == playList.size() );
313 TEST_CASE(
"Client/InsertPlaylist",
"test insertPlaylist")
318 vector<string> originalPlayList ( client.
getPlayList(
false) );
325 vector<string> newPlayList (client.
getPlayList(
false) );
333 CHECK( (newPlayList.size()) == newListLength );
335 CHECK( (2 * originalPlayList.size()) == newListLength );
353 int songLength = 0, songPos = 0;
354 client.
getTimes(songLength, songPos);
357 client.
setTime((songLength * 1000) - 500);
366 TEST_CASE(
"Client/StopAfterCurrent",
"test stopAfterCurrent")
375 int songLength = 0, songPos = 0;
376 client.
getTimes(songLength, songPos);
379 client.
setTime((songLength * 1000) - 500);
596 TEST_CASE(
"Client/AutoloadToggle",
"test toggleAutoload")
640 int previous = client.
getEQOn();
667 int current = client.
getEQOn();
679 int songLength, songPos;
681 client.
getTimes(songLength, songPos);
683 CHECK(songLength > 0);
693 for (
int eqindex = 0 ; eqindex < 11 ; eqindex++)
695 byte eqvalue = client.
getEQData(eqindex);
707 int eqvalues[11] = {0};
708 for (
int eqindex = 0 ; eqindex < 11 ; eqindex++)
710 eqvalues[eqindex] = client.
getEQData(eqindex);
711 client.
setEQData(eqindex, eqvalues[eqindex] + 1);
714 for (
int eqindex = 0 ; eqindex < 11 ; eqindex++)