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

test: Reintroduce a not so unused getter

parent 408e3e8e
......@@ -140,3 +140,8 @@ std::vector<MediaPtr> MediaLibraryTester::files()
static const std::string req = "SELECT * FROM " + policy::MediaTable::Name + " WHERE is_present = 1";
return Media::fetchAll<IMedia>( this, req );
}
std::shared_ptr<Device> MediaLibraryTester::device( const std::string& uuid )
{
return Device::fromUuid( this, uuid );
}
......@@ -57,6 +57,7 @@ public:
std::shared_ptr<AlbumTrack> albumTrack( int64_t id );
std::shared_ptr<Media> addFile(fs::IFile& file);
virtual void addLocalFsFactory() override;
std::shared_ptr<Device> device( const std::string& uuid );
private:
std::unique_ptr<fs::IDirectory> dummyDirectory;
......
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