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

Issue 1779083002: bluetooth: Test & make StartNotifySession reentrant. (Closed)

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

Description

bluetooth: Test & make StartNotifySession reentrant. Follow up work from "bluetooth: android: Confirm the notify session after the descriptor has been written." https://crrev.com/1712593002. o Protects against reentrancy issue in OnStartNotifySessionSuccess and OnStartNotifySessionError by swapping callbacks container. o Adds unit test for StartNotifySession failure condition. o Adds unit test for StartNotifySession after GATT objects deleted. BUG=584369 Committed: https://crrev.com/fc2e764e46a19ec3ef3fce0deffb261424cd69f3 Cr-Commit-Position: refs/heads/master@{#383285}

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : Updated patchset dependency #

Patch Set 5 : Updated patchset dependency #

Total comments: 10

Patch Set 6 : addressed ortuno comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -29 lines) Patch
M device/bluetooth/bluetooth_gatt_characteristic_unittest.cc View 1 2 3 4 5 6 chunks +63 lines, -4 lines 0 comments Download
M device/bluetooth/bluetooth_gatt_descriptor_unittest.cc View 1 2 4 chunks +6 lines, -3 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic_android.h View 2 chunks +1 line, -3 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic_android.cc View 1 2 3 4 5 5 chunks +22 lines, -15 lines 0 comments Download
M device/bluetooth/test/bluetooth_test.h View 1 1 chunk +19 lines, -0 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_android.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_android.cc View 1 2 3 4 1 chunk +33 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 20 (8 generated)
scheib
4 years, 9 months ago (2016-03-11 04:51:01 UTC) #3
ortuno
https://codereview.chromium.org/1779083002/diff/20001/device/bluetooth/bluetooth_gatt_characteristic_unittest.cc File device/bluetooth/bluetooth_gatt_characteristic_unittest.cc (right): https://codereview.chromium.org/1779083002/diff/20001/device/bluetooth/bluetooth_gatt_characteristic_unittest.cc#newcode319 device/bluetooth/bluetooth_gatt_characteristic_unittest.cc:319: DeleteDevice(device_); // TODO(576906) delete only the characteristic. nit: This ...
4 years, 9 months ago (2016-03-13 22:45:04 UTC) #4
scheib
https://codereview.chromium.org/1779083002/diff/20001/device/bluetooth/bluetooth_gatt_characteristic_unittest.cc File device/bluetooth/bluetooth_gatt_characteristic_unittest.cc (right): https://codereview.chromium.org/1779083002/diff/20001/device/bluetooth/bluetooth_gatt_characteristic_unittest.cc#newcode319 device/bluetooth/bluetooth_gatt_characteristic_unittest.cc:319: DeleteDevice(device_); // TODO(576906) delete only the characteristic. On 2016/03/13 ...
4 years, 9 months ago (2016-03-14 20:00:16 UTC) #5
scheib
ortuno PTAL
4 years, 9 months ago (2016-03-25 00:14:25 UTC) #6
ortuno
https://codereview.chromium.org/1779083002/diff/80001/device/bluetooth/bluetooth_gatt_characteristic_unittest.cc File device/bluetooth/bluetooth_gatt_characteristic_unittest.cc (right): https://codereview.chromium.org/1779083002/diff/80001/device/bluetooth/bluetooth_gatt_characteristic_unittest.cc#newcode922 device/bluetooth/bluetooth_gatt_characteristic_unittest.cc:922: // Tests multiple StartNotifySession success. Wrong test description. https://codereview.chromium.org/1779083002/diff/80001/device/bluetooth/bluetooth_gatt_characteristic_unittest.cc#newcode970 ...
4 years, 9 months ago (2016-03-25 02:07:31 UTC) #7
scheib
https://codereview.chromium.org/1779083002/diff/80001/device/bluetooth/bluetooth_gatt_characteristic_unittest.cc File device/bluetooth/bluetooth_gatt_characteristic_unittest.cc (right): https://codereview.chromium.org/1779083002/diff/80001/device/bluetooth/bluetooth_gatt_characteristic_unittest.cc#newcode922 device/bluetooth/bluetooth_gatt_characteristic_unittest.cc:922: // Tests multiple StartNotifySession success. On 2016/03/25 02:07:31, ortuno ...
4 years, 9 months ago (2016-03-25 02:35:01 UTC) #9
ortuno
lgtm
4 years, 9 months ago (2016-03-25 02:36:15 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1779083002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1779083002/120001
4 years, 9 months ago (2016-03-25 02:50:27 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/201957)
4 years, 9 months ago (2016-03-25 04:22:15 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1779083002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1779083002/120001
4 years, 9 months ago (2016-03-25 15:21:54 UTC) #16
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 9 months ago (2016-03-25 16:25:17 UTC) #18
commit-bot: I haz the power
4 years, 9 months ago (2016-03-25 16:26:45 UTC) #20
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/fc2e764e46a19ec3ef3fce0deffb261424cd69f3
Cr-Commit-Position: refs/heads/master@{#383285}

Powered by Google App Engine
This is Rietveld 408576698