Fix tests

This commit is contained in:
David Sansome 2010-04-01 17:03:42 +00:00
parent 2443ce6585
commit 48270bfeec
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -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