blob: 1f724861fc07112b3f3764029d443b49254cbd35 [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) :
15 EthernetInterface(std::forward<Args>(args)..., /*emitSignal=*/false,
William A. Kennington III26275a32021-07-13 20:32:42 -070016 /*nicEnabled=*/true)
Manojkiran Edaacd6dd52019-10-15 15:00:51 +053017 {
18 }
19
20 MOCK_METHOD((ServerList), getNameServerFromResolvd, (), (override));
21 friend class TestEthernetInterface;
22};
23} // namespace network
24} // namespace phosphor