Index: device/bluetooth/test/bluetooth_test_android.cc |
diff --git a/device/bluetooth/test/bluetooth_test_android.cc b/device/bluetooth/test/bluetooth_test_android.cc |
index b1cd3577077a662699086331ffb9ea05e38a2575..af56f013d43180ce56a062765ba4a6b20b9ece22 100644 |
--- a/device/bluetooth/test/bluetooth_test_android.cc |
+++ b/device/bluetooth/test/bluetooth_test_android.cc |
@@ -176,8 +176,11 @@ void BluetoothTestAndroid::RememberCharacteristicForSubsequentAction( |
void BluetoothTestAndroid::SimulateGattNotifySessionStarted( |
BluetoothGattCharacteristic* characteristic) { |
- BluetoothGattDescriptor* descriptor = characteristic->GetDescriptorForUUID( |
- BluetoothGattDescriptor::ClientCharacteristicConfigurationUuid()); |
+ BluetoothGattDescriptor* descriptor = |
+ characteristic |
+ ->GetDescriptorsForUUID( |
+ BluetoothGattDescriptor::ClientCharacteristicConfigurationUuid()) |
+ .at(0); |
BluetoothRemoteGattDescriptorAndroid* descriptor_android = |
static_cast<BluetoothRemoteGattDescriptorAndroid*>(descriptor); |
Java_FakeBluetoothGattDescriptor_valueWrite( |