blob: bfe81ed8bf0bd075672190cc4e983f94241fbd52 [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:
15 MockEthernetInterface(sdbusplus::bus::bus& bus, const std::string& objPath,
Johnathan Mantey817012a2020-01-30 15:07:39 -080016 DHCPConf dhcpEnabled, Manager& parent,
17 bool emitSignal) :
William A. Kennington III26275a32021-07-13 20:32:42 -070018 EthernetInterface(bus, objPath, dhcpEnabled, parent, emitSignal,
19 /*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