Patrick Venture | f085d91 | 2019-03-15 08:50:00 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include "handler.hpp" |
| 4 | |
Patrick Venture | 40e8ace | 2020-08-12 20:44:43 -0700 | [diff] [blame] | 5 | #include <cstddef> |
| 6 | #include <cstdint> |
| 7 | #include <string> |
| 8 | #include <tuple> |
| 9 | |
Patrick Venture | f085d91 | 2019-03-15 08:50:00 -0700 | [diff] [blame] | 10 | #include <gmock/gmock.h> |
| 11 | |
| 12 | namespace google |
| 13 | { |
| 14 | namespace ipmi |
| 15 | { |
| 16 | |
| 17 | class HandlerMock : public HandlerInterface |
| 18 | { |
| 19 | |
| 20 | public: |
| 21 | ~HandlerMock() = default; |
| 22 | |
| 23 | MOCK_CONST_METHOD0(getEthDetails, std::tuple<std::uint8_t, std::string>()); |
Patrick Venture | d2037c6 | 2019-03-15 10:29:47 -0700 | [diff] [blame] | 24 | MOCK_CONST_METHOD1(getRxPackets, std::int64_t(const std::string&)); |
Patrick Venture | bb90d4f | 2019-03-15 13:42:06 -0700 | [diff] [blame] | 25 | MOCK_CONST_METHOD1(getCpldVersion, |
| 26 | std::tuple<std::uint8_t, std::uint8_t, std::uint8_t, |
| 27 | std::uint8_t>(unsigned int)); |
Patrick Venture | aa37412 | 2019-03-15 15:09:10 -0700 | [diff] [blame] | 28 | MOCK_CONST_METHOD1(psuResetDelay, void(std::uint32_t)); |
Shounak Mitra | ac4a16f | 2021-02-02 11:11:44 -0800 | [diff] [blame] | 29 | MOCK_CONST_METHOD0(psuResetOnShutdown, void()); |
Willy Tu | 3b1b427 | 2021-03-02 17:58:10 -0800 | [diff] [blame] | 30 | MOCK_METHOD0(getFlashSize, uint32_t()); |
Patrick Venture | 07f8515 | 2019-03-15 21:36:56 -0700 | [diff] [blame] | 31 | MOCK_METHOD2(getEntityName, std::string(std::uint8_t, std::uint8_t)); |
William A. Kennington III | 29f35bc | 2020-11-03 23:30:31 -0800 | [diff] [blame] | 32 | MOCK_METHOD0(getMachineName, std::string()); |
Patrick Venture | 49f23ad | 2019-03-16 11:59:55 -0700 | [diff] [blame] | 33 | MOCK_METHOD0(buildI2cPcieMapping, void()); |
| 34 | MOCK_CONST_METHOD0(getI2cPcieMappingSize, size_t()); |
| 35 | MOCK_CONST_METHOD1(getI2cEntry, |
| 36 | std::tuple<std::uint32_t, std::string>(unsigned int)); |
linyuny | 8cfa4c4 | 2021-06-16 13:53:08 -0700 | [diff] [blame^] | 37 | MOCK_CONST_METHOD1(hostPowerOffDelay, void(std::uint32_t)); |
Patrick Venture | f085d91 | 2019-03-15 08:50:00 -0700 | [diff] [blame] | 38 | }; |
| 39 | |
| 40 | } // namespace ipmi |
| 41 | } // namespace google |