diff --git a/tests/mock_librarybackend.h b/tests/mock_librarybackend.h index 6ec343834..73bf8a278 100644 --- a/tests/mock_librarybackend.h +++ b/tests/mock_librarybackend.h @@ -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); diff --git a/tests/test_utils.h b/tests/test_utils.h index f0464e67c..58ad8dde8 100644 --- a/tests/test_utils.h +++ b/tests/test_utils.h @@ -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