Chromium Code Reviews| Index: device/bluetooth/test/bluetooth_test.h |
| diff --git a/device/bluetooth/test/bluetooth_test.h b/device/bluetooth/test/bluetooth_test.h |
| index 52b6224174cf9a314d7a3983ab59dd6ff4fec8b2..68172e736b27fc59d0ee318d7c5c78a97a2c61a1 100644 |
| --- a/device/bluetooth/test/bluetooth_test.h |
| +++ b/device/bluetooth/test/bluetooth_test.h |
| @@ -56,6 +56,12 @@ class BluetoothTestBase : public testing::Test { |
| HEART_RATE_DEVICE, |
| }; |
| + enum class NotifyValueState { |
| + NONE, |
| + NOTIFY, |
| + INDICATE, |
| + }; |
| + |
| static const std::string kTestAdapterName; |
| static const std::string kTestAdapterAddress; |
| @@ -401,6 +407,13 @@ class BluetoothTestBase : public testing::Test { |
| virtual void SimulateGattDescriptorWriteWillFailSynchronouslyOnce( |
| BluetoothRemoteGattDescriptor* descriptor) {} |
| + // Tests if the notify value attemps. |
|
ortuno
2017/02/23 05:56:00
Tests that functions to change the notify value ha
jlebel
2017/02/23 18:40:32
Done.
|
| + virtual void ExpectedChangeNotifyValueAttempts(int attempts); |
| + |
| + // Tests if the notify session has been changed. The default implementation |
|
ortuno
2017/02/23 05:56:00
Tests that the notify value is |expected_value_sta
jlebel
2017/02/23 18:40:32
Done.
|
| + // uses descriptors. |
| + virtual void ExpectedNotifyValue(NotifyValueState expected_value_state); |
| + |
| // Returns a list of local GATT services registered with the adapter. |
| virtual std::vector<BluetoothLocalGattService*> RegisteredGattServices(); |
| @@ -465,7 +478,7 @@ class BluetoothTestBase : public testing::Test { |
| bool error_in_reentrant); |
| // Reset all event count members to 0. |
| - void ResetEventCounts(); |
| + virtual void ResetEventCounts(); |
| void RemoveTimedOutDevices(); |