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

Issue 2737343003: bluetooth: Add FakeBluetooth interface (Closed)

Created:
3 years, 9 months ago by ortuno
Modified:
3 years, 8 months ago
CC:
Aaron Boodman, abarth-chromium, 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: Add FakeBluetooth interface Adds the FakeBluetooth interface with a stub function, web-bluetooth-test.js which acquires a pointer to that interface and calls its method. Based on https://docs.google.com/document/d/1Nhv_oVDCodd1pEH_jj9k8gF4rPGb_84VYaZ9IG8M_WY/edit#heading=h.kingfw5ed9qq BUG=569709 Review-Url: https://codereview.chromium.org/2737343003 Cr-Commit-Position: refs/heads/master@{#465416} Committed: https://chromium.googlesource.com/chromium/src/+/97febb8d5616d0119b0d6897cc8c8eda3f96e96d

Patch Set 1 #

Patch Set 2 : Renderer side #

Patch Set 3 : Move to public deps #

Patch Set 4 : Fix windows #

Total comments: 19

Patch Set 5 : Address scheib's comments #

Total comments: 4

Patch Set 6 : Add all the READMEs! #

Total comments: 4

Patch Set 7 : Fix BUILD files #

Patch Set 8 : Rename to SetLESupported #

Patch Set 9 : move web-bluetooth-test.js #

Unified diffs Side-by-side diffs Delta from patch set Stats (+250 lines, -52 lines) Patch
M content/shell/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/browser/content_shell_browser_manifest_overlay.json View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/shell/browser/layout_test/layout_test_content_browser_client.cc View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M device/bluetooth/BUILD.gn View 1 2 3 4 6 1 chunk +13 lines, -0 lines 0 comments Download
M device/bluetooth/README.md View 1 2 3 4 5 6 2 chunks +2 lines, -51 lines 0 comments Download
M device/bluetooth/public/interfaces/BUILD.gn View 1 2 3 4 6 1 chunk +6 lines, -0 lines 0 comments Download
A device/bluetooth/public/interfaces/test/OWNERS View 1 chunk +2 lines, -0 lines 0 comments Download
A device/bluetooth/public/interfaces/test/README.md View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
A device/bluetooth/public/interfaces/test/fake_bluetooth.mojom View 1 2 3 4 5 6 7 1 chunk +19 lines, -0 lines 0 comments Download
A device/bluetooth/test/README.md View 1 2 3 4 5 6 1 chunk +56 lines, -0 lines 0 comments Download
A device/bluetooth/test/fake_bluetooth.h View 1 2 3 4 5 6 7 1 chunk +29 lines, -0 lines 0 comments Download
A device/bluetooth/test/fake_bluetooth.cc View 1 2 3 4 5 6 7 1 chunk +30 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/requestDevice/le-not-supported.html View 1 2 3 4 5 6 7 8 1 chunk +14 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/resources/bluetooth/web-bluetooth-test.js View 1 2 3 4 5 6 7 8 1 chunk +60 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (26 generated)
ortuno
scheib: PTAL. This introduces the FakeBluetooth mojo interfaces, implements in device/bluetooth/test and calls it from ...
3 years, 8 months ago (2017-04-07 06:23:20 UTC) #13
scheib
https://codereview.chromium.org/2737343003/diff/60001/device/bluetooth/BUILD.gn File device/bluetooth/BUILD.gn (right): https://codereview.chromium.org/2737343003/diff/60001/device/bluetooth/BUILD.gn#newcode44 device/bluetooth/BUILD.gn:44: source_set("mojo_test") { Let's call this "fake_bluetooth" or "fake_bluetooth_impl"? https://codereview.chromium.org/2737343003/diff/60001/device/bluetooth/README.md ...
3 years, 8 months ago (2017-04-08 00:59:50 UTC) #16
ortuno
https://codereview.chromium.org/2737343003/diff/60001/device/bluetooth/BUILD.gn File device/bluetooth/BUILD.gn (right): https://codereview.chromium.org/2737343003/diff/60001/device/bluetooth/BUILD.gn#newcode44 device/bluetooth/BUILD.gn:44: source_set("mojo_test") { On 2017/04/08 at 00:59:50, scheib wrote: > ...
3 years, 8 months ago (2017-04-10 01:47:49 UTC) #17
scheib
https://codereview.chromium.org/2737343003/diff/60001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom File device/bluetooth/public/interfaces/test/fake_bluetooth.mojom (right): https://codereview.chromium.org/2737343003/diff/60001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom#newcode7 device/bluetooth/public/interfaces/test/fake_bluetooth.mojom:7: // FakeBluetooth allows its clients to fake the global ...
3 years, 8 months ago (2017-04-10 21:52:32 UTC) #22
ortuno
Thanks! https://codereview.chromium.org/2737343003/diff/60001/device/bluetooth/README.md File device/bluetooth/README.md (right): https://codereview.chromium.org/2737343003/diff/60001/device/bluetooth/README.md#newcode57 device/bluetooth/README.md:57: `src/device/bluetooth/test/`. On 2017/04/10 at 01:47:49, ortuno wrote: > ...
3 years, 8 months ago (2017-04-12 05:49:09 UTC) #23
scheib
Thanks, lgtm with a doc request; and nits about typo code duplication. https://codereview.chromium.org/2737343003/diff/80001/device/bluetooth/README.md File device/bluetooth/README.md ...
3 years, 8 months ago (2017-04-12 18:56:47 UTC) #24
ortuno
Could you take a quick look again. I changed SetLEAvailability to SetLESupported since we don't ...
3 years, 8 months ago (2017-04-13 01:12:47 UTC) #25
scheib
lgtm
3 years, 8 months ago (2017-04-13 05:00:56 UTC) #30
ortuno
dcheng: PTAL at .mojom changes and manifest changes. peter: PTAL at content/shell changes.
3 years, 8 months ago (2017-04-18 00:57:37 UTC) #32
dcheng
ipc lgtm
3 years, 8 months ago (2017-04-18 01:00:52 UTC) #33
Peter Beverloo
//content/shell/ lgtm
3 years, 8 months ago (2017-04-18 17:24:11 UTC) #34
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/2737343003/160001
3 years, 8 months ago (2017-04-18 21:21:02 UTC) #36
commit-bot: I haz the power
3 years, 8 months ago (2017-04-18 23:07:13 UTC) #39
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/97febb8d5616d0119b0d6897cc8c...

Powered by Google App Engine
This is Rietveld 408576698