#pragma once #include "ethernet_interface.hpp" #include namespace phosphor { namespace network { class MockEthernetInterface : public EthernetInterface { public: template MockEthernetInterface(Args&&... args) : EthernetInterface(std::forward(args)..., /*nicEnabled=*/true) {} MOCK_METHOD((ServerList), getNTPServerFromTimeSyncd, (), (override)); MOCK_METHOD((ServerList), getNameServerFromResolvd, (), (const override)); }; } // namespace network } // namespace phosphor