Commit b760520b authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

tests: mocks: FS: Remove leftover "isPresent" field/methods

parent 1ddba5ea
......@@ -90,17 +90,15 @@ class Device : public fs::IDevice
{
public:
Device( const std::string& mountpoint, const std::string& uuid ) : m_uuid( uuid ),
m_present( true ), m_removable( false ), m_mountpoint( mountpoint ) {}
m_removable( false ), m_mountpoint( mountpoint ) {}
virtual const std::string& uuid() const override { return m_uuid; }
virtual bool isRemovable() const override { return m_removable; }
virtual const std::string& mountpoint() const override { return m_mountpoint; }
void setPresent( bool value ) { m_present = value; }
void setRemovable( bool value ) { m_removable = value; }
private:
std::string m_uuid;
bool m_present;
bool m_removable;
std::string m_mountpoint;
};
......@@ -217,7 +215,6 @@ struct FileSystemFactory : public factory::IFileSystem
auto rootDevice = std::make_shared<Device>( std::string{ Root }, "root" );
auto removableDevice = std::make_shared<Device>( std::string{ SubFolder }, "removable" );
removableDevice ->setRemovable( true );
removableDevice ->setPresent( true );
dirs[Root] = std::unique_ptr<mock::Directory>( new Directory{ nullptr, Root, 123, rootDevice } );
addFile( Root, "video.avi" );
addFile( Root, "audio.mp3" );
......
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