summaryrefslogtreecommitdiffstats
path: root/test/mock_network_manager.hpp
blob: a71301e43bb8b5e34ed3f98724befbc493fc521b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "config.h"

#include "network_manager.hpp"

#include <gmock/gmock.h>

namespace phosphor
{
namespace network
{

class MockManager : public phosphor::network::Manager
{
  public:
    MockManager(sdbusplus::bus::bus& bus, const char* path,
                const std::string& dir) :
        phosphor::network::Manager(bus, path, dir)
    {
    }

    MOCK_METHOD1(restartSystemdUnit, void(const std::string& service));

    friend class TestNetworkManager;
    friend class TestRtNetlink;
};

} // namespace network
} // namespace phosphor
OpenPOWER on IntegriCloud