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

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

Issue 1618273002: Call BluetoothGatt#close() after disconnecting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call parent class' TearDown Created 4 years, 11 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
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 b2bec9d5e71cd556a83980fe0f35fe7f203e5146..7f39099b6635422548f9f1018f70ecfbf78221c0 100644
--- a/device/bluetooth/test/bluetooth_test_android.h
+++ b/device/bluetooth/test/bluetooth_test_android.h
@@ -22,6 +22,7 @@ class BluetoothTestAndroid : public BluetoothTestBase {
// Test overrides:
void SetUp() override;
+ void TearDown() override;
// BluetoothTestBase overrides:
bool PlatformSupportsLowEnergy() override;
@@ -80,6 +81,11 @@ class BluetoothTestAndroid : public BluetoothTestBase {
JNIEnv* env,
const base::android::JavaParamRef<jobject>& caller);
+ // Records that Java FakeBluetoothGatt close was called.
+ void OnFakeBluetoothGattClose(
+ JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& caller);
+
// Records that Java FakeBluetoothGatt discoverServices was called.
void OnFakeBluetoothGattDiscoverServices(
JNIEnv* env,
@@ -109,6 +115,8 @@ class BluetoothTestAndroid : public BluetoothTestBase {
const base::android::JavaParamRef<jbyteArray>& value);
base::android::ScopedJavaGlobalRef<jobject> j_fake_bluetooth_adapter_;
+
+ int gatt_open_connections_ = 0;
};
// Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName).

Powered by Google App Engine
This is Rietveld 408576698