blob: a0358ed0f3a427348e5c9160f3360c7050704ce6 [file] [log] [blame]
Manojkiran Edaacd6dd52019-10-15 15:00:51 +05301#pragma once
2
3#include "ethernet_interface.hpp"
4#include "mock_syscall.hpp"
5
6#include <gmock/gmock.h>
7
8namespace phosphor
9{
10namespace network
11{
12class MockEthernetInterface : public EthernetInterface
13{
14 public:
Patrick Williamsc38b0712022-07-22 19:26:54 -050015 MockEthernetInterface(sdbusplus::bus_t& bus, const std::string& objPath,
William A. Kennington IIIa520a392022-08-08 12:17:34 -070016 const config::Parser& config, DHCPConf dhcpEnabled,
17 Manager& parent, bool emitSignal) :
18 EthernetInterface(bus, objPath, config, dhcpEnabled, parent, emitSignal,
William A. Kennington III26275a32021-07-13 20:32:42 -070019 /*nicEnabled=*/true)
Manojkiran Edaacd6dd52019-10-15 15:00:51 +053020 {
21 }
22
23 MOCK_METHOD((ServerList), getNameServerFromResolvd, (), (override));
24 friend class TestEthernetInterface;
25};
26} // namespace network
27} // namespace phosphor