1 #pragma once 2 #include "ethernet_interface.hpp" 3 4 #include <gmock/gmock.h> 5 6 namespace phosphor 7 { 8 namespace network 9 { 10 class MockEthernetInterface : public EthernetInterface 11 { 12 public: 13 template <typename... Args> MockEthernetInterface(Args &&...args)14 MockEthernetInterface(Args&&... args) : 15 EthernetInterface(std::forward<Args>(args)..., /*nicEnabled=*/true) 16 {} 17 18 MOCK_METHOD((ServerList), getNTPServerFromTimeSyncd, (), (override)); 19 MOCK_METHOD((ServerList), getNameServerFromResolvd, (), (const override)); 20 }; 21 } // namespace network 22 } // namespace phosphor 23