| Index: device/bluetooth/bluetooth_gatt_descriptor_unittest.cc
|
| diff --git a/device/bluetooth/bluetooth_gatt_descriptor_unittest.cc b/device/bluetooth/bluetooth_gatt_descriptor_unittest.cc
|
| index 190de7dbc645ed2a8f7ad6a362cec889351f922d..3d6aedd844b32ccb91e7392cebf55d070704d3cc 100644
|
| --- a/device/bluetooth/bluetooth_gatt_descriptor_unittest.cc
|
| +++ b/device/bluetooth/bluetooth_gatt_descriptor_unittest.cc
|
| @@ -202,6 +202,9 @@ TEST_F(BluetoothGattDescriptorTest, WriteRemoteDescriptor_Empty) {
|
| EXPECT_EQ(1, gatt_write_descriptor_attempts_);
|
| SimulateGattDescriptorWrite(descriptor1_);
|
|
|
| + // Duplicate write reported from OS shouldn't cause a problem:
|
| + SimulateGattDescriptorWrite(descriptor1_);
|
| +
|
| EXPECT_EQ(empty_vector, last_write_value_);
|
| }
|
| #endif // defined(OS_ANDROID)
|
| @@ -215,7 +218,7 @@ TEST_F(BluetoothGattDescriptorTest, ReadRemoteDescriptor_AfterDeleted) {
|
| GetGattErrorCallback(Call::NOT_EXPECTED));
|
|
|
| RememberDescriptorForSubsequentAction(descriptor1_);
|
| - DeleteDevice(device_);
|
| + DeleteDevice(device_); // TODO(576906) delete only the descriptor.
|
|
|
| std::vector<uint8_t> empty_vector;
|
| SimulateGattDescriptorRead(/* use remembered descriptor */ nullptr,
|
| @@ -235,7 +238,7 @@ TEST_F(BluetoothGattDescriptorTest, WriteRemoteDescriptor_AfterDeleted) {
|
| GetGattErrorCallback(Call::NOT_EXPECTED));
|
|
|
| RememberDescriptorForSubsequentAction(descriptor1_);
|
| - DeleteDevice(device_);
|
| + DeleteDevice(device_); // TODO(576906) delete only the descriptor.
|
|
|
| SimulateGattDescriptorWrite(/* use remembered descriptor */ nullptr);
|
| EXPECT_TRUE("Did not crash!");
|
|
|