Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: chromeos/dbus/fake_dbus_thread_manager.cc

Issue 91373004: Move DBusClient stub implementations into separate files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chromeos/dbus/fake_cros_disks_client.cc ('k') | chromeos/dbus/fake_debug_daemon_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/fake_debug_daemon_client.h"
19 #include "chromeos/dbus/fake_introspectable_client.h"
20 #include "chromeos/dbus/fake_modem_messaging_client.h"
19 #include "chromeos/dbus/fake_nfc_adapter_client.h" 21 #include "chromeos/dbus/fake_nfc_adapter_client.h"
20 #include "chromeos/dbus/fake_nfc_device_client.h" 22 #include "chromeos/dbus/fake_nfc_device_client.h"
21 #include "chromeos/dbus/fake_nfc_manager_client.h" 23 #include "chromeos/dbus/fake_nfc_manager_client.h"
22 #include "chromeos/dbus/fake_nfc_record_client.h" 24 #include "chromeos/dbus/fake_nfc_record_client.h"
23 #include "chromeos/dbus/fake_nfc_tag_client.h" 25 #include "chromeos/dbus/fake_nfc_tag_client.h"
26 #include "chromeos/dbus/fake_permission_broker_client.h"
27 #include "chromeos/dbus/fake_sms_client.h"
24 #include "chromeos/dbus/gsm_sms_client.h" 28 #include "chromeos/dbus/gsm_sms_client.h"
25 #include "chromeos/dbus/image_burner_client.h" 29 #include "chromeos/dbus/image_burner_client.h"
26 #include "chromeos/dbus/introspectable_client.h"
27 #include "chromeos/dbus/modem_messaging_client.h"
28 #include "chromeos/dbus/permission_broker_client.h"
29 #include "chromeos/dbus/power_manager_client.h" 30 #include "chromeos/dbus/power_manager_client.h"
30 #include "chromeos/dbus/power_policy_controller.h" 31 #include "chromeos/dbus/power_policy_controller.h"
31 #include "chromeos/dbus/session_manager_client.h" 32 #include "chromeos/dbus/session_manager_client.h"
32 #include "chromeos/dbus/shill_device_client.h" 33 #include "chromeos/dbus/shill_device_client.h"
33 #include "chromeos/dbus/shill_ipconfig_client.h" 34 #include "chromeos/dbus/shill_ipconfig_client.h"
34 #include "chromeos/dbus/shill_manager_client.h" 35 #include "chromeos/dbus/shill_manager_client.h"
35 #include "chromeos/dbus/shill_profile_client.h" 36 #include "chromeos/dbus/shill_profile_client.h"
36 #include "chromeos/dbus/shill_service_client.h" 37 #include "chromeos/dbus/shill_service_client.h"
37 #include "chromeos/dbus/sms_client.h"
38 #include "chromeos/dbus/system_clock_client.h" 38 #include "chromeos/dbus/system_clock_client.h"
39 #include "chromeos/dbus/update_engine_client.h" 39 #include "chromeos/dbus/update_engine_client.h"
40 40
41 namespace chromeos { 41 namespace chromeos {
42 42
43 FakeDBusThreadManager::FakeDBusThreadManager() { 43 FakeDBusThreadManager::FakeDBusThreadManager() {
44 } 44 }
45 45
46 FakeDBusThreadManager::~FakeDBusThreadManager() { 46 FakeDBusThreadManager::~FakeDBusThreadManager() {
47 FOR_EACH_OBSERVER(DBusThreadManagerObserver, observers_, 47 FOR_EACH_OBSERVER(DBusThreadManagerObserver, observers_,
(...skipping 13 matching lines...) Expand all
61 BluetoothInputClient::Create(client_type))); 61 BluetoothInputClient::Create(client_type)));
62 SetBluetoothProfileManagerClient(scoped_ptr<BluetoothProfileManagerClient>( 62 SetBluetoothProfileManagerClient(scoped_ptr<BluetoothProfileManagerClient>(
63 BluetoothProfileManagerClient::Create(client_type))); 63 BluetoothProfileManagerClient::Create(client_type)));
64 SetCrasAudioClient( 64 SetCrasAudioClient(
65 scoped_ptr<CrasAudioClient>(CrasAudioClient::Create(client_type))); 65 scoped_ptr<CrasAudioClient>(CrasAudioClient::Create(client_type)));
66 SetCrosDisksClient( 66 SetCrosDisksClient(
67 scoped_ptr<CrosDisksClient>(CrosDisksClient::Create(client_type))); 67 scoped_ptr<CrosDisksClient>(CrosDisksClient::Create(client_type)));
68 SetCryptohomeClient( 68 SetCryptohomeClient(
69 scoped_ptr<CryptohomeClient>(CryptohomeClient::Create(client_type))); 69 scoped_ptr<CryptohomeClient>(CryptohomeClient::Create(client_type)));
70 SetDebugDaemonClient( 70 SetDebugDaemonClient(
71 scoped_ptr<DebugDaemonClient>(DebugDaemonClient::Create(client_type))); 71 scoped_ptr<DebugDaemonClient>(new FakeDebugDaemonClient));
72 SetShillManagerClient( 72 SetShillManagerClient(
73 scoped_ptr<ShillManagerClient>(ShillManagerClient::Create(client_type))); 73 scoped_ptr<ShillManagerClient>(ShillManagerClient::Create(client_type)));
74 SetShillDeviceClient( 74 SetShillDeviceClient(
75 scoped_ptr<ShillDeviceClient>(ShillDeviceClient::Create(client_type))); 75 scoped_ptr<ShillDeviceClient>(ShillDeviceClient::Create(client_type)));
76 SetShillIPConfigClient(scoped_ptr<ShillIPConfigClient>( 76 SetShillIPConfigClient(scoped_ptr<ShillIPConfigClient>(
77 ShillIPConfigClient::Create(client_type))); 77 ShillIPConfigClient::Create(client_type)));
78 SetShillServiceClient( 78 SetShillServiceClient(
79 scoped_ptr<ShillServiceClient>(ShillServiceClient::Create(client_type))); 79 scoped_ptr<ShillServiceClient>(ShillServiceClient::Create(client_type)));
80 SetShillProfileClient( 80 SetShillProfileClient(
81 scoped_ptr<ShillProfileClient>(ShillProfileClient::Create(client_type))); 81 scoped_ptr<ShillProfileClient>(ShillProfileClient::Create(client_type)));
82 SetGsmSMSClient(scoped_ptr<GsmSMSClient>(GsmSMSClient::Create(client_type))); 82 SetGsmSMSClient(scoped_ptr<GsmSMSClient>(GsmSMSClient::Create(client_type)));
83 SetImageBurnerClient( 83 SetImageBurnerClient(
84 scoped_ptr<ImageBurnerClient>(ImageBurnerClient::Create(client_type))); 84 scoped_ptr<ImageBurnerClient>(ImageBurnerClient::Create(client_type)));
85 SetIntrospectableClient(scoped_ptr<IntrospectableClient>( 85 SetIntrospectableClient(
86 IntrospectableClient::Create(client_type))); 86 scoped_ptr<IntrospectableClient>(new FakeIntrospectableClient));
87 SetModemMessagingClient(scoped_ptr<ModemMessagingClient>( 87 SetModemMessagingClient(
88 ModemMessagingClient::Create(client_type))); 88 scoped_ptr<ModemMessagingClient>(new FakeModemMessagingClient));
89 SetNfcAdapterClient(scoped_ptr<NfcAdapterClient>(new FakeNfcAdapterClient)); 89 SetNfcAdapterClient(scoped_ptr<NfcAdapterClient>(new FakeNfcAdapterClient));
90 SetNfcDeviceClient(scoped_ptr<NfcDeviceClient>(new FakeNfcDeviceClient)); 90 SetNfcDeviceClient(scoped_ptr<NfcDeviceClient>(new FakeNfcDeviceClient));
91 SetNfcManagerClient(scoped_ptr<NfcManagerClient>(new FakeNfcManagerClient)); 91 SetNfcManagerClient(scoped_ptr<NfcManagerClient>(new FakeNfcManagerClient));
92 SetNfcRecordClient(scoped_ptr<NfcRecordClient>(new FakeNfcRecordClient)); 92 SetNfcRecordClient(scoped_ptr<NfcRecordClient>(new FakeNfcRecordClient));
93 SetNfcTagClient(scoped_ptr<NfcTagClient>(new FakeNfcTagClient)); 93 SetNfcTagClient(scoped_ptr<NfcTagClient>(new FakeNfcTagClient));
94 SetPermissionBrokerClient(scoped_ptr<PermissionBrokerClient>( 94 SetPermissionBrokerClient(
95 PermissionBrokerClient::Create(client_type))); 95 scoped_ptr<PermissionBrokerClient>(new FakePermissionBrokerClient));
96 SetPowerManagerClient( 96 SetPowerManagerClient(
97 scoped_ptr<PowerManagerClient>(PowerManagerClient::Create(client_type))); 97 scoped_ptr<PowerManagerClient>(PowerManagerClient::Create(client_type)));
98 SetSessionManagerClient(scoped_ptr<SessionManagerClient>( 98 SetSessionManagerClient(scoped_ptr<SessionManagerClient>(
99 SessionManagerClient::Create(client_type))); 99 SessionManagerClient::Create(client_type)));
100 SetSMSClient(scoped_ptr<SMSClient>(SMSClient::Create(client_type))); 100 SetSMSClient(scoped_ptr<SMSClient>(new FakeSMSClient));
101 SetSystemClockClient( 101 SetSystemClockClient(
102 scoped_ptr<SystemClockClient>(SystemClockClient::Create(client_type))); 102 scoped_ptr<SystemClockClient>(SystemClockClient::Create(client_type)));
103 SetUpdateEngineClient( 103 SetUpdateEngineClient(
104 scoped_ptr<UpdateEngineClient>(UpdateEngineClient::Create(client_type))); 104 scoped_ptr<UpdateEngineClient>(UpdateEngineClient::Create(client_type)));
105 105
106 SetPowerPolicyController(make_scoped_ptr(new PowerPolicyController)); 106 SetPowerPolicyController(make_scoped_ptr(new PowerPolicyController));
107 } 107 }
108 108
109 void FakeDBusThreadManager::SetBluetoothAdapterClient( 109 void FakeDBusThreadManager::SetBluetoothAdapterClient(
110 scoped_ptr<BluetoothAdapterClient> client) { 110 scoped_ptr<BluetoothAdapterClient> client) {
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 400
401 SystemClockClient* FakeDBusThreadManager::GetSystemClockClient() { 401 SystemClockClient* FakeDBusThreadManager::GetSystemClockClient() {
402 return system_clock_client_.get(); 402 return system_clock_client_.get();
403 } 403 }
404 404
405 UpdateEngineClient* FakeDBusThreadManager::GetUpdateEngineClient() { 405 UpdateEngineClient* FakeDBusThreadManager::GetUpdateEngineClient() {
406 return update_engine_client_.get(); 406 return update_engine_client_.get();
407 } 407 }
408 408
409 } // namespace chromeos 409 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_cros_disks_client.cc ('k') | chromeos/dbus/fake_debug_daemon_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698