monitor: Fill in EpowPowerOff action
This action does the following:
1) Starts a service mode timer, which would allow the system to be
serviced before anything happens.
2) On the expiration of that timer, it will:
a) Set the thermal fault alert D-Bus property. This will be used
to send an EPOW alert to the host on IBM systems.
b) Start the meltdown timer.
3) On the expiration of the meltdown timer, a hard power off will
occur. This timer cannot be canceled even if fans start behaving.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I9434699b816b23b68c6d9d1e97283b4ab9befe4f
diff --git a/monitor/test/mock_power_interface.hpp b/monitor/test/mock_power_interface.hpp
index c070182..6801751 100644
--- a/monitor/test/mock_power_interface.hpp
+++ b/monitor/test/mock_power_interface.hpp
@@ -12,6 +12,7 @@
public:
MOCK_METHOD(void, softPowerOff, (), (override));
MOCK_METHOD(void, hardPowerOff, (), (override));
+ MOCK_METHOD(void, thermalAlert, (bool), (override));
};
} // namespace phosphor::fan::monitor