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