| 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 ef047fab857b1554dda8aba7bb374af404199511..1d1498cbf69b61074777280a54de34843e615c2d 100644
|
| --- a/device/bluetooth/test/bluetooth_test_android.cc
|
| +++ b/device/bluetooth/test/bluetooth_test_android.cc
|
| @@ -15,6 +15,7 @@
|
| #include "device/bluetooth/bluetooth_adapter_android.h"
|
| #include "device/bluetooth/bluetooth_device_android.h"
|
| #include "device/bluetooth/bluetooth_remote_gatt_characteristic_android.h"
|
| +#include "device/bluetooth/bluetooth_remote_gatt_descriptor_android.h"
|
| #include "device/bluetooth/bluetooth_remote_gatt_service_android.h"
|
| #include "device/bluetooth/test/test_bluetooth_adapter_observer.h"
|
| #include "jni/Fakes_jni.h"
|
| @@ -264,6 +265,18 @@ void BluetoothTestAndroid::
|
| characteristic_android->GetJavaObject().obj());
|
| }
|
|
|
| +void BluetoothTestAndroid::SimulateGattDescriptor(
|
| + BluetoothGattCharacteristic* characteristic,
|
| + const std::string& uuid) {
|
| + BluetoothRemoteGattCharacteristicAndroid* characteristic_android =
|
| + static_cast<BluetoothRemoteGattCharacteristicAndroid*>(characteristic);
|
| + JNIEnv* env = base::android::AttachCurrentThread();
|
| +
|
| + Java_FakeBluetoothGattCharacteristic_addDescriptor(
|
| + env, characteristic_android->GetJavaObject().obj(),
|
| + base::android::ConvertUTF8ToJavaString(env, uuid).obj());
|
| +}
|
| +
|
| void BluetoothTestAndroid::OnFakeBluetoothDeviceConnectGattCalled(
|
| JNIEnv* env,
|
| const JavaParamRef<jobject>& caller) {
|
|
|