| Index: device/bluetooth/bluetooth_profile_chromeos_unittest.cc
|
| diff --git a/device/bluetooth/bluetooth_profile_chromeos_unittest.cc b/device/bluetooth/bluetooth_profile_chromeos_unittest.cc
|
| index bd91b8691733ba935ebd37214e8114a3785ba586..51eb2087337402fabed5200fb97ffd385b800c91 100644
|
| --- a/device/bluetooth/bluetooth_profile_chromeos_unittest.cc
|
| +++ b/device/bluetooth/bluetooth_profile_chromeos_unittest.cc
|
| @@ -38,11 +38,13 @@ class BluetoothProfileChromeOSTest : public testing::Test {
|
| last_device_(NULL) {}
|
|
|
| virtual void SetUp() {
|
| - fake_dbus_thread_manager_ = new FakeDBusThreadManager();
|
| - DBusThreadManager::InitializeForTesting(fake_dbus_thread_manager_);
|
| -
|
| + FakeDBusThreadManager* fake_dbus_thread_manager = new FakeDBusThreadManager;
|
| fake_bluetooth_profile_manager_client_ =
|
| - fake_dbus_thread_manager_->fake_bluetooth_profile_manager_client();
|
| + new FakeBluetoothProfileManagerClient;
|
| + fake_dbus_thread_manager->SetBluetoothProfileManagerClient(
|
| + scoped_ptr<BluetoothProfileManagerClient>(
|
| + fake_bluetooth_profile_manager_client_));
|
| + DBusThreadManager::InitializeForTesting(fake_dbus_thread_manager);
|
|
|
| device::BluetoothAdapterFactory::GetAdapter(
|
| base::Bind(&BluetoothProfileChromeOSTest::AdapterCallback,
|
| @@ -95,7 +97,6 @@ class BluetoothProfileChromeOSTest : public testing::Test {
|
| base::MessageLoop message_loop_;
|
|
|
| FakeBluetoothProfileManagerClient* fake_bluetooth_profile_manager_client_;
|
| - FakeDBusThreadManager* fake_dbus_thread_manager_;
|
| scoped_refptr<BluetoothAdapter> adapter_;
|
|
|
| unsigned int callback_count_;
|
|
|