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 #ifndef CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_WITHOUT_GMOCK_H_ | 5 #ifndef CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_WITHOUT_GMOCK_H_ |
6 #define CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_WITHOUT_GMOCK_H_ | 6 #define CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_WITHOUT_GMOCK_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
12 #include "chromeos/dbus/dbus_thread_manager.h" | 12 #include "chromeos/dbus/dbus_thread_manager.h" |
13 | 13 |
14 namespace dbus { | 14 namespace dbus { |
15 class Bus; | 15 class Bus; |
16 class ObjectPath; | 16 class ObjectPath; |
17 } // namespace dbus | 17 } // namespace dbus |
18 | 18 |
19 namespace chromeos { | 19 namespace chromeos { |
20 | 20 |
21 class DBusThreadManagerObserver; | 21 class DBusThreadManagerObserver; |
22 class FakeBluetoothAdapterClient; | 22 class FakeBluetoothAdapterClient; |
23 class FakeBluetoothAgentManagerClient; | 23 class FakeBluetoothAgentManagerClient; |
24 class FakeBluetoothDeviceClient; | 24 class FakeBluetoothDeviceClient; |
25 class FakeBluetoothInputClient; | 25 class FakeBluetoothInputClient; |
26 class FakeBluetoothProfileManagerClient; | 26 class FakeBluetoothProfileManagerClient; |
27 class FakeCrosDisksClient; | 27 class FakeCrosDisksClient; |
28 class FakeCryptohomeClient; | 28 class FakeCryptohomeClient; |
| 29 class FakeOldBluetoothAdapterClient; |
| 30 class FakeOldBluetoothDeviceClient; |
| 31 class FakeOldBluetoothManagerClient; |
29 class FakeShillManagerClient; | 32 class FakeShillManagerClient; |
30 class FakeImageBurnerClient; | 33 class FakeImageBurnerClient; |
31 class FakeSystemClockClient; | 34 class FakeSystemClockClient; |
32 class MockIBusClient; | 35 class MockIBusClient; |
33 class MockIBusConfigClient; | 36 class MockIBusConfigClient; |
34 class MockIBusEngineFactoryService; | 37 class MockIBusEngineFactoryService; |
35 class MockIBusEngineService; | 38 class MockIBusEngineService; |
36 class MockIBusInputContextClient; | 39 class MockIBusInputContextClient; |
37 class MockIBusPanelService; | 40 class MockIBusPanelService; |
38 | 41 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 160 |
158 MockIBusPanelService* mock_ibus_panel_service() { | 161 MockIBusPanelService* mock_ibus_panel_service() { |
159 return mock_ibus_panel_service_.get(); | 162 return mock_ibus_panel_service_.get(); |
160 } | 163 } |
161 | 164 |
162 void set_ibus_bus(dbus::Bus* ibus_bus) { | 165 void set_ibus_bus(dbus::Bus* ibus_bus) { |
163 ibus_bus_ = ibus_bus; | 166 ibus_bus_ = ibus_bus; |
164 } | 167 } |
165 | 168 |
166 private: | 169 private: |
| 170 // These fake_bluetooth_*_client_ are for ExperimentalBluetooth*Client. |
167 scoped_ptr<FakeBluetoothAdapterClient> fake_bluetooth_adapter_client_; | 171 scoped_ptr<FakeBluetoothAdapterClient> fake_bluetooth_adapter_client_; |
168 scoped_ptr<FakeBluetoothAgentManagerClient> | 172 scoped_ptr<FakeBluetoothAgentManagerClient> |
169 fake_bluetooth_agent_manager_client_; | 173 fake_bluetooth_agent_manager_client_; |
170 scoped_ptr<FakeBluetoothDeviceClient> fake_bluetooth_device_client_; | 174 scoped_ptr<FakeBluetoothDeviceClient> fake_bluetooth_device_client_; |
171 scoped_ptr<FakeBluetoothInputClient> fake_bluetooth_input_client_; | 175 scoped_ptr<FakeBluetoothInputClient> fake_bluetooth_input_client_; |
172 scoped_ptr<FakeBluetoothProfileManagerClient> | 176 scoped_ptr<FakeBluetoothProfileManagerClient> |
173 fake_bluetooth_profile_manager_client_; | 177 fake_bluetooth_profile_manager_client_; |
174 scoped_ptr<FakeCrosDisksClient> fake_cros_disks_client_; | 178 scoped_ptr<FakeCrosDisksClient> fake_cros_disks_client_; |
175 scoped_ptr<FakeCryptohomeClient> fake_cryptohome_client_; | 179 scoped_ptr<FakeCryptohomeClient> fake_cryptohome_client_; |
176 scoped_ptr<FakeImageBurnerClient> fake_image_burner_client_; | 180 scoped_ptr<FakeImageBurnerClient> fake_image_burner_client_; |
177 scoped_ptr<FakeShillManagerClient> fake_shill_manager_client_; | 181 scoped_ptr<FakeShillManagerClient> fake_shill_manager_client_; |
178 scoped_ptr<FakeSystemClockClient> fake_system_clock_client_; | 182 scoped_ptr<FakeSystemClockClient> fake_system_clock_client_; |
179 | 183 |
| 184 // These fake_old_bluetooth_*_client_ are for old Bluetooth*Client. |
| 185 // Will be removed once http://crbug.com/221813 is resolved. |
| 186 scoped_ptr<FakeOldBluetoothManagerClient> fake_old_bluetooth_manager_client_; |
| 187 scoped_ptr<FakeOldBluetoothAdapterClient> fake_old_bluetooth_adapter_client_; |
| 188 scoped_ptr<FakeOldBluetoothDeviceClient> fake_old_bluetooth_device_client_; |
| 189 |
180 scoped_ptr<MockIBusClient> mock_ibus_client_; | 190 scoped_ptr<MockIBusClient> mock_ibus_client_; |
181 scoped_ptr<MockIBusConfigClient> mock_ibus_config_client_; | 191 scoped_ptr<MockIBusConfigClient> mock_ibus_config_client_; |
182 scoped_ptr<MockIBusInputContextClient> mock_ibus_input_context_client_; | 192 scoped_ptr<MockIBusInputContextClient> mock_ibus_input_context_client_; |
183 scoped_ptr<MockIBusEngineService> mock_ibus_engine_service_; | 193 scoped_ptr<MockIBusEngineService> mock_ibus_engine_service_; |
184 scoped_ptr<MockIBusEngineFactoryService> mock_ibus_engine_factory_service_; | 194 scoped_ptr<MockIBusEngineFactoryService> mock_ibus_engine_factory_service_; |
185 scoped_ptr<MockIBusPanelService> mock_ibus_panel_service_; | 195 scoped_ptr<MockIBusPanelService> mock_ibus_panel_service_; |
186 | 196 |
187 dbus::Bus* ibus_bus_; | 197 dbus::Bus* ibus_bus_; |
188 | 198 |
189 ObserverList<DBusThreadManagerObserver> observers_; | 199 ObserverList<DBusThreadManagerObserver> observers_; |
190 | 200 |
191 DISALLOW_COPY_AND_ASSIGN(MockDBusThreadManagerWithoutGMock); | 201 DISALLOW_COPY_AND_ASSIGN(MockDBusThreadManagerWithoutGMock); |
192 }; | 202 }; |
193 | 203 |
194 } // namespace chromeos | 204 } // namespace chromeos |
195 | 205 |
196 #endif // CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_WITHOUT_GMOCK_H_ | 206 #endif // CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_WITHOUT_GMOCK_H_ |
OLD | NEW |