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

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

Issue 1256313002: bluetooth: android: Implement & test CreateGattConnection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split tests up into smaller tests Created 5 years, 3 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.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 63e8f9fa82533d96b387221b235fbab5d6985e40..f28b745a01fb6ac0122fa37e1eacbdcde0bb7ad8 100644
--- a/device/bluetooth/test/bluetooth_test_android.h
+++ b/device/bluetooth/test/bluetooth_test_android.h
@@ -27,6 +27,16 @@ class BluetoothTestAndroid : public BluetoothTestBase {
void InitWithoutDefaultAdapter() override;
void InitWithFakeAdapter() override;
void DiscoverLowEnergyDevice(int device_ordinal) override;
+ void CompleteGattConnection(BluetoothDevice* device) override;
+ void FailGattConnection(BluetoothDevice* device,
+ BluetoothDevice::ConnectErrorCode) override;
+ void CompleteGattDisconnection(BluetoothDevice* device) override;
+
+ // Records that Java FakeBluetoothDevice connectGatt was called.
+ void OnBluetoothDeviceConnectGattCalled(JNIEnv* env, jobject caller);
+
+ // Records that Java FakeBluetoothGatt disconnect was called.
+ void OnFakeBluetoothGattDisconnect(JNIEnv* env, jobject caller);
base::android::ScopedJavaGlobalRef<jobject> j_fake_bluetooth_adapter_;
};
« 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