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

Issue 1538173003: Implementing GATT connection/disconnect on OS X. (Closed)

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

Description

Implementing GATT connection/disconnect on OS X. BUG=520774 Committed: https://crrev.com/a58fd7578542a34fe30bf56ae52b884ad71c9061 Cr-Commit-Position: refs/heads/master@{#380951}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Adding unit tests #

Patch Set 3 : Removing chromium.gyp_env #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : Working on unit tests for connect/disconnect #

Patch Set 6 : Adding last device unit test for connect/disconnect #

Patch Set 7 : Sorting methods between bluetooth_low_energy_device_mac.h and bluetooth_low_energy_device_mac.mm #

Patch Set 8 : Cleaning up bluetooth_adapter_mac.h and bluetooth_adapter_mac.mm #

Patch Set 9 : Adding comments for mock callback methods in bluetooth_test_mac.h. #

Patch Set 10 : Adding implementation for BluetoothTestMac::SimulateGattConnectionError() #

Patch Set 11 : Sorting methods between bluetooth_adapter_mac.h and bluetooth_adapter_mac.mm #

Total comments: 34

Patch Set 12 : Fixing patch #

Total comments: 47

Patch Set 13 : Fixing the patch. #

Total comments: 16

Patch Set 14 : Fixing comments and casts. #

Patch Set 15 : Merge from top of the tree #

Total comments: 2

Patch Set 16 : Updating comment. #

Total comments: 6

Patch Set 17 : Fixing msarda comments. #

Total comments: 1

Patch Set 18 : Changing ScopedMockCentralManager::central_manager() to ScopedMockCentralManager::get() #

Patch Set 19 : Changing central_manager() to get() #

Patch Set 20 : Adding mock_bluetooth_cbperipheral_mac.* into device/bluetooth/BUILD.gn #

Patch Set 21 : Moving mock_bluetooth_cbperipheral_mac.* into device/BUILD.gn #

Patch Set 22 : Nit #

Patch Set 23 : Moving mock_bluetooth_central_manager_mac.* from device/bluetooth/bluetooth.gyp to device/device_te… #

Patch Set 24 : Adding mock_bluetooth_cbperipheral_mac.* into device/device_tests.gyp #

Patch Set 25 : Removing mock_bluetooth_cbperipheral_mac.* from device/bluetooth/bluetooth.gyp #

Patch Set 26 : Adding mock_bluetooth_cbperipheral_mac.* into device/BUILD.gn #

Patch Set 27 : Skip tests if Bluetooth Low Energy is not available #

