Commit d5f4a7fa authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

tests: Simplify MediaLibraryTester variations

We never run the parser from unit tests
parent 608b95a6
......@@ -38,6 +38,7 @@ class MediaLibraryTester : public MediaLibrary
{
public:
MediaLibraryTester();
virtual void startParser() override {}
std::vector<MediaPtr> files();
// Use the filename getter
using MediaLibrary::media;
......@@ -75,19 +76,12 @@ private:
std::shared_ptr<Folder> dummyFolder;
};
class MediaLibraryWithoutParser : public MediaLibraryTester
{
virtual void startParser() override {}
};
class MediaLibraryWithoutBackground : public MediaLibraryTester
{
virtual void startDiscoverer() override {}
virtual void startParser() override {}
};
class MediaLibraryWithNotifier : public MediaLibraryTester
{
virtual void startDiscoverer() override {}
virtual void startParser() override {}
};
......@@ -62,7 +62,7 @@ protected:
virtual void InstantiateMediaLibrary() override
{
ml.reset( new MediaLibraryWithoutParser );
ml.reset( new MediaLibraryTester );
}
virtual void Reload()
......
......@@ -54,7 +54,7 @@ public:
virtual void InstantiateMediaLibrary() override
{
ml.reset( new MediaLibraryWithoutParser );
ml.reset( new MediaLibraryTester );
}
virtual void Reload()
......
......@@ -556,7 +556,7 @@ protected:
virtual void InstantiateMediaLibrary() override
{
ml.reset( new MediaLibraryWithoutParser );
ml.reset( new MediaLibraryTester );
}
virtual void Reload()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment