Hotwheels-Cluster 1.2
Creation of Cluster APP for SEA:ME project.
 
Loading...
Searching...
No Matches
MockFileController Class Reference

Class to emulate the behavior of the File controller. More...

#include <MockFileController.hpp>

Public Member Functions

 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.
 

Detailed Description

Class to emulate the behavior of the File controller.

Definition at line 28 of file MockFileController.hpp.

Member Function Documentation

◆ MOCK_METHOD() [1/4]

MockFileController::MOCK_METHOD ( bool ,
exists ,
(const QString &) ,
()  )

Mocked method to check if a file exists.

◆ MOCK_METHOD() [2/4]

MockFileController::MOCK_METHOD ( bool ,
open ,
(QFile &, QIODevice::OpenMode) ,
()  )

Mocked method to open a file.

◆ MOCK_METHOD() [3/4]

MockFileController::MOCK_METHOD ( bool ,
write ,
(QFile &, const QString &) ,
()  )

Mocked method to write to a file.

◆ MOCK_METHOD() [4/4]

MockFileController::MOCK_METHOD ( QString ,
read ,
(QFile &) ,
()  )

Mocked method to close a file.


The documentation for this class was generated from the following file: