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

Issue 1256313002: bluetooth: android: Implement & test CreateGattConnection. (Closed)

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

Description

bluetooth: android: Implement CreateGattConnection. Using the base class implementation from previous patches, this patch completes the Android implementation of CreateGattConnection and provides tests. Part of a 4 patch series: https://crrev.com/1287753002 Remove Disconnect callback https://crrev.com/1284073002 Add adapter_ to BluetoothDevice https://crrev.com/1292263002 BluetoothDevice::CreateGattConnection Impl https://crrev.com/1256313002 Android Impl & tests. <<< BUG=512643 Committed: https://crrev.com/af7ea91977473d1ae331a6052ca49003134d405e Cr-Commit-Position: refs/heads/master@{#350359}

Patch Set 1 : Split up patch, this is now just android #

Patch Set 2 : Updated patchset dependency #

Total comments: 28

Patch Set 3 : Updated patchset dependency #

Patch Set 4 : Merge TOT #

Patch Set 5 : addressed jyasskin comments. Added more tests. #

Total comments: 14

Patch Set 6 : address jyasskin #

Total comments: 24

Patch Set 7 : addressed jyasskin #

Total comments: 4

Patch Set 8 : Added 2 more connect/disconnect test blocks #

Total comments: 2

Patch Set 9 : Split tests up into smaller tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+778 lines, -33 lines) Patch
M device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java View 1 2 3 4 5 4 chunks +50 lines, -4 lines 0 comments Download
M device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java View 1 2 3 4 5 3 chunks +56 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter.cc View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device.h View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_device_android.h View 2 chunks +10 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_android.cc View 1 2 3 4 5 5 chunks +37 lines, -6 lines 0 comments Download
M device/bluetooth/bluetooth_device_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +393 lines, -0 lines 0 comments Download
M device/bluetooth/test/android/java/src/org/chromium/device/bluetooth/Fakes.java View 1 2 3 4 5 6 7 chunks +78 lines, -14 lines 0 comments Download
M device/bluetooth/test/bluetooth_test.h View 1 2 3 4 5 6 3 chunks +26 lines, -1 line 0 comments Download
M device/bluetooth/test/bluetooth_test.cc View 1 2 3 4 2 chunks +33 lines, -5 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_android.h View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_android.cc View 1 2 3 4 5 6 3 chunks +64 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (13 generated)
scheib
Arman, Here's a patch forming with default implementation of CreateGattConnection (all mashed up with other ...
5 years, 4 months ago (2015-08-05 01:09:11 UTC) #2
scheib
Arman, To be clear --- I'm only looking for design input right now on the ...
5 years, 4 months ago (2015-08-05 01:21:21 UTC) #3
armansito
Overall I'm fine with this design. See my comments. https://codereview.chromium.org/1256313002/diff/60001/device/bluetooth/bluetooth_device.h File device/bluetooth/bluetooth_device.h (right): https://codereview.chromium.org/1256313002/diff/60001/device/bluetooth/bluetooth_device.h#newcode244 device/bluetooth/bluetooth_device.h:244: ...
5 years, 4 months ago (2015-08-08 01:51:14 UTC) #5
scheib
https://codereview.chromium.org/1256313002/diff/60001/device/bluetooth/bluetooth_device.h File device/bluetooth/bluetooth_device.h (right): https://codereview.chromium.org/1256313002/diff/60001/device/bluetooth/bluetooth_device.h#newcode476 device/bluetooth/bluetooth_device.h:476: uint32_t gatt_connection_reference_count_ = 0; On 2015/08/08 01:51:14, armansito wrote: ...
5 years, 4 months ago (2015-08-08 02:29:39 UTC) #6
Jeffrey Yasskin
https://codereview.chromium.org/1256313002/diff/100001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java File device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java (right): https://codereview.chromium.org/1256313002/diff/100001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java#newcode103 device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java:103: Log.i(TAG, "connectGatt"); Do we still need all this logging? ...
5 years, 4 months ago (2015-08-20 21:35:14 UTC) #11
scheib
https://codereview.chromium.org/1256313002/diff/100001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java File device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java (right): https://codereview.chromium.org/1256313002/diff/100001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java#newcode103 device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java:103: Log.i(TAG, "connectGatt"); On 2015/08/20 21:35:13, Jeffrey Yasskin wrote: > ...
5 years, 3 months ago (2015-09-13 02:41:01 UTC) #13
Jeffrey Yasskin
https://codereview.chromium.org/1256313002/diff/180001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java File device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java (right): https://codereview.chromium.org/1256313002/diff/180001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java#newcode30 device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java:30: private long mNativeBluetoothDeviceAndroid; Make this final? https://codereview.chromium.org/1256313002/diff/180001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java#newcode34 device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java:34: BluetoothGattCallbackImpl ...
5 years, 3 months ago (2015-09-16 01:40:50 UTC) #14
scheib
https://codereview.chromium.org/1256313002/diff/180001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java File device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java (right): https://codereview.chromium.org/1256313002/diff/180001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java#newcode30 device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java:30: private long mNativeBluetoothDeviceAndroid; On 2015/09/16 01:40:49, Jeffrey Yasskin wrote: ...
5 years, 3 months ago (2015-09-16 21:55:18 UTC) #16
Jeffrey Yasskin
https://codereview.chromium.org/1256313002/diff/220001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/1256313002/diff/220001/device/bluetooth/bluetooth_device_unittest.cc#newcode230 device/bluetooth/bluetooth_device_unittest.cc:230: // CreateGattConnection, & multiple connection s from platform only ...
5 years, 3 months ago (2015-09-16 23:42:49 UTC) #17
scheib
https://codereview.chromium.org/1256313002/diff/220001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/1256313002/diff/220001/device/bluetooth/bluetooth_device_unittest.cc#newcode230 device/bluetooth/bluetooth_device_unittest.cc:230: // CreateGattConnection, & multiple connection s from platform only ...
5 years, 3 months ago (2015-09-20 02:53:35 UTC) #18
Jeffrey Yasskin
https://codereview.chromium.org/1256313002/diff/220001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/1256313002/diff/220001/device/bluetooth/bluetooth_device_unittest.cc#newcode277 device/bluetooth/bluetooth_device_unittest.cc:277: CompleteGattDisconnection(device); On 2015/09/20 02:53:34, scheib wrote: > On 2015/09/16 ...
5 years, 3 months ago (2015-09-22 01:22:10 UTC) #19
scheib
https://codereview.chromium.org/1256313002/diff/220001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/1256313002/diff/220001/device/bluetooth/bluetooth_device_unittest.cc#newcode277 device/bluetooth/bluetooth_device_unittest.cc:277: CompleteGattDisconnection(device); On 2015/09/22 01:22:10, Jeffrey Yasskin wrote: > On ...
5 years, 3 months ago (2015-09-22 18:21:48 UTC) #20
Jeffrey Yasskin
lgtm with 2 comments. Thanks! https://codereview.chromium.org/1256313002/diff/240001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/1256313002/diff/240001/device/bluetooth/bluetooth_device_unittest.cc#newcode298 device/bluetooth/bluetooth_device_unittest.cc:298: EXPECT_FALSE(connection->IsConnected()); On 2015/09/22 18:21:48, ...
5 years, 3 months ago (2015-09-23 00:11:11 UTC) #21
scheib
https://codereview.chromium.org/1256313002/diff/240001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/1256313002/diff/240001/device/bluetooth/bluetooth_device_unittest.cc#newcode298 device/bluetooth/bluetooth_device_unittest.cc:298: EXPECT_FALSE(connection->IsConnected()); On 2015/09/23 00:11:11, Jeffrey Yasskin wrote: > On ...
5 years, 3 months ago (2015-09-23 03:23:00 UTC) #22
armansito
lgtm
5 years, 3 months ago (2015-09-23 06:35:49 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256313002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256313002/280001
5 years, 3 months ago (2015-09-23 16:34:19 UTC) #26
commit-bot: I haz the power
Failed to commit the patch.
5 years, 3 months ago (2015-09-23 18:29:00 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256313002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256313002/280001
5 years, 3 months ago (2015-09-23 19:17:15 UTC) #31
commit-bot: I haz the power
Committed patchset #9 (id:280001)
5 years, 3 months ago (2015-09-23 20:28:05 UTC) #32
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 20:30:17 UTC) #33
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/af7ea91977473d1ae331a6052ca49003134d405e
Cr-Commit-Position: refs/heads/master@{#350359}

Powered by Google App Engine
This is Rietveld 408576698