Hotwheels-Cluster
1.2
Creation of Cluster APP for SEA:ME project.
Loading...
Searching...
No Matches
MockBatteryController.hpp
Go to the documentation of this file.
1
17
18
#ifndef MOCKBATTERYCONTROLLER_HPP
19
#define MOCKBATTERYCONTROLLER_HPP
20
21
#include "
IBatteryController.hpp
"
22
#include <gmock/gmock.h>
23
28
class
MockBatteryController
:
public
IBatteryController
29
{
30
public
:
32
MOCK_METHOD
(
float
,
getBatteryPercentage
, (), (
override
));
33
};
34
35
#endif
// MOCKBATTERYCONTROLLER_HPP
IBatteryController.hpp
Definition of the IBatteryController interface.
IBatteryController
Interface for managing the battery of the vehicle.
Definition
IBatteryController.hpp:24
IBatteryController::getBatteryPercentage
virtual float getBatteryPercentage()=0
MockBatteryController
Class to emulate the behavior of the BatteryController module.
Definition
MockBatteryController.hpp:29
MockBatteryController::MOCK_METHOD
MOCK_METHOD(float, getBatteryPercentage,(),(override))
Mocked method to get the battery percentage.
apps
cluster
app_tests
mocks
MockBatteryController.hpp
Generated by
1.13.2