Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2635)

Unified Diff: device/bluetooth/bluetooth_adapter_profile_chromeos_unittest.cc

Issue 935383003: Fix BluetoothAdapterProfileChromeOS lifecycle management (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add DCHECK confirming profiles are gone during shutdown Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluetooth_adapter_profile_chromeos_unittest.cc
diff --git a/device/bluetooth/bluetooth_adapter_profile_chromeos_unittest.cc b/device/bluetooth/bluetooth_adapter_profile_chromeos_unittest.cc
index 6b29dd241c0b53fe1354d14ff21489bc5fd279ef..3176b8eee9f289a4f1a08e4dcaf21255e944dff3 100644
--- a/device/bluetooth/bluetooth_adapter_profile_chromeos_unittest.cc
+++ b/device/bluetooth/bluetooth_adapter_profile_chromeos_unittest.cc
@@ -151,8 +151,8 @@ TEST_F(BluetoothAdapterProfileChromeOSTest, DelegateCount) {
options.require_authentication.reset(new bool(false));
profile_ = BluetoothAdapterProfileChromeOS::Register(
- static_cast<BluetoothAdapterChromeOS*>(adapter_.get()), uuid, options,
- base::Bind(&base::DoNothing), base::Bind(&DoNothingDBusErrorCallback));
+ uuid, options, base::Bind(&base::DoNothing),
+ base::Bind(&DoNothingDBusErrorCallback));
message_loop_.RunUntilIdle();
@@ -185,7 +185,7 @@ TEST_F(BluetoothAdapterProfileChromeOSTest, BlackHole) {
options.require_authentication.reset(new bool(false));
profile_ = BluetoothAdapterProfileChromeOS::Register(
- static_cast<BluetoothAdapterChromeOS*>(adapter_.get()), uuid, options,
+ uuid, options,
base::Bind(
&BluetoothAdapterProfileChromeOSTest::DBusConnectSuccessCallback,
base::Unretained(this)),
@@ -224,7 +224,7 @@ TEST_F(BluetoothAdapterProfileChromeOSTest, Routing) {
options.require_authentication.reset(new bool(false));
profile_ = BluetoothAdapterProfileChromeOS::Register(
- static_cast<BluetoothAdapterChromeOS*>(adapter_.get()), uuid, options,
+ uuid, options,
base::Bind(
&BluetoothAdapterProfileChromeOSTest::DBusConnectSuccessCallback,
base::Unretained(this)),

Powered by Google App Engine
This is Rietveld 408576698