blob: edd2aecb5e3ccd87149bae0704fe239e157dee2c [file] [log] [blame]
Patrick Venturef085d912019-03-15 08:50:00 -07001#pragma once
2
3#include "handler.hpp"
4
Patrick Venture40e8ace2020-08-12 20:44:43 -07005#include <cstddef>
6#include <cstdint>
7#include <string>
8#include <tuple>
9
Patrick Venturef085d912019-03-15 08:50:00 -070010#include <gmock/gmock.h>
11
12namespace google
13{
14namespace ipmi
15{
16
17class HandlerMock : public HandlerInterface
18{
19
20 public:
21 ~HandlerMock() = default;
22
23 MOCK_CONST_METHOD0(getEthDetails, std::tuple<std::uint8_t, std::string>());
Patrick Ventured2037c62019-03-15 10:29:47 -070024 MOCK_CONST_METHOD1(getRxPackets, std::int64_t(const std::string&));
Patrick Venturebb90d4f2019-03-15 13:42:06 -070025 MOCK_CONST_METHOD1(getCpldVersion,
26 std::tuple<std::uint8_t, std::uint8_t, std::uint8_t,
27 std::uint8_t>(unsigned int));
Patrick Ventureaa374122019-03-15 15:09:10 -070028 MOCK_CONST_METHOD1(psuResetDelay, void(std::uint32_t));
Shounak Mitraac4a16f2021-02-02 11:11:44 -080029 MOCK_CONST_METHOD0(psuResetOnShutdown, void());
Willy Tu3b1b4272021-03-02 17:58:10 -080030 MOCK_METHOD0(getFlashSize, uint32_t());
Patrick Venture07f85152019-03-15 21:36:56 -070031 MOCK_METHOD2(getEntityName, std::string(std::uint8_t, std::uint8_t));
William A. Kennington III29f35bc2020-11-03 23:30:31 -080032 MOCK_METHOD0(getMachineName, std::string());
Patrick Venture49f23ad2019-03-16 11:59:55 -070033 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));
linyuny8cfa4c42021-06-16 13:53:08 -070037 MOCK_CONST_METHOD1(hostPowerOffDelay, void(std::uint32_t));
Patrick Venturef085d912019-03-15 08:50:00 -070038};
39
40} // namespace ipmi
41} // namespace google