blob: 5e211704d0091572962a54ec39e00703aa6a5c90 [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 III0caf2212022-08-18 18:15:51 -070016 const config::Parser& config, Manager& parent,
17 bool emitSignal) :
18 EthernetInterface(bus, objPath, config, 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