Hotwheels-Cluster 1.2
Creation of Cluster APP for SEA:ME project.
 
Loading...
Searching...
No Matches
MockMileageFileHandler.hpp
Go to the documentation of this file.
1
15
16#ifndef MOCKMILEAGEFILEHANDLER_HPP
17#define MOCKMILEAGEFILEHANDLER_HPP
18
20#include <gmock/gmock.h>
21
27{
28public:
30 MOCK_METHOD(double, readMileage, (), (const, override));
32 MOCK_METHOD(void, writeMileage, (double mileage), (const, override));
33};
34
35#endif // MOCKMILEAGEFILEHANDLER_HPP
Definition of the IMileageFileHandler interface.
Interface for reading and writing the mileage of a vehicle to a file.
virtual double readMileage() const =0
virtual void writeMileage(double mileage) const =0
Class to emulate the behavior of the MileageFileHandler class.
MOCK_METHOD(double, readMileage,(),(const, override))
Mocked method to read the mileage from the file.
MOCK_METHOD(void, writeMileage,(double mileage),(const, override))
Mocked method to write the mileage to the file.