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

Issue 1979163002: Add DBus plumbing and tests for sending devices with ATT read/writes. (Closed)

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

Description

Add DBus plumbing and tests for sending devices with ATT read/writes. This CL adds the plumbing needed to pass on the device that is read from DBus to the //device/bluetooth delegate. This also allows us to add tests that check the device on read/write requests to attribute values. Reviews requested, xiyuan@ - General review. scheib@ - Test changes owners review. R=scheib@chromium.org, xiyuan@chromium.org BUG=611862 Committed: https://crrev.com/4a98d82baaf2f5f5c2d9b09a2468e3ceff565790 Cr-Commit-Position: refs/heads/master@{#394254}

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : gyp fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -39 lines) Patch
M device/bluetooth/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M device/bluetooth/bluetooth.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M device/bluetooth/bluetooth_local_gatt_characteristic_unittest.cc View 7 chunks +18 lines, -8 lines 0 comments Download
M device/bluetooth/bluetooth_local_gatt_descriptor_unittest.cc View 7 chunks +17 lines, -7 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h View 1 2 4 chunks +28 lines, -1 line 0 comments Download
A device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.cc View 1 1 chunk +25 lines, -0 lines 0 comments Download
M device/bluetooth/dbus/bluetooth_gatt_characteristic_delegate_wrapper.h View 2 chunks +2 lines, -1 line 0 comments Download
M device/bluetooth/dbus/bluetooth_gatt_characteristic_delegate_wrapper.cc View 1 chunk +12 lines, -7 lines 0 comments Download
M device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider_impl.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M device/bluetooth/dbus/bluetooth_gatt_descriptor_delegate_wrapper.h View 2 chunks +2 lines, -1 line 0 comments Download
M device/bluetooth/dbus/bluetooth_gatt_descriptor_delegate_wrapper.cc View 1 chunk +8 lines, -5 lines 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_gatt_characteristic_service_provider.h View 1 chunk +2 lines, -0 lines 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_gatt_characteristic_service_provider.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_service_provider.h View 1 chunk +2 lines, -0 lines 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_service_provider.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M device/bluetooth/test/bluetooth_test.h View 4 chunks +4 lines, -0 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_bluez.h View 1 chunk +4 lines, -0 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_bluez.cc View 8 chunks +18 lines, -3 lines 0 comments Download
M device/bluetooth/test/test_bluetooth_local_gatt_service_delegate.h View 1 chunk +1 line, -0 lines 0 comments Download
M device/bluetooth/test/test_bluetooth_local_gatt_service_delegate.cc View 4 chunks +4 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 23 (8 generated)
rkc
4 years, 7 months ago (2016-05-16 03:29:20 UTC) #1
rkc
This CL doesn't contain any code that actually reads the device information from DBus. That ...
4 years, 7 months ago (2016-05-16 03:30:45 UTC) #2
xiyuan
https://codereview.chromium.org/1979163002/diff/1/device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h File device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h (right): https://codereview.chromium.org/1979163002/diff/1/device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h#newcode75 device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h:75: BluetoothLocalGattServiceBlueZ* service_; Having a data member in an interface ...
4 years, 7 months ago (2016-05-16 21:27:07 UTC) #3
rkc
https://codereview.chromium.org/1979163002/diff/1/device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h File device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h (right): https://codereview.chromium.org/1979163002/diff/1/device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h#newcode75 device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h:75: BluetoothLocalGattServiceBlueZ* service_; On 2016/05/16 21:27:07, xiyuan wrote: > Having ...
4 years, 7 months ago (2016-05-16 21:44:29 UTC) #4
xiyuan
lgtm https://codereview.chromium.org/1979163002/diff/1/device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h File device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h (right): https://codereview.chromium.org/1979163002/diff/1/device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h#newcode75 device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h:75: BluetoothLocalGattServiceBlueZ* service_; On 2016/05/16 21:44:29, Rahul Chaturvedi wrote: ...
4 years, 7 months ago (2016-05-16 22:05:01 UTC) #5
rkc
https://codereview.chromium.org/1979163002/diff/20001/device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h File device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h (right): https://codereview.chromium.org/1979163002/diff/20001/device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h#newcode13 device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h:13: #include "device/bluetooth/bluetooth_device.h" On 2016/05/16 22:05:00, xiyuan wrote: > nit: ...
4 years, 7 months ago (2016-05-16 23:19:06 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/1979163002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1979163002/60001
4 years, 7 months ago (2016-05-17 05:30:28 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/171228)
4 years, 7 months ago (2016-05-17 05:47:54 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/1979163002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1979163002/80001
4 years, 7 months ago (2016-05-17 08:12:43 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-17 10:11:02 UTC) #15
rkc
Ping? We're getting awfully close to the branch.
4 years, 7 months ago (2016-05-17 16:28:30 UTC) #16
scheib
LGTM
4 years, 7 months ago (2016-05-17 19:58:18 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1979163002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1979163002/80001
4 years, 7 months ago (2016-05-17 22:46:11 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-17 22:52:24 UTC) #21
commit-bot: I haz the power
4 years, 7 months ago (2016-05-17 22:55:19 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/4a98d82baaf2f5f5c2d9b09a2468e3ceff565790
Cr-Commit-Position: refs/heads/master@{#394254}

Powered by Google App Engine
This is Rietveld 408576698