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/mock_dbus_thread_manager_without_gmock.h" | 5 #include "chromeos/dbus/mock_dbus_thread_manager_without_gmock.h" |
6 | 6 |
7 #include "chromeos/dbus/bluetooth_adapter_client.h" | |
8 #include "chromeos/dbus/bluetooth_device_client.h" | |
9 #include "chromeos/dbus/bluetooth_manager_client.h" | |
10 #include "chromeos/dbus/dbus_thread_manager_observer.h" | 7 #include "chromeos/dbus/dbus_thread_manager_observer.h" |
11 #include "chromeos/dbus/fake_bluetooth_adapter_client.h" | 8 #include "chromeos/dbus/fake_bluetooth_adapter_client.h" |
12 #include "chromeos/dbus/fake_bluetooth_agent_manager_client.h" | 9 #include "chromeos/dbus/fake_bluetooth_agent_manager_client.h" |
13 #include "chromeos/dbus/fake_bluetooth_device_client.h" | 10 #include "chromeos/dbus/fake_bluetooth_device_client.h" |
14 #include "chromeos/dbus/fake_bluetooth_input_client.h" | 11 #include "chromeos/dbus/fake_bluetooth_input_client.h" |
15 #include "chromeos/dbus/fake_bluetooth_profile_manager_client.h" | 12 #include "chromeos/dbus/fake_bluetooth_profile_manager_client.h" |
16 #include "chromeos/dbus/fake_cros_disks_client.h" | 13 #include "chromeos/dbus/fake_cros_disks_client.h" |
17 #include "chromeos/dbus/fake_cryptohome_client.h" | 14 #include "chromeos/dbus/fake_cryptohome_client.h" |
18 #include "chromeos/dbus/fake_gsm_sms_client.h" | 15 #include "chromeos/dbus/fake_gsm_sms_client.h" |
19 #include "chromeos/dbus/fake_image_burner_client.h" | 16 #include "chromeos/dbus/fake_image_burner_client.h" |
20 #include "chromeos/dbus/fake_old_bluetooth_adapter_client.h" | |
21 #include "chromeos/dbus/fake_old_bluetooth_device_client.h" | |
22 #include "chromeos/dbus/fake_old_bluetooth_manager_client.h" | |
23 #include "chromeos/dbus/fake_power_manager_client.h" | 17 #include "chromeos/dbus/fake_power_manager_client.h" |
24 #include "chromeos/dbus/fake_session_manager_client.h" | 18 #include "chromeos/dbus/fake_session_manager_client.h" |
25 #include "chromeos/dbus/fake_shill_manager_client.h" | 19 #include "chromeos/dbus/fake_shill_manager_client.h" |
26 #include "chromeos/dbus/fake_system_clock_client.h" | 20 #include "chromeos/dbus/fake_system_clock_client.h" |
27 #include "chromeos/dbus/fake_update_engine_client.h" | 21 #include "chromeos/dbus/fake_update_engine_client.h" |
28 #include "chromeos/dbus/ibus/mock_ibus_client.h" | 22 #include "chromeos/dbus/ibus/mock_ibus_client.h" |
29 #include "chromeos/dbus/ibus/mock_ibus_config_client.h" | 23 #include "chromeos/dbus/ibus/mock_ibus_config_client.h" |
30 #include "chromeos/dbus/ibus/mock_ibus_engine_factory_service.h" | 24 #include "chromeos/dbus/ibus/mock_ibus_engine_factory_service.h" |
31 #include "chromeos/dbus/ibus/mock_ibus_engine_service.h" | 25 #include "chromeos/dbus/ibus/mock_ibus_engine_service.h" |
32 #include "chromeos/dbus/ibus/mock_ibus_input_context_client.h" | 26 #include "chromeos/dbus/ibus/mock_ibus_input_context_client.h" |
(...skipping 11 matching lines...) Expand all Loading... |
44 new FakeBluetoothProfileManagerClient()), | 38 new FakeBluetoothProfileManagerClient()), |
45 fake_cros_disks_client_(new FakeCrosDisksClient), | 39 fake_cros_disks_client_(new FakeCrosDisksClient), |
46 fake_cryptohome_client_(new FakeCryptohomeClient), | 40 fake_cryptohome_client_(new FakeCryptohomeClient), |
47 fake_gsm_sms_client_(new FakeGsmSMSClient), | 41 fake_gsm_sms_client_(new FakeGsmSMSClient), |
48 fake_image_burner_client_(new FakeImageBurnerClient), | 42 fake_image_burner_client_(new FakeImageBurnerClient), |
49 fake_session_manager_client_(new FakeSessionManagerClient), | 43 fake_session_manager_client_(new FakeSessionManagerClient), |
50 fake_shill_manager_client_(new FakeShillManagerClient), | 44 fake_shill_manager_client_(new FakeShillManagerClient), |
51 fake_system_clock_client_(new FakeSystemClockClient), | 45 fake_system_clock_client_(new FakeSystemClockClient), |
52 fake_power_manager_client_(new FakePowerManagerClient), | 46 fake_power_manager_client_(new FakePowerManagerClient), |
53 fake_update_engine_client_(new FakeUpdateEngineClient), | 47 fake_update_engine_client_(new FakeUpdateEngineClient), |
54 fake_old_bluetooth_manager_client_(new FakeOldBluetoothManagerClient), | |
55 fake_old_bluetooth_adapter_client_(new FakeOldBluetoothAdapterClient), | |
56 fake_old_bluetooth_device_client_(new FakeOldBluetoothDeviceClient), | |
57 ibus_bus_(NULL) { | 48 ibus_bus_(NULL) { |
58 power_policy_controller_.reset( | 49 power_policy_controller_.reset( |
59 new PowerPolicyController(this, fake_power_manager_client_.get())); | 50 new PowerPolicyController(this, fake_power_manager_client_.get())); |
60 } | 51 } |
61 | 52 |
62 MockDBusThreadManagerWithoutGMock::~MockDBusThreadManagerWithoutGMock() { | 53 MockDBusThreadManagerWithoutGMock::~MockDBusThreadManagerWithoutGMock() { |
63 FOR_EACH_OBSERVER(DBusThreadManagerObserver, observers_, | 54 FOR_EACH_OBSERVER(DBusThreadManagerObserver, observers_, |
64 OnDBusThreadManagerDestroying(this)); | 55 OnDBusThreadManagerDestroying(this)); |
65 } | 56 } |
66 | 57 |
(...skipping 23 matching lines...) Expand all Loading... |
90 } | 81 } |
91 | 82 |
92 dbus::Bus* MockDBusThreadManagerWithoutGMock::GetSystemBus() { | 83 dbus::Bus* MockDBusThreadManagerWithoutGMock::GetSystemBus() { |
93 return NULL; | 84 return NULL; |
94 } | 85 } |
95 | 86 |
96 dbus::Bus* MockDBusThreadManagerWithoutGMock::GetIBusBus() { | 87 dbus::Bus* MockDBusThreadManagerWithoutGMock::GetIBusBus() { |
97 return ibus_bus_; | 88 return ibus_bus_; |
98 } | 89 } |
99 | 90 |
100 BluetoothAdapterClient* | |
101 MockDBusThreadManagerWithoutGMock::GetBluetoothAdapterClient() { | |
102 return fake_old_bluetooth_adapter_client_.get(); | |
103 } | |
104 | |
105 BluetoothDeviceClient* | |
106 MockDBusThreadManagerWithoutGMock::GetBluetoothDeviceClient() { | |
107 return fake_old_bluetooth_device_client_.get(); | |
108 } | |
109 | |
110 BluetoothInputClient* | |
111 MockDBusThreadManagerWithoutGMock::GetBluetoothInputClient() { | |
112 NOTIMPLEMENTED(); | |
113 return NULL; | |
114 } | |
115 | |
116 BluetoothManagerClient* | |
117 MockDBusThreadManagerWithoutGMock::GetBluetoothManagerClient() { | |
118 return fake_old_bluetooth_manager_client_.get(); | |
119 } | |
120 | |
121 BluetoothNodeClient* | |
122 MockDBusThreadManagerWithoutGMock::GetBluetoothNodeClient() { | |
123 NOTIMPLEMENTED(); | |
124 return NULL; | |
125 } | |
126 | |
127 CrasAudioClient* MockDBusThreadManagerWithoutGMock::GetCrasAudioClient() { | 91 CrasAudioClient* MockDBusThreadManagerWithoutGMock::GetCrasAudioClient() { |
128 return NULL; | 92 return NULL; |
129 } | 93 } |
130 | 94 |
131 CrosDisksClient* MockDBusThreadManagerWithoutGMock::GetCrosDisksClient() { | 95 CrosDisksClient* MockDBusThreadManagerWithoutGMock::GetCrosDisksClient() { |
132 return fake_cros_disks_client_.get(); | 96 return fake_cros_disks_client_.get(); |
133 } | 97 } |
134 | 98 |
135 CryptohomeClient* MockDBusThreadManagerWithoutGMock::GetCryptohomeClient() { | 99 CryptohomeClient* MockDBusThreadManagerWithoutGMock::GetCryptohomeClient() { |
136 return fake_cryptohome_client_.get(); | 100 return fake_cryptohome_client_.get(); |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 } | 207 } |
244 | 208 |
245 SystemClockClient* MockDBusThreadManagerWithoutGMock::GetSystemClockClient() { | 209 SystemClockClient* MockDBusThreadManagerWithoutGMock::GetSystemClockClient() { |
246 return fake_system_clock_client_.get(); | 210 return fake_system_clock_client_.get(); |
247 } | 211 } |
248 | 212 |
249 UpdateEngineClient* MockDBusThreadManagerWithoutGMock::GetUpdateEngineClient() { | 213 UpdateEngineClient* MockDBusThreadManagerWithoutGMock::GetUpdateEngineClient() { |
250 return fake_update_engine_client_.get(); | 214 return fake_update_engine_client_.get(); |
251 } | 215 } |
252 | 216 |
253 BluetoothOutOfBandClient* | |
254 MockDBusThreadManagerWithoutGMock::GetBluetoothOutOfBandClient() { | |
255 NOTIMPLEMENTED(); | |
256 return NULL; | |
257 } | |
258 | |
259 IBusClient* MockDBusThreadManagerWithoutGMock::GetIBusClient() { | 217 IBusClient* MockDBusThreadManagerWithoutGMock::GetIBusClient() { |
260 return mock_ibus_client_.get(); | 218 return mock_ibus_client_.get(); |
261 } | 219 } |
262 | 220 |
263 IBusConfigClient* MockDBusThreadManagerWithoutGMock::GetIBusConfigClient() { | 221 IBusConfigClient* MockDBusThreadManagerWithoutGMock::GetIBusConfigClient() { |
264 return mock_ibus_config_client_.get(); | 222 return mock_ibus_config_client_.get(); |
265 } | 223 } |
266 | 224 |
267 IBusInputContextClient* | 225 IBusInputContextClient* |
268 MockDBusThreadManagerWithoutGMock::GetIBusInputContextClient() { | 226 MockDBusThreadManagerWithoutGMock::GetIBusInputContextClient() { |
(...skipping 12 matching lines...) Expand all Loading... |
281 | 239 |
282 void MockDBusThreadManagerWithoutGMock::RemoveIBusEngineService( | 240 void MockDBusThreadManagerWithoutGMock::RemoveIBusEngineService( |
283 const dbus::ObjectPath& object_path) { | 241 const dbus::ObjectPath& object_path) { |
284 } | 242 } |
285 | 243 |
286 IBusPanelService* MockDBusThreadManagerWithoutGMock::GetIBusPanelService() { | 244 IBusPanelService* MockDBusThreadManagerWithoutGMock::GetIBusPanelService() { |
287 return mock_ibus_panel_service_.get(); | 245 return mock_ibus_panel_service_.get(); |
288 } | 246 } |
289 | 247 |
290 } // namespace chromeos | 248 } // namespace chromeos |
OLD | NEW |