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

Issue 1247553002: bluetooth: Implement FailingConnectionsAdapter. (Closed)

Created:
5 years, 5 months ago by ortuno
Modified:
5 years, 5 months ago
Reviewers:
Jeffrey Yasskin, scheib
CC:
chromium-reviews, darin-cc_chromium.org, jam, jochen+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@bluetooth-tests-small-5
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Implement FailingConnectionsAdapter. Also implement UnconnectableDevice. Used for testing that the platform handles all connection errors successfully. Design doc: https://docs.google.com/document/d/1_QsBzcc84SwF7oaBWbO8rBzn39MISQ3w-6QM9hk0L3E/edit?usp=sharing Three sided patch since we have to remove the old adapter after we modify tests: [1] This patch. [2] Add unconnectable device tests and remove old tests. (http://crrev.com/1244973002) [3] Remove old UnconnectableDeviceAdapter. (http://crrev.com/1243803002) BUG=499552 Committed: https://crrev.com/dc2e5b370019a1437f4ea4deba6cf27eccaf3c0c Cr-Commit-Position: refs/heads/master@{#339983}

Patch Set 1 : #

Total comments: 16

Patch Set 2 : Address jyasskin's comments #

Total comments: 2

Patch Set 3 : canonicalAddress -> makeMACAddress and change it's parameter type #

Patch Set 4 : Use PRIx64 macro instead of 'lx' #

Patch Set 5 : Use PRIx64 macro instead of 'lx' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -0 lines) Patch
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h View 1 2 3 chunks +49 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc View 1 2 3 4 5 chunks +45 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 34 (17 generated)
ortuno
@jyasskin: PTAL https://codereview.chromium.org/1247553002/diff/80001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc File content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc (right): https://codereview.chromium.org/1247553002/diff/80001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc#newcode259 content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc:259: for (int error = BluetoothDevice::ERROR_UNKNOWN; Is this ...
5 years, 5 months ago (2015-07-21 21:32:43 UTC) #6
Jeffrey Yasskin
https://codereview.chromium.org/1247553002/diff/80001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc File content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc (right): https://codereview.chromium.org/1247553002/diff/80001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc#newcode259 content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc:259: for (int error = BluetoothDevice::ERROR_UNKNOWN; On 2015/07/21 21:32:43, ortuno ...
5 years, 5 months ago (2015-07-21 23:08:58 UTC) #7
Jeffrey Yasskin
https://codereview.chromium.org/1247553002/diff/80001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h File content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h (right): https://codereview.chromium.org/1247553002/diff/80001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h#newcode120 content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h:120: // - UnconnectableDevice(BluetoothDevice::ERROR_UNKNOWN) errorUUID(0x0) On 2015/07/21 23:08:58, Jeffrey Yasskin ...
5 years, 5 months ago (2015-07-21 23:09:33 UTC) #9
scheib
https://codereview.chromium.org/1247553002/diff/80001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h File content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h (right): https://codereview.chromium.org/1247553002/diff/80001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h#newcode120 content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h:120: // - UnconnectableDevice(BluetoothDevice::ERROR_UNKNOWN) errorUUID(0x0) On 2015/07/21 23:09:33, Jeffrey Yasskin ...
5 years, 5 months ago (2015-07-22 00:15:58 UTC) #10
ortuno
https://codereview.chromium.org/1247553002/diff/80001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc File content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc (right): https://codereview.chromium.org/1247553002/diff/80001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc#newcode366 content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc:366: uuids.push_back(BluetoothUUID(kPrefixConnectionErrorUUID + On 2015/07/21 at 23:08:58, Jeffrey Yasskin wrote: ...
5 years, 5 months ago (2015-07-22 01:06:20 UTC) #12
Jeffrey Yasskin
lgtm https://codereview.chromium.org/1247553002/diff/120001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h File content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h (right): https://codereview.chromium.org/1247553002/diff/120001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h#newcode286 content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h:286: static std::string canonicalAddress(int addr); Maybe macAddress() or makeMACAddress()? ...
5 years, 5 months ago (2015-07-22 01:32:27 UTC) #13
ortuno
Thanks! https://codereview.chromium.org/1247553002/diff/120001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h File content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h (right): https://codereview.chromium.org/1247553002/diff/120001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h#newcode286 content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h:286: static std::string canonicalAddress(int addr); On 2015/07/22 at 01:32:27, ...
5 years, 5 months ago (2015-07-22 17:49:47 UTC) #15
ortuno
@scheib: PTAL
5 years, 5 months ago (2015-07-22 17:49:56 UTC) #16
scheib
LGTM
5 years, 5 months ago (2015-07-22 18:38:25 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1247553002/160001
5 years, 5 months ago (2015-07-22 20:14:22 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/111347)
5 years, 5 months ago (2015-07-22 20:27:31 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1247553002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1247553002/200001
5 years, 5 months ago (2015-07-22 22:08:31 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/47517) linux_arm_compile on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 5 months ago (2015-07-22 22:15:10 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1247553002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1247553002/200001
5 years, 5 months ago (2015-07-22 22:17:56 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1247553002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1247553002/200001
5 years, 5 months ago (2015-07-22 23:05:58 UTC) #32
commit-bot: I haz the power
Committed patchset #5 (id:200001)
5 years, 5 months ago (2015-07-22 23:29:00 UTC) #33
commit-bot: I haz the power
5 years, 5 months ago (2015-07-22 23:29:59 UTC) #34
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/dc2e5b370019a1437f4ea4deba6cf27eccaf3c0c
Cr-Commit-Position: refs/heads/master@{#339983}

Powered by Google App Engine
This is Rietveld 408576698