Dry run: Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/130118)
3 years, 9 months ago
(2017-03-02 22:28:14 UTC)
#8
3 years, 9 months ago
(2017-03-03 02:57:13 UTC)
#12
Dry run: This issue passed the CQ dry run.
ortuno
https://codereview.chromium.org/2728623004/diff/40001/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm File device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm (left): https://codereview.chromium.org/2728623004/diff/40001/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm#oldcode260 device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm:260: UpdateValueAndNotify(); Ah good old mac. There are actually no ...
3 years, 9 months ago
(2017-03-03 05:28:37 UTC)
#13
https://codereview.chromium.org/2728623004/diff/60001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc File device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc (left): https://codereview.chromium.org/2728623004/diff/60001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc#oldcode499 device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:499: // Callback that make sure GattCharacteristicValueChanged has been called ...
3 years, 9 months ago
(2017-03-06 09:15:37 UTC)
#20
https://codereview.chromium.org/2728623004/diff/60001/device/bluetooth/blueto...
File device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc (left):
https://codereview.chromium.org/2728623004/diff/60001/device/bluetooth/blueto...
device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:499: //
Callback that make sure GattCharacteristicValueChanged has been called
Could you change an existing test to assert that the event is not getting fired?
https://codereview.chromium.org/2728623004/diff/60001/device/bluetooth/bluez/...
File device/bluetooth/bluez/bluetooth_gatt_bluez_unittest.cc (right):
https://codereview.chromium.org/2728623004/diff/60001/device/bluetooth/bluez/...
device/bluetooth/bluez/bluetooth_gatt_bluez_unittest.cc:1104: // Issue a read
request. A successful read results in a
Fix comment.
https://codereview.chromium.org/2728623004/diff/60001/device/bluetooth/bluez/...
device/bluetooth/bluez/bluetooth_gatt_bluez_unittest.cc:1160: EXPECT_EQ(1,
observer.gatt_characteristic_value_changed_count());
Please spend some time trying to understand tests before modifying them
otherwise we might break behavior in unintended ways or our implementation might
be buggy.
In this part of the test there are only Read requests so there shouldn't be a
characteristic value changed event. I think the following is happening:
1. We make first Read request which sets pending to true.
2. We make second Read request which sets pending to true.
3. Second read request fails with In Progress errors and sets pending to false.
4. First read request succeeds and notifies of value change since pending was
set to false we dispatch the even to all observers.
juncai
The CQ bit was checked by juncai@chromium.org to run a CQ dry run
3 years, 9 months ago
(2017-03-06 19:55:00 UTC)
#21
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/378607)
3 years, 9 months ago
(2017-03-06 21:47:28 UTC)
#24
3 years, 9 months ago
(2017-03-08 23:17:27 UTC)
#28
Dry run: This issue passed the CQ dry run.
juncai
https://codereview.chromium.org/2728623004/diff/60001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc File device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc (left): https://codereview.chromium.org/2728623004/diff/60001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc#oldcode499 device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:499: // Callback that make sure GattCharacteristicValueChanged has been called ...
3 years, 9 months ago
(2017-03-08 23:20:39 UTC)
#29
https://codereview.chromium.org/2728623004/diff/60001/device/bluetooth/blueto...
File device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc (left):
https://codereview.chromium.org/2728623004/diff/60001/device/bluetooth/blueto...
device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:499: //
Callback that make sure GattCharacteristicValueChanged has been called
On 2017/03/06 09:15:37, ortuno wrote:
> Could you change an existing test to assert that the event is not getting
fired?
Done.
https://codereview.chromium.org/2728623004/diff/60001/device/bluetooth/bluez/...
File device/bluetooth/bluez/bluetooth_gatt_bluez_unittest.cc (right):
https://codereview.chromium.org/2728623004/diff/60001/device/bluetooth/bluez/...
device/bluetooth/bluez/bluetooth_gatt_bluez_unittest.cc:1104: // Issue a read
request. A successful read results in a
On 2017/03/06 09:15:37, ortuno wrote:
> Fix comment.
Done.
https://codereview.chromium.org/2728623004/diff/60001/device/bluetooth/bluez/...
device/bluetooth/bluez/bluetooth_gatt_bluez_unittest.cc:1160: EXPECT_EQ(1,
observer.gatt_characteristic_value_changed_count());
On 2017/03/06 09:15:37, ortuno wrote:
> Please spend some time trying to understand tests before modifying them
> otherwise we might break behavior in unintended ways or our implementation
might
> be buggy.
>
> In this part of the test there are only Read requests so there shouldn't be a
> characteristic value changed event. I think the following is happening:
>
> 1. We make first Read request which sets pending to true.
> 2. We make second Read request which sets pending to true.
> 3. Second read request fails with In Progress errors and sets pending to
false.
> 4. First read request succeeds and notifies of value change since pending was
> set to false we dispatch the even to all observers.
Done.
ortuno
lgtm! https://codereview.chromium.org/2728623004/diff/100001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc File device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc (right): https://codereview.chromium.org/2728623004/diff/100001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc#newcode556 device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:556: // TODO(juncai): remove this #if once the bug ...
3 years, 9 months ago
(2017-03-09 00:01:52 UTC)
#30
lgtm!
https://codereview.chromium.org/2728623004/diff/100001/device/bluetooth/bluet...
File device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc (right):
https://codereview.chromium.org/2728623004/diff/100001/device/bluetooth/bluet...
device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:556: //
TODO(juncai): remove this #if once the bug on Windows is fixed.
optional: Since we share so many issues and someone else usually ends up
addressing TODOs, we usually just include the number in the TODO e.g.
TODO(crbug.com/699694): Remove this #if ...
https://codereview.chromium.org/2728623004/diff/100001/device/bluetooth/bluet...
device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:558: #if
!defined(OS_WIN)
optional:
TODO...
#if defined(OS_WIN)
EXPECT_FALSE(observer.last_gatt_characteristic_id().empty());
EXPECT_TRUE(observer.last_gatt_characteristic_uuid().IsValid());
#else
EXPECT_TRUE(observer.last_gatt_characteristic_id().empty());
EXPECT_FALSE(observer.last_gatt_characteristic_uuid().IsValid());
#endif
That way if someone improves the windows testing framework and ends up fixing
this issue they'll notice.
juncai
The CQ bit was checked by juncai@chromium.org to run a CQ dry run
3 years, 9 months ago
(2017-03-09 00:59:57 UTC)
#31
3 years, 9 months ago
(2017-03-09 02:35:12 UTC)
#34
Dry run: This issue passed the CQ dry run.
juncai
https://codereview.chromium.org/2728623004/diff/100001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc File device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc (right): https://codereview.chromium.org/2728623004/diff/100001/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc#newcode556 device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:556: // TODO(juncai): remove this #if once the bug on ...
3 years, 9 months ago
(2017-03-09 03:03:07 UTC)
#35
https://codereview.chromium.org/2728623004/diff/100001/device/bluetooth/bluet...
File device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc (right):
https://codereview.chromium.org/2728623004/diff/100001/device/bluetooth/bluet...
device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:556: //
TODO(juncai): remove this #if once the bug on Windows is fixed.
On 2017/03/09 00:01:52, ortuno wrote:
> optional: Since we share so many issues and someone else usually ends up
> addressing TODOs, we usually just include the number in the TODO e.g.
> TODO(crbug.com/699694): Remove this #if ...
Done.
https://codereview.chromium.org/2728623004/diff/100001/device/bluetooth/bluet...
device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:558: #if
!defined(OS_WIN)
On 2017/03/09 00:01:52, ortuno wrote:
> optional:
>
> TODO...
> #if defined(OS_WIN)
> EXPECT_FALSE(observer.last_gatt_characteristic_id().empty());
> EXPECT_TRUE(observer.last_gatt_characteristic_uuid().IsValid());
> #else
> EXPECT_TRUE(observer.last_gatt_characteristic_id().empty());
> EXPECT_FALSE(observer.last_gatt_characteristic_uuid().IsValid());
> #endif
>
> That way if someone improves the windows testing framework and ends up fixing
> this issue they'll notice.
Done.
juncai
The CQ bit was checked by juncai@chromium.org
3 years, 9 months ago
(2017-03-09 03:03:27 UTC)
#36
CQ is committing da patch. Bot data: {"patchset_id": 120001, "attempt_start_ts": 1489028607724830, "parent_rev": "746ad2a88e424ff48b4153b7db219eea98a0e79d", "commit_rev": "50cead395565600cca22d02bf404ea1fc37e3897"}
3 years, 9 months ago
(2017-03-09 03:09:54 UTC)
#39
CQ is committing da patch.
Bot data: {"patchset_id": 120001, "attempt_start_ts": 1489028607724830,
"parent_rev": "746ad2a88e424ff48b4153b7db219eea98a0e79d", "commit_rev":
"50cead395565600cca22d02bf404ea1fc37e3897"}
commit-bot: I haz the power
Description was changed from ========== Fix getting notified twice after subscribe to notifications and call ...
3 years, 9 months ago
(2017-03-09 03:10:36 UTC)
#40
Message was sent while issue was closed.
Description was changed from
==========
Fix getting notified twice after subscribe to notifications and call readValue
The CL:
https://codereview.chromium.org/2718583002
adds code that sends an event on the readValue callback. So if subscribes
to notifications and then calls readValue, will get notified twice. This
CL fixes this issue.
BUG=697702
==========
to
==========
Fix getting notified twice after subscribe to notifications and call readValue
The CL:
https://codereview.chromium.org/2718583002
adds code that sends an event on the readValue callback. So if subscribes
to notifications and then calls readValue, will get notified twice. This
CL fixes this issue.
BUG=697702
Review-Url: https://codereview.chromium.org/2728623004
Cr-Commit-Position: refs/heads/master@{#455652}
Committed:
https://chromium.googlesource.com/chromium/src/+/50cead395565600cca22d02bf404...
==========
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/50cead395565600cca22d02bf404ea1fc37e3897
3 years, 9 months ago
(2017-03-09 03:10:37 UTC)
#41
Issue 2728623004: Fix getting notified twice after subscribe to notifications and call readValue
(Closed)
Created 3 years, 9 months ago by juncai
Modified 3 years, 9 months ago
Reviewers: ortuno
Base URL:
Comments: 16