blob: 8fc41fac6719fed0e6b208d57139f0f72432d265 [file] [log] [blame]
Patrick Venturee7728422018-11-14 20:16:33 -08001#pragma once
2
Patrick Venture5251da92019-01-17 11:25:26 -08003#include "window_hw_interface.hpp"
Patrick Venturee7728422018-11-14 20:16:33 -08004
Patrick Venturec9c60882019-01-17 11:44:47 -08005#include <cstdint>
6#include <utility>
7#include <vector>
8
Patrick Venturee7728422018-11-14 20:16:33 -08009#include <gmock/gmock.h>
10
Patrick Venture1d5a31c2019-05-20 11:38:22 -070011namespace ipmi_flash
Patrick Venturee7728422018-11-14 20:16:33 -080012{
13
Patrick Venture5251da92019-01-17 11:25:26 -080014class HardwareInterfaceMock : public HardwareMapperInterface
Patrick Venturee7728422018-11-14 20:16:33 -080015{
16 public:
Patrick Venture5251da92019-01-17 11:25:26 -080017 virtual ~HardwareInterfaceMock() = default;
Patrick Venturee7728422018-11-14 20:16:33 -080018
Patrick Venture2343cfc2019-01-17 13:04:36 -080019 MOCK_METHOD0(close, ());
Patrick Venturee7728422018-11-14 20:16:33 -080020 MOCK_METHOD2(mapWindow,
21 std::pair<std::uint32_t, std::uint32_t>(std::uint32_t,
22 std::uint32_t));
Patrick Venture517710d2019-01-17 11:37:40 -080023 MOCK_METHOD1(copyFrom, std::vector<std::uint8_t>(std::uint32_t));
Patrick Venturee7728422018-11-14 20:16:33 -080024};
25
Patrick Venture1d5a31c2019-05-20 11:38:22 -070026} // namespace ipmi_flash