blob: 91e9bf5dda26060b55cfbb81ffadb99457c8ccb6 [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)
Manojkiran Edaacd6dd52019-10-15 15:00:51 +053016 {
17 }
18
William A. Kennington III5b179382022-11-15 15:23:26 -080019 MOCK_METHOD((ServerList), getNTPServerFromTimeSyncd, (), (override));
Manojkiran Edaacd6dd52019-10-15 15:00:51 +053020 MOCK_METHOD((ServerList), getNameServerFromResolvd, (), (override));
Manojkiran Edaacd6dd52019-10-15 15:00:51 +053021};
22} // namespace network
23} // namespace phosphor