OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chromeos/dbus/fake_dbus_thread_manager.h" | 5 #include "chromeos/dbus/fake_dbus_thread_manager.h" |
6 | 6 |
7 #include "chromeos/dbus/bluetooth_adapter_client.h" | 7 #include "chromeos/dbus/bluetooth_adapter_client.h" |
8 #include "chromeos/dbus/bluetooth_agent_manager_client.h" | 8 #include "chromeos/dbus/bluetooth_agent_manager_client.h" |
9 #include "chromeos/dbus/bluetooth_device_client.h" | 9 #include "chromeos/dbus/bluetooth_device_client.h" |
10 #include "chromeos/dbus/bluetooth_input_client.h" | 10 #include "chromeos/dbus/bluetooth_input_client.h" |
11 #include "chromeos/dbus/bluetooth_profile_manager_client.h" | 11 #include "chromeos/dbus/bluetooth_profile_manager_client.h" |
12 #include "chromeos/dbus/cras_audio_client.h" | 12 #include "chromeos/dbus/cras_audio_client.h" |
13 #include "chromeos/dbus/cros_disks_client.h" | 13 #include "chromeos/dbus/cros_disks_client.h" |
14 #include "chromeos/dbus/cryptohome_client.h" | 14 #include "chromeos/dbus/cryptohome_client.h" |
15 #include "chromeos/dbus/dbus_client.h" | 15 #include "chromeos/dbus/dbus_client.h" |
16 #include "chromeos/dbus/dbus_thread_manager.h" | 16 #include "chromeos/dbus/dbus_thread_manager.h" |
17 #include "chromeos/dbus/dbus_thread_manager_observer.h" | 17 #include "chromeos/dbus/dbus_thread_manager_observer.h" |
18 #include "chromeos/dbus/debug_daemon_client.h" | 18 #include "chromeos/dbus/debug_daemon_client.h" |
19 #include "chromeos/dbus/fake_nfc_adapter_client.h" | 19 #include "chromeos/dbus/fake_nfc_adapter_client.h" |
20 #include "chromeos/dbus/fake_nfc_device_client.h" | 20 #include "chromeos/dbus/fake_nfc_device_client.h" |
21 #include "chromeos/dbus/fake_nfc_manager_client.h" | 21 #include "chromeos/dbus/fake_nfc_manager_client.h" |
22 #include "chromeos/dbus/fake_nfc_record_client.h" | 22 #include "chromeos/dbus/fake_nfc_record_client.h" |
23 #include "chromeos/dbus/fake_nfc_tag_client.h" | 23 #include "chromeos/dbus/fake_nfc_tag_client.h" |
24 #include "chromeos/dbus/gsm_sms_client.h" | 24 #include "chromeos/dbus/gsm_sms_client.h" |
25 #include "chromeos/dbus/ibus/ibus_client.h" | |
26 #include "chromeos/dbus/image_burner_client.h" | 25 #include "chromeos/dbus/image_burner_client.h" |
27 #include "chromeos/dbus/introspectable_client.h" | 26 #include "chromeos/dbus/introspectable_client.h" |
28 #include "chromeos/dbus/modem_messaging_client.h" | 27 #include "chromeos/dbus/modem_messaging_client.h" |
29 #include "chromeos/dbus/permission_broker_client.h" | 28 #include "chromeos/dbus/permission_broker_client.h" |
30 #include "chromeos/dbus/power_manager_client.h" | 29 #include "chromeos/dbus/power_manager_client.h" |
31 #include "chromeos/dbus/power_policy_controller.h" | 30 #include "chromeos/dbus/power_policy_controller.h" |
32 #include "chromeos/dbus/session_manager_client.h" | 31 #include "chromeos/dbus/session_manager_client.h" |
33 #include "chromeos/dbus/shill_device_client.h" | 32 #include "chromeos/dbus/shill_device_client.h" |
34 #include "chromeos/dbus/shill_ipconfig_client.h" | 33 #include "chromeos/dbus/shill_ipconfig_client.h" |
35 #include "chromeos/dbus/shill_manager_client.h" | 34 #include "chromeos/dbus/shill_manager_client.h" |
(...skipping 27 matching lines...) Expand all Loading... |
63 SetBluetoothProfileManagerClient(scoped_ptr<BluetoothProfileManagerClient>( | 62 SetBluetoothProfileManagerClient(scoped_ptr<BluetoothProfileManagerClient>( |
64 BluetoothProfileManagerClient::Create(client_type))); | 63 BluetoothProfileManagerClient::Create(client_type))); |
65 SetCrasAudioClient( | 64 SetCrasAudioClient( |
66 scoped_ptr<CrasAudioClient>(CrasAudioClient::Create(client_type))); | 65 scoped_ptr<CrasAudioClient>(CrasAudioClient::Create(client_type))); |
67 SetCrosDisksClient( | 66 SetCrosDisksClient( |
68 scoped_ptr<CrosDisksClient>(CrosDisksClient::Create(client_type))); | 67 scoped_ptr<CrosDisksClient>(CrosDisksClient::Create(client_type))); |
69 SetCryptohomeClient( | 68 SetCryptohomeClient( |
70 scoped_ptr<CryptohomeClient>(CryptohomeClient::Create(client_type))); | 69 scoped_ptr<CryptohomeClient>(CryptohomeClient::Create(client_type))); |
71 SetDebugDaemonClient( | 70 SetDebugDaemonClient( |
72 scoped_ptr<DebugDaemonClient>(DebugDaemonClient::Create(client_type))); | 71 scoped_ptr<DebugDaemonClient>(DebugDaemonClient::Create(client_type))); |
73 SetIBusClient(make_scoped_ptr(IBusClient::Create())); | |
74 SetShillManagerClient( | 72 SetShillManagerClient( |
75 scoped_ptr<ShillManagerClient>(ShillManagerClient::Create(client_type))); | 73 scoped_ptr<ShillManagerClient>(ShillManagerClient::Create(client_type))); |
76 SetShillDeviceClient( | 74 SetShillDeviceClient( |
77 scoped_ptr<ShillDeviceClient>(ShillDeviceClient::Create(client_type))); | 75 scoped_ptr<ShillDeviceClient>(ShillDeviceClient::Create(client_type))); |
78 SetShillIPConfigClient(scoped_ptr<ShillIPConfigClient>( | 76 SetShillIPConfigClient(scoped_ptr<ShillIPConfigClient>( |
79 ShillIPConfigClient::Create(client_type))); | 77 ShillIPConfigClient::Create(client_type))); |
80 SetShillServiceClient( | 78 SetShillServiceClient( |
81 scoped_ptr<ShillServiceClient>(ShillServiceClient::Create(client_type))); | 79 scoped_ptr<ShillServiceClient>(ShillServiceClient::Create(client_type))); |
82 SetShillProfileClient( | 80 SetShillProfileClient( |
83 scoped_ptr<ShillProfileClient>(ShillProfileClient::Create(client_type))); | 81 scoped_ptr<ShillProfileClient>(ShillProfileClient::Create(client_type))); |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 void FakeDBusThreadManager::SetSystemClockClient( | 248 void FakeDBusThreadManager::SetSystemClockClient( |
251 scoped_ptr<SystemClockClient> client) { | 249 scoped_ptr<SystemClockClient> client) { |
252 system_clock_client_ = client.Pass(); | 250 system_clock_client_ = client.Pass(); |
253 } | 251 } |
254 | 252 |
255 void FakeDBusThreadManager::SetUpdateEngineClient( | 253 void FakeDBusThreadManager::SetUpdateEngineClient( |
256 scoped_ptr<UpdateEngineClient> client) { | 254 scoped_ptr<UpdateEngineClient> client) { |
257 update_engine_client_ = client.Pass(); | 255 update_engine_client_ = client.Pass(); |
258 } | 256 } |
259 | 257 |
260 void FakeDBusThreadManager::SetIBusClient(scoped_ptr<IBusClient> client) { | |
261 ibus_client_ = client.Pass(); | |
262 } | |
263 | |
264 void FakeDBusThreadManager::AddObserver( | 258 void FakeDBusThreadManager::AddObserver( |
265 DBusThreadManagerObserver* observer) { | 259 DBusThreadManagerObserver* observer) { |
266 DCHECK(observer); | 260 DCHECK(observer); |
267 observers_.AddObserver(observer); | 261 observers_.AddObserver(observer); |
268 } | 262 } |
269 | 263 |
270 void FakeDBusThreadManager::RemoveObserver( | 264 void FakeDBusThreadManager::RemoveObserver( |
271 DBusThreadManagerObserver* observer) { | 265 DBusThreadManagerObserver* observer) { |
272 DCHECK(observer); | 266 DCHECK(observer); |
273 observers_.RemoveObserver(observer); | 267 observers_.RemoveObserver(observer); |
274 } | 268 } |
275 | 269 |
276 void FakeDBusThreadManager::InitIBusBus( | |
277 const std::string& ibus_address, | |
278 const base::Closure& closure) { | |
279 } | |
280 | |
281 dbus::Bus* FakeDBusThreadManager::GetSystemBus() { | 270 dbus::Bus* FakeDBusThreadManager::GetSystemBus() { |
282 return NULL; | 271 return NULL; |
283 } | 272 } |
284 | 273 |
285 BluetoothAdapterClient* | 274 BluetoothAdapterClient* |
286 FakeDBusThreadManager::GetBluetoothAdapterClient() { | 275 FakeDBusThreadManager::GetBluetoothAdapterClient() { |
287 return bluetooth_adapter_client_.get(); | 276 return bluetooth_adapter_client_.get(); |
288 } | 277 } |
289 | 278 |
290 BluetoothAgentManagerClient* | 279 BluetoothAgentManagerClient* |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 } | 399 } |
411 | 400 |
412 SystemClockClient* FakeDBusThreadManager::GetSystemClockClient() { | 401 SystemClockClient* FakeDBusThreadManager::GetSystemClockClient() { |
413 return system_clock_client_.get(); | 402 return system_clock_client_.get(); |
414 } | 403 } |
415 | 404 |
416 UpdateEngineClient* FakeDBusThreadManager::GetUpdateEngineClient() { | 405 UpdateEngineClient* FakeDBusThreadManager::GetUpdateEngineClient() { |
417 return update_engine_client_.get(); | 406 return update_engine_client_.get(); |
418 } | 407 } |
419 | 408 |
420 IBusClient* FakeDBusThreadManager::GetIBusClient() { | |
421 return ibus_client_.get(); | |
422 } | |
423 | |
424 } // namespace chromeos | 409 } // namespace chromeos |
OLD | NEW |