xref: /openbmc/phosphor-networkd/test/mock_ethernet_interface.hpp (revision 4f8b9a0bfd51ebd00305e27897acc4d779d32afa)
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>
MockEthernetInterface(Args &&...args)149ecb90ebSWilliam A. Kennington III     MockEthernetInterface(Args&&... args) :
15b6452547SWilliam A. Kennington III         EthernetInterface(std::forward<Args>(args)..., /*nicEnabled=*/true)
1689d734b9SPatrick Williams     {}
17acd6dd55SManojkiran Eda 
185b17938cSWilliam A. Kennington III     MOCK_METHOD((ServerList), getNTPServerFromTimeSyncd, (), (override));
19*4f8b9a0bSRavi Teja     MOCK_METHOD((ServerList), getNameServerFromResolvd, (), (const override));
20acd6dd55SManojkiran Eda };
21acd6dd55SManojkiran Eda } // namespace network
22acd6dd55SManojkiran Eda } // namespace phosphor
23