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

Issue 1914893002: DBus changes for implementing local GATT attributes. (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@bluetooth_classes
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DBus changes for implementing local GATT attributes. In this CL, we implement the changes to the DBus managers and providers needed to support local GATT services. The major changes from the code on trunk are, .) Adds a new BluetoothGattApplicationServiceProvider. This service provider provides an object manager which manages all the other exported GATT attributes. It is responsible for setting up all the individual attribute service providers correctly. .) Adds the correct fake implementations for this service provider, the other attribute service providers and the Gatt Manager client. .) Does various cleanup changes in touched code. Part 2 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/a7a149d373a58c0e324353175feb0cefb0cb9c8f Cr-Commit-Position: refs/heads/master@{#390601}

Patch Set 1 #

Patch Set 2 : object paths fix #

Patch Set 3 : delegate leak fix #

Patch Set 4 : merge (magic values fix) #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 6

Patch Set 8 : unit test #

Total comments: 2

Patch Set 9 : #

Patch Set 10 : test leak fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2864 lines, -1341 lines) Patch
M device/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M device/bluetooth/BUILD.gn View 1 2 3 4 5 6 7 2 chunks +17 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth.gyp View 1 2 3 4 5 6 7 2 chunks +17 lines, -0 lines 0 comments Download
A device/bluetooth/dbus/bluetooth_gatt_application_service_provider.h View 1 chunk +65 lines, -0 lines 0 comments Download
A device/bluetooth/dbus/bluetooth_gatt_application_service_provider.cc View 1 2 3 4 5 1 chunk +83 lines, -0 lines 0 comments Download
A device/bluetooth/dbus/bluetooth_gatt_application_service_provider_impl.h View 1 2 3 4 5 6 7 8 1 chunk +121 lines, -0 lines 0 comments Download
A device/bluetooth/dbus/bluetooth_gatt_application_service_provider_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +172 lines, -0 lines 0 comments Download
A device/bluetooth/dbus/bluetooth_gatt_application_service_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +310 lines, -0 lines 0 comments Download
A device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h View 1 2 3 4 5 1 chunk +51 lines, -0 lines 0 comments Download
A device/bluetooth/dbus/bluetooth_gatt_characteristic_delegate_wrapper.h View 1 2 3 4 5 1 chunk +50 lines, -0 lines 0 comments Download
A device/bluetooth/dbus/bluetooth_gatt_characteristic_delegate_wrapper.cc View 1 2 3 4 5 1 chunk +34 lines, -0 lines 0 comments Download
M device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider.h View 1 2 3 4 5 3 chunks +11 lines, -43 lines 0 comments Download
M device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -437 lines 0 comments Download
A device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider_impl.h View 1 2 3 4 5 6 7 8 1 chunk +141 lines, -0 lines 0 comments Download
A device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +408 lines, -0 lines 0 comments Download
A device/bluetooth/dbus/bluetooth_gatt_descriptor_delegate_wrapper.h View 1 2 3 4 5 1 chunk +50 lines, -0 lines 0 comments Download
A device/bluetooth/dbus/bluetooth_gatt_descriptor_delegate_wrapper.cc View 1 2 3 4 5 1 chunk +33 lines, -0 lines 0 comments Download
M device/bluetooth/dbus/bluetooth_gatt_descriptor_service_provider.h View 1 2 3 4 5 3 chunks +11 lines, -41 lines 0 comments Download
M device/bluetooth/dbus/bluetooth_gatt_descriptor_service_provider.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -431 lines 0 comments Download
A device/bluetooth/dbus/bluetooth_gatt_descriptor_service_provider_impl.h View 1 2 3 4 5 6 7 8 1 chunk +140 lines, -0 lines 0 comments Download
A device/bluetooth/dbus/bluetooth_gatt_descriptor_service_provider_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +409 lines, -0 lines 0 comments Download
M device/bluetooth/dbus/bluetooth_gatt_manager_client.h View 1 chunk +7 lines, -7 lines 0 comments Download
M device/bluetooth/dbus/bluetooth_gatt_manager_client.cc View 2 chunks +12 lines, -12 lines 0 comments Download
M device/bluetooth/dbus/bluetooth_gatt_service_service_provider.h View 2 chunks +6 lines, -0 lines 0 comments Download
M device/bluetooth/dbus/bluetooth_gatt_service_service_provider.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -245 lines 0 comments Download
A device/bluetooth/dbus/bluetooth_gatt_service_service_provider_impl.h View 1 2 3 4 5 6 7 8 1 chunk +100 lines, -0 lines 0 comments Download
A device/bluetooth/dbus/bluetooth_gatt_service_service_provider_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +230 lines, -0 lines 0 comments Download
A device/bluetooth/dbus/fake_bluetooth_gatt_application_service_provider.h View 1 chunk +60 lines, -0 lines 0 comments Download
A device/bluetooth/dbus/fake_bluetooth_gatt_application_service_provider.cc View 1 chunk +44 lines, -0 lines 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_gatt_characteristic_service_provider.h View 1 2 3 4 5 4 chunks +17 lines, -10 lines 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_gatt_characteristic_service_provider.cc View 1 2 3 4 5 8 chunks +15 lines, -11 lines 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_client.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_service_provider.h View 1 2 3 4 5 4 chunks +17 lines, -10 lines 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_service_provider.cc View 1 2 3 4 5 6 chunks +15 lines, -9 lines 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_gatt_manager_client.h View 4 chunks +60 lines, -31 lines 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_gatt_manager_client.cc View 6 chunks +133 lines, -53 lines 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_gatt_service_service_provider.h View 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_gatt_service_service_provider.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M device/device_tests.gyp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 37 (15 generated)
rkc
4 years, 8 months ago (2016-04-25 00:37:28 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/1914893002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1914893002/1
4 years, 8 months ago (2016-04-25 00:50:20 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-25 01:55:08 UTC) #5
rkc
merge (magic values fix)
4 years, 7 months ago (2016-04-25 19:08:24 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/1914893002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1914893002/60001
4 years, 7 months ago (2016-04-25 19:11:17 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-25 20:30:01 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1914893002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1914893002/120001
4 years, 7 months ago (2016-04-28 03:10:34 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-28 04:12:43 UTC) #15
scheib
https://codereview.chromium.org/1914893002/diff/120001/device/bluetooth/dbus/bluetooth_gatt_application_service_provider_impl.cc File device/bluetooth/dbus/bluetooth_gatt_application_service_provider_impl.cc (right): https://codereview.chromium.org/1914893002/diff/120001/device/bluetooth/dbus/bluetooth_gatt_application_service_provider_impl.cc#newcode54 device/bluetooth/dbus/bluetooth_gatt_application_service_provider_impl.cc:54: void BluetoothGattApplicationServiceProviderImpl::WriteObjectStruct( Add unit tests code coverage for the ...
4 years, 7 months ago (2016-04-28 04:54:28 UTC) #16
rkc
https://codereview.chromium.org/1914893002/diff/120001/device/bluetooth/dbus/bluetooth_gatt_application_service_provider_impl.cc File device/bluetooth/dbus/bluetooth_gatt_application_service_provider_impl.cc (right): https://codereview.chromium.org/1914893002/diff/120001/device/bluetooth/dbus/bluetooth_gatt_application_service_provider_impl.cc#newcode54 device/bluetooth/dbus/bluetooth_gatt_application_service_provider_impl.cc:54: void BluetoothGattApplicationServiceProviderImpl::WriteObjectStruct( On 2016/04/28 04:54:28, scheib wrote: > Add ...
4 years, 7 months ago (2016-04-28 18:13:23 UTC) #17
scheib
https://codereview.chromium.org/1914893002/diff/120001/device/bluetooth/dbus/bluetooth_gatt_application_service_provider_impl.cc File device/bluetooth/dbus/bluetooth_gatt_application_service_provider_impl.cc (right): https://codereview.chromium.org/1914893002/diff/120001/device/bluetooth/dbus/bluetooth_gatt_application_service_provider_impl.cc#newcode54 device/bluetooth/dbus/bluetooth_gatt_application_service_provider_impl.cc:54: void BluetoothGattApplicationServiceProviderImpl::WriteObjectStruct( On 2016/04/28 18:13:23, Rahul Chaturvedi wrote: > ...
4 years, 7 months ago (2016-04-28 20:46:29 UTC) #18
rkc
https://codereview.chromium.org/1914893002/diff/120001/device/bluetooth/dbus/bluetooth_gatt_application_service_provider_impl.cc File device/bluetooth/dbus/bluetooth_gatt_application_service_provider_impl.cc (right): https://codereview.chromium.org/1914893002/diff/120001/device/bluetooth/dbus/bluetooth_gatt_application_service_provider_impl.cc#newcode54 device/bluetooth/dbus/bluetooth_gatt_application_service_provider_impl.cc:54: void BluetoothGattApplicationServiceProviderImpl::WriteObjectStruct( On 2016/04/28 20:46:29, scheib wrote: > On ...
4 years, 7 months ago (2016-04-29 03:53:12 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1914893002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1914893002/140001
4 years, 7 months ago (2016-04-29 03:53:33 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/175064)
4 years, 7 months ago (2016-04-29 04:02:40 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1914893002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1914893002/160001
4 years, 7 months ago (2016-04-29 04:54:44 UTC) #25
scheib
https://codereview.chromium.org/1914893002/diff/140001/device/BUILD.gn File device/BUILD.gn (right): https://codereview.chromium.org/1914893002/diff/140001/device/BUILD.gn#newcode169 device/BUILD.gn:169: "bluetooth/dbus/bluetooth_gatt_application_service_provider_impl.cc", DEVICE_BLUETOOTH_EXPORT the classes?
4 years, 7 months ago (2016-04-29 05:05:20 UTC) #26
rkc
https://codereview.chromium.org/1914893002/diff/140001/device/BUILD.gn File device/BUILD.gn (right): https://codereview.chromium.org/1914893002/diff/140001/device/BUILD.gn#newcode169 device/BUILD.gn:169: "bluetooth/dbus/bluetooth_gatt_application_service_provider_impl.cc", On 2016/04/29 05:05:20, scheib wrote: > DEVICE_BLUETOOTH_EXPORT the ...
4 years, 7 months ago (2016-04-29 05:10:17 UTC) #27
scheib
On 2016/04/29 05:10:17, Rahul Chaturvedi wrote: > https://codereview.chromium.org/1914893002/diff/140001/device/BUILD.gn > File device/BUILD.gn (right): > > https://codereview.chromium.org/1914893002/diff/140001/device/BUILD.gn#newcode169 ...
4 years, 7 months ago (2016-04-29 05:55:02 UTC) #28
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/154096)
4 years, 7 months ago (2016-04-29 06:27:49 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1914893002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1914893002/180001
4 years, 7 months ago (2016-04-29 06:35:56 UTC) #33
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 7 months ago (2016-04-29 08:15:52 UTC) #35
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:24:36 UTC) #36
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/a7a149d373a58c0e324353175feb0cefb0cb9c8f
Cr-Commit-Position: refs/heads/master@{#390601}

Powered by Google App Engine
This is Rietveld 408576698