Patrick Venture | 030b1a8 | 2019-01-18 08:33:02 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Patrick Venture | d6b337e | 2021-04-16 14:37:57 -0700 | [diff] [blame] | 3 | #include "io_interface.hpp" |
Patrick Venture | 030b1a8 | 2019-01-18 08:33:02 -0800 | [diff] [blame] | 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 | |
Willy Tu | f450486 | 2021-04-24 23:22:19 -0700 | [diff] [blame] | 15 | MOCK_METHOD(bool, read, (const std::size_t, const std::size_t, void* const), |
| 16 | (override)); |
| 17 | MOCK_METHOD(bool, write, |
| 18 | (const std::size_t, const std::size_t, const void* const), |
| 19 | (override)); |
Patrick Venture | 030b1a8 | 2019-01-18 08:33:02 -0800 | [diff] [blame] | 20 | }; |
| 21 | |
| 22 | } // namespace host_tool |