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

Issue 2867713008: bluetooth: Implement known_service_uuids for Peripherals. (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 known_service_uuids for Peripherals. Platforms expose methods to retrieve devices that have connected outside the user agent and their UUIDs: Android: BluetoothManager#getConnectedDevices[1] and getUuids()[2] macOS: CBCentralManager:retrieveConnectedPeripheralsWithServices:[3] Windows: DeviceInformation::FindAllAsync[4] with GattDeviceService::GetDeviceSelectorFromUuid()[5] Allows tests to provide known_service_uuids that would cause the returned devices from the platform functions to change. [1] https://developer.android.com/reference/android/bluetooth/BluetoothManager.html#getConnectedDevices(int) [2] https://developer.android.com/reference/android/bluetooth/BluetoothDevice.html#getUuids() [3] https://developer.apple.com/reference/corebluetooth/cbcentralmanager/1518924-retrieveconnectedperipheralswith?language=objc [4] https://docs.microsoft.com/en-us/uwp/api/windows.devices.enumeration.deviceinformation#Windows_Devices_Enumeration_DeviceInformation_FindAllAsync_System_String_ [5] https://docs.microsoft.com/en-us/uwp/api/windows.devices.bluetooth.genericattributeprofile.gattdeviceservice#Windows_Devices_Bluetooth_GenericAttributeProfile_GattDeviceService_GetDeviceSelectorFromUuid_System_Guid_ BUG=719813 Review-Url: https://codereview.chromium.org/2867713008 Cr-Commit-Position: refs/heads/master@{#471197} Committed: https://chromium.googlesource.com/chromium/src/+/46a4de44f2d04ac212c55fbc08fe17fd2da63845

Patch Set 1 #

Patch Set 2 : Clean up #

Patch Set 3 : Fix test #

Total comments: 13

Patch Set 4 : address scheib's comments #

Patch Set 5 : fix conflicts #

Total comments: 2

Patch Set 6 : Remove unnecessary mojo_ check #

Total comments: 2

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -48 lines) Patch
M device/bluetooth/public/interfaces/BUILD.gn View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M device/bluetooth/public/interfaces/test/fake_bluetooth.mojom View 1 2 3 2 chunks +8 lines, -4 lines 0 comments Download
M device/bluetooth/test/fake_central.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M device/bluetooth/test/fake_central.cc View 1 2 3 4 3 chunks +5 lines, -0 lines 0 comments Download
M device/bluetooth/test/fake_peripheral.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M device/bluetooth/test/fake_peripheral.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/idl/idl-BluetoothDevice.html View 1 2 3 3 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice/blocklisted-service-in-filter.html View 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice/consumes-user-gesture.html View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice/not-processing-user-gesture.html View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice/request-from-iframe.html View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice/same-device.html View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice/single-filter-single-service.html View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/resources/bluetooth/bluetooth-helpers.js View 1 2 3 1 chunk +19 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/resources/bluetooth/web-bluetooth-test.js View 1 2 3 4 5 5 chunks +35 lines, -30 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 40 (29 generated)
ortuno
scheib: PTAL
3 years, 7 months ago (2017-05-09 10:09:40 UTC) #10
scheib
https://codereview.chromium.org/2867713008/diff/40001/device/bluetooth/test/fake_peripheral.h File device/bluetooth/test/fake_peripheral.h (right): https://codereview.chromium.org/2867713008/diff/40001/device/bluetooth/test/fake_peripheral.h#newcode30 device/bluetooth/test/fake_peripheral.h:30: // Updates the peripheral's UUIDs. ... UUIDs that are ...
3 years, 7 months ago (2017-05-09 23:33:54 UTC) #11
ortuno
https://codereview.chromium.org/2867713008/diff/40001/device/bluetooth/test/fake_peripheral.h File device/bluetooth/test/fake_peripheral.h (right): https://codereview.chromium.org/2867713008/diff/40001/device/bluetooth/test/fake_peripheral.h#newcode30 device/bluetooth/test/fake_peripheral.h:30: // Updates the peripheral's UUIDs. On 2017/05/09 at 23:33:54, ...
3 years, 7 months ago (2017-05-10 06:32:51 UTC) #12
scheib
lgtm https://codereview.chromium.org/2867713008/diff/40001/third_party/WebKit/LayoutTests/resources/bluetooth/bluetooth-helpers.js File third_party/WebKit/LayoutTests/resources/bluetooth/bluetooth-helpers.js (right): https://codereview.chromium.org/2867713008/diff/40001/third_party/WebKit/LayoutTests/resources/bluetooth/bluetooth-helpers.js#newcode16 third_party/WebKit/LayoutTests/resources/bluetooth/bluetooth-helpers.js:16: const ADDRESS1 = '00:00:00:00:00:00'; On 2017/05/10 06:32:50, ortuno ...
3 years, 7 months ago (2017-05-10 17:51:14 UTC) #21
scheib
dcheng: PTAL mojom
3 years, 7 months ago (2017-05-10 17:52:24 UTC) #23
ortuno
https://codereview.chromium.org/2867713008/diff/80001/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/2867713008/diff/80001/third_party/WebKit/LayoutTests/resources/bluetooth/web-bluetooth-test.js#newcode30 third_party/WebKit/LayoutTests/resources/bluetooth/web-bluetooth-test.js:30: if (mojo_ === undefined) { On 2017/05/10 at 17:51:14, ...
3 years, 7 months ago (2017-05-10 23:34:23 UTC) #24
dcheng
ipc lgtm https://codereview.chromium.org/2867713008/diff/100001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom File device/bluetooth/public/interfaces/test/fake_bluetooth.mojom (right): https://codereview.chromium.org/2867713008/diff/100001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom#newcode53 device/bluetooth/public/interfaces/test/fake_bluetooth.mojom:53: array<UUID> known_service_uuids) => (); Not a blocker ...
3 years, 7 months ago (2017-05-11 05:44:21 UTC) #25
ortuno
Thanks! https://codereview.chromium.org/2867713008/diff/100001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom File device/bluetooth/public/interfaces/test/fake_bluetooth.mojom (right): https://codereview.chromium.org/2867713008/diff/100001/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom#newcode53 device/bluetooth/public/interfaces/test/fake_bluetooth.mojom:53: array<UUID> known_service_uuids) => (); On 2017/05/11 at 05:44:21, ...
3 years, 7 months ago (2017-05-11 06:45:08 UTC) #28
commit-bot: I haz the power
This CL has an open dependency (Issue 2858803003 Patch 220001). Please resolve the dependency and ...
3 years, 7 months ago (2017-05-11 06:45:45 UTC) #30
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/2867713008/120001
3 years, 7 months ago (2017-05-12 02:48:40 UTC) #37
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 02:54:32 UTC) #40
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/46a4de44f2d04ac212c55fbc08fe...

Powered by Google App Engine
This is Rietveld 408576698