blob: fc1e2598fd6c3c071f9bedcc776aa22717f7b8af [file] [log] [blame]
#pragma once
#include "ethernet_interface.hpp"
#include "mock_syscall.hpp"
#include <gmock/gmock.h>
namespace phosphor
{
namespace network
{
class MockEthernetInterface : public EthernetInterface
{
public:
MockEthernetInterface(sdbusplus::bus::bus& bus, const std::string& objPath,
DHCPConf dhcpEnabled, Manager& parent,
bool emitSignal) :
EthernetInterface(bus, objPath, dhcpEnabled, parent, emitSignal)
{
}
MOCK_METHOD((ServerList), getNameServerFromResolvd, (), (override));
friend class TestEthernetInterface;
};
} // namespace network
} // namespace phosphor