blob: 8c12926bb61cef4e0cc58396ef36422d5d0a5ea7 [file] [log] [blame]
Manojkiran Edaacd6dd52019-10-15 15:00:51 +05301#pragma once
Manojkiran Edaacd6dd52019-10-15 15:00:51 +05302#include "ethernet_interface.hpp"
Manojkiran Edaacd6dd52019-10-15 15:00:51 +05303
4#include <gmock/gmock.h>
5
6namespace phosphor
7{
8namespace network
9{
10class MockEthernetInterface : public EthernetInterface
11{
12 public:
William A. Kennington III9ecb90e2022-10-14 03:12:43 -070013 template <typename... Args>
14 MockEthernetInterface(Args&&... args) :
William A. Kennington IIIb6452542022-11-15 18:09:12 -080015 EthernetInterface(std::forward<Args>(args)..., /*nicEnabled=*/true)
Patrick Williams89d734b2023-05-10 07:50:25 -050016 {}
Manojkiran Edaacd6dd52019-10-15 15:00:51 +053017
William A. Kennington III5b179382022-11-15 15:23:26 -080018 MOCK_METHOD((ServerList), getNTPServerFromTimeSyncd, (), (override));
Manojkiran Edaacd6dd52019-10-15 15:00:51 +053019 MOCK_METHOD((ServerList), getNameServerFromResolvd, (), (override));
Manojkiran Edaacd6dd52019-10-15 15:00:51 +053020};
21} // namespace network
22} // namespace phosphor