| 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/dbus_thread_manager_observer.h" | 7 #include "chromeos/dbus/dbus_thread_manager_observer.h" |
| 8 #include "chromeos/dbus/fake_bluetooth_adapter_client.h" | 8 #include "chromeos/dbus/fake_bluetooth_adapter_client.h" |
| 9 #include "chromeos/dbus/fake_bluetooth_agent_manager_client.h" | 9 #include "chromeos/dbus/fake_bluetooth_agent_manager_client.h" |
| 10 #include "chromeos/dbus/fake_bluetooth_device_client.h" | 10 #include "chromeos/dbus/fake_bluetooth_device_client.h" |
| 11 #include "chromeos/dbus/fake_bluetooth_input_client.h" | 11 #include "chromeos/dbus/fake_bluetooth_input_client.h" |
| 12 #include "chromeos/dbus/fake_bluetooth_profile_manager_client.h" | 12 #include "chromeos/dbus/fake_bluetooth_profile_manager_client.h" |
| 13 #include "chromeos/dbus/fake_cros_disks_client.h" | 13 #include "chromeos/dbus/fake_cros_disks_client.h" |
| 14 #include "chromeos/dbus/fake_cryptohome_client.h" | 14 #include "chromeos/dbus/fake_cryptohome_client.h" |
| 15 #include "chromeos/dbus/fake_image_burner_client.h" | 15 #include "chromeos/dbus/fake_image_burner_client.h" |
| 16 #include "chromeos/dbus/fake_old_bluetooth_adapter_client.h" |
| 17 #include "chromeos/dbus/fake_old_bluetooth_device_client.h" |
| 18 #include "chromeos/dbus/fake_old_bluetooth_manager_client.h" |
| 16 #include "chromeos/dbus/fake_shill_manager_client.h" | 19 #include "chromeos/dbus/fake_shill_manager_client.h" |
| 17 #include "chromeos/dbus/fake_system_clock_client.h" | 20 #include "chromeos/dbus/fake_system_clock_client.h" |
| 18 #include "chromeos/dbus/ibus/mock_ibus_client.h" | 21 #include "chromeos/dbus/ibus/mock_ibus_client.h" |
| 19 #include "chromeos/dbus/ibus/mock_ibus_config_client.h" | 22 #include "chromeos/dbus/ibus/mock_ibus_config_client.h" |
| 20 #include "chromeos/dbus/ibus/mock_ibus_engine_factory_service.h" | 23 #include "chromeos/dbus/ibus/mock_ibus_engine_factory_service.h" |
| 21 #include "chromeos/dbus/ibus/mock_ibus_engine_service.h" | 24 #include "chromeos/dbus/ibus/mock_ibus_engine_service.h" |
| 22 #include "chromeos/dbus/ibus/mock_ibus_input_context_client.h" | 25 #include "chromeos/dbus/ibus/mock_ibus_input_context_client.h" |
| 23 #include "chromeos/dbus/ibus/mock_ibus_panel_service.h" | 26 #include "chromeos/dbus/ibus/mock_ibus_panel_service.h" |
| 24 | 27 |
| 25 namespace chromeos { | 28 namespace chromeos { |
| 26 | 29 |
| 27 MockDBusThreadManagerWithoutGMock::MockDBusThreadManagerWithoutGMock() | 30 MockDBusThreadManagerWithoutGMock::MockDBusThreadManagerWithoutGMock() |
| 28 : fake_bluetooth_adapter_client_(new FakeBluetoothAdapterClient()), | 31 : fake_bluetooth_adapter_client_(new FakeBluetoothAdapterClient()), |
| 29 fake_bluetooth_agent_manager_client_(new FakeBluetoothAgentManagerClient()), | 32 fake_bluetooth_agent_manager_client_(new FakeBluetoothAgentManagerClient()), |
| 30 fake_bluetooth_device_client_(new FakeBluetoothDeviceClient()), | 33 fake_bluetooth_device_client_(new FakeBluetoothDeviceClient()), |
| 31 fake_bluetooth_input_client_(new FakeBluetoothInputClient()), | 34 fake_bluetooth_input_client_(new FakeBluetoothInputClient()), |
| 32 fake_bluetooth_profile_manager_client_( | 35 fake_bluetooth_profile_manager_client_( |
| 33 new FakeBluetoothProfileManagerClient()), | 36 new FakeBluetoothProfileManagerClient()), |
| 34 fake_cros_disks_client_(new FakeCrosDisksClient), | 37 fake_cros_disks_client_(new FakeCrosDisksClient), |
| 35 fake_cryptohome_client_(new FakeCryptohomeClient), | 38 fake_cryptohome_client_(new FakeCryptohomeClient), |
| 36 fake_image_burner_client_(new FakeImageBurnerClient), | 39 fake_image_burner_client_(new FakeImageBurnerClient), |
| 37 fake_shill_manager_client_(new FakeShillManagerClient), | 40 fake_shill_manager_client_(new FakeShillManagerClient), |
| 38 fake_system_clock_client_(new FakeSystemClockClient), | 41 fake_system_clock_client_(new FakeSystemClockClient), |
| 42 fake_old_bluetooth_manager_client_(new FakeOldBluetoothManagerClient), |
| 43 fake_old_bluetooth_adapter_client_(new FakeOldBluetoothAdapterClient), |
| 44 fake_old_bluetooth_device_client_(new FakeOldBluetoothDeviceClient), |
| 39 mock_ibus_client_(new MockIBusClient), | 45 mock_ibus_client_(new MockIBusClient), |
| 40 mock_ibus_config_client_(new MockIBusConfigClient), | 46 mock_ibus_config_client_(new MockIBusConfigClient), |
| 41 mock_ibus_input_context_client_(new MockIBusInputContextClient), | 47 mock_ibus_input_context_client_(new MockIBusInputContextClient), |
| 42 mock_ibus_engine_service_(new MockIBusEngineService), | 48 mock_ibus_engine_service_(new MockIBusEngineService), |
| 43 mock_ibus_engine_factory_service_(new MockIBusEngineFactoryService), | 49 mock_ibus_engine_factory_service_(new MockIBusEngineFactoryService), |
| 44 mock_ibus_panel_service_(new MockIBusPanelService), | 50 mock_ibus_panel_service_(new MockIBusPanelService), |
| 45 ibus_bus_(NULL) { | 51 ibus_bus_(NULL) { |
| 46 } | 52 } |
| 47 | 53 |
| 48 MockDBusThreadManagerWithoutGMock::~MockDBusThreadManagerWithoutGMock() { | 54 MockDBusThreadManagerWithoutGMock::~MockDBusThreadManagerWithoutGMock() { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 72 dbus::Bus* MockDBusThreadManagerWithoutGMock::GetSystemBus() { | 78 dbus::Bus* MockDBusThreadManagerWithoutGMock::GetSystemBus() { |
| 73 return NULL; | 79 return NULL; |
| 74 } | 80 } |
| 75 | 81 |
| 76 dbus::Bus* MockDBusThreadManagerWithoutGMock::GetIBusBus() { | 82 dbus::Bus* MockDBusThreadManagerWithoutGMock::GetIBusBus() { |
| 77 return ibus_bus_; | 83 return ibus_bus_; |
| 78 } | 84 } |
| 79 | 85 |
| 80 BluetoothAdapterClient* | 86 BluetoothAdapterClient* |
| 81 MockDBusThreadManagerWithoutGMock::GetBluetoothAdapterClient() { | 87 MockDBusThreadManagerWithoutGMock::GetBluetoothAdapterClient() { |
| 82 NOTIMPLEMENTED(); | 88 return fake_old_bluetooth_adapter_client_.get(); |
| 83 return NULL; | |
| 84 } | 89 } |
| 85 | 90 |
| 86 BluetoothDeviceClient* | 91 BluetoothDeviceClient* |
| 87 MockDBusThreadManagerWithoutGMock::GetBluetoothDeviceClient() { | 92 MockDBusThreadManagerWithoutGMock::GetBluetoothDeviceClient() { |
| 88 NOTIMPLEMENTED(); | 93 return fake_old_bluetooth_device_client_.get(); |
| 89 return NULL; | |
| 90 } | 94 } |
| 91 | 95 |
| 92 BluetoothInputClient* | 96 BluetoothInputClient* |
| 93 MockDBusThreadManagerWithoutGMock::GetBluetoothInputClient() { | 97 MockDBusThreadManagerWithoutGMock::GetBluetoothInputClient() { |
| 94 NOTIMPLEMENTED(); | 98 NOTIMPLEMENTED(); |
| 95 return NULL; | 99 return NULL; |
| 96 } | 100 } |
| 97 | 101 |
| 98 BluetoothManagerClient* | 102 BluetoothManagerClient* |
| 99 MockDBusThreadManagerWithoutGMock::GetBluetoothManagerClient() { | 103 MockDBusThreadManagerWithoutGMock::GetBluetoothManagerClient() { |
| 100 NOTIMPLEMENTED(); | 104 return fake_old_bluetooth_manager_client_.get(); |
| 101 return NULL; | |
| 102 } | 105 } |
| 103 | 106 |
| 104 BluetoothNodeClient* | 107 BluetoothNodeClient* |
| 105 MockDBusThreadManagerWithoutGMock::GetBluetoothNodeClient() { | 108 MockDBusThreadManagerWithoutGMock::GetBluetoothNodeClient() { |
| 106 NOTIMPLEMENTED(); | 109 NOTIMPLEMENTED(); |
| 107 return NULL; | 110 return NULL; |
| 108 } | 111 } |
| 109 | 112 |
| 110 CrasAudioClient* MockDBusThreadManagerWithoutGMock::GetCrasAudioClient() { | 113 CrasAudioClient* MockDBusThreadManagerWithoutGMock::GetCrasAudioClient() { |
| 111 NOTIMPLEMENTED(); | 114 NOTIMPLEMENTED(); |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 | 273 |
| 271 void MockDBusThreadManagerWithoutGMock::RemoveIBusEngineService( | 274 void MockDBusThreadManagerWithoutGMock::RemoveIBusEngineService( |
| 272 const dbus::ObjectPath& object_path) { | 275 const dbus::ObjectPath& object_path) { |
| 273 } | 276 } |
| 274 | 277 |
| 275 IBusPanelService* MockDBusThreadManagerWithoutGMock::GetIBusPanelService() { | 278 IBusPanelService* MockDBusThreadManagerWithoutGMock::GetIBusPanelService() { |
| 276 return mock_ibus_panel_service_.get(); | 279 return mock_ibus_panel_service_.get(); |
| 277 } | 280 } |
| 278 | 281 |
| 279 } // namespace chromeos | 282 } // namespace chromeos |
| OLD | NEW |