mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-15 18:58:55 +01:00
59 lines
1.9 KiB
C++
59 lines
1.9 KiB
C++
#ifndef MOCK_LIBRARYBACKEND_H
|
|
#define MOCK_LIBRARYBACKEND_H
|
|
|
|
#include "librarybackend.h"
|
|
|
|
class MockLibraryBackend : public LibraryBackendInterface {
|
|
public:
|
|
MOCK_METHOD0(LoadDirectoriesAsync,
|
|
void());
|
|
MOCK_METHOD0(UpdateTotalSongCountAsync,
|
|
void());
|
|
MOCK_METHOD1(FindSongsInDirectory,
|
|
SongList(int id));
|
|
MOCK_METHOD1(GetAllArtists,
|
|
QStringList(const QueryOptions& opt));
|
|
MOCK_METHOD3(GetSongs,
|
|
SongList(const QString& artist, const QString& album, const QueryOptions& opt));
|
|
MOCK_METHOD1(HasCompilations,
|
|
bool(const QueryOptions& opt));
|
|
MOCK_METHOD2(GetCompilationSongs,
|
|
SongList(const QString& album, const QueryOptions& opt));
|
|
MOCK_METHOD1(GetAllAlbums,
|
|
AlbumList(const QueryOptions& opt));
|
|
MOCK_METHOD2(GetAlbumsByArtist,
|
|
AlbumList(const QString& artist, const QueryOptions& opt));
|
|
MOCK_METHOD1(GetCompilationAlbums,
|
|
AlbumList(const QueryOptions& opt));
|
|
MOCK_METHOD3(UpdateManualAlbumArtAsync,
|
|
void(const QString& artist, const QString& album, const QString& art));
|
|
MOCK_METHOD2(GetAlbumArt,
|
|
Album(const QString& artist, const QString& album));
|
|
MOCK_METHOD1(GetSongById,
|
|
Song(int id));
|
|
MOCK_METHOD1(AddDirectory,
|
|
void(const QString& path));
|
|
MOCK_METHOD1(RemoveDirectory,
|
|
void(const Directory& dir));
|
|
MOCK_METHOD0(UpdateCompilationsAsync,
|
|
void());
|
|
MOCK_METHOD0(LoadDirectories,
|
|
void());
|
|
MOCK_METHOD0(UpdateTotalSongCount,
|
|
void());
|
|
MOCK_METHOD1(AddOrUpdateSongs,
|
|
void(const SongList& songs));
|
|
MOCK_METHOD1(UpdateMTimesOnly,
|
|
void(const SongList& songs));
|
|
MOCK_METHOD1(DeleteSongs,
|
|
void(const SongList& songs));
|
|
MOCK_METHOD0(UpdateCompilations,
|
|
void());
|
|
MOCK_METHOD3(UpdateManualAlbumArt,
|
|
void(const QString& artist, const QString& album, const QString& art));
|
|
MOCK_METHOD3(ForceCompilation,
|
|
void(const QString& artist, const QString& album, bool on));
|
|
};
|
|
|
|
#endif
|