blob: 0db90eeb68df104660f3d9e20101c4deff241a2a [file] [log] [blame]
#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