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 b763733b51d2b31a2dc2215273e6388026634923..2c2746d35d9a10b910462be2de02ec1a01a7028a 100644 |
--- a/device/bluetooth/test/bluetooth_test_android.cc |
+++ b/device/bluetooth/test/bluetooth_test_android.cc |
@@ -73,6 +73,13 @@ bool BluetoothTestAndroid::DenyPermission() { |
return true; |
} |
+void BluetoothTestAndroid::SetBonded(BluetoothDevice* device) { |
+ BluetoothDeviceAndroid* device_android = |
+ static_cast<BluetoothDeviceAndroid*>(device); |
+ Java_FakeBluetoothDevice_setBonded(AttachCurrentThread(), |
+ device_android->GetJavaObject().obj()); |
+} |
+ |
BluetoothDevice* BluetoothTestAndroid::SimulateLowEnergyDevice( |
int device_ordinal) { |
TestBluetoothAdapterObserver observer(adapter_); |