Chromium Code Reviews| Index: device/bluetooth/bluetooth_chromeos_unittest.cc |
| diff --git a/device/bluetooth/bluetooth_chromeos_unittest.cc b/device/bluetooth/bluetooth_chromeos_unittest.cc |
| index 379d1dfd25fc6994e462d11726f63e0f80651331..1a27e77fde0e6e0f4dcf660d461e00b8399c23a1 100644 |
| --- a/device/bluetooth/bluetooth_chromeos_unittest.cc |
| +++ b/device/bluetooth/bluetooth_chromeos_unittest.cc |
| @@ -235,6 +235,7 @@ class BluetoothChromeOSTest : public testing::Test { |
| public: |
| virtual void SetUp() { |
| FakeDBusThreadManager* fake_dbus_thread_manager = new FakeDBusThreadManager; |
| + DBusThreadManager::InitializeForTesting(fake_dbus_thread_manager); |
|
armansito
2014/08/13 20:59:27
Can you add a note here explaining why this has to
|
| fake_bluetooth_adapter_client_ = new FakeBluetoothAdapterClient; |
| fake_dbus_thread_manager->SetBluetoothAdapterClient( |
| scoped_ptr<BluetoothAdapterClient>(fake_bluetooth_adapter_client_)); |
| @@ -249,7 +250,6 @@ class BluetoothChromeOSTest : public testing::Test { |
| fake_dbus_thread_manager->SetBluetoothGattServiceClient( |
| scoped_ptr<BluetoothGattServiceClient>( |
| new FakeBluetoothGattServiceClient)); |
| - DBusThreadManager::InitializeForTesting(fake_dbus_thread_manager); |
| fake_bluetooth_adapter_client_->SetSimulationIntervalMs(10); |