Manojkiran Eda | acd6dd5 | 2019-10-15 15:00:51 +0530 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include "ethernet_interface.hpp" |
| 4 | #include "mock_syscall.hpp" |
| 5 | |
| 6 | #include <gmock/gmock.h> |
| 7 | |
| 8 | namespace phosphor |
| 9 | { |
| 10 | namespace network |
| 11 | { |
| 12 | class MockEthernetInterface : public EthernetInterface |
| 13 | { |
| 14 | public: |
Patrick Williams | c38b071 | 2022-07-22 19:26:54 -0500 | [diff] [blame] | 15 | MockEthernetInterface(sdbusplus::bus_t& bus, const std::string& objPath, |
William A. Kennington III | 0caf221 | 2022-08-18 18:15:51 -0700 | [diff] [blame] | 16 | const config::Parser& config, Manager& parent, |
| 17 | bool emitSignal) : |
| 18 | EthernetInterface(bus, objPath, config, parent, emitSignal, |
William A. Kennington III | 26275a3 | 2021-07-13 20:32:42 -0700 | [diff] [blame] | 19 | /*nicEnabled=*/true) |
Manojkiran Eda | acd6dd5 | 2019-10-15 15:00:51 +0530 | [diff] [blame] | 20 | { |
| 21 | } |
| 22 | |
| 23 | MOCK_METHOD((ServerList), getNameServerFromResolvd, (), (override)); |
| 24 | friend class TestEthernetInterface; |
| 25 | }; |
| 26 | } // namespace network |
| 27 | } // namespace phosphor |