Hotwheels-Cluster 1.2
Creation of Cluster APP for SEA:ME project.
 
Loading...
Searching...
No Matches
MockMileageCalculator Class Reference

Class to emulate the behavior of the MileageCalculator class. More...

#include <MockMileageCalculator.hpp>

Public Member Functions

 MOCK_METHOD (void, addSpeed,(float speed),(override))
 Mocked method to add a speed to the MileageCalculator.
 
 MOCK_METHOD (double, calculateDistance,(),(override))
 Mocked method to add a time to the MileageCalculator.
 
- Public Member Functions inherited from IMileageCalculator
virtual ~IMileageCalculator ()=default
 
virtual void addSpeed (float speed)=0
 
virtual double calculateDistance ()=0
 

Detailed Description

Class to emulate the behavior of the MileageCalculator class.

Definition at line 26 of file MockMileageCalculator.hpp.

Member Function Documentation

◆ MOCK_METHOD() [1/2]

MockMileageCalculator::MOCK_METHOD ( double ,
calculateDistance ,
() ,
(override)  )

Mocked method to add a time to the MileageCalculator.

Here is the call graph for this function:

◆ MOCK_METHOD() [2/2]

MockMileageCalculator::MOCK_METHOD ( void ,
addSpeed ,
(float speed) ,
(override)  )

Mocked method to add a speed to the MileageCalculator.

Here is the call graph for this function:

The documentation for this class was generated from the following file: