blob: 61881e53de86b2cd988272fa3cb73623b38ae9f7 [file] [log] [blame]
Chris Masone95207da2011-06-29 16:50:49 -07001// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Chris Masone95207da2011-06-29 16:50:49 -07005#include "shill/mock_adaptors.h"
6
Chris Masone34af2182011-08-22 11:59:36 -07007#include <string>
8
Chris Masone95207da2011-06-29 16:50:49 -07009namespace shill {
10
11// static
Chris Masone34af2182011-08-22 11:59:36 -070012const char DeviceMockAdaptor::kRpcId[] = "/device-rpc/";
Chris Masone4e851612011-07-01 10:46:53 -070013// static
Chris Masone34af2182011-08-22 11:59:36 -070014const char DeviceMockAdaptor::kRpcConnId[] = "/device-rpc-conn/";
Chris Masonec6c6c132011-06-30 11:29:52 -070015
Chris Masone4e851612011-07-01 10:46:53 -070016DeviceMockAdaptor::DeviceMockAdaptor()
17 : rpc_id(kRpcId),
18 rpc_conn_id(kRpcConnId) {
19}
Chris Masonec6c6c132011-06-30 11:29:52 -070020
21DeviceMockAdaptor::~DeviceMockAdaptor() {}
22
23const std::string &DeviceMockAdaptor::GetRpcIdentifier() { return rpc_id; }
24
Chris Masone4e851612011-07-01 10:46:53 -070025const std::string &DeviceMockAdaptor::GetRpcConnectionIdentifier() {
26 return rpc_conn_id;
27}
28
Chris Masonec6c6c132011-06-30 11:29:52 -070029// static
Chris Masone34af2182011-08-22 11:59:36 -070030const char IPConfigMockAdaptor::kRpcId[] = "/ipconfig-rpc/";
Chris Masonec6c6c132011-06-30 11:29:52 -070031
32IPConfigMockAdaptor::IPConfigMockAdaptor() : rpc_id(kRpcId) {}
33
34IPConfigMockAdaptor::~IPConfigMockAdaptor() {}
35
36const std::string &IPConfigMockAdaptor::GetRpcIdentifier() { return rpc_id; }
37
38// static
Chris Masone34af2182011-08-22 11:59:36 -070039const char ManagerMockAdaptor::kRpcId[] = "/manager-rpc/";
Chris Masone95207da2011-06-29 16:50:49 -070040
41ManagerMockAdaptor::ManagerMockAdaptor() : rpc_id(kRpcId) {}
42
43ManagerMockAdaptor::~ManagerMockAdaptor() {}
44
45const std::string &ManagerMockAdaptor::GetRpcIdentifier() { return rpc_id; }
46
47// static
Chris Masone34af2182011-08-22 11:59:36 -070048const char ProfileMockAdaptor::kRpcId[] = "/profile-rpc/";
Chris Masonec6c6c132011-06-30 11:29:52 -070049
50ProfileMockAdaptor::ProfileMockAdaptor() : rpc_id(kRpcId) {}
51
52ProfileMockAdaptor::~ProfileMockAdaptor() {}
53
54const std::string &ProfileMockAdaptor::GetRpcIdentifier() { return rpc_id; }
55
56// static
Chris Masone34af2182011-08-22 11:59:36 -070057const char ServiceMockAdaptor::kRpcId[] = "/service-rpc/";
Chris Masone95207da2011-06-29 16:50:49 -070058
59ServiceMockAdaptor::ServiceMockAdaptor() : rpc_id(kRpcId) {}
60
61ServiceMockAdaptor::~ServiceMockAdaptor() {}
62
63const std::string &ServiceMockAdaptor::GetRpcIdentifier() { return rpc_id; }
Chris Masone95207da2011-06-29 16:50:49 -070064} // namespace shill