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

Issue 1815483003: bluetooth: Create Mojo equivalent of SetBluetoothMockDataSet (Closed)

Created:
4 years, 9 months ago by ortuno
Modified:
4 years, 8 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, blink-reviews, chromium-reviews, darin (slow to review), darin-cc_chromium.org, jam, jochen+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, ortuno+watch_chromium.org, Peter Beverloo, qsr+mojo_chromium.org, scheib+watch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@bluetooth-mojo
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Create Mojo equivalent of SetBluetoothMockDataSet Adds setBluetoothFakeAdapter to testRunner in order to set the fake adapter on the browser side. Also removes the old SetBluetoothMockDataSet. Since Web Bluetooth is transitioning to Mojo it can no longer rely on IPC::Message's ordering to set fake adapters. This is because there are no order guarantees between IPC::Message and Mojo and even between Mojo pipes. For this reason we introduce a new function that takes a callback that is run when the adapter has been set on the browser. Since IPC::Message is deprecated this new function uses Mojo to communicate with the browser. BUG=508771 Committed: https://crrev.com/f78c841627596d492015ffd5ebfd9e3d091522a7 Cr-Commit-Position: refs/heads/master@{#384350}

Patch Set 1 #

Patch Set 2 : Merge #

Patch Set 3 : Add gyp #

Total comments: 13

Patch Set 4 : Remove setBluetoothMockDataSet #

Patch Set 5 : Clean up #

Total comments: 6

Patch Set 6 : Address more comments #

Total comments: 4

Patch Set 7 : Address rockot's comments #

Patch Set 8 : Make Getter return a reference #

