blob: de2b025267fa86ec2450572dda845e3f374c9e5d [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_METHOD0(trigger, bool());
MOCK_METHOD0(abort, void());
MOCK_METHOD0(status, ActionStatus());
using TriggerableActionInterface::cb;
};
std::unique_ptr<TriggerableActionInterface> CreateTriggerMock()
{
return std::make_unique<TriggerMock>();
}
} // namespace ipmi_flash