| 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_FAKE_DBUS_THREAD_MANAGER_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_DBUS_THREAD_MANAGER_H_ |
| 6 #define CHROMEOS_DBUS_FAKE_DBUS_THREAD_MANAGER_H_ | 6 #define CHROMEOS_DBUS_FAKE_DBUS_THREAD_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // Creates and sets all fake Shill DBusClients. | 34 // Creates and sets all fake Shill DBusClients. |
| 35 void SetFakeShillClients(); | 35 void SetFakeShillClients(); |
| 36 | 36 |
| 37 // Sets up any default environment for fake clients, e.g. for UI testing. | 37 // Sets up any default environment for fake clients, e.g. for UI testing. |
| 38 void SetupDefaultEnvironment(); | 38 void SetupDefaultEnvironment(); |
| 39 | 39 |
| 40 void SetBluetoothAdapterClient(scoped_ptr<BluetoothAdapterClient> client); | 40 void SetBluetoothAdapterClient(scoped_ptr<BluetoothAdapterClient> client); |
| 41 void SetBluetoothAgentManagerClient( | 41 void SetBluetoothAgentManagerClient( |
| 42 scoped_ptr<BluetoothAgentManagerClient> client); | 42 scoped_ptr<BluetoothAgentManagerClient> client); |
| 43 void SetBluetoothDeviceClient(scoped_ptr<BluetoothDeviceClient> client); | 43 void SetBluetoothDeviceClient(scoped_ptr<BluetoothDeviceClient> client); |
| 44 void SetBluetoothGattCharacteristicClient( |
| 45 scoped_ptr<BluetoothGattCharacteristicClient> client); |
| 46 void SetBluetoothGattDescriptorClient( |
| 47 scoped_ptr<BluetoothGattDescriptorClient> client); |
| 48 void SetBluetoothGattServiceClient( |
| 49 scoped_ptr<BluetoothGattServiceClient> client); |
| 44 void SetBluetoothInputClient(scoped_ptr<BluetoothInputClient> client); | 50 void SetBluetoothInputClient(scoped_ptr<BluetoothInputClient> client); |
| 45 void SetBluetoothProfileManagerClient( | 51 void SetBluetoothProfileManagerClient( |
| 46 scoped_ptr<BluetoothProfileManagerClient> client); | 52 scoped_ptr<BluetoothProfileManagerClient> client); |
| 47 void SetCrasAudioClient(scoped_ptr<CrasAudioClient> client); | 53 void SetCrasAudioClient(scoped_ptr<CrasAudioClient> client); |
| 48 void SetCrosDisksClient(scoped_ptr<CrosDisksClient> client); | 54 void SetCrosDisksClient(scoped_ptr<CrosDisksClient> client); |
| 49 void SetCryptohomeClient(scoped_ptr<CryptohomeClient> client); | 55 void SetCryptohomeClient(scoped_ptr<CryptohomeClient> client); |
| 50 void SetDebugDaemonClient(scoped_ptr<DebugDaemonClient> client); | 56 void SetDebugDaemonClient(scoped_ptr<DebugDaemonClient> client); |
| 51 void SetShillDeviceClient(scoped_ptr<ShillDeviceClient> client); | 57 void SetShillDeviceClient(scoped_ptr<ShillDeviceClient> client); |
| 52 void SetShillIPConfigClient(scoped_ptr<ShillIPConfigClient> client); | 58 void SetShillIPConfigClient(scoped_ptr<ShillIPConfigClient> client); |
| 53 void SetShillManagerClient(scoped_ptr<ShillManagerClient> client); | 59 void SetShillManagerClient(scoped_ptr<ShillManagerClient> client); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 71 void SetUpdateEngineClient(scoped_ptr<UpdateEngineClient> client); | 77 void SetUpdateEngineClient(scoped_ptr<UpdateEngineClient> client); |
| 72 | 78 |
| 73 virtual void AddObserver(DBusThreadManagerObserver* observer) OVERRIDE; | 79 virtual void AddObserver(DBusThreadManagerObserver* observer) OVERRIDE; |
| 74 virtual void RemoveObserver(DBusThreadManagerObserver* observer) OVERRIDE; | 80 virtual void RemoveObserver(DBusThreadManagerObserver* observer) OVERRIDE; |
| 75 virtual dbus::Bus* GetSystemBus() OVERRIDE; | 81 virtual dbus::Bus* GetSystemBus() OVERRIDE; |
| 76 | 82 |
| 77 virtual BluetoothAdapterClient* GetBluetoothAdapterClient() OVERRIDE; | 83 virtual BluetoothAdapterClient* GetBluetoothAdapterClient() OVERRIDE; |
| 78 virtual BluetoothAgentManagerClient* | 84 virtual BluetoothAgentManagerClient* |
| 79 GetBluetoothAgentManagerClient() OVERRIDE; | 85 GetBluetoothAgentManagerClient() OVERRIDE; |
| 80 virtual BluetoothDeviceClient* GetBluetoothDeviceClient() OVERRIDE; | 86 virtual BluetoothDeviceClient* GetBluetoothDeviceClient() OVERRIDE; |
| 87 virtual BluetoothGattCharacteristicClient* |
| 88 GetBluetoothGattCharacteristicClient() OVERRIDE; |
| 89 virtual BluetoothGattDescriptorClient* |
| 90 GetBluetoothGattDescriptorClient() OVERRIDE; |
| 91 virtual BluetoothGattServiceClient* GetBluetoothGattServiceClient() OVERRIDE; |
| 81 virtual BluetoothInputClient* GetBluetoothInputClient() OVERRIDE; | 92 virtual BluetoothInputClient* GetBluetoothInputClient() OVERRIDE; |
| 82 virtual BluetoothProfileManagerClient* | 93 virtual BluetoothProfileManagerClient* |
| 83 GetBluetoothProfileManagerClient() OVERRIDE; | 94 GetBluetoothProfileManagerClient() OVERRIDE; |
| 84 virtual CrasAudioClient* GetCrasAudioClient() OVERRIDE; | 95 virtual CrasAudioClient* GetCrasAudioClient() OVERRIDE; |
| 85 virtual CrosDisksClient* GetCrosDisksClient() OVERRIDE; | 96 virtual CrosDisksClient* GetCrosDisksClient() OVERRIDE; |
| 86 virtual CryptohomeClient* GetCryptohomeClient() OVERRIDE; | 97 virtual CryptohomeClient* GetCryptohomeClient() OVERRIDE; |
| 87 virtual DebugDaemonClient* GetDebugDaemonClient() OVERRIDE; | 98 virtual DebugDaemonClient* GetDebugDaemonClient() OVERRIDE; |
| 88 virtual ShillDeviceClient* GetShillDeviceClient() OVERRIDE; | 99 virtual ShillDeviceClient* GetShillDeviceClient() OVERRIDE; |
| 89 virtual ShillIPConfigClient* GetShillIPConfigClient() OVERRIDE; | 100 virtual ShillIPConfigClient* GetShillIPConfigClient() OVERRIDE; |
| 90 virtual ShillManagerClient* GetShillManagerClient() OVERRIDE; | 101 virtual ShillManagerClient* GetShillManagerClient() OVERRIDE; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 108 virtual UpdateEngineClient* GetUpdateEngineClient() OVERRIDE; | 119 virtual UpdateEngineClient* GetUpdateEngineClient() OVERRIDE; |
| 109 | 120 |
| 110 private: | 121 private: |
| 111 // Note: Keep this before other members so they can call AddObserver() in | 122 // Note: Keep this before other members so they can call AddObserver() in |
| 112 // their c'tors. | 123 // their c'tors. |
| 113 ObserverList<DBusThreadManagerObserver> observers_; | 124 ObserverList<DBusThreadManagerObserver> observers_; |
| 114 | 125 |
| 115 scoped_ptr<BluetoothAdapterClient> bluetooth_adapter_client_; | 126 scoped_ptr<BluetoothAdapterClient> bluetooth_adapter_client_; |
| 116 scoped_ptr<BluetoothAgentManagerClient> bluetooth_agent_manager_client_; | 127 scoped_ptr<BluetoothAgentManagerClient> bluetooth_agent_manager_client_; |
| 117 scoped_ptr<BluetoothDeviceClient> bluetooth_device_client_; | 128 scoped_ptr<BluetoothDeviceClient> bluetooth_device_client_; |
| 129 scoped_ptr<BluetoothGattCharacteristicClient> |
| 130 bluetooth_gatt_characteristic_client_; |
| 131 scoped_ptr<BluetoothGattDescriptorClient> |
| 132 bluetooth_gatt_descriptor_client_; |
| 133 scoped_ptr<BluetoothGattServiceClient> bluetooth_gatt_service_client_; |
| 118 scoped_ptr<BluetoothInputClient> bluetooth_input_client_; | 134 scoped_ptr<BluetoothInputClient> bluetooth_input_client_; |
| 119 scoped_ptr<BluetoothProfileManagerClient> bluetooth_profile_manager_client_; | 135 scoped_ptr<BluetoothProfileManagerClient> bluetooth_profile_manager_client_; |
| 120 scoped_ptr<CrasAudioClient> cras_audio_client_; | 136 scoped_ptr<CrasAudioClient> cras_audio_client_; |
| 121 scoped_ptr<CrosDisksClient> cros_disks_client_; | 137 scoped_ptr<CrosDisksClient> cros_disks_client_; |
| 122 scoped_ptr<CryptohomeClient> cryptohome_client_; | 138 scoped_ptr<CryptohomeClient> cryptohome_client_; |
| 123 scoped_ptr<DebugDaemonClient> debug_daemon_client_; | 139 scoped_ptr<DebugDaemonClient> debug_daemon_client_; |
| 124 scoped_ptr<ShillDeviceClient> shill_device_client_; | 140 scoped_ptr<ShillDeviceClient> shill_device_client_; |
| 125 scoped_ptr<ShillIPConfigClient> shill_ipconfig_client_; | 141 scoped_ptr<ShillIPConfigClient> shill_ipconfig_client_; |
| 126 scoped_ptr<ShillManagerClient> shill_manager_client_; | 142 scoped_ptr<ShillManagerClient> shill_manager_client_; |
| 127 scoped_ptr<ShillServiceClient> shill_service_client_; | 143 scoped_ptr<ShillServiceClient> shill_service_client_; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 143 scoped_ptr<UpdateEngineClient> update_engine_client_; | 159 scoped_ptr<UpdateEngineClient> update_engine_client_; |
| 144 | 160 |
| 145 scoped_ptr<PowerPolicyController> power_policy_controller_; | 161 scoped_ptr<PowerPolicyController> power_policy_controller_; |
| 146 | 162 |
| 147 DISALLOW_COPY_AND_ASSIGN(FakeDBusThreadManager); | 163 DISALLOW_COPY_AND_ASSIGN(FakeDBusThreadManager); |
| 148 }; | 164 }; |
| 149 | 165 |
| 150 } // namespace chromeos | 166 } // namespace chromeos |
| 151 | 167 |
| 152 #endif // CHROMEOS_DBUS_FAKE_DBUS_THREAD_MANAGER_H_ | 168 #endif // CHROMEOS_DBUS_FAKE_DBUS_THREAD_MANAGER_H_ |
| OLD | NEW |