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

Issue 1723723002: bluetooth: Implement Service.getCharacteristics (Closed)

Created:
4 years, 10 months ago by ortuno
Modified:
4 years, 9 months ago
CC:
asvitkine+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, jam, jochen+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, ortuno+watch_chromium.org, Peter Beverloo, scheib+watch_chromium.org, vadimb1
Base URL:
https://chromium.googlesource.com/chromium/src.git@my-origin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Implement Service.getCharacteristics 1. Adds bindings for getCharacteristics 2. Adds getCharacteristics function to public interface 3. Implements getCharacteristics from public interface 4. Adds necessary IPC messages 5. Modifies HeartRateService so that it has two Body Sensor Location characteristics. This way we can test what happens when two characteristics have the same UUID. Also modify the GetBaseGATTCharacteristic function to take an identifier. Before we just used the UUID but we need to change it now that multiple characteristics have the same UUID. 6. Adds LayoutTests. BUG=588876 Committed: https://crrev.com/42d4354380744ef74e17b79d5ab4e5f2e42e17f7 Cr-Commit-Position: refs/heads/master@{#378001}

Patch Set 1 #

Patch Set 2 : GetBaseGATTCharacteristic takes an identifier #

Patch Set 3 : Moar clean up #

Patch Set 4 : Clean up #

Total comments: 23

Patch Set 5 : Address jyasskin's comments and add moar tests #

Total comments: 8

Patch Set 6 : Address isherman's comments #

Patch Set 7 : Merge with ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+690 lines, -50 lines) Patch
M content/browser/bluetooth/bluetooth_dispatcher_host.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/bluetooth/bluetooth_dispatcher_host.cc View 1 2 3 4 5 6 2 chunks +81 lines, -0 lines 0 comments Download
M content/browser/bluetooth/bluetooth_metrics.h View 1 2 3 4 5 6 3 chunks +13 lines, -0 lines 0 comments Download
M content/browser/bluetooth/bluetooth_metrics.cc View 1 2 3 4 5 3 chunks +36 lines, -2 lines 0 comments Download
M content/common/bluetooth/bluetooth_messages.h View 1 2 3 4 2 chunks +25 lines, -0 lines 0 comments Download
M content/renderer/bluetooth/bluetooth_dispatcher.h View 1 2 3 4 4 chunks +18 lines, -1 line 0 comments Download
M content/renderer/bluetooth/bluetooth_dispatcher.cc View 1 2 3 4 5 chunks +68 lines, -2 lines 0 comments Download
M content/renderer/bluetooth/web_bluetooth_impl.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/bluetooth/web_bluetooth_impl.cc View 1 2 3 4 1 chunk +10 lines, -2 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h View 1 2 3 4 5 6 3 chunks +9 lines, -2 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc View 1 2 3 4 5 6 9 chunks +48 lines, -20 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getCharacteristic.html View 1 chunk +1 line, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/blacklisted-characteristics.html View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/blacklisted-characteristics-with-uuid.html View 1 2 3 4 5 6 1 chunk +7 lines, -13 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/characteristics-found.html View 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/characteristics-found-with-uuid.html View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/characteristics-not-found.html View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/characteristics-not-found-with-uuid.html View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/correct-characteristics.html View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/device-goes-out-of-range.html View 1 chunk +21 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/device-goes-out-of-range-with-uuid.html View 1 chunk +21 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/get-same-characteristics.html View 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/invalid-characteristic-name.html View 1 chunk +30 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/service-is-removed.html View 1 chunk +21 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/service-is-removed-with-uuid.html View 1 chunk +21 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.h View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.cpp View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothError.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothRemoteGATTCharacteristicInit.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 3 chunks +28 lines, -2 lines 0 comments Download

Messages

