| Patrick Venture | e772842 | 2018-11-14 20:16:33 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |||||
| Patrick Venture | 5251da9 | 2019-01-17 11:25:26 -0800 | [diff] [blame] | 3 | #include "window_hw_interface.hpp" |
| Patrick Venture | e772842 | 2018-11-14 20:16:33 -0800 | [diff] [blame] | 4 | |
| Patrick Venture | c9c6088 | 2019-01-17 11:44:47 -0800 | [diff] [blame] | 5 | #include <cstdint> |
| 6 | #include <utility> | ||||
| 7 | #include <vector> | ||||
| 8 | |||||
| Patrick Venture | e772842 | 2018-11-14 20:16:33 -0800 | [diff] [blame] | 9 | #include <gmock/gmock.h> |
| 10 | |||||
| Patrick Venture | 1d5a31c | 2019-05-20 11:38:22 -0700 | [diff] [blame] | 11 | namespace ipmi_flash |
| Patrick Venture | e772842 | 2018-11-14 20:16:33 -0800 | [diff] [blame] | 12 | { |
| 13 | |||||
| Patrick Venture | 5251da9 | 2019-01-17 11:25:26 -0800 | [diff] [blame] | 14 | class HardwareInterfaceMock : public HardwareMapperInterface |
| Patrick Venture | e772842 | 2018-11-14 20:16:33 -0800 | [diff] [blame] | 15 | { |
| 16 | public: | ||||
| Patrick Venture | 5251da9 | 2019-01-17 11:25:26 -0800 | [diff] [blame] | 17 | virtual ~HardwareInterfaceMock() = default; |
| Patrick Venture | e772842 | 2018-11-14 20:16:33 -0800 | [diff] [blame] | 18 | |
| Patrick Venture | 36bffb4 | 2019-06-24 10:47:47 -0700 | [diff] [blame^] | 19 | MOCK_METHOD0(open, MemorySet()); |
| Patrick Venture | 2343cfc | 2019-01-17 13:04:36 -0800 | [diff] [blame] | 20 | MOCK_METHOD0(close, ()); |
| Patrick Venture | 36bffb4 | 2019-06-24 10:47:47 -0700 | [diff] [blame^] | 21 | MOCK_METHOD2(mapWindow, WindowMapResult(std::uint32_t, std::uint32_t)); |
| Patrick Venture | e772842 | 2018-11-14 20:16:33 -0800 | [diff] [blame] | 22 | }; |
| 23 | |||||
| Patrick Venture | 1d5a31c | 2019-05-20 11:38:22 -0700 | [diff] [blame] | 24 | } // namespace ipmi_flash |