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

Unified Diff: device/bluetooth/bluetooth_device_unittest.cc

Issue 1618273002: Call BluetoothGatt#close() after disconnecting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call close on destruction and reconnect Created 4 years, 11 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_device_unittest.cc
diff --git a/device/bluetooth/bluetooth_device_unittest.cc b/device/bluetooth/bluetooth_device_unittest.cc
index 4fc30e4e0d3d46c8746d3d1b2648a57988e57c29..e9cedec503b963248282e92ce4e9e1c5edc733ea 100644
--- a/device/bluetooth/bluetooth_device_unittest.cc
+++ b/device/bluetooth/bluetooth_device_unittest.cc
@@ -183,9 +183,7 @@ TEST_F(BluetoothTest, BluetoothGattConnection) {
EXPECT_EQ(0, gatt_disconnection_attempts_);
// Delete device, connection objects should all be disconnected.
- gatt_disconnection_attempts_ = 0;
DeleteDevice(device);
- EXPECT_EQ(1, gatt_disconnection_attempts_);
tommyt 2016/01/29 15:02:12 The destruction of the device no longer calls disc
ortuno 2016/01/29 16:23:53 @scheib: Should we add another member to Bluetooth
scheib 2016/01/29 21:50:58 Yes we should test this, and I think we can do it
tommyt 2016/02/01 14:37:13 I've resurrected this code and added some test cod
EXPECT_FALSE(gatt_connections_[0]->IsConnected());
EXPECT_FALSE(gatt_connections_[1]->IsConnected());

Powered by Google App Engine
This is Rietveld 408576698