Hotwheels-Cluster 1.2
Creation of Cluster APP for SEA:ME project.
 
Loading...
Searching...
No Matches
MockMileageCalculator.hpp
Go to the documentation of this file.
1
15
16#ifndef MOCKMILEAGECALCULATOR_HPP
17#define MOCKMILEAGECALCULATOR_HPP
18
20#include <gmock/gmock.h>
21
27{
28public:
30 MOCK_METHOD(void, addSpeed, (float speed), (override));
32 MOCK_METHOD(double, calculateDistance, (), (override));
33};
34
35#endif // MOCKMILEAGECALCULATOR_HPP
Definition of the IMileageCalculator interface.
Interface for calculating the mileage of a vehicle.
virtual void addSpeed(float speed)=0
virtual double calculateDistance()=0
Class to emulate the behavior of the MileageCalculator class.
MOCK_METHOD(double, calculateDistance,(),(override))
Mocked method to add a time to the MileageCalculator.
MOCK_METHOD(void, addSpeed,(float speed),(override))
Mocked method to add a speed to the MileageCalculator.