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

Unified Diff: device/bluetooth/test/test_bluetooth_local_gatt_service_delegate.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/test_bluetooth_local_gatt_service_delegate.h
diff --git a/device/bluetooth/test/test_bluetooth_local_gatt_service_delegate.h b/device/bluetooth/test/test_bluetooth_local_gatt_service_delegate.h
index dec6c7a676acb35bbf2da1cea7926d6e03a6e707..545e72b0185238e2f9383e27b012c06db8a64b26 100644
--- a/device/bluetooth/test/test_bluetooth_local_gatt_service_delegate.h
+++ b/device/bluetooth/test/test_bluetooth_local_gatt_service_delegate.h
@@ -20,7 +20,9 @@ class TestBluetoothLocalGattServiceDelegate
: public BluetoothLocalGattService::Delegate {
public:
TestBluetoothLocalGattServiceDelegate();
+ ~TestBluetoothLocalGattServiceDelegate();
xiyuan 2016/05/12 19:49:43 nit: make it virtual? Or add a dtor to Delegate in
rkc 2016/05/12 20:12:49 Done.
+ // BluetoothLocalGattService::Delegate overrides:
void OnCharacteristicReadRequest(
const BluetoothLocalGattService* service,
const BluetoothLocalGattCharacteristic* characteristic,
@@ -46,6 +48,15 @@ class TestBluetoothLocalGattServiceDelegate
int offset,
const base::Closure& callback,
const ErrorCallback& error_callback) override;
+ void OnNotificationsStart(
+ const BluetoothLocalGattService* service,
+ const BluetoothLocalGattCharacteristic* characteristic) override;
+ void OnNotificationsStop(
+ const BluetoothLocalGattService* service,
+ const BluetoothLocalGattCharacteristic* characteristic) override;
+
+ bool NotificationStatusForCharacteristic(
+ BluetoothLocalGattCharacteristic* characteristic);
void set_expected_service(BluetoothLocalGattService* service) {
expected_service_ = service;
@@ -69,6 +80,8 @@ class TestBluetoothLocalGattServiceDelegate
BluetoothLocalGattCharacteristic* expected_characteristic_;
BluetoothLocalGattDescriptor* expected_descriptor_;
+ std::map<std::string, bool> notifications_started_for_characteristic_;
+
DISALLOW_COPY_AND_ASSIGN(TestBluetoothLocalGattServiceDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698