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

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

Issue 1422463012: bluetooth: android: Implement StartNotifySession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed ortuno Created 5 years, 1 month 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 48939b371f8d99bc140fccafff1049aade909327..0c2b356965ce8acb76a0ccf73f36ac506a05f40e 100644
--- a/device/bluetooth/test/bluetooth_test_android.h
+++ b/device/bluetooth/test/bluetooth_test_android.h
@@ -38,6 +38,10 @@ class BluetoothTestAndroid : public BluetoothTestBase {
void SimulateGattCharacteristic(BluetoothGattService* service,
const std::string& uuid,
int properties) override;
+ virtual void SimulateGattNotifySessionStarted(
+ BluetoothGattCharacteristic* characteristic) override;
+ virtual void SimulateGattCharacteristicSetNotifyWillFailSynchronouslyOnce(
+ BluetoothGattCharacteristic* characteristic) override;
void SimulateGattCharacteristicRead(
BluetoothGattCharacteristic* characteristic,
const std::vector<uint8>& value) override;
@@ -63,10 +67,15 @@ class BluetoothTestAndroid : public BluetoothTestBase {
// Records that Java FakeBluetoothGatt discoverServices was called.
void OnFakeBluetoothGattDiscoverServices(JNIEnv* env, jobject caller);
- // Records that Java FakeBluetoothGatt discoverServices was called.
+ // Records that Java FakeBluetoothGatt setCharacteristicNotification was
+ // called.
+ void OnFakeBluetoothGattSetCharacteristicNotification(JNIEnv* env,
+ jobject caller);
+
+ // Records that Java FakeBluetoothGatt readCharacteristic was called.
void OnFakeBluetoothGattReadCharacteristic(JNIEnv* env, jobject caller);
- // Records that Java FakeBluetoothGatt discoverServices was called.
+ // Records that Java FakeBluetoothGatt writeCharacteristic was called.
void OnFakeBluetoothGattWriteCharacteristic(JNIEnv* env,
jobject caller,
jbyteArray value);
« 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