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

Issue 1919683002: Adapter changes for implementing local GATT attributes and tests. (Closed)

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

Description

Adapter changes for implementing local GATT attributes and tests. In this CL, we implement the changes to the Bluetooth adapter for using all the code added in the previous CLs. This CL also adds the testing framework needed for testing these changes along with some basic tests. The major changes from the code on trunk are, .) The adapter now owns any created services. It also owns the dbus application provider. Ownership of all other providers is by the main application service provider and the Adapter doesn't have anything to do with them. .) The test framework adds an intermediate BluetoothGattServerTest class to take out common parts of testing local GATT attributes since there is a lot of common boilerplate code. .) The tests are basic right now but the framework verifies that many of the different moving parts are working correctly. What is missing is unit tests for the BluetoothGattApplicationProvider class's implementation. These will be added later once I figure out a good way to do so (we currently don't have any direct unit tests for any of the DBus classes). Part 3 of a 3 patch series: https://crrev.com/1915803002 Bluetooth class changes https://crrev.com/1914893002 DBus class changes https://crrev.com/1919683002 Adapter changes + tests <<< R=ortuno@chromium.org, scheib@chromium.org BUG=601935 Committed: https://crrev.com/3fb9aa6d505dd9c1e225403c865a482a62df892d Cr-Commit-Position: refs/heads/master@{#391346}

Patch Set 1 #

Patch Set 2 : object paths fix #

Patch Set 3 : merge (delegate leak fix) #

Patch Set 4 : merge (magic values fix) #

Patch Set 5 : merge #

Patch Set 6 : #

Total comments: 2

Patch Set 7 : merge #

Patch Set 8 : build fixes #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 8

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+894 lines, -35 lines) Patch
M device/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 3 chunks +6 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter.h View 3 chunks +22 lines, -19 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_unittest.cc View 7 chunks +48 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_local_gatt_characteristic_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +79 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_local_gatt_descriptor_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +84 lines, -0 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_adapter_bluez.h View 5 chunks +34 lines, -0 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_adapter_bluez.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +96 lines, -0 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -5 lines 0 comments Download
A device/bluetooth/test/bluetooth_gatt_server_test.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +53 lines, -0 lines 0 comments Download
A device/bluetooth/test/bluetooth_gatt_server_test.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +79 lines, -0 lines 0 comments Download
M device/bluetooth/test/bluetooth_test.h View 3 chunks +41 lines, -3 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_bluez.h View 2 chunks +32 lines, -0 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_bluez.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +147 lines, -8 lines 0 comments Download
A device/bluetooth/test/test_bluetooth_local_gatt_service_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +77 lines, -0 lines 0 comments Download
A device/bluetooth/test/test_bluetooth_local_gatt_service_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +83 lines, -0 lines 0 comments Download
M device/device_tests.gyp View 1 2 3 4 5 6 7 8 9 10 3 chunks +6 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 44 (18 generated)
rkc
4 years, 8 months ago (2016-04-25 00:46:21 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919683002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919683002/1
4 years, 8 months ago (2016-04-25 00:50:28 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/151084)
4 years, 8 months ago (2016-04-25 01:59:27 UTC) #5
rkc
merge (magic values fix)
4 years, 8 months ago (2016-04-25 19:09:11 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919683002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919683002/60001
4 years, 8 months ago (2016-04-25 19:11:18 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-25 21:04:21 UTC) #10
rkc
merge
4 years, 7 months ago (2016-04-27 20:07:47 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919683002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919683002/100001
4 years, 7 months ago (2016-04-28 03:10:46 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_rel_device_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_gn/builds/26526) mac_chromium_gn_rel on ...
4 years, 7 months ago (2016-04-28 03:13:32 UTC) #16
scheib
Only skimmed over this so far, general shape looks good. https://codereview.chromium.org/1919683002/diff/100001/device/bluetooth/bluetooth_adapter_unittest.cc File device/bluetooth/bluetooth_adapter_unittest.cc (right): https://codereview.chromium.org/1919683002/diff/100001/device/bluetooth/bluetooth_adapter_unittest.cc#newcode556 ...
4 years, 7 months ago (2016-04-28 05:02:29 UTC) #17
rkc
https://codereview.chromium.org/1919683002/diff/100001/device/bluetooth/bluetooth_adapter_unittest.cc File device/bluetooth/bluetooth_adapter_unittest.cc (right): https://codereview.chromium.org/1919683002/diff/100001/device/bluetooth/bluetooth_adapter_unittest.cc#newcode556 device/bluetooth/bluetooth_adapter_unittest.cc:556: #if defined(OS_ANDROID) || defined(OS_MACOSX) || defined(OS_WIN) On 2016/04/28 05:02:29, ...
4 years, 7 months ago (2016-04-28 19:02:44 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919683002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919683002/120001
4 years, 7 months ago (2016-04-28 19:04:08 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-28 20:20:39 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919683002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919683002/180001
4 years, 7 months ago (2016-04-29 08:49:40 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-29 10:13:58 UTC) #26
rkc
ping?
4 years, 7 months ago (2016-04-30 15:15:15 UTC) #27
scheib
https://codereview.chromium.org/1919683002/diff/180001/device/bluetooth/bluetooth_local_gatt_characteristic_unittest.cc File device/bluetooth/bluetooth_local_gatt_characteristic_unittest.cc (right): https://codereview.chromium.org/1919683002/diff/180001/device/bluetooth/bluetooth_local_gatt_characteristic_unittest.cc#newcode34 device/bluetooth/bluetooth_local_gatt_characteristic_unittest.cc:34: TestLocalGattServiceDelegate::value_to_write_ = 0x1337; Instead of statics for ::value_to_write etc, ...
4 years, 7 months ago (2016-05-03 05:55:57 UTC) #28
rkc
https://codereview.chromium.org/1919683002/diff/180001/device/bluetooth/bluetooth_local_gatt_characteristic_unittest.cc File device/bluetooth/bluetooth_local_gatt_characteristic_unittest.cc (right): https://codereview.chromium.org/1919683002/diff/180001/device/bluetooth/bluetooth_local_gatt_characteristic_unittest.cc#newcode34 device/bluetooth/bluetooth_local_gatt_characteristic_unittest.cc:34: TestLocalGattServiceDelegate::value_to_write_ = 0x1337; On 2016/05/03 05:55:57, scheib wrote: > ...
4 years, 7 months ago (2016-05-03 18:22:15 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919683002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919683002/200001
4 years, 7 months ago (2016-05-03 18:22:44 UTC) #31
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_dbg/builds/60693) android_chromium_gn_compile_rel on ...
4 years, 7 months ago (2016-05-03 18:26:51 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919683002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919683002/220001
4 years, 7 months ago (2016-05-03 18:29:18 UTC) #35
scheib
LGTM
4 years, 7 months ago (2016-05-03 18:53:04 UTC) #36
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-03 19:43:11 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919683002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919683002/220001
4 years, 7 months ago (2016-05-03 20:35:55 UTC) #40
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 7 months ago (2016-05-03 20:39:55 UTC) #42
commit-bot: I haz the power
4 years, 7 months ago (2016-05-03 20:41:26 UTC) #44
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/3fb9aa6d505dd9c1e225403c865a482a62df892d
Cr-Commit-Position: refs/heads/master@{#391346}

Powered by Google App Engine
This is Rietveld 408576698