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: |
| 15 | MockEthernetInterface(sdbusplus::bus::bus& bus, const std::string& objPath, |
Johnathan Mantey | 817012a | 2020-01-30 15:07:39 -0800 | [diff] [blame] | 16 | DHCPConf dhcpEnabled, Manager& parent, |
| 17 | bool emitSignal) : |
Manojkiran Eda | acd6dd5 | 2019-10-15 15:00:51 +0530 | [diff] [blame] | 18 | EthernetInterface(bus, objPath, dhcpEnabled, parent, emitSignal) |
| 19 | { |
| 20 | } |
| 21 | |
| 22 | MOCK_METHOD((ServerList), getNameServerFromResolvd, (), (override)); |
| 23 | friend class TestEthernetInterface; |
| 24 | }; |
| 25 | } // namespace network |
| 26 | } // namespace phosphor |