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 31a6443b3ba222152e720af7beeb2ca21b8c054c..a410ce34a8f67673bc20412cf2de77c81b68a85c 100644 |
| --- a/device/bluetooth/test/bluetooth_test.h |
| +++ b/device/bluetooth/test/bluetooth_test.h |
| @@ -254,6 +254,21 @@ 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); |
| + |
| + // Simulates sending a value updated notification to a remote device. Returns |
|
scheib
2016/05/12 16:53:19
I think tests should call characteristic_->NotifyV
rkc
2016/05/12 20:12:49
The BlueZ implementation does check the result. I'
scheib
2016/05/12 20:38:27
I'm not feeling good about this approach. The meth
rkc
2016/05/12 21:19:18
Actually we don't really need to simulate a notifi
|
| + // false if the send was unsuccessful. |
| + virtual bool SimulateLocalGattCharacteristicSendValueUpdate( |
| + BluetoothLocalGattService* service, |
| + BluetoothLocalGattCharacteristic* characteristic, |
| + const std::vector<uint8_t>& new_value); |
| + |
| // 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 |