Unified diffs Side-by-side diffs Delta from patch set Stats (+465 lines, -80 lines) Patch
M device/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +4 lines, -0 lines 0 comments Download
M device/bluetooth/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +0 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +0 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +20 lines, -4 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +81 lines, -12 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_mac_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -3 lines 0 comments Download
M device/bluetooth/bluetooth_device_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 13 chunks +72 lines, -20 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_central_manager_delegate.mm View 1 2 3 4 5 2 chunks +31 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_device_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +10 lines, -3 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_device_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +24 lines, -13 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +13 lines, -0 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +95 lines, -16 lines 0 comments Download
A device/bluetooth/test/mock_bluetooth_cbperipheral_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +25 lines, -0 lines 0 comments Download
A device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +42 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_central_manager_mac.h View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_central_manager_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +34 lines, -1 line 0 comments Download
M device/device_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 50 (22 generated)
François Beaufort
Nits... https://codereview.chromium.org/1538173003/diff/1/device/bluetooth/bluetooth_adapter_mac.h File device/bluetooth/bluetooth_adapter_mac.h (right): https://codereview.chromium.org/1538173003/diff/1/device/bluetooth/bluetooth_adapter_mac.h#newcode104 device/bluetooth/bluetooth_adapter_mac.h:104: void CreateGattConnection(BluetoothLowEnergyDeviceMac* deviceMac); s/deviceMac/device_mac https://codereview.chromium.org/1538173003/diff/1/device/bluetooth/bluetooth_adapter_mac.h#newcode106 device/bluetooth/bluetooth_adapter_mac.h:106: void DisconnectGatt(BluetoothLowEnergyDeviceMac* ...
5 years ago (2015-12-22 07:38:17 UTC) #2
scheib
Generally looking good for implementation. Tests, we discussed and I've started to fix some of ...
4 years, 10 months ago (2016-01-27 01:09:03 UTC) #5
jlebel
Hello Vincent, My patch is done. So I implemented connect and disconnect and now the ...
4 years, 10 months ago (2016-02-10 13:38:51 UTC) #6
scheib
It would also be good to have a Chromium reviewer with more Objective C experience ...
4 years, 10 months ago (2016-02-10 18:59:46 UTC) #7
jlebel
Hello Vincent, I've updated my patch. Thanks, https://codereview.chromium.org/1538173003/diff/200001/device/bluetooth/bluetooth_adapter_mac.h File device/bluetooth/bluetooth_adapter_mac.h (right): https://codereview.chromium.org/1538173003/diff/200001/device/bluetooth/bluetooth_adapter_mac.h#newcode103 device/bluetooth/bluetooth_adapter_mac.h:103: // Close ...
4 years, 10 months ago (2016-02-10 21:20:08 UTC) #8
jlebel
4 years, 10 months ago (2016-02-11 09:15:12 UTC) #10
fbeaufortchromium
Hey Jerome, here are my two cents. https://codereview.chromium.org/1538173003/diff/220001/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://codereview.chromium.org/1538173003/diff/220001/device/bluetooth/bluetooth_adapter_mac.mm#newcode96 device/bluetooth/bluetooth_adapter_mac.mm:96: // Need ...
4 years, 10 months ago (2016-02-11 10:26:02 UTC) #12
msarda
https://codereview.chromium.org/1538173003/diff/220001/device/bluetooth/bluetooth_adapter_mac.h File device/bluetooth/bluetooth_adapter_mac.h (right): https://codereview.chromium.org/1538173003/diff/220001/device/bluetooth/bluetooth_adapter_mac.h#newcode120 device/bluetooth/bluetooth_adapter_mac.h:120: CBCentralManager* GetCentralManagerForTesting(); Why is this method protected and not ...
4 years, 10 months ago (2016-02-11 10:55:39 UTC) #13
jlebel
Hello Mihai, All comments have been addressed. https://codereview.chromium.org/1538173003/diff/220001/device/bluetooth/bluetooth_adapter_mac.h File device/bluetooth/bluetooth_adapter_mac.h (right): https://codereview.chromium.org/1538173003/diff/220001/device/bluetooth/bluetooth_adapter_mac.h#newcode120 device/bluetooth/bluetooth_adapter_mac.h:120: CBCentralManager* GetCentralManagerForTesting(); ...
4 years, 10 months ago (2016-02-19 11:02:36 UTC) #14
msarda
https://codereview.chromium.org/1538173003/diff/220001/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://codereview.chromium.org/1538173003/diff/220001/device/bluetooth/bluetooth_adapter_mac.mm#newcode466 device/bluetooth/bluetooth_adapter_mac.mm:466: GetBluetoothLowEnergyDeviceMac(peripheral); On 2016/02/19 11:02:35, jlebel wrote: > On 2016/02/11 ...
4 years, 10 months ago (2016-02-22 14:01:06 UTC) #15
jlebel
I updated patch. https://codereview.chromium.org/1538173003/diff/240001/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://codereview.chromium.org/1538173003/diff/240001/device/bluetooth/bluetooth_adapter_mac.mm#newcode96 device/bluetooth/bluetooth_adapter_mac.mm:96: // Need to make sure the ...
4 years, 10 months ago (2016-02-24 16:54:55 UTC) #16
scheib
https://codereview.chromium.org/1538173003/diff/200001/device/bluetooth/test/bluetooth_test_mac.h File device/bluetooth/test/bluetooth_test_mac.h (right): https://codereview.chromium.org/1538173003/diff/200001/device/bluetooth/test/bluetooth_test_mac.h#newcode48 device/bluetooth/test/bluetooth_test_mac.h:48: void* mock_central_manager_ = NULL; On 2016/02/10 21:20:08, jlebel wrote: ...
4 years, 9 months ago (2016-03-01 17:38:17 UTC) #17
jlebel
https://codereview.chromium.org/1538173003/diff/200001/device/bluetooth/test/bluetooth_test_mac.h File device/bluetooth/test/bluetooth_test_mac.h (right): https://codereview.chromium.org/1538173003/diff/200001/device/bluetooth/test/bluetooth_test_mac.h#newcode48 device/bluetooth/test/bluetooth_test_mac.h:48: void* mock_central_manager_ = NULL; On 2016/03/01 17:38:17, scheib wrote: ...
4 years, 9 months ago (2016-03-01 21:44:45 UTC) #18
msarda
LGTM with some nits. https://codereview.chromium.org/1538173003/diff/300001/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://codereview.chromium.org/1538173003/diff/300001/device/bluetooth/bluetooth_adapter_mac.mm#newcode106 device/bluetooth/bluetooth_adapter_mac.mm:106: } Based on our discussion ...
4 years, 9 months ago (2016-03-02 10:31:48 UTC) #19
jlebel
https://codereview.chromium.org/1538173003/diff/300001/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://codereview.chromium.org/1538173003/diff/300001/device/bluetooth/bluetooth_adapter_mac.mm#newcode106 device/bluetooth/bluetooth_adapter_mac.mm:106: } On 2016/03/02 10:31:48, msarda wrote: > Based on ...
4 years, 9 months ago (2016-03-02 15:34:17 UTC) #20
scheib
LGTM with optional suggestion: https://codereview.chromium.org/1538173003/diff/320001/device/bluetooth/test/bluetooth_test_mac.mm File device/bluetooth/test/bluetooth_test_mac.mm (right): https://codereview.chromium.org/1538173003/diff/320001/device/bluetooth/test/bluetooth_test_mac.mm#newcode33 device/bluetooth/test/bluetooth_test_mac.mm:33: MockCentralManager* central_manager() { return mock_central_manager_.get(); ...
4 years, 9 months ago (2016-03-02 16:28:42 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1538173003/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1538173003/360001
4 years, 9 months ago (2016-03-03 23:02:00 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/75780)
4 years, 9 months ago (2016-03-03 23:08:33 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1538173003/370001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1538173003/370001
4 years, 9 months ago (2016-03-08 21:20:42 UTC) #28
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/77690)
4 years, 9 months ago (2016-03-08 21:25:09 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1538173003/390001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1538173003/390001
4 years, 9 months ago (2016-03-09 21:29:38 UTC) #32
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/78400)
4 years, 9 months ago (2016-03-09 21:36:28 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1538173003/510001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1538173003/510001
4 years, 9 months ago (2016-03-11 21:50:24 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1538173003/510001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1538173003/510001
4 years, 9 months ago (2016-03-14 09:25:11 UTC) #41
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-14 10:27:09 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1538173003/510001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1538173003/510001
4 years, 9 months ago (2016-03-14 10:28:58 UTC) #46
commit-bot: I haz the power
Committed patchset #27 (id:510001)
4 years, 9 months ago (2016-03-14 10:33:38 UTC) #48
commit-bot: I haz the power
4 years, 9 months ago (2016-03-14 10:35:36 UTC) #50
Message was sent while issue was closed.
Patchset 27 (id:??) landed as
https://crrev.com/a58fd7578542a34fe30bf56ae52b884ad71c9061
Cr-Commit-Position: refs/heads/master@{#380951}

Powered by Google App Engine
This is Rietveld 408576698