blob: ff1b32433f48a21069d8a0d98d064762008d409d [file] [log] [blame]
#pragma once
#include "ethernet_interface.hpp"
#include <gmock/gmock.h>
namespace phosphor
{
namespace network
{
class MockEthernetInterface : public EthernetInterface
{
public:
template <typename... Args>
MockEthernetInterface(Args&&... args) :
EthernetInterface(std::forward<Args>(args)..., /*emitSignal=*/false,
/*nicEnabled=*/true)
{
}
MOCK_METHOD((ServerList), getNTPServerFromTimeSyncd, (), (override));
MOCK_METHOD((ServerList), getNameServerFromResolvd, (), (override));
};
} // namespace network
} // namespace phosphor