| Index: device/bluetooth/bluetooth_chromeos_unittest.cc
|
| diff --git a/device/bluetooth/bluetooth_chromeos_unittest.cc b/device/bluetooth/bluetooth_chromeos_unittest.cc
|
| index 87b454f17a2c6f8e7c8f2d000f86e42860fb03f7..118499e905b8a6eb98894b3d879f6445841dca3e 100644
|
| --- a/device/bluetooth/bluetooth_chromeos_unittest.cc
|
| +++ b/device/bluetooth/bluetooth_chromeos_unittest.cc
|
| @@ -5,12 +5,12 @@
|
| #include "base/memory/scoped_vector.h"
|
| #include "base/message_loop/message_loop.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| +#include "chromeos/dbus/dbus_thread_manager.h"
|
| #include "chromeos/dbus/fake_bluetooth_adapter_client.h"
|
| #include "chromeos/dbus/fake_bluetooth_agent_manager_client.h"
|
| #include "chromeos/dbus/fake_bluetooth_device_client.h"
|
| #include "chromeos/dbus/fake_bluetooth_gatt_service_client.h"
|
| #include "chromeos/dbus/fake_bluetooth_input_client.h"
|
| -#include "chromeos/dbus/fake_dbus_thread_manager.h"
|
| #include "dbus/object_path.h"
|
| #include "device/bluetooth/bluetooth_adapter.h"
|
| #include "device/bluetooth/bluetooth_adapter_chromeos.h"
|
| @@ -234,23 +234,23 @@ class TestPairingDelegate : public BluetoothDevice::PairingDelegate {
|
| class BluetoothChromeOSTest : public testing::Test {
|
| public:
|
| virtual void SetUp() {
|
| - FakeDBusThreadManager* fake_dbus_thread_manager = new FakeDBusThreadManager;
|
| + scoped_ptr<DBusThreadManagerSetter> dbus_setter =
|
| + chromeos::DBusThreadManager::GetSetterForTesting();
|
| // We need to initialize DBusThreadManager early to prevent
|
| // Bluetooth*::Create() methods from picking the real instead of fake
|
| // implementations.
|
| - DBusThreadManager::InitializeForTesting(fake_dbus_thread_manager);
|
| fake_bluetooth_adapter_client_ = new FakeBluetoothAdapterClient;
|
| - fake_dbus_thread_manager->SetBluetoothAdapterClient(
|
| + dbus_setter->SetBluetoothAdapterClient(
|
| scoped_ptr<BluetoothAdapterClient>(fake_bluetooth_adapter_client_));
|
| fake_bluetooth_device_client_ = new FakeBluetoothDeviceClient;
|
| - fake_dbus_thread_manager->SetBluetoothDeviceClient(
|
| + dbus_setter->SetBluetoothDeviceClient(
|
| scoped_ptr<BluetoothDeviceClient>(fake_bluetooth_device_client_));
|
| - fake_dbus_thread_manager->SetBluetoothInputClient(
|
| + dbus_setter->SetBluetoothInputClient(
|
| scoped_ptr<BluetoothInputClient>(new FakeBluetoothInputClient));
|
| - fake_dbus_thread_manager->SetBluetoothAgentManagerClient(
|
| + dbus_setter->SetBluetoothAgentManagerClient(
|
| scoped_ptr<BluetoothAgentManagerClient>(
|
| new FakeBluetoothAgentManagerClient));
|
| - fake_dbus_thread_manager->SetBluetoothGattServiceClient(
|
| + dbus_setter->SetBluetoothGattServiceClient(
|
| scoped_ptr<BluetoothGattServiceClient>(
|
| new FakeBluetoothGattServiceClient));
|
|
|
|
|