blob: a71301e43bb8b5e34ed3f98724befbc493fc521b [file] [log] [blame]
Ratan Gupta35297172018-11-28 18:40:16 +05301#include "config.h"
2
3#include "network_manager.hpp"
4
5#include <gmock/gmock.h>
6
7namespace phosphor
8{
9namespace network
10{
11
12class 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