| 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 b41b95a8bafe215190730f61b270bd9ce810f180..b7bf980655c21c0457867f20f16f512486384e8f 100644
|
| --- a/device/bluetooth/test/bluetooth_test_android.cc
|
| +++ b/device/bluetooth/test/bluetooth_test_android.cc
|
| @@ -36,9 +36,16 @@ void BluetoothTestAndroid::InitWithoutDefaultAdapter() {
|
| }
|
|
|
| void BluetoothTestAndroid::InitWithFakeAdapter() {
|
| + j_fake_bluetooth_adapter_.Reset(
|
| + Java_FakeBluetoothAdapter_create(AttachCurrentThread()));
|
| +
|
| adapter_ =
|
| - BluetoothAdapterAndroid::Create(
|
| - Java_FakeBluetoothAdapter_create(AttachCurrentThread()).obj()).get();
|
| + BluetoothAdapterAndroid::Create(j_fake_bluetooth_adapter_.obj()).get();
|
| +}
|
| +
|
| +void BluetoothTestAndroid::DiscoverLowEnergyDevice(int device_ordinal) {
|
| + Java_FakeBluetoothAdapter_discoverLowEnergyDevice(
|
| + AttachCurrentThread(), j_fake_bluetooth_adapter_.obj(), device_ordinal);
|
| }
|
|
|
| } // namespace device
|
|
|