blob: c8109ad067ed86b8cc975e18599483e15da337d4 [file] [log] [blame]
Patrick Venture1cde5f92018-11-07 08:26:47 -08001#pragma once
2
3#include "data_handler.hpp"
4
5#include <gmock/gmock.h>
6
Patrick Venture1d5a31c2019-05-20 11:38:22 -07007namespace ipmi_flash
Patrick Venture1cde5f92018-11-07 08:26:47 -08008{
9
10class DataHandlerMock : public DataInterface
11{
12 public:
13 virtual ~DataHandlerMock() = default;
14
Patrick Venture0d2a8132018-11-09 11:34:21 -080015 MOCK_METHOD0(open, bool());
Patrick Venture0fbabf22018-11-09 11:54:12 -080016 MOCK_METHOD0(close, bool());
Patrick Venture1cde5f92018-11-07 08:26:47 -080017 MOCK_METHOD1(copyFrom, std::vector<std::uint8_t>(std::uint32_t));
Patrick Venture74304642019-01-17 09:31:04 -080018 MOCK_METHOD1(writeMeta, bool(const std::vector<std::uint8_t>&));
19 MOCK_METHOD0(readMeta, std::vector<std::uint8_t>());
Patrick Venture1cde5f92018-11-07 08:26:47 -080020};
21
Patrick Venture1d5a31c2019-05-20 11:38:22 -070022} // namespace ipmi_flash