1 // 2 // Copyright (C) 2012 The Android Open Source Project 3 // 4 // Licensed under the Apache License, Version 2.0 (the "License"); 5 // you may not use this file except in compliance with the License. 6 // You may obtain a copy of the License at 7 // 8 // http://www.apache.org/licenses/LICENSE-2.0 9 // 10 // Unless required by applicable law or agreed to in writing, software 11 // distributed under the License is distributed on an "AS IS" BASIS, 12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 // See the License for the specific language governing permissions and 14 // limitations under the License. 15 // 16 17 #include "shill/mock_adaptors.h" 18 19 #include <string> 20 21 using std::string; 22 23 namespace shill { 24 25 // static 26 const char DeviceMockAdaptor::kRpcId[] = "/device_rpc"; 27 // static 28 const char DeviceMockAdaptor::kRpcConnId[] = "/device_rpc_conn"; 29 DeviceMockAdaptor()30DeviceMockAdaptor::DeviceMockAdaptor() 31 : rpc_id_(kRpcId), 32 rpc_conn_id_(kRpcConnId) { 33 } 34 ~DeviceMockAdaptor()35DeviceMockAdaptor::~DeviceMockAdaptor() {} 36 GetRpcIdentifier()37const string& DeviceMockAdaptor::GetRpcIdentifier() { return rpc_id_; } 38 39 // static 40 const char IPConfigMockAdaptor::kRpcId[] = "/ipconfig_rpc"; 41 IPConfigMockAdaptor()42IPConfigMockAdaptor::IPConfigMockAdaptor() : rpc_id_(kRpcId) {} 43 ~IPConfigMockAdaptor()44IPConfigMockAdaptor::~IPConfigMockAdaptor() {} 45 GetRpcIdentifier()46const string& IPConfigMockAdaptor::GetRpcIdentifier() { return rpc_id_; } 47 48 // static 49 const char ManagerMockAdaptor::kRpcId[] = "/manager_rpc"; 50 ManagerMockAdaptor()51ManagerMockAdaptor::ManagerMockAdaptor() : rpc_id_(kRpcId) {} 52 ~ManagerMockAdaptor()53ManagerMockAdaptor::~ManagerMockAdaptor() {} 54 GetRpcIdentifier()55const string& ManagerMockAdaptor::GetRpcIdentifier() { return rpc_id_; } 56 57 // static 58 const char ProfileMockAdaptor::kRpcId[] = "/profile_rpc"; 59 ProfileMockAdaptor()60ProfileMockAdaptor::ProfileMockAdaptor() : rpc_id_(kRpcId) {} 61 ~ProfileMockAdaptor()62ProfileMockAdaptor::~ProfileMockAdaptor() {} 63 GetRpcIdentifier()64const string& ProfileMockAdaptor::GetRpcIdentifier() { return rpc_id_; } 65 66 // static 67 const char RPCTaskMockAdaptor::kRpcId[] = "/rpc_task_rpc"; 68 const char RPCTaskMockAdaptor::kRpcConnId[] = "/rpc_task_rpc_conn"; 69 RPCTaskMockAdaptor()70RPCTaskMockAdaptor::RPCTaskMockAdaptor() 71 : rpc_id_(kRpcId), 72 rpc_conn_id_(kRpcConnId) {} 73 ~RPCTaskMockAdaptor()74RPCTaskMockAdaptor::~RPCTaskMockAdaptor() {} 75 GetRpcIdentifier()76const string& RPCTaskMockAdaptor::GetRpcIdentifier() { return rpc_id_; } GetRpcConnectionIdentifier()77const string& RPCTaskMockAdaptor::GetRpcConnectionIdentifier() { 78 return rpc_conn_id_; 79 } 80 81 // static 82 const char ServiceMockAdaptor::kRpcId[] = "/service_rpc"; 83 ServiceMockAdaptor()84ServiceMockAdaptor::ServiceMockAdaptor() : rpc_id_(kRpcId) {} 85 ~ServiceMockAdaptor()86ServiceMockAdaptor::~ServiceMockAdaptor() {} 87 GetRpcIdentifier()88const string& ServiceMockAdaptor::GetRpcIdentifier() { return rpc_id_; } 89 90 #ifndef DISABLE_VPN ThirdPartyVpnMockAdaptor()91ThirdPartyVpnMockAdaptor::ThirdPartyVpnMockAdaptor() {} 92 ~ThirdPartyVpnMockAdaptor()93ThirdPartyVpnMockAdaptor::~ThirdPartyVpnMockAdaptor() {} 94 #endif 95 96 } // namespace shill 97