blob: a0358ed0f3a427348e5c9160f3360c7050704ce6 [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_t& bus, const std::string& objPath,
const config::Parser& config, DHCPConf dhcpEnabled,
Manager& parent, bool emitSignal) :
EthernetInterface(bus, objPath, config, dhcpEnabled, parent, emitSignal,
/*nicEnabled=*/true)
{
}
MOCK_METHOD((ServerList), getNameServerFromResolvd, (), (override));
friend class TestEthernetInterface;
};
} // namespace network
} // namespace phosphor