17#ifndef MOCKFILECONTROLLER_HPP
18#define MOCKFILECONTROLLER_HPP
22#include <gmock/gmock.h>
Class to emulate the behavior of the File controller.
MOCK_METHOD(bool, open,(QFile &, QIODevice::OpenMode),())
Mocked method to open a file.
MOCK_METHOD(QString, read,(QFile &),())
Mocked method to close a file.
MOCK_METHOD(bool, write,(QFile &, const QString &),())
Mocked method to write to a file.
MOCK_METHOD(bool, exists,(const QString &),())
Mocked method to check if a file exists.