Chromium Code Reviews| 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); |
| }; |