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

Issue 2641133003: Bluetooth: macOS: Adding counter for service discovery callbacks. (Closed)

Created:
3 years, 11 months ago by jlebel
Modified:
3 years, 9 months ago
Reviewers:
ortuno
CC:
chromium-reviews, mac-reviews_chromium.org, ortuno+watch_chromium.org, scheib+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Bluetooth: macOS: Adding counter for service discovery callbacks. Each time -[CBPeripheral discoverServices:] is called, BluetoothLowEnergyDeviceMac::DiscoverPrimaryServices() has to be called for the device to complete. BUG=697246 Review-Url: https://codereview.chromium.org/2641133003 Cr-Commit-Position: refs/heads/master@{#455002} Committed: https://chromium.googlesource.com/chromium/src/+/0d7b7b5667f623683dcc42b6c60da2274ab1eb26

Patch Set 1 #

Patch Set 2 : Unit test #

Patch Set 3 : Adding logs #

Total comments: 9

Patch Set 4 : Better test #

Total comments: 8

Patch Set 5 : Better tests #

Patch Set 6 : Resistant to bad device #

Total comments: 4

Patch Set 7 : Splitting test #

Total comments: 12

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : Adding BluetoothTestMac::SimulateDidDiscoverServices() #

Total comments: 6

Patch Set 11 : Adding comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -13 lines) Patch
M device/bluetooth/bluetooth_adapter_mac.mm View 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_device_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +89 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_device_mac.h View 2 chunks +8 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_device_mac.mm View 1 2 3 4 5 6 7 6 chunks +32 lines, -10 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_mac.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -0 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_mac.mm View 1 2 3 4 5 6 7 8 9 3 chunks +21 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_cbperipheral_mac.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 44 (24 generated)
jlebel
Hello Giovanni, Can you review this patch related to have an exact match between -[CBPeripheral ...
3 years, 11 months ago (2017-01-20 02:51:31 UTC) #3
ortuno
https://codereview.chromium.org/2641133003/diff/60001/device/bluetooth/bluetooth_low_energy_device_mac.mm File device/bluetooth/bluetooth_low_energy_device_mac.mm (right): https://codereview.chromium.org/2641133003/diff/60001/device/bluetooth/bluetooth_low_energy_device_mac.mm#newcode218 device/bluetooth/bluetooth_low_energy_device_mac.mm:218: DCHECK(discovery_pending_count_ >= 0); Looking at the code it seems ...
3 years, 11 months ago (2017-01-22 20:39:14 UTC) #9
jlebel
https://codereview.chromium.org/2641133003/diff/60001/device/bluetooth/bluetooth_low_energy_device_mac.mm File device/bluetooth/bluetooth_low_energy_device_mac.mm (right): https://codereview.chromium.org/2641133003/diff/60001/device/bluetooth/bluetooth_low_energy_device_mac.mm#newcode218 device/bluetooth/bluetooth_low_energy_device_mac.mm:218: DCHECK(discovery_pending_count_ >= 0); On 2017/01/22 20:39:14, ortuno wrote: > ...
3 years, 11 months ago (2017-01-22 21:23:33 UTC) #10
ortuno
https://codereview.chromium.org/2641133003/diff/60001/device/bluetooth/bluetooth_low_energy_device_mac.mm File device/bluetooth/bluetooth_low_energy_device_mac.mm (right): https://codereview.chromium.org/2641133003/diff/60001/device/bluetooth/bluetooth_low_energy_device_mac.mm#newcode218 device/bluetooth/bluetooth_low_energy_device_mac.mm:218: DCHECK(discovery_pending_count_ >= 0); On 2017/01/22 at 21:23:33, jlebel wrote: ...
3 years, 11 months ago (2017-01-23 00:18:23 UTC) #11
ortuno
https://codereview.chromium.org/2641133003/diff/60001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/2641133003/diff/60001/device/bluetooth/bluetooth_device_unittest.cc#newcode403 device/bluetooth/bluetooth_device_unittest.cc:403: TEST_F(BluetoothTest, DoubleDidModifyServicesEvent) { This is a good test for ...
3 years, 11 months ago (2017-01-23 06:12:39 UTC) #12
jlebel
https://codereview.chromium.org/2641133003/diff/60001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/2641133003/diff/60001/device/bluetooth/bluetooth_device_unittest.cc#newcode403 device/bluetooth/bluetooth_device_unittest.cc:403: TEST_F(BluetoothTest, DoubleDidModifyServicesEvent) { On 2017/01/23 06:12:38, ortuno wrote: > ...
3 years, 11 months ago (2017-01-23 18:49:38 UTC) #13
ortuno
https://codereview.chromium.org/2641133003/diff/60001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/2641133003/diff/60001/device/bluetooth/bluetooth_device_unittest.cc#newcode429 device/bluetooth/bluetooth_device_unittest.cc:429: SimulateGattServicesDiscovered(device, {} /* services */); On 2017/01/23 at 18:49:38, ...
3 years, 11 months ago (2017-01-23 20:44:02 UTC) #14
jlebel
https://codereview.chromium.org/2641133003/diff/80001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/2641133003/diff/80001/device/bluetooth/bluetooth_device_unittest.cc#newcode399 device/bluetooth/bluetooth_device_unittest.cc:399: // Tests that receiving 2 notifications in a row ...
3 years, 11 months ago (2017-01-26 00:36:54 UTC) #16
jlebel
On 2017/01/26 00:36:54, jlebel wrote: > https://codereview.chromium.org/2641133003/diff/80001/device/bluetooth/bluetooth_device_unittest.cc > File device/bluetooth/bluetooth_device_unittest.cc (right): > > https://codereview.chromium.org/2641133003/diff/80001/device/bluetooth/bluetooth_device_unittest.cc#newcode399 > ...
3 years, 10 months ago (2017-02-21 22:48:45 UTC) #23
ortuno
https://codereview.chromium.org/2641133003/diff/140001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/2641133003/diff/140001/device/bluetooth/bluetooth_device_unittest.cc#newcode399 device/bluetooth/bluetooth_device_unittest.cc:399: // Tests that receiving 2 notifications in a row ...
3 years, 9 months ago (2017-02-27 07:01:41 UTC) #26
jlebel
https://codereview.chromium.org/2641133003/diff/140001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/2641133003/diff/140001/device/bluetooth/bluetooth_device_unittest.cc#newcode399 device/bluetooth/bluetooth_device_unittest.cc:399: // Tests that receiving 2 notifications in a row ...
3 years, 9 months ago (2017-02-28 01:54:35 UTC) #27
ortuno
https://codereview.chromium.org/2641133003/diff/160001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/2641133003/diff/160001/device/bluetooth/bluetooth_device_unittest.cc#newcode445 device/bluetooth/bluetooth_device_unittest.cc:445: EXPECT_EQ(gatt_characteristic_discovery_attempts_, 2); Shouldn't there be only one characteristic discovery ...
3 years, 9 months ago (2017-02-28 02:06:50 UTC) #28
jlebel
https://codereview.chromium.org/2641133003/diff/160001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/2641133003/diff/160001/device/bluetooth/bluetooth_device_unittest.cc#newcode445 device/bluetooth/bluetooth_device_unittest.cc:445: EXPECT_EQ(gatt_characteristic_discovery_attempts_, 2); On 2017/02/28 02:06:50, ortuno wrote: > Shouldn't ...
3 years, 9 months ago (2017-02-28 23:16:18 UTC) #29
ortuno
lgtm with some optional suggestions. https://codereview.chromium.org/2641133003/diff/160001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/2641133003/diff/160001/device/bluetooth/bluetooth_device_unittest.cc#newcode433 device/bluetooth/bluetooth_device_unittest.cc:433: SimulateGattServicesDiscovered(device, services1); optional: You ...
3 years, 9 months ago (2017-02-28 23:28:11 UTC) #30
jlebel
https://codereview.chromium.org/2641133003/diff/160001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/2641133003/diff/160001/device/bluetooth/bluetooth_device_unittest.cc#newcode433 device/bluetooth/bluetooth_device_unittest.cc:433: SimulateGattServicesDiscovered(device, services1); On 2017/02/28 23:28:11, ortuno wrote: > optional: ...
3 years, 9 months ago (2017-02-28 23:52:18 UTC) #32
jlebel
https://codereview.chromium.org/2641133003/diff/160001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/2641133003/diff/160001/device/bluetooth/bluetooth_device_unittest.cc#newcode475 device/bluetooth/bluetooth_device_unittest.cc:475: EXPECT_EQ(gatt_characteristic_discovery_attempts_, 0); On 2017/02/28 23:52:16, jlebel wrote: > On ...
3 years, 9 months ago (2017-03-04 16:59:02 UTC) #33
ortuno
lgtm bar one comment and suggestion for future patches. https://codereview.chromium.org/2641133003/diff/230009/device/bluetooth/bluetooth_low_energy_device_mac.mm File device/bluetooth/bluetooth_low_energy_device_mac.mm (right): https://codereview.chromium.org/2641133003/diff/230009/device/bluetooth/bluetooth_low_energy_device_mac.mm#newcode232 device/bluetooth/bluetooth_low_energy_device_mac.mm:232: ...
3 years, 9 months ago (2017-03-06 09:49:55 UTC) #37
jlebel
https://codereview.chromium.org/2641133003/diff/230009/device/bluetooth/bluetooth_low_energy_device_mac.mm File device/bluetooth/bluetooth_low_energy_device_mac.mm (right): https://codereview.chromium.org/2641133003/diff/230009/device/bluetooth/bluetooth_low_energy_device_mac.mm#newcode232 device/bluetooth/bluetooth_low_energy_device_mac.mm:232: gatt_service_mac->DiscoverCharacteristics(); On 2017/03/06 09:49:55, ortuno wrote: > Unrelated to ...
3 years, 9 months ago (2017-03-06 22:13:20 UTC) #38
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/2641133003/290001
3 years, 9 months ago (2017-03-06 22:14:06 UTC) #41
commit-bot: I haz the power
3 years, 9 months ago (2017-03-06 23:58:22 UTC) #44
Message was sent while issue was closed.
Committed patchset #11 (id:290001) as
https://chromium.googlesource.com/chromium/src/+/0d7b7b5667f623683dcc42b6c60d...

Powered by Google App Engine
This is Rietveld 408576698