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

Issue 1948763003: Adding support for service scan on OS X (Closed)

Created:
4 years, 7 months ago by jlebel
Modified:
4 years, 7 months ago
CC:
chromium-reviews, erikchen, ortuno+watch_chromium.org, scheib+watch_chromium.org, Nico
Base URL:
https://chromium.googlesource.com/chromium/src.git@cleanup
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support for scanning services, update and remove services. Adding classes: + BluetoothLowEnergyPeripheralDelegate + BluetoothRemoteGattServiceMac + MockBluetoothCBServiceMac Adding tests for the gatt services. BUG=603183 Committed: https://crrev.com/c4b0978fd188d5eed6b8804ec39455bee19011eb Cr-Commit-Position: refs/heads/master@{#392490}

Patch Set 1 #

Patch Set 2 : Removing error for OS X when getting gatt services #

Patch Set 3 : Removing error for OS X when getting gatt services #

Patch Set 4 : Merge #

Patch Set 5 : New name for BluetoothAdapterMac::StringWithCBUUID() #

Patch Set 6 : Tests should be skipped if BLE is not supported #

Patch Set 7 : Adding disconnect with error #

Total comments: 104

Patch Set 8 : Fixes #

Patch Set 9 : Fixes #

Total comments: 22

Patch Set 10 : Fixing comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+561 lines, -34 lines) Patch
M device/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M device/bluetooth/BUILD.gn View 2 chunks +4 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth.gyp View 2 chunks +4 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_mac.mm View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_unittest.cc View 6 chunks +8 lines, -8 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_device_mac.h View 1 2 3 4 5 6 7 4 chunks +16 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_device_mac.mm View 1 2 3 4 5 6 7 8 9 4 chunks +71 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_low_energy_peripheral_delegate.h View 1 2 3 4 5 6 7 1 chunk +36 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_low_energy_peripheral_delegate.mm View 1 2 3 4 5 6 7 1 chunk +63 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_remote_gatt_service_mac.h View 1 2 3 4 5 6 7 8 9 1 chunk +66 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_remote_gatt_service_mac.mm View 1 2 3 4 5 6 7 8 9 1 chunk +72 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_service_unittest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +22 lines, -6 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_mac.h View 1 chunk +7 lines, -0 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_mac.mm View 1 2 3 4 5 6 7 7 chunks +41 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_cbperipheral_mac.h View 1 2 3 4 5 6 7 2 chunks +13 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm View 1 2 3 4 5 6 7 8 9 6 chunks +49 lines, -1 line 0 comments Download
A device/bluetooth/test/mock_bluetooth_cbservice_mac.h View 1 2 3 4 5 6 7 1 chunk +24 lines, -0 lines 0 comments Download
A device/bluetooth/test/mock_bluetooth_cbservice_mac.mm View 1 2 3 4 5 6 7 1 chunk +60 lines, -0 lines 0 comments Download
M device/device_tests.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.cpp View 1 2 chunks +0 lines, -8 lines 0 comments Download

Messages

