Jason Ling | 84bff8b | 2020-11-06 13:45:09 -0800 | [diff] [blame^] | 1 | #pragma once |
| 2 | |
| 3 | #include "status.hpp" |
| 4 | |
| 5 | #include <memory> |
| 6 | #include <string> |
| 7 | |
| 8 | #include <gmock/gmock.h> |
| 9 | #include <gtest/gtest.h> |
| 10 | |
| 11 | namespace ipmi_flash |
| 12 | { |
| 13 | // TriggerableActionInterface |
| 14 | |
| 15 | class TriggerMock : public TriggerableActionInterface |
| 16 | { |
| 17 | public: |
| 18 | MOCK_METHOD0(trigger, bool()); |
| 19 | MOCK_METHOD0(abort, void()); |
| 20 | MOCK_METHOD0(status, ActionStatus()); |
| 21 | }; |
| 22 | |
| 23 | std::unique_ptr<TriggerableActionInterface> CreateTriggerMock() |
| 24 | { |
| 25 | return std::make_unique<TriggerMock>(); |
| 26 | } |
| 27 | |
| 28 | } // namespace ipmi_flash |