blob: c7c402299eeea02ca2a7c1d78fb9e906b23eb316 [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,
16 bool dhcpEnabled, Manager& parent, bool emitSignal) :
17 EthernetInterface(bus, objPath, dhcpEnabled, parent, emitSignal)
18 {
19 }
20
21 MOCK_METHOD((ServerList), getNameServerFromResolvd, (), (override));
22 friend class TestEthernetInterface;
23};
24} // namespace network
25} // namespace phosphor