Ratan Gupta | 3529717 | 2018-11-28 18:40:16 +0530 | [diff] [blame] | 1 | #include "config.h" |
| 2 | |
| 3 | #include "network_manager.hpp" |
| 4 | |
| 5 | #include <gmock/gmock.h> |
| 6 | |
| 7 | namespace phosphor |
| 8 | { |
| 9 | namespace network |
| 10 | { |
| 11 | |
| 12 | class MockManager : public phosphor::network::Manager |
| 13 | { |
| 14 | public: |
| 15 | MockManager(sdbusplus::bus::bus& bus, const char* path, |
| 16 | const std::string& dir) : |
| 17 | phosphor::network::Manager(bus, path, dir) |
| 18 | { |
| 19 | } |
| 20 | |
| 21 | MOCK_METHOD1(restartSystemdUnit, void(const std::string& service)); |
| 22 | |
| 23 | friend class TestNetworkManager; |
| 24 | friend class TestRtNetlink; |
| 25 | }; |
| 26 | |
| 27 | } // namespace network |
| 28 | } // namespace phosphor |