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

Issue 288903003: [Bluetooth] Standardize Bluetooth device address format to XX:XX:XX:XX:XX:XX. (Closed)

Created:
6 years, 7 months ago by Ilya Sherman
Modified:
6 years, 7 months ago
Reviewers:
keybuk
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, xiyuan, rpaquay
Visibility:
Public.

Description

[Bluetooth] Standardize Bluetooth device address format to XX:XX:XX:XX:XX:XX. BUG=371014 TEST=device_unittests R=keybuk@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271179

Patch Set 1 #

Patch Set 2 : Be more defensive #

Patch Set 3 : Rebase #

Total comments: 2

Patch Set 4 : git add unittest #

Total comments: 2

Patch Set 5 : normalized -> canonicalized #

Patch Set 6 : Fix win unit tests #

Patch Set 7 : Fix ChromeOS tests too #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -27 lines) Patch
M chrome/browser/extensions/api/bluetooth/bluetooth_api.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_adapter_client.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_adapter.cc View 1 2 3 4 1 chunk +6 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_adapter_chromeos.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_adapter_mac.mm View 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_adapter_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_adapter_win_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_device.h View 1 chunk +5 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device.cc View 1 2 3 4 2 chunks +36 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_chromeos.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_device_mac.h View 1 chunk +0 lines, -6 lines 0 comments Download
M device/bluetooth/bluetooth_device_mac.mm View 1 chunk +1 line, -10 lines 0 comments Download
A device/bluetooth/bluetooth_device_unittest.cc View 1 2 3 1 chunk +59 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M device/device_tests.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Ilya Sherman
/cc xiyuan and rpaquay as FYI. I've tested this on Mac, but not on Windows ...
6 years, 7 months ago (2014-05-15 03:35:24 UTC) #1
keybuk
https://codereview.chromium.org/288903003/diff/30001/device/device_tests.gyp File device/device_tests.gyp (right): https://codereview.chromium.org/288903003/diff/30001/device/device_tests.gyp#newcode28 device/device_tests.gyp:28: 'bluetooth/bluetooth_device_unittest.cc', git add? ;-)
6 years, 7 months ago (2014-05-15 03:48:13 UTC) #2
Ilya Sherman
https://codereview.chromium.org/288903003/diff/30001/device/device_tests.gyp File device/device_tests.gyp (right): https://codereview.chromium.org/288903003/diff/30001/device/device_tests.gyp#newcode28 device/device_tests.gyp:28: 'bluetooth/bluetooth_device_unittest.cc', On 2014/05/15 03:48:13, keybuk wrote: > git add? ...
6 years, 7 months ago (2014-05-15 04:18:44 UTC) #3
keybuk
lgtm https://codereview.chromium.org/288903003/diff/50001/device/bluetooth/bluetooth_adapter.cc File device/bluetooth/bluetooth_adapter.cc (right): https://codereview.chromium.org/288903003/diff/50001/device/bluetooth/bluetooth_adapter.cc#newcode76 device/bluetooth/bluetooth_adapter.cc:76: std::string normalized_address = nit: canonicalized ;-)
6 years, 7 months ago (2014-05-15 21:33:05 UTC) #4
Ilya Sherman
https://codereview.chromium.org/288903003/diff/50001/device/bluetooth/bluetooth_adapter.cc File device/bluetooth/bluetooth_adapter.cc (right): https://codereview.chromium.org/288903003/diff/50001/device/bluetooth/bluetooth_adapter.cc#newcode76 device/bluetooth/bluetooth_adapter.cc:76: std::string normalized_address = On 2014/05/15 21:33:05, keybuk wrote: > ...
6 years, 7 months ago (2014-05-15 21:42:28 UTC) #5
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 7 months ago (2014-05-15 21:43:58 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/288903003/70001
6 years, 7 months ago (2014-05-15 21:44:29 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-15 23:46:05 UTC) #8
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 7 months ago (2014-05-16 00:00:53 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/288903003/90001
6 years, 7 months ago (2014-05-16 00:01:38 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-16 03:25:46 UTC) #11
Ilya Sherman
keybuk@, I found myself needing to update chromeos/dbus/fake_bluetooth_adapter_client.cc to use uppercase as well. I'm a ...
6 years, 7 months ago (2014-05-16 03:32:32 UTC) #12
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 7 months ago (2014-05-16 22:59:29 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/288903003/110001
6 years, 7 months ago (2014-05-16 23:32:12 UTC) #14
commit-bot: I haz the power
Change committed as 271179
6 years, 7 months ago (2014-05-17 05:49:50 UTC) #15
keybuk
6 years, 7 months ago (2014-05-19 19:53:26 UTC) #16
Message was sent while issue was closed.
On 2014/05/16 03:32:32, Ilya Sherman wrote:
> keybuk@, I found myself needing to update
> chromeos/dbus/fake_bluetooth_adapter_client.cc to use uppercase as well.  I'm
a
> little worried that the case difference might break other ChromeOS Bluetooth
> code that expects lowercase casing.  Do you know whether there's any ChromeOS
> that might have such a dependency?

This is just hand-typed stuff to fake devices

If it breaks, the tests should pick it up ;-)
In fact, you've probably just inadvertently tested that your changes work on
CrOS because I bet the runtest.js is using lower-case too
If they don't, we'll write new tests

Powered by Google App Engine
This is Rietveld 408576698