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

Issue 2853433002: bluetooth: Implement simulateCentral (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, rkc, scheib+watch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Implement simulateCentral FakeCentral allows clients to simulate events that a device in the Central/Observer role would receive as well as monitor the operations performed by the device in the Central/Observer role. BUG=569709 Review-Url: https://codereview.chromium.org/2853433002 Cr-Commit-Position: refs/heads/master@{#469289} Committed: https://chromium.googlesource.com/chromium/src/+/3833c3878b778637ca7769f91e8a191a36379850

Patch Set 1 #

Patch Set 2 : moar cleanup #

Patch Set 3 : even moar cleanup #

Total comments: 4

Patch Set 4 : FakeLECentralObserverManager -> FakeCentral #

Total comments: 2

Patch Set 5 : poweredoff -> powered-off #

Patch Set 6 : call setLESupported in simulateCentral #

Total comments: 10

Patch Set 7 : Address dcheng's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+367 lines, -51 lines) Patch
M device/bluetooth/BUILD.gn View 1 2 3 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 2 chunks +22 lines, -0 lines 0 comments Download
M device/bluetooth/test/fake_bluetooth.h View 1 2 3 4 5 6 2 chunks +8 lines, -2 lines 0 comments Download
M device/bluetooth/test/fake_bluetooth.cc View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
A device/bluetooth/test/fake_central.h View 1 2 3 4 5 6 1 chunk +91 lines, -0 lines 0 comments Download
A device/bluetooth/test/fake_central.cc View 1 2 3 4 5 6 1 chunk +161 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice/adapter-not-present.html View 1 1 chunk +0 lines, -14 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice/adapter-off.html View 1 1 chunk +0 lines, -27 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/requestDevice/radio-not-present.html View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/requestDevice/radio-off.html View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/resources/bluetooth/web-bluetooth-test.js View 1 2 3 4 5 6 3 chunks +66 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 43 (29 generated)
ortuno
scheib: PTAL
3 years, 7 months ago (2017-04-28 05:11:58 UTC) #10
scheib
Code seems OK. Naming ... comment below. I'm out of time just now and haven't ...
3 years, 7 months ago (2017-04-29 02:07:52 UTC) #11
ortuno
https://codereview.chromium.org/2853433002/diff/40001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom File device/bluetooth/public/interfaces/test/fake_bluetooth.mojom (right): https://codereview.chromium.org/2853433002/diff/40001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom#newcode33 device/bluetooth/public/interfaces/test/fake_bluetooth.mojom:33: // FakeLECentralObserverManager allows clients to simulate events that a ...
3 years, 7 months ago (2017-05-01 06:09:04 UTC) #12
scheib
https://codereview.chromium.org/2853433002/diff/40001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom File device/bluetooth/public/interfaces/test/fake_bluetooth.mojom (right): https://codereview.chromium.org/2853433002/diff/40001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom#newcode33 device/bluetooth/public/interfaces/test/fake_bluetooth.mojom:33: // FakeLECentralObserverManager allows clients to simulate events that a ...
3 years, 7 months ago (2017-05-01 18:16:59 UTC) #13
ortuno
https://codereview.chromium.org/2853433002/diff/40001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom File device/bluetooth/public/interfaces/test/fake_bluetooth.mojom (right): https://codereview.chromium.org/2853433002/diff/40001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom#newcode33 device/bluetooth/public/interfaces/test/fake_bluetooth.mojom:33: // FakeLECentralObserverManager allows clients to simulate events that a ...
3 years, 7 months ago (2017-05-02 01:14:10 UTC) #14
scheib
Much better, thanks, LGTM https://codereview.chromium.org/2853433002/diff/60001/third_party/WebKit/LayoutTests/resources/bluetooth/web-bluetooth-test.js File third_party/WebKit/LayoutTests/resources/bluetooth/web-bluetooth-test.js (right): https://codereview.chromium.org/2853433002/diff/60001/third_party/WebKit/LayoutTests/resources/bluetooth/web-bluetooth-test.js#newcode72 third_party/WebKit/LayoutTests/resources/bluetooth/web-bluetooth-test.js:72: case 'poweredoff': poweredOff?
3 years, 7 months ago (2017-05-02 03:27:00 UTC) #20
ortuno
https://codereview.chromium.org/2853433002/diff/60001/third_party/WebKit/LayoutTests/resources/bluetooth/web-bluetooth-test.js File third_party/WebKit/LayoutTests/resources/bluetooth/web-bluetooth-test.js (right): https://codereview.chromium.org/2853433002/diff/60001/third_party/WebKit/LayoutTests/resources/bluetooth/web-bluetooth-test.js#newcode72 third_party/WebKit/LayoutTests/resources/bluetooth/web-bluetooth-test.js:72: case 'poweredoff': On 2017/05/02 at 03:26:59, scheib wrote: > ...
3 years, 7 months ago (2017-05-03 00:17:42 UTC) #23
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/2853433002/100001
3 years, 7 months ago (2017-05-03 02:48:23 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/425996)
3 years, 7 months ago (2017-05-03 02:56:24 UTC) #33
ortuno
dcheng: PTAL at device/bluetooth/public/interfaces/test/fake_bluetooth.mojom
3 years, 7 months ago (2017-05-03 02:58:17 UTC) #35
dcheng
mostly rubberstamp lgtm as this is a testing mojo interface only installed for layout tests ...
3 years, 7 months ago (2017-05-04 00:55:04 UTC) #36
ortuno
Thanks! On 2017/05/04 at 00:55:04, dcheng wrote: > mostly rubberstamp lgtm as this is a ...
3 years, 7 months ago (2017-05-04 05:28:25 UTC) #37
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/2853433002/120001
3 years, 7 months ago (2017-05-04 05:28:36 UTC) #40
commit-bot: I haz the power
3 years, 7 months ago (2017-05-04 07:13:13 UTC) #43
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/3833c3878b778637ca7769f91e8a...

Powered by Google App Engine
This is Rietveld 408576698