blob: 561deaa0276211b063c0801b57a8ff9331cbf6bc [file] [log] [blame]
Patrick Venture54c3b532018-08-01 11:45:49 -07001#pragma once
2
3#include <gmock/gmock.h>
Patrick Venture79e131f2018-08-01 13:34:35 -07004#include <vector>
Patrick Venture54c3b532018-08-01 11:45:49 -07005
6#include "flash-ipmi.hpp"
7
8class UpdaterMock : public UpdateInterface
9{
10 public:
11 virtual ~UpdaterMock() = default;
12
13 MOCK_METHOD1(start, bool(uint32_t));
Patrick Venture79e131f2018-08-01 13:34:35 -070014 MOCK_METHOD2(flashData, bool(uint32_t, const std::vector<uint8_t>&));
Patrick Venture2c1205d2018-08-03 10:23:14 -070015 MOCK_METHOD0(flashFinish, bool());
Patrick Venture8d9f7322018-08-03 10:39:13 -070016 MOCK_METHOD1(startHash, bool(uint32_t));
Patrick Venture54c3b532018-08-01 11:45:49 -070017};