Chromium Code Reviews| Index: content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h |
| diff --git a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h |
| index 481dedfdfb45cff32ab6b09aa55bb698f6745093..64d0f303fd37eba6f8c640099f472f241079b58b 100644 |
| --- a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h |
| +++ b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h |
| @@ -168,9 +168,15 @@ class LayoutTestBluetoothAdapterProvider { |
| // - Generic Access UUID (0x1800) |
| // - Heart Rate UUID (0x180D) |
| // - Heart Rate Service |
| + // - Body Sensor Location |
| + // - Mock Functions: |
| + // - Read: Calls GattCharacteristicValueChanged and success |
| + // callback with [1] which corresponds to chest. |
| // - Heart Rate Measurement Characteristic: |
| // - Mock Functions: |
| - // - StartNotifySession: Calls success callback with a |
| + // - StartNotifySession: Sets a timer to call |
| + // GattCharacteristicValueChanged every 10ms and calls success |
|
Jeffrey Yasskin
2015/10/15 23:00:51
Good hack. Can you file a bug to change this to an
ortuno
2015/10/16 01:24:21
Done.
|
| + // callback with a |
| // BaseGATTNotifySession(characteristic_instance_id) |
| static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> |
| GetHeartRateAdapter(); |
| @@ -432,7 +438,7 @@ class LayoutTestBluetoothAdapterProvider { |
| // - IsActive: |
| // Returns: true |
| // - Stop: |
| - // Run callback. |
| + // Stops calling GattCharacteristicValueChanged and runs callback. |
| static scoped_ptr<testing::NiceMock<device::MockBluetoothGattNotifySession>> |
| GetBaseGATTNotifySession(const std::string& characteristic_identifier); |