Total messages: 40 (18 generated)
ortuno
jyasskin: PTAL
4 years, 10 months ago (2016-02-23 19:09:58 UTC) #3
Jeffrey Yasskin
https://codereview.chromium.org/1723723002/diff/60001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1723723002/diff/60001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode862 content/browser/bluetooth/bluetooth_dispatcher_host.cc:862: std::vector<std::string> characteristics_instance_ids; Can we transpose these three vectors? That ...
4 years, 10 months ago (2016-02-24 23:20:30 UTC) #4
ortuno
https://codereview.chromium.org/1723723002/diff/60001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1723723002/diff/60001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode862 content/browser/bluetooth/bluetooth_dispatcher_host.cc:862: std::vector<std::string> characteristics_instance_ids; On 2016/02/24 at 23:20:29, Jeffrey Yasskin wrote: ...
4 years, 10 months ago (2016-02-25 23:08:27 UTC) #5
Jeffrey Yasskin
LGTM. https://codereview.chromium.org/1723723002/diff/60001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1723723002/diff/60001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode862 content/browser/bluetooth/bluetooth_dispatcher_host.cc:862: std::vector<std::string> characteristics_instance_ids; On 2016/02/25 23:08:27, ortuno wrote: > ...
4 years, 10 months ago (2016-02-25 23:46:57 UTC) #6
ortuno
palmer: PTAL at bluetooth_messages isherman: PTAL at histograms.xml
4 years, 10 months ago (2016-02-26 00:09:29 UTC) #8
Ilya Sherman
https://codereview.chromium.org/1723723002/diff/80001/content/browser/bluetooth/bluetooth_metrics.cc File content/browser/bluetooth/bluetooth_metrics.cc (right): https://codereview.chromium.org/1723723002/diff/80001/content/browser/bluetooth/bluetooth_metrics.cc#newcode184 content/browser/bluetooth/bluetooth_metrics.cc:184: NOTREACHED() << "No need to record a success or ...
4 years, 10 months ago (2016-02-26 01:16:27 UTC) #9
ortuno
https://codereview.chromium.org/1723723002/diff/80001/content/browser/bluetooth/bluetooth_metrics.cc File content/browser/bluetooth/bluetooth_metrics.cc (right): https://codereview.chromium.org/1723723002/diff/80001/content/browser/bluetooth/bluetooth_metrics.cc#newcode184 content/browser/bluetooth/bluetooth_metrics.cc:184: NOTREACHED() << "No need to record a success or ...
4 years, 10 months ago (2016-02-26 16:24:59 UTC) #11
ortuno
tsepez: PTAL at bluetooth_messages
4 years, 10 months ago (2016-02-26 16:26:34 UTC) #13
Jeffrey Yasskin
https://codereview.chromium.org/1723723002/diff/80001/content/browser/bluetooth/bluetooth_metrics.cc File content/browser/bluetooth/bluetooth_metrics.cc (right): https://codereview.chromium.org/1723723002/diff/80001/content/browser/bluetooth/bluetooth_metrics.cc#newcode200 content/browser/bluetooth/bluetooth_metrics.cc:200: HashUUID(characteristic)); On 2016/02/26 01:16:27, Ilya Sherman wrote: > Just ...
4 years, 10 months ago (2016-02-26 16:42:06 UTC) #14
Tom Sepez
Messages themselves LGTM.
4 years, 10 months ago (2016-02-26 16:57:30 UTC) #15
Ilya Sherman
/cc Vadim as an FYI about possible impact on our data processing pipeline. (TL;DR: Adding ...
4 years, 10 months ago (2016-02-26 18:00:25 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1723723002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1723723002/100001
4 years, 10 months ago (2016-02-26 18:14:43 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/186719)
4 years, 10 months ago (2016-02-26 19:07:49 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1723723002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1723723002/120001
4 years, 10 months ago (2016-02-26 20:03:28 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/29981)
4 years, 10 months ago (2016-02-26 20:50:01 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1723723002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1723723002/120001
4 years, 10 months ago (2016-02-26 21:03:20 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 10 months ago (2016-02-26 22:16:32 UTC) #33
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/42d4354380744ef74e17b79d5ab4e5f2e42e17f7 Cr-Commit-Position: refs/heads/master@{#378001}
4 years, 10 months ago (2016-02-26 22:17:50 UTC) #35
sof
Three of the added tests are reported as leaking, https://storage.googleapis.com/chromium-layout-test-archives/WebKit_Linux_Leak/17786/layout-test-results/results.html
4 years, 9 months ago (2016-02-29 10:53:28 UTC) #37
ortuno
On 2016/02/29 at 10:53:28, sigbjornf wrote: > Three of the added tests are reported as ...
4 years, 9 months ago (2016-02-29 16:02:28 UTC) #38
sof
On 2016/02/29 16:02:28, ortuno wrote: > On 2016/02/29 at 10:53:28, sigbjornf wrote: > > Three ...
4 years, 9 months ago (2016-02-29 16:10:37 UTC) #39
ortuno
4 years, 9 months ago (2016-02-29 17:15:45 UTC) #40
Message was sent while issue was closed.
On 2016/02/29 at 16:10:37, sigbjornf wrote:
> On 2016/02/29 16:02:28, ortuno wrote:
> > On 2016/02/29 at 10:53:28, sigbjornf wrote:
> > > Three of the added tests are reported as leaking,
> > > 
> > > 
> >
https://storage.googleapis.com/chromium-layout-test-archives/WebKit_Linux_Lea...
> > 
> > Is there any documentation on the leak detector? How do I run it locally?
> 
>
https://docs.google.com/presentation/d/12bh9_zp91c2_-iEle3TzilKHVcNqYrTkfTtMX...
is one resource.
> 
> Add --enable-leak-detection to your run_layout_tests.py command line to use.

Thanks, I was able to reproduce locally. Will look into it.

Powered by Google App Engine
This is Rietveld 408576698