Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2022)

Unified Diff: device/bluetooth/test/bluetooth_test_android.cc

Issue 1215303006: bluetooth: android: Initial BluetoothDeviceAndroid implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bta-discovery-
Patch Set: Merge TOT Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/bluetooth/test/bluetooth_test_android.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « device/bluetooth/test/bluetooth_test_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698