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

Issue 2858803003: bluetooth: Implement simulatePreconnectedPeripheral. (Closed)

Created:
3 years, 7 months ago by ortuno
Modified:
3 years, 7 months ago
Reviewers:
scheib, dcheng
CC:
Aaron Boodman, abarth-chromium, blink-reviews, chromium-reviews, darin (slow to review), ortuno+watch_chromium.org, qsr+mojo_chromium.org, scheib+watch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Implement simulatePreconnectedPeripheral. simulatePreconnectedPeripherals allows clients to simulate peripherals that already connected to the system but that the UA doesn't know about. Adds a new helper method to create system-connected devices and uses the method in a couple of tests. BUG=569709 Review-Url: https://codereview.chromium.org/2858803003 Cr-Commit-Position: refs/heads/master@{#471190} Committed: https://chromium.googlesource.com/chromium/src/+/db0faa445ba5669a0cba507ea02308832d1cb2f1

Patch Set 1 #

Patch Set 2 : moar tests #

Patch Set 3 : moar clean up #

Patch Set 4 : remove unused adapters #

Patch Set 5 : small cleanup #

Total comments: 11

Patch Set 6 : Address feedback #

Patch Set 7 : Address feedback #

Patch Set 8 : MOar fixes #

Total comments: 4

Patch Set 9 : Address moar feedback #

Total comments: 6

Patch Set 10 : std::unique_ptr => auto #

Patch Set 11 : fix merge problem #

Patch Set 12 : Use once callback #

Patch Set 13 : Merge branch 'master' into bluetooth-simulate-preconnected #

