xref: /openbmc/phosphor-fan-presence/monitor/test/mock_power_interface.hpp (revision ba3ee9aedd2ba69f12d1fc50e9ef14b8480447f8)
1f06ab07cSMatt Spinler #pragma once
2f06ab07cSMatt Spinler 
3f06ab07cSMatt Spinler #include "../power_interface.hpp"
4f06ab07cSMatt Spinler 
5f06ab07cSMatt Spinler #include <gmock/gmock.h>
6f06ab07cSMatt Spinler 
7f06ab07cSMatt Spinler namespace phosphor::fan::monitor
8f06ab07cSMatt Spinler {
9f06ab07cSMatt Spinler 
10f06ab07cSMatt Spinler class MockPowerInterface : public PowerInterfaceBase
11f06ab07cSMatt Spinler {
12f06ab07cSMatt Spinler   public:
13f06ab07cSMatt Spinler     MOCK_METHOD(void, softPowerOff, (), (override));
14f06ab07cSMatt Spinler     MOCK_METHOD(void, hardPowerOff, (), (override));
15*ba3ee9aeSMatt Spinler     MOCK_METHOD(void, thermalAlert, (bool), (override));
16f06ab07cSMatt Spinler };
17f06ab07cSMatt Spinler 
18f06ab07cSMatt Spinler } // namespace phosphor::fan::monitor
19