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()); |