| 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..a3dfa4d16db9a4c130ba9655abe3974a270d9c7d 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
|
| + ->GetDescriptorsByUUID(
|
| + BluetoothGattDescriptor::ClientCharacteristicConfigurationUuid())
|
| + .at(0);
|
| BluetoothRemoteGattDescriptorAndroid* descriptor_android =
|
| static_cast<BluetoothRemoteGattDescriptorAndroid*>(descriptor);
|
| Java_FakeBluetoothGattDescriptor_valueWrite(
|
|
|