blob: ce64a546ec828e74c3d3aa46a2eda50e06e28580 [file] [log] [blame]
Patrick Venture54c3b532018-08-01 11:45:49 -07001#pragma once
2
Patrick Venture1aedab22018-09-10 14:41:45 -07003#include "flash-ipmi.hpp"
4
Patrick Venture79e131f2018-08-01 13:34:35 -07005#include <vector>
Patrick Venture54c3b532018-08-01 11:45:49 -07006
Patrick Venture1aedab22018-09-10 14:41:45 -07007#include <gmock/gmock.h>
Patrick Venture54c3b532018-08-01 11:45:49 -07008
9class UpdaterMock : public UpdateInterface
10{
11 public:
12 virtual ~UpdaterMock() = default;
13
14 MOCK_METHOD1(start, bool(uint32_t));
Patrick Venture79e131f2018-08-01 13:34:35 -070015 MOCK_METHOD2(flashData, bool(uint32_t, const std::vector<uint8_t>&));
Patrick Venture2c1205d2018-08-03 10:23:14 -070016 MOCK_METHOD0(flashFinish, bool());
Patrick Venture8d9f7322018-08-03 10:39:13 -070017 MOCK_METHOD1(startHash, bool(uint32_t));
Patrick Venturecfe66872018-08-03 13:32:33 -070018 MOCK_METHOD2(hashData, bool(uint32_t, const std::vector<uint8_t>&));
Patrick Venturefbc7d192018-08-03 13:54:21 -070019 MOCK_METHOD0(hashFinish, bool());
Patrick Venture1cb87d22018-08-03 18:22:09 -070020 MOCK_METHOD0(startDataVerification, bool());
Patrick Venture5c251ca2018-08-03 18:31:01 -070021 MOCK_METHOD0(abortUpdate, bool());
Patrick Venturefdc65b22018-08-07 14:37:58 -070022 MOCK_METHOD0(checkVerify, VerifyCheckResponse());
Patrick Venture54c3b532018-08-01 11:45:49 -070023};