Total messages: 50 (22 generated)
jlebel
Hello, Can you review this patch? Service scanning is now implemented with tests enabled. Thanks ...
4 years, 7 months ago (2016-05-03 22:55:16 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1948763003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1948763003/1
4 years, 7 months ago (2016-05-03 22:57:25 UTC) #5
commit-bot: I haz the power
Dry run: 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/221794)
4 years, 7 months ago (2016-05-04 00:26:15 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1948763003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1948763003/40001
4 years, 7 months ago (2016-05-04 17:13:39 UTC) #9
commit-bot: I haz the power
Dry run: 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/222215)
4 years, 7 months ago (2016-05-04 18:40:26 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1948763003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1948763003/60001
4 years, 7 months ago (2016-05-04 20:12:55 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/198588)
4 years, 7 months ago (2016-05-04 20:56:12 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1948763003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1948763003/80001
4 years, 7 months ago (2016-05-04 21:54:30 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1948763003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1948763003/100001
4 years, 7 months ago (2016-05-04 22:52:11 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1948763003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1948763003/120001
4 years, 7 months ago (2016-05-04 23:58:47 UTC) #21
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 7 months ago (2016-05-04 23:58:50 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1948763003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1948763003/120001
4 years, 7 months ago (2016-05-04 23:59:58 UTC) #25
commit-bot: I haz the power
Dry run: 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/65346)
4 years, 7 months ago (2016-05-05 02:10:01 UTC) #27
ortuno
https://codereview.chromium.org/1948763003/diff/120001/device/bluetooth/bluetooth_low_energy_device_mac.h File device/bluetooth/bluetooth_low_energy_device_mac.h (right): https://codereview.chromium.org/1948763003/diff/120001/device/bluetooth/bluetooth_low_energy_device_mac.h#newcode96 device/bluetooth/bluetooth_low_energy_device_mac.h:96: // Methods for BluetoothLowEnergyPeripheralBridge. nit: Methods used by BluetoothLowEnergyPeripheralBridge. ...
4 years, 7 months ago (2016-05-06 16:03:35 UTC) #28
jlebel
Thanks for the review. https://codereview.chromium.org/1948763003/diff/120001/device/bluetooth/bluetooth_low_energy_device_mac.h File device/bluetooth/bluetooth_low_energy_device_mac.h (right): https://codereview.chromium.org/1948763003/diff/120001/device/bluetooth/bluetooth_low_energy_device_mac.h#newcode96 device/bluetooth/bluetooth_low_energy_device_mac.h:96: // Methods for BluetoothLowEnergyPeripheralBridge. On ...
4 years, 7 months ago (2016-05-07 00:16:13 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1948763003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1948763003/160001
4 years, 7 months ago (2016-05-07 20:27:13 UTC) #31
commit-bot: I haz the power
Dry run: 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/223876)
4 years, 7 months ago (2016-05-07 21:29:21 UTC) #33
ortuno
https://codereview.chromium.org/1948763003/diff/120001/device/bluetooth/bluetooth_low_energy_device_mac.mm File device/bluetooth/bluetooth_low_energy_device_mac.mm (right): https://codereview.chromium.org/1948763003/diff/120001/device/bluetooth/bluetooth_low_energy_device_mac.mm#newcode235 device/bluetooth/bluetooth_low_energy_device_mac.mm:235: [GetPeripheral() discoverServices:nil]; On 2016/05/07 at 00:16:10, jlebel wrote: > ...
4 years, 7 months ago (2016-05-09 19:54:01 UTC) #34
ortuno
thakis, erikchen: could you double-check that the suppression in https://codereview.chromium.org/1948763003/diff/160001/device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm is correct?
4 years, 7 months ago (2016-05-09 19:55:55 UTC) #35
erikchen
https://codereview.chromium.org/1948763003/diff/160001/device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm File device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm (right): https://codereview.chromium.org/1948763003/diff/160001/device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm#newcode19 device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm:19: NSMutableArray* _services; used a scoped_nsobject? https://codereview.chromium.org/1948763003/diff/160001/device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm#newcode114 device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm:114: // -[CBPeripheralDelegate ...
4 years, 7 months ago (2016-05-09 20:00:08 UTC) #37
ortuno
https://codereview.chromium.org/1948763003/diff/160001/device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm File device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm (right): https://codereview.chromium.org/1948763003/diff/160001/device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm#newcode114 device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm:114: // -[CBPeripheralDelegate peripheral:didModifyServices:] is only available On 2016/05/09 at ...
4 years, 7 months ago (2016-05-09 20:25:36 UTC) #38
jlebel
Thanks for your comments. https://codereview.chromium.org/1948763003/diff/160001/device/bluetooth/bluetooth_low_energy_device_mac.mm File device/bluetooth/bluetooth_low_energy_device_mac.mm (right): https://codereview.chromium.org/1948763003/diff/160001/device/bluetooth/bluetooth_low_energy_device_mac.mm#newcode247 device/bluetooth/bluetooth_low_energy_device_mac.mm:247: DisconnectGatt(); On 2016/05/09 19:54:01, ortuno ...
4 years, 7 months ago (2016-05-09 23:05:59 UTC) #39
ortuno
lgtm!
4 years, 7 months ago (2016-05-09 23:10:19 UTC) #40
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1948763003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1948763003/180001
4 years, 7 months ago (2016-05-09 23:10:49 UTC) #42
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-10 00:25:28 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1948763003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1948763003/180001
4 years, 7 months ago (2016-05-10 00:27:03 UTC) #46
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 7 months ago (2016-05-10 00:32:13 UTC) #48
commit-bot: I haz the power
4 years, 7 months ago (2016-05-10 00:33:40 UTC) #50
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/c4b0978fd188d5eed6b8804ec39455bee19011eb
Cr-Commit-Position: refs/heads/master@{#392490}

Powered by Google App Engine
This is Rietveld 408576698