1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-18 12:28:31 +01:00

Fix the unit test mocks from before

This commit is contained in:
David Sansome 2011-04-28 17:51:09 +00:00
parent 06852aaeb7
commit 6820a366d7
3 changed files with 8 additions and 6 deletions

View File

@ -37,6 +37,9 @@ public:
MOCK_CONST_METHOD1(GetItemAt, PlaylistItemPtr(int)); MOCK_CONST_METHOD1(GetItemAt, PlaylistItemPtr(int));
MOCK_CONST_METHOD0(playlists, PlaylistManagerInterface*()); MOCK_CONST_METHOD0(playlists, PlaylistManagerInterface*());
MOCK_METHOD1(RegisterUrlHandler, void(UrlHandler*));
MOCK_METHOD1(UnregisterUrlHandler, void(UrlHandler*));
MOCK_METHOD0(ReloadSettings, void()); MOCK_METHOD0(ReloadSettings, void());
MOCK_METHOD3(PlayAt, void(int, Engine::TrackChangeFlags, bool)); MOCK_METHOD3(PlayAt, void(int, Engine::TrackChangeFlags, bool));
@ -51,7 +54,6 @@ public:
MOCK_METHOD1(SeekTo, void(int)); MOCK_METHOD1(SeekTo, void(int));
MOCK_METHOD0(SeekForward, void()); MOCK_METHOD0(SeekForward, void());
MOCK_METHOD0(SeekBackward, void()); MOCK_METHOD0(SeekBackward, void());
MOCK_METHOD1(HandleSpecialLoad, void(const PlaylistItem::SpecialLoadResult&));
MOCK_METHOD1(CurrentMetadataChanged, void(const Song&)); MOCK_METHOD1(CurrentMetadataChanged, void(const Song&));
MOCK_METHOD0(Mute, void()); MOCK_METHOD0(Mute, void());

View File

@ -37,12 +37,8 @@ class MockPlaylistItem : public PlaylistItem {
void()); void());
MOCK_CONST_METHOD0(Metadata, MOCK_CONST_METHOD0(Metadata,
Song()); Song());
MOCK_METHOD0(StartLoading,
PlaylistItem::SpecialLoadResult());
MOCK_CONST_METHOD0(Url, MOCK_CONST_METHOD0(Url,
QUrl()); QUrl());
MOCK_METHOD0(LoadNext,
PlaylistItem::SpecialLoadResult());
MOCK_METHOD1(SetTemporaryMetadata, MOCK_METHOD1(SetTemporaryMetadata,
void(const Song& metadata)); void(const Song& metadata));
MOCK_METHOD0(ClearTemporaryMetadata, MOCK_METHOD0(ClearTemporaryMetadata,

View File

@ -46,7 +46,11 @@ public:
MOCK_CONST_METHOD0(sequence, PlaylistSequence*()); MOCK_CONST_METHOD0(sequence, PlaylistSequence*());
MOCK_CONST_METHOD0(parser, PlaylistParser*()); MOCK_CONST_METHOD0(parser, PlaylistParser*());
MOCK_METHOD2(New, void(const QString&, const SongList&)); MOCK_METHOD1(RegisterSpecialPlaylistType, void(SpecialPlaylistType*));
MOCK_METHOD1(UnregisterSpecialPlaylistType, void(SpecialPlaylistType*));
MOCK_CONST_METHOD1(GetPlaylistType, SpecialPlaylistType*(const QString&));
MOCK_METHOD3(New, void(const QString&, const SongList&, const QString&));
MOCK_METHOD1(Load, void(const QString&)); MOCK_METHOD1(Load, void(const QString&));
MOCK_METHOD2(Save, void(int, const QString&)); MOCK_METHOD2(Save, void(int, const QString&));
MOCK_METHOD2(Rename, void(int, const QString&)); MOCK_METHOD2(Rename, void(int, const QString&));