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

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

Issue 1973703002: Implement //device/bt changes for notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@notifications_dbus
Patch Set: Created 4 years, 7 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.h
diff --git a/device/bluetooth/test/bluetooth_test.h b/device/bluetooth/test/bluetooth_test.h
index 31a6443b3ba222152e720af7beeb2ca21b8c054c..f36752c73c1212a8ce6022ce55ab546fac1d2715 100644
--- a/device/bluetooth/test/bluetooth_test.h
+++ b/device/bluetooth/test/bluetooth_test.h
@@ -254,6 +254,19 @@ class BluetoothTestBase : public testing::Test {
const base::Closure& success_callback,
const base::Closure& error_callback) {}
+ // Simulates starting or stopping a notification session for a locally
+ // hosted GATT characteristic by a remote device. Returns false if we were
+ // not able to start or stop notifications.
+ virtual bool SimulateLocalGattCharacteristicNotificationsRequest(
+ BluetoothLocalGattService* service,
+ BluetoothLocalGattCharacteristic* characteristic,
+ bool start);
+
+ // Returns the value for the last notification that was sent on this
+ // characteristic.
+ virtual std::vector<uint8_t> LastNotifactionValueForCharacteristic(
+ BluetoothLocalGattCharacteristic* characteristic);
+
// Remembers |descriptor|'s platform specific object to be used in a
// subsequent call to methods such as SimulateGattDescriptorRead that
// accept a nullptr value to select this remembered descriptor. This
« no previous file with comments | « device/bluetooth/dbus/bluetooth_gatt_characteristic_delegate_wrapper.cc ('k') | device/bluetooth/test/bluetooth_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698