| 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 1be588d51643d5559b18d5462e5313ab4ad5ba27..c5ae7d3118895cda3a210cd5119a1e3dca47f347 100644
|
| --- a/device/bluetooth/test/bluetooth_test_android.cc
|
| +++ b/device/bluetooth/test/bluetooth_test_android.cc
|
| @@ -7,6 +7,7 @@
|
| #include "base/logging.h"
|
| #include "device/bluetooth/android/wrappers.h"
|
| #include "device/bluetooth/bluetooth_adapter_android.h"
|
| +#include "device/bluetooth/bluetooth_device_android.h"
|
| #include "jni/Fakes_jni.h"
|
|
|
| using base::android::AttachCurrentThread;
|
| @@ -52,4 +53,13 @@ void BluetoothTestAndroid::DiscoverLowEnergyDevice(int device_ordinal) {
|
| AttachCurrentThread(), j_fake_bluetooth_adapter_.obj(), device_ordinal);
|
| }
|
|
|
| +void BluetoothTestAndroid::CompleteGattConnection(BluetoothDevice* device) {
|
| + BluetoothDeviceAndroid* device_android =
|
| + static_cast<BluetoothDeviceAndroid*>(device);
|
| +
|
| + Java_FakeBluetoothDevice_connectionStateChange(
|
| + AttachCurrentThread(), device_android->GetJavaObject().obj(),
|
| + true /* success */, true /* connected */);
|
| +}
|
| +
|
| } // namespace device
|
|
|