![]() |
The Winamp Remote Control suite
a remote control client and plugin for Winamp 2.x, 5.x
|
#include <string.h>
#include "WinampClientBase.h"
#include "ClientBinder.h"
#include "ContextInfo.h"
#include "RPCException.h"
#include "StringVectorPrinter.h"
#include "catch.hpp"
Go to the source code of this file.
Classes | |
struct | WinampRemote::UnitTest::TestContext |
Namespaces | |
namespace | WinampRemote |
namespace | WinampRemote::UnitTest |
Functions | |
TEST_CASE ("Client/Version","test server version") | |
TEST_CASE ("Client/Status","test server status") | |
TEST_CASE ("Client/Play","test play") | |
TEST_CASE ("Client/Pause","test pause") | |
TEST_CASE ("Client/Stop","test stop") | |
TEST_CASE ("Client/PlaylistItem","test playlist item") | |
TEST_CASE ("Client/PlaylistCurrentItem","test playlist current item") | |
TEST_CASE ("Client/PlaylistSize","test getPlaylistLength") | |
TEST_CASE ("Client/SendString","test sendString") | |
TEST_CASE ("Client/SongNext","test nextSong") | |
TEST_CASE ("Client/SongPrevious","test previousSong") | |
TEST_CASE ("Client/PlaylistStart","test playlistStart position") | |
TEST_CASE ("Client/PlaylistEnd","test playlistEnd") | |
TEST_CASE ("Client/PlaylistIndexSet","test setPlaylistIndex") | |
TEST_CASE ("Client/PlaylistStartBegins","test startPlaylist begins play") | |
TEST_CASE ("Client/SetPlaylist","test setPlaylist") | |
TEST_CASE ("Client/DeletePlaylist","test deletePlaylist") | |
TEST_CASE ("Client/InsertPlaylist","test insertPlaylist") | |
TEST_CASE ("Client/StopWithFade","test stopWithFade") | |
TEST_CASE ("Client/StopAfterCurrent","test stopAfterCurrent") | |
TEST_CASE ("Client/TimeSet","test setTime") | |
TEST_CASE ("Client/Forward5","test forward5") | |
TEST_CASE ("Client/Back5","test back5") | |
TEST_CASE ("Client/VolumeUp","test volumeUp") | |
TEST_CASE ("Client/VolumeDown","test volumeDown") | |
TEST_CASE ("Client/VolumeSet","test setVolume") | |
TEST_CASE ("Client/PanningSet","test setPanning") | |
TEST_CASE ("Client/PanningGet","test getPanning") | |
TEST_CASE ("Client/ShuffleToggle","test toggleShuffle") | |
TEST_CASE ("Client/ShuffleSet","test setShuffle") | |
TEST_CASE ("Client/ShuffleGet","test getShuffle") | |
TEST_CASE ("Client/RepeatToggle","test toggleRepeat") | |
TEST_CASE ("Client/RepeatSet","test setRepeat") | |
TEST_CASE ("Client/RepeatGet","test getRepeat") | |
TEST_CASE ("Client/AutoloadToggle","test toggleAutoload") | |
TEST_CASE ("Client/AutoloadSet","test setAutoload") | |
TEST_CASE ("Client/AutoloadGet","test getAutoload") | |
TEST_CASE ("Client/EQOnToggle","test toggleEQ") | |
TEST_CASE ("Client/EQOnSet","test setEQOn") | |
TEST_CASE ("Client/EQOnGet","test getAutoload") | |
TEST_CASE ("Client/TimesGet","test getTimes") | |
TEST_CASE ("Client/EQGet","test getEQ") | |
TEST_CASE ("Client/EQSet","test setEQ") | |
TEST_CASE_NORETURN ("Exception/ERPCException","ERPCException can be handled") |
TEST_CASE | ( | "Client/Version" | , |
"test server version" | |||
) |
test obtaining the server version
Definition at line 41 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/Status" | , |
"test server status" | |||
) |
tests the server status returned is in range
Definition at line 52 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/Play" | , |
"test play" | |||
) |
tests that play is received and honoured
Definition at line 64 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/Pause" | , |
"test pause" | |||
) |
tests that pause is received and honoured
Definition at line 80 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/Stop" | , |
"test stop" | |||
) |
tests that stop is received and honoured
Definition at line 101 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/PlaylistItem" | , |
"test playlist item" | |||
) |
tests that the playlist item is returned
Definition at line 121 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/PlaylistCurrentItem" | , |
"test playlist current item" | |||
) |
tests that the current playlist item is returned
Definition at line 134 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/PlaylistSize" | , |
"test getPlaylistLength" | |||
) |
tests that the playlist is returned
Definition at line 152 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/SendString" | , |
"test sendString" | |||
) |
tests that string is sent
Definition at line 165 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/SongNext" | , |
"test nextSong" | |||
) |
tests advancing song works
Definition at line 178 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/SongPrevious" | , |
"test previousSong" | |||
) |
tests rewinding one song works
Definition at line 195 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/PlaylistStart" | , |
"test playlistStart position" | |||
) |
tests move to start of playlist
Definition at line 213 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/PlaylistEnd" | , |
"test playlistEnd" | |||
) |
tests move to end of playlist
Definition at line 229 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/PlaylistIndexSet" | , |
"test setPlaylistIndex" | |||
) |
tests setting the playlist index works
Definition at line 242 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/PlaylistStartBegins" | , |
"test startPlaylist begins play" | |||
) |
tests starting playback
Definition at line 254 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/SetPlaylist" | , |
"test setPlaylist" | |||
) |
Definition at line 264 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/DeletePlaylist" | , |
"test deletePlaylist" | |||
) |
test delete of playlist
Definition at line 286 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/InsertPlaylist" | , |
"test insertPlaylist" | |||
) |
test insert into playlist
Definition at line 313 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/StopWithFade" | , |
"test stopWithFade" | |||
) |
tests stop song with fade effect
Definition at line 344 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/StopAfterCurrent" | , |
"test stopAfterCurrent" | |||
) |
tests stop after current command
Definition at line 366 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/TimeSet" | , |
"test setTime" | |||
) |
tests set time works
Definition at line 391 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/Forward5" | , |
"test forward5" | |||
) |
tests forward 5 works
Definition at line 405 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/Back5" | , |
"test back5" | |||
) |
tests back 5 works
Definition at line 421 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/VolumeUp" | , |
"test volumeUp" | |||
) |
tests volume up works
Definition at line 440 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/VolumeDown" | , |
"test volumeDown" | |||
) |
tests volume down works
Definition at line 458 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/VolumeSet" | , |
"test setVolume" | |||
) |
tests set volume works
Definition at line 476 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/PanningSet" | , |
"test setPanning" | |||
) |
tests set volume works
Definition at line 488 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/PanningGet" | , |
"test getPanning" | |||
) |
tests set volume works
Definition at line 501 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/ShuffleToggle" | , |
"test toggleShuffle" | |||
) |
tests that shuffle toggle works
Definition at line 513 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/ShuffleSet" | , |
"test setShuffle" | |||
) |
tests that set Shuffle works
Definition at line 526 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/ShuffleGet" | , |
"test getShuffle" | |||
) |
tests that get Shuffle works
Definition at line 541 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/RepeatToggle" | , |
"test toggleRepeat" | |||
) |
tests that toggle repeat works
Definition at line 553 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/RepeatSet" | , |
"test setRepeat" | |||
) |
tests that set Repeat works
Definition at line 566 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/RepeatGet" | , |
"test getRepeat" | |||
) |
tests that get repeat works
Definition at line 583 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/AutoloadToggle" | , |
"test toggleAutoload" | |||
) |
tests that autoload toggle works
Definition at line 596 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/AutoloadSet" | , |
"test setAutoload" | |||
) |
tests that set autoload works
Definition at line 609 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/AutoloadGet" | , |
"test getAutoload" | |||
) |
tests that get autoload works
Definition at line 623 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/EQOnToggle" | , |
"test toggleEQ" | |||
) |
tests that EQ toggle works
Definition at line 635 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/EQOnSet" | , |
"test setEQOn" | |||
) |
tests that set EQ On works
Definition at line 648 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/EQOnGet" | , |
"test getAutoload" | |||
) |
tests that get EQOn works
Definition at line 662 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/TimesGet" | , |
"test getTimes" | |||
) |
tests that getting the output times works
Definition at line 674 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/EQGet" | , |
"test getEQ" | |||
) |
tests getting and setting EQ
Definition at line 689 of file ClientSuite.cpp.
TEST_CASE | ( | "Client/EQSet" | , |
"test setEQ" | |||
) |
tests getting and setting EQ
Definition at line 703 of file ClientSuite.cpp.
TEST_CASE_NORETURN | ( | "Exception/ERPCException" | , |
"ERPCException can be handled" | |||
) |
tests exception handling
Definition at line 724 of file ClientSuite.cpp.