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

Unified Diff: device/bluetooth/bluetooth_device_unittest.cc

Issue 1369463004: bluetooth: android: Disconnect GATT upon BluetoothDeviceAndroid object destruction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « device/bluetooth/bluetooth_device_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_device_unittest.cc
diff --git a/device/bluetooth/bluetooth_device_unittest.cc b/device/bluetooth/bluetooth_device_unittest.cc
index 33c89fbd978b70757a33c65be410d6b4a4946488..368232d1e341b6c81d31ee9362657146d415f10c 100644
--- a/device/bluetooth/bluetooth_device_unittest.cc
+++ b/device/bluetooth/bluetooth_device_unittest.cc
@@ -180,7 +180,9 @@ TEST_F(BluetoothTest, BluetoothGattConnection) {
EXPECT_EQ(0, gatt_disconnection_attempt_count_);
// Delete device, connection objects should all be disconnected.
+ gatt_disconnection_attempt_count_ = 0;
DeleteDevice(device);
+ EXPECT_EQ(1, gatt_disconnection_attempt_count_);
EXPECT_FALSE(gatt_connections_[0]->IsConnected());
EXPECT_FALSE(gatt_connections_[1]->IsConnected());
« no previous file with comments | « device/bluetooth/bluetooth_device_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698