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

Issue 1129683002: bluetooth: Android adapter can be created with and without Bluetooth permission. (Closed)

Created:
5 years, 7 months ago by scheib
Modified:
5 years, 7 months ago
Reviewers:
Ted C, armansito, jbudorick
CC:
chromium-reviews, klundberg+watch_chromium.org, scheib+watch_chromium.org, yfriedman+watch_chromium.org, jbudorick+watch_chromium.org, ortuno
Base URL:
https://chromium.googlesource.com/chromium/src.git@bta-jni-
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Android adapter can be created with and without Bluetooth permission. This enables unit tests to run with Bluetooth permission, by adding the Bluetooth permission to native_test. Non-test applications will not have the Bluetooth permission, and unit tests should also verify behavior when the permission is not given. To enable this createWithoutPermissionForTesting is added and results in a state equivalent to when the permission is not available. Unit tests will be built in parallel for both when Bluetooth permission exists and doesn't. BUG=471536 Committed: https://crrev.com/30e81472dc168ea1c331a8779b3f6a14f684c54b Cr-Commit-Position: refs/heads/master@{#329212} Committed: https://crrev.com/4261538f2e98c39395931e9e79fc5a3a4ddbf23f Cr-Commit-Position: refs/heads/master@{#329286}

Patch Set 1 #

Total comments: 10

Patch Set 2 : tedchoc comments addressed. #

Total comments: 1

Patch Set 3 : Reland: IsPowered may be false on test infra. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -19 lines) Patch
M device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java View 1 3 chunks +70 lines, -5 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_android.h View 1 chunk +4 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_android.cc View 8 chunks +25 lines, -12 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_android_unittest.cc View 1 2 1 chunk +32 lines, -1 line 0 comments Download
M testing/android/native_test/java/AndroidManifest.xml View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 27 (11 generated)
scheib
Ted, PTAL as we discussed Bluetooth permission some already.
5 years, 7 months ago (2015-05-07 19:46:02 UTC) #3
Ted C
https://codereview.chromium.org/1129683002/diff/50006/device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java File device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java (right): https://codereview.chromium.org/1129683002/diff/50006/device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java#newcode32 device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java:32: return new BluetoothAdapter(); I would look to see if ...
5 years, 7 months ago (2015-05-07 22:23:57 UTC) #5
scheib
Thanks, PTAL https://codereview.chromium.org/1129683002/diff/50006/device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java File device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java (right): https://codereview.chromium.org/1129683002/diff/50006/device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java#newcode32 device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java:32: return new BluetoothAdapter(); On 2015/05/07 22:23:57, Ted ...
5 years, 7 months ago (2015-05-07 23:59:17 UTC) #9
scheib
Arman, PTAL
5 years, 7 months ago (2015-05-08 00:38:36 UTC) #11
Ted C
lgtm
5 years, 7 months ago (2015-05-08 17:33:33 UTC) #12
scheib
Arman, PTAL
5 years, 7 months ago (2015-05-11 03:37:23 UTC) #13
armansito
lgtm
5 years, 7 months ago (2015-05-11 05:44:13 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129683002/110001
5 years, 7 months ago (2015-05-11 17:46:49 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:110001)
5 years, 7 months ago (2015-05-11 18:52:56 UTC) #17
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/30e81472dc168ea1c331a8779b3f6a14f684c54b Cr-Commit-Position: refs/heads/master@{#329212}
5 years, 7 months ago (2015-05-11 18:54:50 UTC) #18
jbudorick
https://codereview.chromium.org/1129683002/diff/110001/device/bluetooth/bluetooth_adapter_android_unittest.cc File device/bluetooth/bluetooth_adapter_android_unittest.cc (right): https://codereview.chromium.org/1129683002/diff/110001/device/bluetooth/bluetooth_adapter_android_unittest.cc#newcode26 device/bluetooth/bluetooth_adapter_android_unittest.cc:26: TEST_F(BluetoothAdapterAndroidTest, Construct) { This test failed on its first ...
5 years, 7 months ago (2015-05-11 21:20:04 UTC) #20
jbudorick
On 2015/05/11 21:20:04, jbudorick wrote: > https://codereview.chromium.org/1129683002/diff/110001/device/bluetooth/bluetooth_adapter_android_unittest.cc > File device/bluetooth/bluetooth_adapter_android_unittest.cc (right): > > https://codereview.chromium.org/1129683002/diff/110001/device/bluetooth/bluetooth_adapter_android_unittest.cc#newcode26 > ...
5 years, 7 months ago (2015-05-11 21:36:16 UTC) #21
jbudorick
A revert of this CL (patchset #2 id:110001) has been created in https://codereview.chromium.org/1137083002/ by jbudorick@chromium.org. ...
5 years, 7 months ago (2015-05-11 21:36:48 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129683002/130001
5 years, 7 months ago (2015-05-11 23:11:22 UTC) #25
commit-bot: I haz the power
Committed patchset #3 (id:130001)
5 years, 7 months ago (2015-05-12 00:09:50 UTC) #26
commit-bot: I haz the power
5 years, 7 months ago (2015-05-12 00:11:24 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4261538f2e98c39395931e9e79fc5a3a4ddbf23f
Cr-Commit-Position: refs/heads/master@{#329286}

Powered by Google App Engine
This is Rietveld 408576698