OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 The Chromium 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 | |
5 #include "chromeos/dbus/stub_dbus_thread_manager_helper.h" | |
6 | |
7 #include "chromeos/dbus/bluetooth_adapter_client.h" | |
8 #include "chromeos/dbus/bluetooth_agent_manager_client.h" | |
9 #include "chromeos/dbus/bluetooth_device_client.h" | |
10 #include "chromeos/dbus/bluetooth_input_client.h" | |
11 #include "chromeos/dbus/bluetooth_profile_manager_client.h" | |
12 #include "chromeos/dbus/cras_audio_client.h" | |
13 #include "chromeos/dbus/cros_disks_client.h" | |
14 #include "chromeos/dbus/cryptohome_client.h" | |
15 #include "chromeos/dbus/dbus_client.h" | |
16 #include "chromeos/dbus/debug_daemon_client.h" | |
17 #include "chromeos/dbus/fake_dbus_thread_manager.h" | |
18 #include "chromeos/dbus/gsm_sms_client.h" | |
19 #include "chromeos/dbus/ibus/ibus_client.h" | |
20 #include "chromeos/dbus/image_burner_client.h" | |
21 #include "chromeos/dbus/introspectable_client.h" | |
22 #include "chromeos/dbus/modem_messaging_client.h" | |
23 #include "chromeos/dbus/nfc_adapter_client.h" | |
24 #include "chromeos/dbus/nfc_manager_client.h" | |
25 #include "chromeos/dbus/permission_broker_client.h" | |
26 #include "chromeos/dbus/power_manager_client.h" | |
27 #include "chromeos/dbus/power_policy_controller.h" | |
28 #include "chromeos/dbus/session_manager_client.h" | |
29 #include "chromeos/dbus/shill_device_client.h" | |
30 #include "chromeos/dbus/shill_ipconfig_client.h" | |
31 #include "chromeos/dbus/shill_manager_client.h" | |
32 #include "chromeos/dbus/shill_profile_client.h" | |
33 #include "chromeos/dbus/shill_service_client.h" | |
34 #include "chromeos/dbus/sms_client.h" | |
35 #include "chromeos/dbus/system_clock_client.h" | |
36 #include "chromeos/dbus/update_engine_client.h" | |
37 | |
38 namespace chromeos { | |
39 | |
40 void SetStubClients(FakeDBusThreadManager* manager) { | |
41 const DBusClientImplementationType client_type = | |
42 STUB_DBUS_CLIENT_IMPLEMENTATION; | |
satorux1
2013/11/05 03:55:16
I think we should rename this to FAKE_DBUS_CLIENT_
pneubeck (no reviews)
2013/11/05 10:03:04
I think we can even remove this enum in a follow u
| |
43 manager->SetBluetoothAdapterClient(scoped_ptr<BluetoothAdapterClient>( | |
44 BluetoothAdapterClient::Create(client_type))); | |
45 manager->SetBluetoothAgentManagerClient( | |
46 scoped_ptr<BluetoothAgentManagerClient>( | |
47 BluetoothAgentManagerClient::Create(client_type))); | |
48 manager->SetBluetoothDeviceClient(scoped_ptr<BluetoothDeviceClient>( | |
49 BluetoothDeviceClient::Create(client_type))); | |
50 manager->SetBluetoothInputClient(scoped_ptr<BluetoothInputClient>( | |
51 BluetoothInputClient::Create(client_type))); | |
52 manager->SetBluetoothProfileManagerClient( | |
53 scoped_ptr<BluetoothProfileManagerClient>( | |
54 BluetoothProfileManagerClient::Create(client_type))); | |
55 manager->SetCrasAudioClient( | |
56 scoped_ptr<CrasAudioClient>(CrasAudioClient::Create(client_type))); | |
57 manager->SetCrosDisksClient( | |
58 scoped_ptr<CrosDisksClient>(CrosDisksClient::Create(client_type))); | |
59 manager->SetCryptohomeClient( | |
60 scoped_ptr<CryptohomeClient>(CryptohomeClient::Create(client_type))); | |
61 manager->SetDebugDaemonClient( | |
62 scoped_ptr<DebugDaemonClient>(DebugDaemonClient::Create(client_type))); | |
63 manager->SetShillManagerClient( | |
64 scoped_ptr<ShillManagerClient>(ShillManagerClient::Create(client_type))); | |
65 manager->SetShillDeviceClient( | |
66 scoped_ptr<ShillDeviceClient>(ShillDeviceClient::Create(client_type))); | |
67 manager->SetShillIPConfigClient(scoped_ptr<ShillIPConfigClient>( | |
68 ShillIPConfigClient::Create(client_type))); | |
69 manager->SetShillServiceClient( | |
70 scoped_ptr<ShillServiceClient>(ShillServiceClient::Create(client_type))); | |
71 manager->SetShillProfileClient( | |
72 scoped_ptr<ShillProfileClient>(ShillProfileClient::Create(client_type))); | |
73 manager->SetGsmSMSClient( | |
74 scoped_ptr<GsmSMSClient>(GsmSMSClient::Create(client_type))); | |
75 manager->SetImageBurnerClient( | |
76 scoped_ptr<ImageBurnerClient>(ImageBurnerClient::Create(client_type))); | |
77 manager->SetIntrospectableClient(scoped_ptr<IntrospectableClient>( | |
78 IntrospectableClient::Create(client_type))); | |
79 manager->SetModemMessagingClient(scoped_ptr<ModemMessagingClient>( | |
80 ModemMessagingClient::Create(client_type))); | |
81 NfcManagerClient* nfc_manager_client = NfcManagerClient::Create(client_type); | |
82 manager->SetNfcManagerClient( | |
83 scoped_ptr<NfcManagerClient>(nfc_manager_client)); | |
84 manager->SetNfcAdapterClient(scoped_ptr<NfcAdapterClient>( | |
85 NfcAdapterClient::Create(client_type, nfc_manager_client))); | |
86 manager->SetPermissionBrokerClient(scoped_ptr<PermissionBrokerClient>( | |
87 PermissionBrokerClient::Create(client_type))); | |
88 manager->SetPowerManagerClient( | |
89 scoped_ptr<PowerManagerClient>(PowerManagerClient::Create(client_type))); | |
90 manager->SetSessionManagerClient(scoped_ptr<SessionManagerClient>( | |
91 SessionManagerClient::Create(client_type))); | |
92 manager->SetSMSClient(scoped_ptr<SMSClient>(SMSClient::Create(client_type))); | |
93 manager->SetSystemClockClient( | |
94 scoped_ptr<SystemClockClient>(SystemClockClient::Create(client_type))); | |
95 manager->SetUpdateEngineClient( | |
96 scoped_ptr<UpdateEngineClient>(UpdateEngineClient::Create(client_type))); | |
97 | |
98 manager->SetPowerPolicyController(make_scoped_ptr(new PowerPolicyController)); | |
99 } | |
100 | |
101 } // namespace chromeos | |
OLD | NEW |