4 years, 6 months ago
(2016-06-22 19:27:47 UTC)
#3
Patchset #2 (id:20001) has been deleted
jlebel
Description was changed from ========== Write characteristics on macOS BUG= ========== to ========== bluetooth: mac: ...
4 years, 6 months ago
(2016-06-22 19:29:09 UTC)
#4
Description was changed from
==========
Write characteristics on macOS
BUG=
==========
to
==========
bluetooth: mac: write characteristic implementation
Adding implementing write characteristic in
BluetoothRemoteGattCharacteristicMac, and adding unit tests, mock and
simulation.
BUG=609067
==========
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
4 years, 6 months ago
(2016-06-22 19:34:43 UTC)
#5
Dry run: Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/25008) ios-device-gn on ...
4 years, 6 months ago
(2016-06-22 19:34:44 UTC)
#6
Hello Giovanni, Can you review the write implementation? Thanks,
4 years, 6 months ago
(2016-06-22 19:39:16 UTC)
#10
Hello Giovanni,
Can you review the write implementation?
Thanks,
ortuno
Looking good. Just a couple of small issues. https://codereview.chromium.org/2074563002/diff/40001/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h File device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h (right): https://codereview.chromium.org/2074563002/diff/40001/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h#newcode85 device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h:85: bool ...
4 years, 6 months ago
(2016-06-22 21:37:46 UTC)
#11
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/86136)
4 years, 6 months ago
(2016-06-23 19:16:05 UTC)
#18
lgtm with comment fix https://codereview.chromium.org/2074563002/diff/40001/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm File device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm (right): https://codereview.chromium.org/2074563002/diff/40001/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm#newcode217 device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm:217: if (!characteristic_value_read_or_write_in_progress_) { On 2016/06/23 ...
4 years, 6 months ago
(2016-06-23 19:21:16 UTC)
#19
lgtm with comment fix
https://codereview.chromium.org/2074563002/diff/40001/device/bluetooth/blueto...
File device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm (right):
https://codereview.chromium.org/2074563002/diff/40001/device/bluetooth/blueto...
device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm:217: if
(!characteristic_value_read_or_write_in_progress_) {
On 2016/06/23 at 18:33:01, jlebel wrote:
> On 2016/06/22 21:37:45, ortuno wrote:
> > Please add a comment explaining when would this function get called if
neither
> > read nor write are in progress.
>
> I'm not sure when it would be the case. For me it close to be a DCHECK(),
unless a buggy device can send 2 confirmations of the same write (same for the
read).
Now that I think about it we have the same line in Android in case of a buggy
device sending two confirmations. Could you add the bit about the buggy device
to the comment?
https://codereview.chromium.org/2074563002/diff/60001/device/bluetooth/blueto...
File device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc (right):
https://codereview.chromium.org/2074563002/diff/60001/device/bluetooth/blueto...
device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:693:
synchronously when writing to a characteristic
Fix comment :)
jlebel
The CQ bit was checked by jlebel@chromium.org to run a CQ dry run
4 years, 6 months ago
(2016-06-23 19:27:56 UTC)
#20
https://codereview.chromium.org/2074563002/diff/40001/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm File device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm (right): https://codereview.chromium.org/2074563002/diff/40001/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm#newcode217 device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm:217: if (!characteristic_value_read_or_write_in_progress_) { On 2016/06/23 19:21:16, ortuno wrote: > ...
4 years, 6 months ago
(2016-06-23 19:28:30 UTC)
#21
https://codereview.chromium.org/2074563002/diff/40001/device/bluetooth/blueto...
File device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm (right):
https://codereview.chromium.org/2074563002/diff/40001/device/bluetooth/blueto...
device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm:217: if
(!characteristic_value_read_or_write_in_progress_) {
On 2016/06/23 19:21:16, ortuno wrote:
> On 2016/06/23 at 18:33:01, jlebel wrote:
> > On 2016/06/22 21:37:45, ortuno wrote:
> > > Please add a comment explaining when would this function get called if
> neither
> > > read nor write are in progress.
> >
> > I'm not sure when it would be the case. For me it close to be a DCHECK(),
> unless a buggy device can send 2 confirmations of the same write (same for the
> read).
>
> Now that I think about it we have the same line in Android in case of a buggy
> device sending two confirmations. Could you add the bit about the buggy device
> to the comment?
I'm not an expert in the BLE protocol, I don't known if it is possible. But I
did copy this pattern from Android or windows. I don't know if the macOS would
catch it or not.
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2074563002/100001
4 years, 6 months ago
(2016-06-23 19:28:41 UTC)
#22
4 years, 6 months ago
(2016-06-23 22:08:42 UTC)
#24
Dry run: This issue passed the CQ dry run.
msarda
LGTM with a suggestion. https://codereview.chromium.org/2074563002/diff/100001/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h File device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h (right): https://codereview.chromium.org/2074563002/diff/100001/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h#newcode13 device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h:13: typedef NS_ENUM(NSInteger, CBCharacteristicWriteType); Why is ...
4 years, 5 months ago
(2016-06-27 11:41:36 UTC)
#25
LGTM with a suggestion.
https://codereview.chromium.org/2074563002/diff/100001/device/bluetooth/bluet...
File device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h (right):
https://codereview.chromium.org/2074563002/diff/100001/device/bluetooth/bluet...
device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h:13: typedef
NS_ENUM(NSInteger, CBCharacteristicWriteType);
Why is this typedef needed? Could CoreBluetooth header be included here to avoid
the redefinition of this enum?
If this is dependent on a build version, then you may use something like:
#if defined(MAC_OS_X_VERSION_10_9) && \
MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_9
#include <CoreBluetooth/CoreBluetooth.h>
#else
@class CBCharacteristic;
typedef NS_ENUM(NSInteger, CBCharacteristicWriteType);
#endif
4 years, 5 months ago
(2016-06-27 12:20:36 UTC)
#26
https://codereview.chromium.org/2074563002/diff/100001/device/bluetooth/bluet...
File device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h (right):
https://codereview.chromium.org/2074563002/diff/100001/device/bluetooth/bluet...
device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h:13: typedef
NS_ENUM(NSInteger, CBCharacteristicWriteType);
On 2016/06/27 11:41:36, msarda wrote:
> Why is this typedef needed? Could CoreBluetooth header be included here to
avoid
> the redefinition of this enum?
>
> If this is dependent on a build version, then you may use something like:
> #if defined(MAC_OS_X_VERSION_10_9) && \
> MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_9
> #include <CoreBluetooth/CoreBluetooth.h>
> #else
> @class CBCharacteristic;
> typedef NS_ENUM(NSInteger, CBCharacteristicWriteType);
> #endif
Done.
jlebel
The CQ bit was checked by jlebel@chromium.org to run a CQ dry run
4 years, 5 months ago
(2016-06-27 12:20:47 UTC)
#27
Dry run: Try jobs failed on following builders: ios-device-gn on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-gn/builds/27194) ios-simulator on ...
4 years, 5 months ago
(2016-06-27 12:23:10 UTC)
#30
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/27019) ios-simulator on ...
4 years, 5 months ago
(2016-06-27 12:45:53 UTC)
#34
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/245917)
4 years, 5 months ago
(2016-06-27 18:38:58 UTC)
#40
Description was changed from ========== bluetooth: mac: write characteristic implementation Adding implementing write characteristic in ...
4 years, 5 months ago
(2016-06-28 01:43:39 UTC)
#44
Message was sent while issue was closed.
Description was changed from
==========
bluetooth: mac: write characteristic implementation
Adding implementing write characteristic in
BluetoothRemoteGattCharacteristicMac, and adding unit tests, mock and
simulation.
BUG=609067
==========
to
==========
bluetooth: mac: write characteristic implementation
Adding implementing write characteristic in
BluetoothRemoteGattCharacteristicMac, and adding unit tests, mock and
simulation.
BUG=609067
==========
commit-bot: I haz the power
Committed patchset #7 (id:180001)
4 years, 5 months ago
(2016-06-28 01:43:40 UTC)
#45
Message was sent while issue was closed.
Committed patchset #7 (id:180001)
commit-bot: I haz the power
Description was changed from ========== bluetooth: mac: write characteristic implementation Adding implementing write characteristic in ...
4 years, 5 months ago
(2016-06-28 01:45:22 UTC)
#46
Message was sent while issue was closed.
Description was changed from
==========
bluetooth: mac: write characteristic implementation
Adding implementing write characteristic in
BluetoothRemoteGattCharacteristicMac, and adding unit tests, mock and
simulation.
BUG=609067
==========
to
==========
bluetooth: mac: write characteristic implementation
Adding implementing write characteristic in
BluetoothRemoteGattCharacteristicMac, and adding unit tests, mock and
simulation.
BUG=609067
Committed: https://crrev.com/4e58d3d7f3befa079ab00b65b9ffc7dd9291d44b
Cr-Commit-Position: refs/heads/master@{#402367}
==========
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/4e58d3d7f3befa079ab00b65b9ffc7dd9291d44b Cr-Commit-Position: refs/heads/master@{#402367}
4 years, 5 months ago
(2016-06-28 01:45:23 UTC)
#47
Issue 2074563002: bluetooth: mac: write characteristic implementation
(Closed)
Created 4 years, 6 months ago by jlebel
Modified 4 years, 5 months ago
Reviewers: ortuno, fbeaufortchromium, msarda, scheib
Base URL: https://chromium.googlesource.com/chromium/src.git@read_characteristicscan_servicescan_cleanup
Comments: 17