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 | 2343cfc | 2019-01-17 13:04:36 -0800 | [diff] [blame] | 19 | MOCK_METHOD0(close, ()); |
Patrick Venture | e772842 | 2018-11-14 20:16:33 -0800 | [diff] [blame] | 20 | MOCK_METHOD2(mapWindow, |
21 | std::pair<std::uint32_t, std::uint32_t>(std::uint32_t, | ||||
22 | std::uint32_t)); | ||||
Patrick Venture | 517710d | 2019-01-17 11:37:40 -0800 | [diff] [blame] | 23 | MOCK_METHOD1(copyFrom, std::vector<std::uint8_t>(std::uint32_t)); |
Patrick Venture | e772842 | 2018-11-14 20:16:33 -0800 | [diff] [blame] | 24 | }; |
25 | |||||
Patrick Venture | 1d5a31c | 2019-05-20 11:38:22 -0700 | [diff] [blame] | 26 | } // namespace ipmi_flash |