blob: 4ae44634c14fb15ea66ddb621e7602e835b7b68a [file] [log] [blame]
Jason Ling84bff8b2020-11-06 13:45:09 -08001#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
11namespace ipmi_flash
12{
13// TriggerableActionInterface
14
15class TriggerMock : public TriggerableActionInterface
16{
17 public:
Willy Tuf4504862021-04-24 23:22:19 -070018 MOCK_METHOD(bool, trigger, (), (override));
19 MOCK_METHOD(void, abort, (), (override));
20 MOCK_METHOD(ActionStatus, status, (), (override));
21
William A. Kennington III4175b4c2020-12-23 22:45:18 -080022 using TriggerableActionInterface::cb;
Jason Ling84bff8b2020-11-06 13:45:09 -080023};
24
Willy Tu99d292a2022-02-08 17:40:58 -080025std::unique_ptr<TriggerableActionInterface> CreateTriggerMock();
Jason Ling84bff8b2020-11-06 13:45:09 -080026
27} // namespace ipmi_flash