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

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..ec5e65eca4da18fb5f5360794f1f45e087b0a859 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();
+ virtual ~TestBluetoothLocalGattServiceDelegate();
+ // 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);
};
« no previous file with comments | « device/bluetooth/test/bluetooth_test_bluez.cc ('k') | device/bluetooth/test/test_bluetooth_local_gatt_service_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698