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

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

Issue 2499913002: bluetooth: android: Implement RetrieveGattConnectedDevicesWithFilter
Patch Set: rebase Created 4 years 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.cc ('k') | device/bluetooth/test/bluetooth_test_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/test/bluetooth_test_android.h
diff --git a/device/bluetooth/test/bluetooth_test_android.h b/device/bluetooth/test/bluetooth_test_android.h
index c91f0a11783479223c17ed78c9baf1c49357de27..9d9914db602b1e9f6f6ac13007185f5d00694e88 100644
--- a/device/bluetooth/test/bluetooth_test_android.h
+++ b/device/bluetooth/test/bluetooth_test_android.h
@@ -31,6 +31,8 @@ class BluetoothTestAndroid : public BluetoothTestBase {
void InitWithFakeAdapter() override;
bool DenyPermission() override;
BluetoothDevice* SimulateLowEnergyDevice(int device_ordinal) override;
+ void SimulateConnectedLowEnergyDevice(
+ ConnectedDeviceType device_type) override;
void RememberDeviceForSubsequentAction(BluetoothDevice* device) override;
void SimulateGattConnection(BluetoothDevice* device) override;
void SimulateGattConnectionError(BluetoothDevice* device,
@@ -157,6 +159,11 @@ class BluetoothTestAndroid : public BluetoothTestBase {
const base::android::JavaParamRef<jobject>& caller,
const base::android::JavaParamRef<jbyteArray>& value);
+ // Records that Java FakeBluetoothManager getConnectedDevices was called.
+ void OnFakeManagerGetConnectedDevices(
+ JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& caller);
+
// Records that Java FakeBluetoothAdapter onAdapterStateChanged was called.
void OnFakeAdapterStateChanged(
JNIEnv* env,
@@ -164,6 +171,7 @@ class BluetoothTestAndroid : public BluetoothTestBase {
const bool powered);
base::android::ScopedJavaGlobalRef<jobject> j_fake_bluetooth_adapter_;
+ base::android::ScopedJavaGlobalRef<jobject> j_fake_bluetooth_manager_;
int gatt_open_connections_ = 0;
BluetoothRemoteGattDescriptor* remembered_ccc_descriptor_ = nullptr;
« no previous file with comments | « device/bluetooth/test/bluetooth_test.cc ('k') | device/bluetooth/test/bluetooth_test_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698