Patrick Venture | 1d66fe6 | 2019-06-03 14:57:27 -0700 | [diff] [blame^] | 1 | #pragma once |
2 | |||||
3 | #include "status.hpp" | ||||
4 | |||||
5 | #include <gtest/gtest.h> | ||||
6 | |||||
7 | namespace ipmi_flash | ||||
8 | { | ||||
9 | // TriggerableActionInterface | ||||
10 | |||||
11 | class TriggerMock : public TriggerableActionInterface | ||||
12 | { | ||||
13 | public: | ||||
14 | MOCK_METHOD0(trigger, bool()); | ||||
15 | MOCK_METHOD0(abort, void()); | ||||
16 | MOCK_METHOD0(status, ActionStatus()); | ||||
17 | }; | ||||
18 | |||||
19 | std::unique_ptr<TriggerableActionInterface> CreateTriggerMock() | ||||
20 | { | ||||
21 | return std::make_unique<TriggerMock>(); | ||||
22 | } | ||||
23 | |||||
24 | } // namespace ipmi_flash |