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: |
Willy Tu | f450486 | 2021-04-24 23:22:19 -0700 | [diff] [blame] | 18 | MOCK_METHOD(bool, trigger, (), (override)); |
| 19 | MOCK_METHOD(void, abort, (), (override)); |
| 20 | MOCK_METHOD(ActionStatus, status, (), (override)); |
| 21 | |
William A. Kennington III | 4175b4c | 2020-12-23 22:45:18 -0800 | [diff] [blame] | 22 | using TriggerableActionInterface::cb; |
Jason Ling | 84bff8b | 2020-11-06 13:45:09 -0800 | [diff] [blame] | 23 | }; |
| 24 | |
Willy Tu | 99d292a | 2022-02-08 17:40:58 -0800 | [diff] [blame] | 25 | std::unique_ptr<TriggerableActionInterface> CreateTriggerMock(); |
Jason Ling | 84bff8b | 2020-11-06 13:45:09 -0800 | [diff] [blame] | 26 | |
| 27 | } // namespace ipmi_flash |