blob: ce64a546ec828e74c3d3aa46a2eda50e06e28580 [file] [log] [blame]
#pragma once
#include "flash-ipmi.hpp"
#include <vector>
#include <gmock/gmock.h>
class UpdaterMock : public UpdateInterface
{
public:
virtual ~UpdaterMock() = default;
MOCK_METHOD1(start, bool(uint32_t));
MOCK_METHOD2(flashData, bool(uint32_t, const std::vector<uint8_t>&));
MOCK_METHOD0(flashFinish, bool());
MOCK_METHOD1(startHash, bool(uint32_t));
MOCK_METHOD2(hashData, bool(uint32_t, const std::vector<uint8_t>&));
MOCK_METHOD0(hashFinish, bool());
MOCK_METHOD0(startDataVerification, bool());
MOCK_METHOD0(abortUpdate, bool());
MOCK_METHOD0(checkVerify, VerifyCheckResponse());
};