Hotwheels-Cluster 1.2
Creation of Cluster APP for SEA:ME project.
 
Loading...
Searching...
No Matches
MockSystemCommandExecutor.hpp
Go to the documentation of this file.
1
15
16#ifndef MOCKSYSTEMCOMMANDEXECUTOR_HPP
17#define MOCKSYSTEMCOMMANDEXECUTOR_HPP
18
20#include <gmock/gmock.h>
21
27{
28public:
30 MOCK_METHOD(QString, executeCommand, (const QString &command), (const, override));
32 MOCK_METHOD(QString, readFile, (const QString &filePath), (const, override));
33};
34
35#endif // MOCKSYSTEMCOMMANDEXECUTOR_HPP
Definition of the ISystemCommandExecutor interface.
Interface for executing system commands and reading files.
virtual QString executeCommand(const QString &command) const =0
virtual QString readFile(const QString &filePath) const =0
Class to emulate the behavior of the SystemCommandExecutor class.
MOCK_METHOD(QString, readFile,(const QString &filePath),(const, override))
Mocked method to read a file.
MOCK_METHOD(QString, executeCommand,(const QString &command),(const, override))
Mocked method to execute a command.