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