mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-15 03:06:56 +01:00
Fix tests
This commit is contained in:
parent
2443ce6585
commit
48270bfeec
@ -79,8 +79,8 @@ class MockLibraryBackend : public LibraryBackendInterface {
|
||||
void ExpectSetup(bool has_compilations = false,
|
||||
const QStringList& artists = QStringList());
|
||||
|
||||
EXPOSE_SIGNAL1(DirectoriesDiscovered, DirectoryList);
|
||||
EXPOSE_SIGNAL1(DirectoriesDeleted, DirectoryList);
|
||||
EXPOSE_SIGNAL2(DirectoryDiscovered, Directory, SubdirectoryList);
|
||||
EXPOSE_SIGNAL1(DirectoryDeleted, Directory);
|
||||
|
||||
EXPOSE_SIGNAL1(SongsDiscovered, SongList);
|
||||
EXPOSE_SIGNAL1(SongsDeleted, SongList);
|
||||
|
@ -31,5 +31,7 @@ std::ostream& operator <<(std::ostream& stream, const QNetworkRequest& req);
|
||||
void Emit##n() { emit n(); }
|
||||
#define EXPOSE_SIGNAL1(n, t1) \
|
||||
void Emit##n(const t1& a1) { emit n(a1); }
|
||||
#define EXPOSE_SIGNAL2(n, t1, t2) \
|
||||
void Emit##n(const t1& a1, const t2& a2) { emit n(a1, a2); }
|
||||
|
||||
#endif // TEST_UTILS_H
|
||||
|
Loading…
Reference in New Issue
Block a user