Unified diffs Side-by-side diffs Delta from patch set Stats (+374 lines, -78 lines) Patch
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -24 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +0 lines, -37 lines 0 comments Download
M device/bluetooth/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M device/bluetooth/public/interfaces/test/fake_bluetooth.mojom View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -0 lines 0 comments Download
M device/bluetooth/test/fake_central.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M device/bluetooth/test/fake_central.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +23 lines, -1 line 0 comments Download
A device/bluetooth/test/fake_peripheral.h View 1 2 3 4 5 6 7 8 1 chunk +89 lines, -0 lines 0 comments Download
A device/bluetooth/test/fake_peripheral.cc View 1 2 3 4 5 6 7 8 1 chunk +184 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice/acceptAllDevices/device-with-empty-name.html View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice/acceptAllDevices/device-with-name.html View 1 2 3 4 5 6 7 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/device-name-longer-than-29-bytes.html View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/unicode-valid-length-name-name.html View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/unicode-valid-length-name-namePrefix.html View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-empty-device-from-name-empty-filter.html View 1 2 3 4 5 6 7 1 chunk +7 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/resources/bluetooth/bluetooth-helpers.js View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/resources/bluetooth/web-bluetooth-test.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +30 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 56 (38 generated)
ortuno
scheib: PTAL
3 years, 7 months ago (2017-05-03 06:29:49 UTC) #12
scheib
small bits, but one important Q regarding structure of adding peripherals to the fake central: ...
3 years, 7 months ago (2017-05-03 20:38:49 UTC) #15
ortuno
FYI simulatePreconnectedPeripheral in web-bluetooth-test.js changed a bit. https://codereview.chromium.org/2858803003/diff/80001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom File device/bluetooth/public/interfaces/test/fake_bluetooth.mojom (right): https://codereview.chromium.org/2858803003/diff/80001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom#newcode44 device/bluetooth/public/interfaces/test/fake_bluetooth.mojom:44: // connected ...
3 years, 7 months ago (2017-05-04 04:16:21 UTC) #16
scheib
https://codereview.chromium.org/2858803003/diff/80001/device/bluetooth/test/fake_central.cc File device/bluetooth/test/fake_central.cc (right): https://codereview.chromium.org/2858803003/diff/80001/device/bluetooth/test/fake_central.cc#newcode29 device/bluetooth/test/fake_central.cc:29: if (device_iter == devices_.end()) { On 2017/05/04 04:16:21, ortuno ...
3 years, 7 months ago (2017-05-04 04:54:21 UTC) #20
scheib
https://codereview.chromium.org/2858803003/diff/140001/device/bluetooth/test/fake_central.cc File device/bluetooth/test/fake_central.cc (right): https://codereview.chromium.org/2858803003/diff/140001/device/bluetooth/test/fake_central.cc#newcode40 device/bluetooth/test/fake_central.cc:40: fake_peripheral->SetName(name); Here it is, I missed it.
3 years, 7 months ago (2017-05-04 05:14:45 UTC) #21
ortuno
https://codereview.chromium.org/2858803003/diff/140001/device/bluetooth/test/fake_central.cc File device/bluetooth/test/fake_central.cc (right): https://codereview.chromium.org/2858803003/diff/140001/device/bluetooth/test/fake_central.cc#newcode40 device/bluetooth/test/fake_central.cc:40: fake_peripheral->SetName(name); On 2017/05/04 at 05:14:45, scheib wrote: > Here ...
3 years, 7 months ago (2017-05-04 07:02:21 UTC) #22
scheib
lgtm
3 years, 7 months ago (2017-05-04 21:42:31 UTC) #23
ortuno
dcheng: PTAL
3 years, 7 months ago (2017-05-04 21:50:03 UTC) #25
dcheng
https://codereview.chromium.org/2858803003/diff/160001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom File device/bluetooth/public/interfaces/test/fake_bluetooth.mojom (right): https://codereview.chromium.org/2858803003/diff/160001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom#newcode49 device/bluetooth/public/interfaces/test/fake_bluetooth.mojom:49: SimulatePreconnectedPeripheral(string address, string name) => (); Is there any ...
3 years, 7 months ago (2017-05-05 06:18:48 UTC) #26
ortuno
https://codereview.chromium.org/2858803003/diff/160001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom File device/bluetooth/public/interfaces/test/fake_bluetooth.mojom (right): https://codereview.chromium.org/2858803003/diff/160001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom#newcode49 device/bluetooth/public/interfaces/test/fake_bluetooth.mojom:49: SimulatePreconnectedPeripheral(string address, string name) => (); On 2017/05/05 at ...
3 years, 7 months ago (2017-05-08 01:08:13 UTC) #27
dcheng
https://codereview.chromium.org/2858803003/diff/160001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom File device/bluetooth/public/interfaces/test/fake_bluetooth.mojom (right): https://codereview.chromium.org/2858803003/diff/160001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom#newcode49 device/bluetooth/public/interfaces/test/fake_bluetooth.mojom:49: SimulatePreconnectedPeripheral(string address, string name) => (); On 2017/05/08 01:08:13, ...
3 years, 7 months ago (2017-05-09 04:20:07 UTC) #28
ortuno
https://codereview.chromium.org/2858803003/diff/160001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom File device/bluetooth/public/interfaces/test/fake_bluetooth.mojom (right): https://codereview.chromium.org/2858803003/diff/160001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom#newcode49 device/bluetooth/public/interfaces/test/fake_bluetooth.mojom:49: SimulatePreconnectedPeripheral(string address, string name) => (); On 2017/05/09 at ...
3 years, 7 months ago (2017-05-09 04:25:12 UTC) #29
dcheng
On 2017/05/09 04:25:12, ortuno wrote: > https://codereview.chromium.org/2858803003/diff/160001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom > File device/bluetooth/public/interfaces/test/fake_bluetooth.mojom (right): > > https://codereview.chromium.org/2858803003/diff/160001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom#newcode49 > ...
3 years, 7 months ago (2017-05-10 05:04:54 UTC) #30
ortuno
On 2017/05/10 at 05:04:54, dcheng wrote: > On 2017/05/09 04:25:12, ortuno wrote: > > https://codereview.chromium.org/2858803003/diff/160001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom ...
3 years, 7 months ago (2017-05-10 07:10:21 UTC) #31
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/2858803003/220001
3 years, 7 months ago (2017-05-11 21:09:41 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/442412)
3 years, 7 months ago (2017-05-11 23:43:24 UTC) #44
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/2858803003/240001
3 years, 7 months ago (2017-05-12 02:31:25 UTC) #53
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 02:37:39 UTC) #56
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/db0faa445ba5669a0cba507ea023...

Powered by Google App Engine
This is Rietveld 408576698