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

Issue 1941923002: bluetooth: Return int8_t and use -128 for unknown tx power. (Closed)

Created:
4 years, 7 months ago by ortuno
Modified:
4 years, 7 months ago
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, haraken, jam, jochen+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, ortuno+watch_chromium.org, Peter Beverloo, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@my-origin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Return int8_t and use -128 for unknown tx power. According to the spec -128 should be used for an invalid Tx Power so this patch adds a new constant for that value and returns it if the platform doesn't provide a Tx Power. TxPower and RSSI should both be int8 but because DBus doesn't support int8 the platform independent functions returned int16. This patch changes GetInquiryTxPower and GetInquiryRSSI to return a int8. BUG=551572

Patch Set 1 #

Patch Set 2 : Fix moar platforms #

Patch Set 3 : Fix compile error #

Patch Set 4 : Moar fixes #

Patch Set 5 : Moar fixes #

Patch Set 6 : Merge #

Patch Set 7 : Moar fixes #

Patch Set 8 : Moar fixes #

Total comments: 12

Patch Set 9 : Merge #

Patch Set 10 : Merge #

Patch Set 11 : Clean up #

Patch Set 12 : Use enum and change to EXPECT_EQ #

Total comments: 6

Patch Set 13 : Use optional #

Patch Set 14 : Clean up #

Patch Set 15 : Fix Arc #

Patch Set 16 : Fix extensions #

Patch Set 17 : Merge #

