blob: 150ceddd8e7d58ee7fe591e44c2af58d3f63fcf1 [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)..., /*nicEnabled=*/true)
{}
MOCK_METHOD((ServerList), getNTPServerFromTimeSyncd, (), (override));
MOCK_METHOD((ServerList), getNameServerFromResolvd, (), (const override));
};
} // namespace network
} // namespace phosphor