1acd6dd55SManojkiran Eda #pragma once 2acd6dd55SManojkiran Eda #include "ethernet_interface.hpp" 3acd6dd55SManojkiran Eda 4acd6dd55SManojkiran Eda #include <gmock/gmock.h> 5acd6dd55SManojkiran Eda 6acd6dd55SManojkiran Eda namespace phosphor 7acd6dd55SManojkiran Eda { 8acd6dd55SManojkiran Eda namespace network 9acd6dd55SManojkiran Eda { 10acd6dd55SManojkiran Eda class MockEthernetInterface : public EthernetInterface 11acd6dd55SManojkiran Eda { 12acd6dd55SManojkiran Eda public: 139ecb90ebSWilliam A. Kennington III template <typename... Args> 149ecb90ebSWilliam A. Kennington III MockEthernetInterface(Args&&... args) : 159ecb90ebSWilliam A. Kennington III EthernetInterface(std::forward<Args>(args)..., /*emitSignal=*/false, 1626275a3fSWilliam A. Kennington III /*nicEnabled=*/true) 17acd6dd55SManojkiran Eda { 18acd6dd55SManojkiran Eda } 19acd6dd55SManojkiran Eda 20*5b17938cSWilliam A. Kennington III MOCK_METHOD((ServerList), getNTPServerFromTimeSyncd, (), (override)); 21acd6dd55SManojkiran Eda MOCK_METHOD((ServerList), getNameServerFromResolvd, (), (override)); 22acd6dd55SManojkiran Eda }; 23acd6dd55SManojkiran Eda } // namespace network 24acd6dd55SManojkiran Eda } // namespace phosphor 25