| #pragma once |
| |
| #include "status.hpp" |
| |
| #include <memory> |
| #include <string> |
| |
| #include <gmock/gmock.h> |
| #include <gtest/gtest.h> |
| |
| namespace ipmi_flash |
| { |
| // TriggerableActionInterface |
| |
| class TriggerMock : public TriggerableActionInterface |
| { |
| public: |
| MOCK_METHOD(bool, trigger, (), (override)); |
| MOCK_METHOD(void, abort, (), (override)); |
| MOCK_METHOD(ActionStatus, status, (), (override)); |
| |
| using TriggerableActionInterface::cb; |
| }; |
| |
| std::unique_ptr<TriggerableActionInterface> CreateTriggerMock() |
| { |
| return std::make_unique<TriggerMock>(); |
| } |
| |
| } // namespace ipmi_flash |