Patch Set 9 : MMerge with ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+785 lines, -525 lines) Patch
M components/test_runner/test_runner.h View 1 2 3 4 1 chunk +8 lines, -7 lines 0 comments Download
M components/test_runner/test_runner.cc View 1 2 3 4 5 5 chunks +21 lines, -14 lines 0 comments Download
M components/test_runner/web_test_delegate.h View 1 2 3 4 1 chunk +9 lines, -6 lines 0 comments Download
M content/content_shell.gypi View 1 2 3 3 chunks +24 lines, -1 line 0 comments Download
M content/shell/BUILD.gn View 1 2 3 4 5 6 7 8 4 chunks +10 lines, -0 lines 0 comments Download
A content/shell/browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.h View 1 chunk +40 lines, -0 lines 0 comments Download
A content/shell/browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.cc View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_content_browser_client.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_message_filter.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M content/shell/browser/layout_test/layout_test_message_filter.cc View 1 2 3 4 5 6 7 8 4 chunks +1 line, -12 lines 0 comments Download
A content/shell/common/layout_test/layout_test_bluetooth_fake_adapter_setter.mojom View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M content/shell/common/layout_test/layout_test_messages.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M content/shell/renderer/layout_test/blink_test_runner.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -2 lines 0 comments Download
M content/shell/renderer/layout_test/blink_test_runner.cc View 1 2 3 4 5 6 7 8 3 chunks +15 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/advertising-data.html View 1 2 3 2 chunks +10 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/characteristicProperties.html View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/characteristicvaluechanged.html View 1 2 3 3 chunks +35 lines, -29 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/connect.html View 1 2 3 4 5 5 chunks +35 lines, -24 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/disconnect.html View 1 2 3 3 chunks +9 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/disconnect-frame-detached/detach-gc.html View 1 2 3 2 chunks +7 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/disconnect-frame-detached/gc-detach.html View 1 2 3 2 chunks +7 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/disconnect-frame-detached/hide-detach.html View 1 2 3 2 chunks +7 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/disconnect-when-hidden-or-closed.html View 1 2 3 4 chunks +12 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getCharacteristic.html View 1 2 3 4 chunks +39 lines, -32 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getCharacteristic-blacklist.html View 1 2 3 1 chunk +3 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/blacklisted-characteristics.html View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/blacklisted-characteristics-with-uuid.html View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/characteristics-found.html View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/characteristics-found-with-uuid.html View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/characteristics-not-found.html View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/characteristics-not-found-with-uuid.html View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/correct-characteristics.html View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/device-goes-out-of-range.html View 1 2 3 1 chunk +9 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/device-goes-out-of-range-with-uuid.html View 1 2 3 1 chunk +9 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/get-same-characteristics.html View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/invalid-characteristic-name.html View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/service-is-removed.html View 1 2 3 1 chunk +9 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/service-is-removed-with-uuid.html View 1 2 3 1 chunk +9 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getPrimaryService.html View 1 2 3 8 chunks +38 lines, -29 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/idl-BluetoothDevice.html View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/iframeRequestDevice.html View 1 2 3 1 chunk +8 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/notifications.html View 1 2 3 12 chunks +36 lines, -24 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/readValue.html View 1 2 3 3 chunks +44 lines, -36 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/readValue-blacklist.html View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice.html View 1 2 3 7 chunks +88 lines, -79 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice-blacklist.html View 1 2 3 1 chunk +11 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice-canonicalize-filter.html View 1 2 3 7 chunks +53 lines, -47 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice-matches-a-filter.html View 1 2 3 3 chunks +11 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice-sandboxed-iframe.html View 1 2 3 1 chunk +7 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/writeValue.html View 1 2 3 4 chunks +45 lines, -38 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/writeValue-blacklist.html View 1 2 3 1 chunk +3 lines, -5 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 30 (13 generated)
ortuno
jyasskin: PTAL
4 years, 9 months ago (2016-03-18 01:25:43 UTC) #2
Jeffrey Yasskin
Sorry for taking so long to get to this. https://codereview.chromium.org/1815483003/diff/40001/components/test_runner/test_runner.h File components/test_runner/test_runner.h (right): https://codereview.chromium.org/1815483003/diff/40001/components/test_runner/test_runner.h#newcode532 components/test_runner/test_runner.h:532: ...
4 years, 9 months ago (2016-03-24 23:47:54 UTC) #3
ortuno
https://codereview.chromium.org/1815483003/diff/40001/components/test_runner/test_runner.h File components/test_runner/test_runner.h (right): https://codereview.chromium.org/1815483003/diff/40001/components/test_runner/test_runner.h#newcode532 components/test_runner/test_runner.h:532: void SetBluetoothMockDataSet(const std::string& name); On 2016/03/24 at 23:47:53, Jeffrey ...
4 years, 8 months ago (2016-03-28 23:26:44 UTC) #5
Jeffrey Yasskin
lgtm https://codereview.chromium.org/1815483003/diff/40001/components/test_runner/test_runner.h File components/test_runner/test_runner.h (right): https://codereview.chromium.org/1815483003/diff/40001/components/test_runner/test_runner.h#newcode532 components/test_runner/test_runner.h:532: void SetBluetoothMockDataSet(const std::string& name); On 2016/03/28 23:26:44, ortuno ...
4 years, 8 months ago (2016-03-29 01:59:13 UTC) #6
ortuno
https://codereview.chromium.org/1815483003/diff/80001/components/test_runner/test_runner.cc File components/test_runner/test_runner.cc (right): https://codereview.chromium.org/1815483003/diff/80001/components/test_runner/test_runner.cc#newcode578 components/test_runner/test_runner.cc:578: .SetMethod("setBluetoothFakeAdapter", On 2016/03/29 at 01:59:13, Jeffrey Yasskin wrote: > ...
4 years, 8 months ago (2016-03-29 16:05:17 UTC) #7
ortuno
rockot: PTAL
4 years, 8 months ago (2016-03-29 16:06:07 UTC) #9
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/1815483003/diff/100001/content/shell/renderer/layout_test/blink_test_runner.cc File content/shell/renderer/layout_test/blink_test_runner.cc (right): https://codereview.chromium.org/1815483003/diff/100001/content/shell/renderer/layout_test/blink_test_runner.cc#newcode953 content/shell/renderer/layout_test/blink_test_runner.cc:953: return bluetooth_fake_adapter_setter_; nit: I think it's weird to ...
4 years, 8 months ago (2016-03-29 20:53:23 UTC) #10
ortuno
Thanks! https://codereview.chromium.org/1815483003/diff/100001/content/shell/renderer/layout_test/blink_test_runner.cc File content/shell/renderer/layout_test/blink_test_runner.cc (right): https://codereview.chromium.org/1815483003/diff/100001/content/shell/renderer/layout_test/blink_test_runner.cc#newcode953 content/shell/renderer/layout_test/blink_test_runner.cc:953: return bluetooth_fake_adapter_setter_; On 2016/03/29 at 20:53:23, Ken Rockot ...
4 years, 8 months ago (2016-03-29 21:17:04 UTC) #11
ortuno
mkwst@chromium.org: PTAL at components/test_runner jam@chromium.org: PTAL at content/
4 years, 8 months ago (2016-03-29 21:17:41 UTC) #13
Jeffrey Yasskin
https://codereview.chromium.org/1815483003/diff/100001/content/shell/renderer/layout_test/blink_test_runner.cc File content/shell/renderer/layout_test/blink_test_runner.cc (right): https://codereview.chromium.org/1815483003/diff/100001/content/shell/renderer/layout_test/blink_test_runner.cc#newcode953 content/shell/renderer/layout_test/blink_test_runner.cc:953: return bluetooth_fake_adapter_setter_; On 2016/03/29 20:53:23, Ken Rockot wrote: > ...
4 years, 8 months ago (2016-03-29 22:19:10 UTC) #14
ortuno
https://codereview.chromium.org/1815483003/diff/100001/content/shell/renderer/layout_test/blink_test_runner.cc File content/shell/renderer/layout_test/blink_test_runner.cc (right): https://codereview.chromium.org/1815483003/diff/100001/content/shell/renderer/layout_test/blink_test_runner.cc#newcode953 content/shell/renderer/layout_test/blink_test_runner.cc:953: return bluetooth_fake_adapter_setter_; On 2016/03/29 at 22:19:10, Jeffrey Yasskin wrote: ...
4 years, 8 months ago (2016-03-29 22:30:53 UTC) #15
jam
deferring to Jochen as I'm not familiar with the test runner
4 years, 8 months ago (2016-03-30 00:31:12 UTC) #17
jochen (gone - plz use gerrit)
lgtm
4 years, 8 months ago (2016-03-30 16:35:26 UTC) #18
commit-bot: I haz the power
This CL has an open dependency (Issue 1775953004 Patch 400001). Please resolve the dependency and ...
4 years, 8 months ago (2016-03-30 23:22:55 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1815483003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1815483003/160001
4 years, 8 months ago (2016-03-31 18:51:22 UTC) #27
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 8 months ago (2016-03-31 19:00:09 UTC) #28
commit-bot: I haz the power
4 years, 8 months ago (2016-03-31 19:01:48 UTC) #30
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/f78c841627596d492015ffd5ebfd9e3d091522a7
Cr-Commit-Position: refs/heads/master@{#384350}

Powered by Google App Engine
This is Rietveld 408576698