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

Issue 2767813002: Bluetooth: macOS: Implementing read/write for descriptors (Closed)

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

Description

Bluetooth: macOS: Implementing read/write for descriptors Implementation and unit tests. BUG=624017 Review-Url: https://codereview.chromium.org/2767813002 Cr-Commit-Position: refs/heads/master@{#463740} Committed: https://chromium.googlesource.com/chromium/src/+/1cc94fe3b88dc9f048d4fce8c8814fd334d120d1

Patch Set 1 #

Patch Set 2 : Adding NSError logs (and merge) #

Total comments: 20

Patch Set 3 : NSString/NSNumber type for descriptor value #

Total comments: 28

Patch Set 4 : . #

Total comments: 6

Patch Set 5 : Removing CFNumberGetByteSize() #

Total comments: 3

Patch Set 6 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+508 lines, -56 lines) Patch
M device/bluetooth/bluetooth_low_energy_device_mac.h View 3 chunks +7 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_device_mac.mm View 1 3 chunks +34 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_peripheral_delegate.mm View 2 chunks +20 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h View 1 2 3 2 chunks +2 lines, -7 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_descriptor_mac.h View 2 chunks +17 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm View 1 2 3 4 5 3 chunks +126 lines, -17 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_descriptor_unittest.cc View 1 2 20 chunks +155 lines, -28 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_mac.h View 1 2 5 chunks +35 lines, -0 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_mac.mm View 1 2 6 chunks +72 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_cbcharacteristic_mac.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/test/mock_bluetooth_cbcharacteristic_mac.mm View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_cbdescriptor_mac.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_cbdescriptor_mac.mm View 1 2 3 chunks +20 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm View 2 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (23 generated)
jlebel
Hello Giovanni, Can you review this patch related to implement descriptors on macOS? The tricky ...
3 years, 8 months ago (2017-03-30 22:10:36 UTC) #18
ortuno
Looking good! re: "value", wow that's a really bad API choice. Left some more comments ...
3 years, 8 months ago (2017-04-03 01:27:50 UTC) #19
ortuno
https://codereview.chromium.org/2767813002/diff/140002/device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm File device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm (right): https://codereview.chromium.org/2767813002/diff/140002/device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm#newcode68 device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm:68: BluetoothRemoteGattDescriptorMac::~BluetoothRemoteGattDescriptorMac() {} We need to call pending error callbacks ...
3 years, 8 months ago (2017-04-03 04:51:46 UTC) #20
jlebel
Thanks for your input. https://codereview.chromium.org/2767813002/diff/140002/device/bluetooth/bluetooth_remote_gatt_descriptor_mac.h File device/bluetooth/bluetooth_remote_gatt_descriptor_mac.h (right): https://codereview.chromium.org/2767813002/diff/140002/device/bluetooth/bluetooth_remote_gatt_descriptor_mac.h#newcode73 device/bluetooth/bluetooth_remote_gatt_descriptor_mac.h:73: bool value_read_or_write_in_progress_; On 2017/04/03 01:27:50, ...
3 years, 8 months ago (2017-04-04 22:13:12 UTC) #21
ortuno
https://codereview.chromium.org/2767813002/diff/190001/device/bluetooth/bluetooth_low_energy_device_mac.mm File device/bluetooth/bluetooth_low_energy_device_mac.mm (right): https://codereview.chromium.org/2767813002/diff/190001/device/bluetooth/bluetooth_low_energy_device_mac.mm#newcode433 device/bluetooth/bluetooth_low_energy_device_mac.mm:433: return gatt_characteristic->GetBluetoothRemoteGattDescriptorMac( optional: Is GetBluetoothRemoteGattDescriptorMac always expected to return ...
3 years, 8 months ago (2017-04-04 23:39:44 UTC) #23
ortuno
+tapted for the function that converts from value to vector.
3 years, 8 months ago (2017-04-04 23:40:50 UTC) #25
tapted
https://codereview.chromium.org/2767813002/diff/190001/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h File device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h (right): https://codereview.chromium.org/2767813002/diff/190001/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h#newcode18 device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h:18: @class CBCharacteristic; note @class isn't a valid keyword when ...
3 years, 8 months ago (2017-04-05 00:38:38 UTC) #26
jlebel
Thanks Trent and Giovanni for your inputs. https://codereview.chromium.org/2767813002/diff/190001/device/bluetooth/bluetooth_low_energy_device_mac.mm File device/bluetooth/bluetooth_low_energy_device_mac.mm (right): https://codereview.chromium.org/2767813002/diff/190001/device/bluetooth/bluetooth_low_energy_device_mac.mm#newcode433 device/bluetooth/bluetooth_low_energy_device_mac.mm:433: return gatt_characteristic->GetBluetoothRemoteGattDescriptorMac( ...
3 years, 8 months ago (2017-04-06 17:48:49 UTC) #27
tapted
https://codereview.chromium.org/2767813002/diff/190001/device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm File device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm (right): https://codereview.chromium.org/2767813002/diff/190001/device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm#newcode24 device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm:24: NSString* string = ObjCCast<NSString>(objcValue); On 2017/04/06 17:48:49, jlebel wrote: ...
3 years, 8 months ago (2017-04-07 04:40:43 UTC) #28
jlebel
Hello Trent, I guess it is simpler to not use CFNumberGetByteSize(). If you don't mind, ...
3 years, 8 months ago (2017-04-09 22:41:32 UTC) #29
tapted
VectorValueFromObjC lgtm - I skimmed the other ObjC stuff in the diff - looks good ...
3 years, 8 months ago (2017-04-10 00:16:23 UTC) #30
ortuno
lgtm bar small logging request. https://codereview.chromium.org/2767813002/diff/230001/device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm File device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm (right): https://codereview.chromium.org/2767813002/diff/230001/device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm#newcode35 device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm:35: DCHECK(data) << "Unexpected value: ...
3 years, 8 months ago (2017-04-10 01:52:12 UTC) #31
ortuno
https://codereview.chromium.org/2767813002/diff/230001/device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm File device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm (right): https://codereview.chromium.org/2767813002/diff/230001/device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm#newcode35 device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm:35: DCHECK(data) << "Unexpected value: " On 2017/04/10 at 01:52:11, ...
3 years, 8 months ago (2017-04-10 23:36:39 UTC) #32
jlebel
Thanks, https://codereview.chromium.org/2767813002/diff/230001/device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm File device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm (right): https://codereview.chromium.org/2767813002/diff/230001/device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm#newcode35 device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm:35: DCHECK(data) << "Unexpected value: " On 2017/04/10 23:36:39, ...
3 years, 8 months ago (2017-04-11 18:48:18 UTC) #33
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/2767813002/250001
3 years, 8 months ago (2017-04-11 18:50:30 UTC) #36
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 20:05:50 UTC) #39
Message was sent while issue was closed.
Committed patchset #6 (id:250001) as
https://chromium.googlesource.com/chromium/src/+/1cc94fe3b88dc9f048d4fce8c881...

Powered by Google App Engine
This is Rietveld 408576698