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

Issue 2443473003: bluetooth: Require frame to be connected for characteristic.readValue to succeed (Closed)

Created:
4 years, 2 months ago by ortuno
Modified:
4 years, 1 month ago
Reviewers:
Jeffrey Yasskin
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, einbinder+watch-test-runner_chromium.org, haraken, jam, jochen+watch_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, ortuno+watch_chromium.org, Peter Beverloo, scheib+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Require frame to be connected for characteristic.readValue to succeed Rejects characteristic.readValue if the frame is not connected or if the frame disconnects during the operation. The new adapter has a Health Thermometer service with a measurement interval characteristic. We use this characteristic because it the only standard characteristic that supports Read, Write and Notify. Reconnection tests in follow up patch: http://crrev.com/2438963002 BUG=608538 Committed: https://crrev.com/0d1db684a6570d46b61fa141bc37ac95f3a6876a Cr-Commit-Position: refs/heads/master@{#427007}

Patch Set 1 #

Patch Set 2 : Clean up #

Total comments: 1

Patch Set 3 : Fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+440 lines, -56 lines) Patch
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h View 1 3 chunks +36 lines, -3 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc View 1 2 7 chunks +84 lines, -25 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/readValue/gen-gatt-op-device-disconnects-before.html View 1 3 chunks +12 lines, -8 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/readValue/gen-gatt-op-device-disconnects-during-error.html View 1 3 chunks +14 lines, -8 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/readValue/gen-gatt-op-device-disconnects-during-success.html View 1 3 chunks +14 lines, -8 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/readValue/gen-gatt-op-disconnect-called-before.html View 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/readValue/gen-gatt-op-disconnect-called-during-error.html View 1 chunk +30 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/readValue/gen-gatt-op-disconnect-called-during-success.html View 1 chunk +31 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/gatt-op-device-disconnects-before.js View 1 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/gatt-op-device-disconnects-during-error.js View 1 1 chunk +30 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/gatt-op-device-disconnects-during-success.js View 1 1 chunk +30 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/gatt-op-disconnect-called-before.js View 1 chunk +20 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/gatt-op-disconnect-called-during-error.js View 1 chunk +22 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/gatt-op-disconnect-called-during-success.js View 1 chunk +23 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.h View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp View 3 chunks +35 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 21 (13 generated)
ortuno
jyasskin: PTAL.
4 years, 2 months ago (2016-10-21 05:48:53 UTC) #5
Jeffrey Yasskin
https://codereview.chromium.org/2443473003/diff/20001/third_party/WebKit/LayoutTests/bluetooth/script-tests/gatt-op-device-disconnects-before.js File third_party/WebKit/LayoutTests/bluetooth/script-tests/gatt-op-device-disconnects-before.js (right): https://codereview.chromium.org/2443473003/diff/20001/third_party/WebKit/LayoutTests/bluetooth/script-tests/gatt-op-device-disconnects-before.js#newcode22 third_party/WebKit/LayoutTests/bluetooth/script-tests/gatt-op-device-disconnects-before.js:22: measurement_interval.CALLS([readValue()]), I don't think we should generate tests when ...
4 years, 2 months ago (2016-10-21 22:40:15 UTC) #8
blink-reviews
I wrote these tests with only a readValue call to keep the patch size small. ...
4 years, 2 months ago (2016-10-21 22:56:33 UTC) #9
chromium-reviews
I wrote these tests with only a readValue call to keep the patch size small. ...
4 years, 2 months ago (2016-10-21 22:56:33 UTC) #10
Jeffrey Yasskin
'k, LGTM then.
4 years, 2 months ago (2016-10-21 23:06:23 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2443473003/40001
4 years, 1 month ago (2016-10-24 01:39:13 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-10-24 01:51:43 UTC) #19
commit-bot: I haz the power
4 years, 1 month ago (2016-10-24 01:54:47 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0d1db684a6570d46b61fa141bc37ac95f3a6876a
Cr-Commit-Position: refs/heads/master@{#427007}

Powered by Google App Engine
This is Rietveld 408576698