blob: 3db922156fa4801eb2c543ddad13a6a3c838dfbc [file] [log] [blame]
#pragma once
#include "status.hpp"
#include "update.hpp"
#include <memory>
#include <vector>
#include <gmock/gmock.h>
namespace ipmi_flash
{
class UpdateMock : public UpdateInterface
{
public:
MOCK_METHOD0(triggerUpdate, bool());
MOCK_METHOD0(abortUpdate, void());
MOCK_METHOD0(status, UpdateStatus());
};
std::unique_ptr<UpdateInterface> CreateUpdateMock()
{
return std::make_unique<UpdateMock>();
}
} // namespace ipmi_flash