xref: /openbmc/phosphor-ipmi-flash/tools/test/io_mock.hpp (revision ded66d0f7317f6e43a5301da6c3d9dda80b17250)
1 #pragma once
2 
3 #include "io.hpp"
4 
5 #include <gmock/gmock.h>
6 
7 namespace host_tool
8 {
9 
10 class HostIoInterfaceMock : public HostIoInterface
11 {
12   public:
13     ~HostIoInterfaceMock() = default;
14 
15     MOCK_METHOD3(read, bool(const std::size_t, const std::size_t, void* const));
16 
17     MOCK_METHOD3(write,
18                  bool(const std::size_t, const std::size_t, const void* const));
19 };
20 
21 } // namespace host_tool
22