mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-18 04:19:55 +01:00
Fix the unit test mocks from before
This commit is contained in:
parent
06852aaeb7
commit
6820a366d7
@ -37,6 +37,9 @@ public:
|
||||
MOCK_CONST_METHOD1(GetItemAt, PlaylistItemPtr(int));
|
||||
MOCK_CONST_METHOD0(playlists, PlaylistManagerInterface*());
|
||||
|
||||
MOCK_METHOD1(RegisterUrlHandler, void(UrlHandler*));
|
||||
MOCK_METHOD1(UnregisterUrlHandler, void(UrlHandler*));
|
||||
|
||||
MOCK_METHOD0(ReloadSettings, void());
|
||||
|
||||
MOCK_METHOD3(PlayAt, void(int, Engine::TrackChangeFlags, bool));
|
||||
@ -51,7 +54,6 @@ public:
|
||||
MOCK_METHOD1(SeekTo, void(int));
|
||||
MOCK_METHOD0(SeekForward, void());
|
||||
MOCK_METHOD0(SeekBackward, void());
|
||||
MOCK_METHOD1(HandleSpecialLoad, void(const PlaylistItem::SpecialLoadResult&));
|
||||
MOCK_METHOD1(CurrentMetadataChanged, void(const Song&));
|
||||
|
||||
MOCK_METHOD0(Mute, void());
|
||||
|
@ -37,12 +37,8 @@ class MockPlaylistItem : public PlaylistItem {
|
||||
void());
|
||||
MOCK_CONST_METHOD0(Metadata,
|
||||
Song());
|
||||
MOCK_METHOD0(StartLoading,
|
||||
PlaylistItem::SpecialLoadResult());
|
||||
MOCK_CONST_METHOD0(Url,
|
||||
QUrl());
|
||||
MOCK_METHOD0(LoadNext,
|
||||
PlaylistItem::SpecialLoadResult());
|
||||
MOCK_METHOD1(SetTemporaryMetadata,
|
||||
void(const Song& metadata));
|
||||
MOCK_METHOD0(ClearTemporaryMetadata,
|
||||
|
@ -46,7 +46,11 @@ public:
|
||||
MOCK_CONST_METHOD0(sequence, PlaylistSequence*());
|
||||
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_METHOD2(Save, void(int, const QString&));
|
||||
MOCK_METHOD2(Rename, void(int, const QString&));
|
||||
|
Loading…
Reference in New Issue
Block a user