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

Issue 2441313002: bluetooth: Introduce helper function for requesting a disconnection (Closed)

Created:
4 years, 2 months ago by ortuno
Modified:
4 years, 1 month ago
Reviewers:
scheib
CC:
blink-reviews, chromium-reviews, ortuno+watch_chromium.org, scheib+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Introduce helper function for requesting a disconnection Introduces a new helper function that will contain "requestDisconnection.writeValue(...)" wrapped inside a assert_promise_rejects_with_message. We need to wrap the disconnection request because writeValue will soon require a frame to be connected for operations to succeed. BUG=608538 Committed: https://crrev.com/f97d6a29e488d8a57764e1a45c054ef3dc2d421e Cr-Commit-Position: refs/heads/master@{#427594}

Patch Set 1 #

Patch Set 2 : Add docs #

Total comments: 2

Patch Set 3 : Add example to function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -120 lines) Patch
M third_party/WebKit/LayoutTests/bluetooth/connect/connect-disconnected-connect.html View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/gattserverdisconnected-event/disconnected.html View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/gattserverdisconnected-event/disconnected_gc.html View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/gattserverdisconnected-event/one-event-per-disconnection.html View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/gattserverdisconnected-event/reconnect-during-disconnected-event.html View 2 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getCharacteristic/device-disconnects-before.html View 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getCharacteristic/device-disconnects-during.html View 1 chunk +2 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/device-disconnects-before.html View 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/device-disconnects-before-with-uuid.html View 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/device-disconnects-during.html View 1 chunk +2 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/device-disconnects-during-with-uuid.html View 1 chunk +2 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getPrimaryService/device-disconnects-during-error.html View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getPrimaryService/device-disconnects-during-success.html View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getPrimaryService/gen-service-device-disconnects-before.html View 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/device-disconnects-during-error-with-uuid.html View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/device-disconnects-during-success.html View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/device-disconnects-during-success-with-uuid.html View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/gen-service-device-disconnects-before.html View 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/gen-service-device-disconnects-before-with-uuid.html View 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/readValue/gen-gatt-op-device-disconnects-before.html View 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/readValue/gen-gatt-op-device-disconnects-during-error.html View 1 chunk +2 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/readValue/gen-gatt-op-device-disconnects-during-success.html View 1 chunk +2 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/script-tests/gatt-op-device-disconnects-before.js View 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/script-tests/gatt-op-device-disconnects-during-error.js View 1 chunk +2 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/script-tests/gatt-op-device-disconnects-during-success.js View 1 chunk +2 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/script-tests/service-device-disconnects-before.js View 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/resources/bluetooth/bluetooth-helpers.js View 1 2 1 chunk +16 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 14 (8 generated)
ortuno
scheib: PTAL
4 years, 1 month ago (2016-10-24 21:26:39 UTC) #6
scheib
LGTM with suggestion for helper comment https://codereview.chromium.org/2441313002/diff/20001/third_party/WebKit/LayoutTests/resources/bluetooth/bluetooth-helpers.js File third_party/WebKit/LayoutTests/resources/bluetooth/bluetooth-helpers.js (right): https://codereview.chromium.org/2441313002/diff/20001/third_party/WebKit/LayoutTests/resources/bluetooth/bluetooth-helpers.js#newcode321 third_party/WebKit/LayoutTests/resources/bluetooth/bluetooth-helpers.js:321: // Returns a ...
4 years, 1 month ago (2016-10-25 04:28:05 UTC) #7
ortuno
Thanks! https://codereview.chromium.org/2441313002/diff/20001/third_party/WebKit/LayoutTests/resources/bluetooth/bluetooth-helpers.js File third_party/WebKit/LayoutTests/resources/bluetooth/bluetooth-helpers.js (right): https://codereview.chromium.org/2441313002/diff/20001/third_party/WebKit/LayoutTests/resources/bluetooth/bluetooth-helpers.js#newcode321 third_party/WebKit/LayoutTests/resources/bluetooth/bluetooth-helpers.js:321: // Returns a function that when called returns ...
4 years, 1 month ago (2016-10-26 04:03:22 UTC) #9
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/2441313002/40001
4 years, 1 month ago (2016-10-26 04:04:01 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-10-26 05:03:54 UTC) #12
commit-bot: I haz the power
4 years, 1 month ago (2016-10-26 05:05:46 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f97d6a29e488d8a57764e1a45c054ef3dc2d421e
Cr-Commit-Position: refs/heads/master@{#427594}

Powered by Google App Engine
This is Rietveld 408576698