Patch Set 18 : Fix extensions tests #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -130 lines) Patch
M chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +10 lines, -3 lines 0 comments Download
M components/arc/bluetooth/arc_bluetooth_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -3 lines 0 comments Download
M components/proximity_auth/proximity_monitor_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -13 lines 0 comments Download
M components/proximity_auth/proximity_monitor_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +37 lines, -9 lines 0 comments Download
M device/bluetooth/bluetooth_classic_device_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -3 lines 0 comments Download
M device/bluetooth/bluetooth_classic_device_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +12 lines, -11 lines 2 comments Download
M device/bluetooth/bluetooth_device.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +13 lines, -12 lines 0 comments Download
M device/bluetooth/bluetooth_device.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -5 lines 0 comments Download
M device/bluetooth/bluetooth_device_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_device_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -4 lines 0 comments Download
M device/bluetooth/bluetooth_device_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_device_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -4 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_device_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_device_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -4 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_bluez_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +62 lines, -15 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_device_bluez.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +6 lines, -5 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_device_bluez.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +26 lines, -11 lines 0 comments Download
M device/bluetooth/dbus/bluetooth_device_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -3 lines 0 comments Download
M device/bluetooth/dbus/bluetooth_device_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +9 lines, -13 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_device.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_device.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/browser/api/bluetooth/bluetooth_api_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 71 (30 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1941923002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1941923002/20001
4 years, 7 months ago (2016-05-02 19:18:11 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/220856)
4 years, 7 months ago (2016-05-02 19:36:27 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/1941923002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1941923002/40001
4 years, 7 months ago (2016-05-02 19:59:35 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/131083) mac_chromium_compile_dbg_ng on ...
4 years, 7 months ago (2016-05-02 20:12:37 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1941923002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1941923002/60001
4 years, 7 months ago (2016-05-02 20:29:56 UTC) #10
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/60086)
4 years, 7 months ago (2016-05-02 20:44:13 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1941923002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1941923002/80001
4 years, 7 months ago (2016-05-03 17:56:07 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/28903) ios_rel_device_gn on ...
4 years, 7 months ago (2016-05-03 17:59:31 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1941923002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1941923002/100001
4 years, 7 months ago (2016-05-03 18:16:03 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/181997)
4 years, 7 months ago (2016-05-03 18:31:10 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1941923002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1941923002/120001
4 years, 7 months ago (2016-05-03 19:38:40 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/1941923002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1941923002/140001
4 years, 7 months ago (2016-05-03 19:58:39 UTC) #24
ortuno
scheib: PTAL at content/ device/ and third_party/WebKit
4 years, 7 months ago (2016-05-03 20:34:57 UTC) #26
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-03 23:05:25 UTC) #28
scheib
https://codereview.chromium.org/1941923002/diff/140001/device/bluetooth/bluetooth_device.h File device/bluetooth/bluetooth_device.h (right): https://codereview.chromium.org/1941923002/diff/140001/device/bluetooth/bluetooth_device.h#newcode80 device/bluetooth/bluetooth_device.h:80: // The value returned if the RSSI cannot be ...
4 years, 7 months ago (2016-05-04 01:18:38 UTC) #29
ortuno
https://codereview.chromium.org/1941923002/diff/140001/device/bluetooth/bluetooth_device.h File device/bluetooth/bluetooth_device.h (right): https://codereview.chromium.org/1941923002/diff/140001/device/bluetooth/bluetooth_device.h#newcode80 device/bluetooth/bluetooth_device.h:80: // The value returned if the RSSI cannot be ...
4 years, 7 months ago (2016-05-04 16:44:12 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1941923002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1941923002/200001
4 years, 7 months ago (2016-05-04 16:44:29 UTC) #32
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/222140)
4 years, 7 months ago (2016-05-04 17:29:39 UTC) #34
ortuno
Changed to EXPECT_EQ
4 years, 7 months ago (2016-05-04 18:43:30 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1941923002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1941923002/240001
4 years, 7 months ago (2016-05-04 20:05:25 UTC) #38
commit-bot: I haz the power
Dry run: 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/223658)
4 years, 7 months ago (2016-05-04 21:48:16 UTC) #40
scheib
LGTM
4 years, 7 months ago (2016-05-04 22:55:24 UTC) #41
ortuno
isherman: PTAL at components/
4 years, 7 months ago (2016-05-04 22:56:20 UTC) #43
Ilya Sherman
https://codereview.chromium.org/1941923002/diff/240001/components/proximity_auth/proximity_monitor_impl_unittest.cc File components/proximity_auth/proximity_monitor_impl_unittest.cc (right): https://codereview.chromium.org/1941923002/diff/240001/components/proximity_auth/proximity_monitor_impl_unittest.cc#newcode534 components/proximity_auth/proximity_monitor_impl_unittest.cc:534: monitor_.Start(); nit: I'd keep this line right above ProvideConnectionInfo ...
4 years, 7 months ago (2016-05-04 23:01:44 UTC) #44
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1941923002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1941923002/280001
4 years, 7 months ago (2016-05-06 22:21:07 UTC) #46
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/133775)
4 years, 7 months ago (2016-05-06 22:35:14 UTC) #48
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1941923002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1941923002/300001
4 years, 7 months ago (2016-05-06 23:18:12 UTC) #50
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/133754) mac_chromium_rel_ng on ...
4 years, 7 months ago (2016-05-06 23:31:55 UTC) #52
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1941923002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1941923002/340001
4 years, 7 months ago (2016-05-06 23:58:29 UTC) #54
ortuno
https://codereview.chromium.org/1941923002/diff/240001/components/proximity_auth/proximity_monitor_impl_unittest.cc File components/proximity_auth/proximity_monitor_impl_unittest.cc (right): https://codereview.chromium.org/1941923002/diff/240001/components/proximity_auth/proximity_monitor_impl_unittest.cc#newcode534 components/proximity_auth/proximity_monitor_impl_unittest.cc:534: monitor_.Start(); On 2016/05/04 at 23:01:44, Ilya Sherman (Away May ...
4 years, 7 months ago (2016-05-07 00:32:09 UTC) #55
ortuno
scheib: PTAL again at device/bluetooth isherman: PTAL at components/proximity_auth lhchavez: PTAL at components/arc tengs: PTAL ...
4 years, 7 months ago (2016-05-07 00:34:32 UTC) #56
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/208798)
4 years, 7 months ago (2016-05-07 00:34:37 UTC) #58
ortuno
scheib: PTAL again at device/bluetooth isherman: PTAL at components/proximity_auth lhchavez: PTAL at components/arc tengs: PTAL ...
4 years, 7 months ago (2016-05-07 00:35:37 UTC) #60
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1941923002/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1941923002/360001
4 years, 7 months ago (2016-05-07 00:53:03 UTC) #62
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/223772)
4 years, 7 months ago (2016-05-07 02:04:40 UTC) #64
scheib
https://codereview.chromium.org/1941923002/diff/360001/device/bluetooth/bluetooth_classic_device_mac.mm File device/bluetooth/bluetooth_classic_device_mac.mm (right): https://codereview.chromium.org/1941923002/diff/360001/device/bluetooth/bluetooth_classic_device_mac.mm#newcode149 device/bluetooth/bluetooth_classic_device_mac.mm:149: return base::Optional<int8_t>(); return nullopt; https://codereview.chromium.org/1941923002/diff/360001/device/bluetooth/bluetooth_classic_device_mac.mm#newcode185 device/bluetooth/bluetooth_classic_device_mac.mm:185: connection_info.rssi = base::make_optional(rssi); ...
4 years, 7 months ago (2016-05-07 02:06:52 UTC) #65
Luis Héctor Chávez
smbarber PTAL components/arc/bluetooth
4 years, 7 months ago (2016-05-07 03:31:46 UTC) #67
Steve Barber
On 2016/05/07 03:31:46, Luis Héctor Chávez wrote: > smbarber PTAL components/arc/bluetooth components/arc/bluetooth LGTM
4 years, 7 months ago (2016-05-07 04:12:20 UTC) #68
Luis Héctor Chávez
lgtm
4 years, 7 months ago (2016-05-07 04:13:21 UTC) #69
stevenjb
bluetooth_api_utils.cc lgtm
4 years, 7 months ago (2016-05-09 17:19:51 UTC) #70
Tim Song
4 years, 7 months ago (2016-05-09 17:32:00 UTC) #71
lgtm

Powered by Google App Engine
This is Rietveld 408576698