blob: 141469b8b8d73d812656d7235e5197c620b971de [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
Ratan Gupta35297172018-11-28 18:40:16 +053023 friend class TestRtNetlink;
24};
25
26} // namespace network
27} // namespace phosphor