16#ifndef MOCKMILEAGEFILEHANDLER_HPP
17#define MOCKMILEAGEFILEHANDLER_HPP
20#include <gmock/gmock.h>
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.