Chris Masone | 95207da | 2011-06-29 16:50:49 -0700 | [diff] [blame] | 1 | // 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 Masone | 95207da | 2011-06-29 16:50:49 -0700 | [diff] [blame] | 5 | #include "shill/mock_adaptors.h" |
| 6 | |
Chris Masone | 34af218 | 2011-08-22 11:59:36 -0700 | [diff] [blame] | 7 | #include <string> |
| 8 | |
Chris Masone | 95207da | 2011-06-29 16:50:49 -0700 | [diff] [blame] | 9 | namespace shill { |
| 10 | |
| 11 | // static |
Chris Masone | 34af218 | 2011-08-22 11:59:36 -0700 | [diff] [blame] | 12 | const char DeviceMockAdaptor::kRpcId[] = "/device-rpc/"; |
Chris Masone | 4e85161 | 2011-07-01 10:46:53 -0700 | [diff] [blame] | 13 | // static |
Chris Masone | 34af218 | 2011-08-22 11:59:36 -0700 | [diff] [blame] | 14 | const char DeviceMockAdaptor::kRpcConnId[] = "/device-rpc-conn/"; |
Chris Masone | c6c6c13 | 2011-06-30 11:29:52 -0700 | [diff] [blame] | 15 | |
Chris Masone | 4e85161 | 2011-07-01 10:46:53 -0700 | [diff] [blame] | 16 | DeviceMockAdaptor::DeviceMockAdaptor() |
| 17 | : rpc_id(kRpcId), |
| 18 | rpc_conn_id(kRpcConnId) { |
| 19 | } |
Chris Masone | c6c6c13 | 2011-06-30 11:29:52 -0700 | [diff] [blame] | 20 | |
| 21 | DeviceMockAdaptor::~DeviceMockAdaptor() {} |
| 22 | |
| 23 | const std::string &DeviceMockAdaptor::GetRpcIdentifier() { return rpc_id; } |
| 24 | |
Chris Masone | 4e85161 | 2011-07-01 10:46:53 -0700 | [diff] [blame] | 25 | const std::string &DeviceMockAdaptor::GetRpcConnectionIdentifier() { |
| 26 | return rpc_conn_id; |
| 27 | } |
| 28 | |
Chris Masone | c6c6c13 | 2011-06-30 11:29:52 -0700 | [diff] [blame] | 29 | // static |
Chris Masone | 34af218 | 2011-08-22 11:59:36 -0700 | [diff] [blame] | 30 | const char IPConfigMockAdaptor::kRpcId[] = "/ipconfig-rpc/"; |
Chris Masone | c6c6c13 | 2011-06-30 11:29:52 -0700 | [diff] [blame] | 31 | |
| 32 | IPConfigMockAdaptor::IPConfigMockAdaptor() : rpc_id(kRpcId) {} |
| 33 | |
| 34 | IPConfigMockAdaptor::~IPConfigMockAdaptor() {} |
| 35 | |
| 36 | const std::string &IPConfigMockAdaptor::GetRpcIdentifier() { return rpc_id; } |
| 37 | |
| 38 | // static |
Chris Masone | 34af218 | 2011-08-22 11:59:36 -0700 | [diff] [blame] | 39 | const char ManagerMockAdaptor::kRpcId[] = "/manager-rpc/"; |
Chris Masone | 95207da | 2011-06-29 16:50:49 -0700 | [diff] [blame] | 40 | |
| 41 | ManagerMockAdaptor::ManagerMockAdaptor() : rpc_id(kRpcId) {} |
| 42 | |
| 43 | ManagerMockAdaptor::~ManagerMockAdaptor() {} |
| 44 | |
| 45 | const std::string &ManagerMockAdaptor::GetRpcIdentifier() { return rpc_id; } |
| 46 | |
| 47 | // static |
Chris Masone | 34af218 | 2011-08-22 11:59:36 -0700 | [diff] [blame] | 48 | const char ProfileMockAdaptor::kRpcId[] = "/profile-rpc/"; |
Chris Masone | c6c6c13 | 2011-06-30 11:29:52 -0700 | [diff] [blame] | 49 | |
| 50 | ProfileMockAdaptor::ProfileMockAdaptor() : rpc_id(kRpcId) {} |
| 51 | |
| 52 | ProfileMockAdaptor::~ProfileMockAdaptor() {} |
| 53 | |
| 54 | const std::string &ProfileMockAdaptor::GetRpcIdentifier() { return rpc_id; } |
| 55 | |
| 56 | // static |
Chris Masone | 34af218 | 2011-08-22 11:59:36 -0700 | [diff] [blame] | 57 | const char ServiceMockAdaptor::kRpcId[] = "/service-rpc/"; |
Chris Masone | 95207da | 2011-06-29 16:50:49 -0700 | [diff] [blame] | 58 | |
| 59 | ServiceMockAdaptor::ServiceMockAdaptor() : rpc_id(kRpcId) {} |
| 60 | |
| 61 | ServiceMockAdaptor::~ServiceMockAdaptor() {} |
| 62 | |
| 63 | const std::string &ServiceMockAdaptor::GetRpcIdentifier() { return rpc_id; } |
Chris Masone | 95207da | 2011-06-29 16:50:49 -0700 | [diff] [blame] | 64 | } // namespace shill |