xref: /openbmc/pldm/platform-mc/test/mock_sensor_manager.hpp (revision 77e6fe7ae064915e73760a94ae2c674bc6d3ef8a)
1 #pragma once
2 
3 #include "platform-mc/sensor_manager.hpp"
4 
5 #include <gmock/gmock.h>
6 
7 namespace pldm
8 {
9 namespace platform_mc
10 {
11 
12 class MockSensorManager : public SensorManager
13 {
14   public:
MockSensorManager(sdeventplus::Event & event,TerminusManager & terminusManager,TerminiMapper & termini,Manager * manager)15     MockSensorManager(sdeventplus::Event& event,
16                       TerminusManager& terminusManager, TerminiMapper& termini,
17                       Manager* manager) :
18         SensorManager(event, terminusManager, termini, manager) {};
19 
20     MOCK_METHOD(void, doSensorPolling, (pldm_tid_t tid), (override));
21 };
22 
23 } // namespace platform_mc
24 } // namespace pldm
25