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

Issue 2084463002: BlueZ + DBus implementations of create/remove service record functions. (Closed)

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

Description

BlueZ + DBus implementations of create/remove service record functions. This CL adds the DBus and BlueZ implementations of the Create and Remove service record functions. This adds a basic unit test but we will need to add more tests to this. Miao, I've had to change how we handle the service record data structures since BlueZ will need both the type and size fields from use to correctly infer the actual data type of the value. R=mcchou@chromium.org, xiyuan@chromium.org BUG=619669 Committed: https://crrev.com/2ffd561bdba4a20e0345ecdb97d798d4f82c4659 Cr-Commit-Position: refs/heads/master@{#401782}

Patch Set 1 #

Patch Set 2 : fixes + moar tests #

Total comments: 40

Patch Set 3 : . #

Total comments: 8

Patch Set 4 : . #

Patch Set 5 : merge #

Patch Set 6 : build fix #

Patch Set 7 : moar build fixes #

Patch Set 8 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+650 lines, -33 lines) Patch
M device/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M device/bluetooth/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_adapter_bluez.h View 1 3 chunks +11 lines, -2 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_adapter_bluez.cc View 1 2 3 4 2 chunks +36 lines, -6 lines 0 comments Download
A device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.h View 1 2 3 4 5 6 1 chunk +57 lines, -0 lines 0 comments Download
A device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.cc View 1 2 3 4 5 6 1 chunk +46 lines, -0 lines 0 comments Download
A device/bluetooth/bluez/bluetooth_service_attribute_value_bluez_unittest.cc View 1 2 3 1 chunk +123 lines, -0 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_service_record_bluez.h View 1 2 chunks +14 lines, -7 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_service_record_bluez.cc View 1 2 1 chunk +20 lines, -8 lines 0 comments Download
A device/bluetooth/bluez/bluetooth_service_record_bluez_unittest.cc View 1 2 3 4 5 6 7 1 chunk +160 lines, -0 lines 0 comments Download
M device/bluetooth/dbus/bluetooth_adapter_client.h View 1 2 3 chunks +25 lines, -5 lines 0 comments Download
M device/bluetooth/dbus/bluetooth_adapter_client.cc View 1 2 3 chunks +98 lines, -1 line 0 comments Download
M device/bluetooth/dbus/bluetooth_agent_service_provider.h View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M device/bluetooth/dbus/bluetooth_agent_service_provider.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_adapter_client.h View 1 2 chunks +14 lines, -0 lines 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_adapter_client.cc View 1 2 3 4 5 3 chunks +35 lines, -1 line 0 comments Download
M device/device_tests.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 33 (15 generated)
rkc
4 years, 6 months ago (2016-06-20 04:37:51 UTC) #1
rkc
Fixed to use service handle instead of service UUID. Also added tests for the ServiceAttributeValue ...
4 years, 6 months ago (2016-06-21 23:04:19 UTC) #2
xiyuan
https://codereview.chromium.org/2084463002/diff/20001/device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.cc File device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.cc (right): https://codereview.chromium.org/2084463002/diff/20001/device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.cc#newcode27 device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.cc:27: CHECK_EQ(type, SEQUENCE); Since SEQUENCE is the only allowed type, ...
4 years, 6 months ago (2016-06-22 15:53:06 UTC) #3
rkc
https://codereview.chromium.org/2084463002/diff/20001/device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.cc File device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.cc (right): https://codereview.chromium.org/2084463002/diff/20001/device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.cc#newcode27 device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.cc:27: CHECK_EQ(type, SEQUENCE); On 2016/06/22 15:53:05, xiyuan wrote: > Since ...
4 years, 6 months ago (2016-06-22 21:06:38 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2084463002/30018
4 years, 6 months ago (2016-06-22 21:08:24 UTC) #8
xiyuan
lgtm Just nits https://codereview.chromium.org/2084463002/diff/30018/device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.cc File device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.cc (right): https://codereview.chromium.org/2084463002/diff/30018/device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.cc#newcode16 device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.cc:16: : type_(type), size_(size), value_(std::move(value)), sequence_(nullptr) { ...
4 years, 6 months ago (2016-06-22 21:28:44 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/232719) linux_chromium_compile_dbg_ng on ...
4 years, 6 months ago (2016-06-22 21:30:23 UTC) #11
Miao
https://codereview.chromium.org/2084463002/diff/30018/device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.h File device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.h (right): https://codereview.chromium.org/2084463002/diff/30018/device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.h#newcode44 device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.h:44: const base::Value& value() const { return *value_.get(); } I ...
4 years, 6 months ago (2016-06-23 10:49:05 UTC) #12
rkc
https://codereview.chromium.org/2084463002/diff/30018/device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.cc File device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.cc (right): https://codereview.chromium.org/2084463002/diff/30018/device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.cc#newcode16 device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.cc:16: : type_(type), size_(size), value_(std::move(value)), sequence_(nullptr) { On 2016/06/22 21:28:44, ...
4 years, 6 months ago (2016-06-23 19:55:44 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2084463002/70001
4 years, 6 months ago (2016-06-23 20:13:17 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/220920) linux_chromium_compile_dbg_ng on ...
4 years, 6 months ago (2016-06-23 20:31:29 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2084463002/90001
4 years, 6 months ago (2016-06-23 22:30:02 UTC) #20
commit-bot: I haz the power
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/182464)
4 years, 6 months ago (2016-06-23 22:48:45 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2084463002/110001
4 years, 6 months ago (2016-06-23 23:52:32 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/233599) linux_chromium_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 6 months ago (2016-06-24 00:13:34 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2084463002/130001
4 years, 6 months ago (2016-06-24 00:25:49 UTC) #30
commit-bot: I haz the power
Committed patchset #8 (id:130001)
4 years, 6 months ago (2016-06-24 02:00:36 UTC) #31
commit-bot: I haz the power
4 years, 6 months ago (2016-06-24 02:03:20 UTC) #33
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/2ffd561bdba4a20e0345ecdb97d798d4f82c4659
Cr-Commit-Position: refs/heads/master@{#401782}

Powered by Google App Engine
This is Rietveld 408576698