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

Issue 2783733002: Bluetooth: Add service data unit tests for chromeos (Closed)

Created:
3 years, 8 months ago by xiaoyinh(OOO Sep 11-29)
Modified:
3 years, 8 months ago
Reviewers:
Miao, rkc, ortuno, scheib
CC:
chromium-reviews, ortuno+watch_chromium.org, scheib+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Bluetooth: Add service data unit tests for chromeos This CL verifies that: 1. service data is populated correctly during device creation. 2. service data is updated correctly on property changed. BUG=688566 Review-Url: https://codereview.chromium.org/2783733002 Cr-Commit-Position: refs/heads/master@{#461565} Committed: https://chromium.googlesource.com/chromium/src/+/ab0e2203cdb233620ef341cc297fc3d87ca0ddc5

Patch Set 1 #

Total comments: 9

Patch Set 2 : Incoporate comments #

Total comments: 15

Patch Set 3 : mimic bluez caching behavior #

Patch Set 4 : trybot #

Total comments: 10

Patch Set 5 : comments and rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -104 lines) Patch
M device/bluetooth/bluetooth_device_unittest.cc View 1 2 3 4 2 chunks +50 lines, -21 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_bluez_unittest.cc View 1 2 1 chunk +0 lines, -63 lines 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_device_client.h View 1 2 2 chunks +17 lines, -6 lines 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_device_client.cc View 1 2 3 chunks +30 lines, -1 line 0 comments Download
M device/bluetooth/test/bluetooth_test.h View 1 2 chunks +10 lines, -2 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_bluez.cc View 1 2 chunks +18 lines, -9 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_mac.mm View 1 1 chunk +2 lines, -2 lines 1 comment Download

Messages

Total messages: 51 (27 generated)
xiaoyinh(OOO Sep 11-29)
Hi, Could you take a look and let me know? Thanks!
3 years, 8 months ago (2017-03-28 21:05:08 UTC) #6
Miao
On 2017/03/28 21:05:08, xiaoyinh wrote: > Hi, Could you take a look and let me ...
3 years, 8 months ago (2017-03-28 21:16:36 UTC) #8
Miao
https://codereview.chromium.org/2783733002/diff/1/device/bluetooth/dbus/fake_bluetooth_device_client.cc File device/bluetooth/dbus/fake_bluetooth_device_client.cc (right): https://codereview.chromium.org/2783733002/diff/1/device/bluetooth/dbus/fake_bluetooth_device_client.cc#newcode1822 device/bluetooth/dbus/fake_bluetooth_device_client.cc:1822: properties->service_data.set_valid(true); The validity of |service_data| should depend on whether ...
3 years, 8 months ago (2017-03-28 22:56:41 UTC) #9
ortuno
In the future it would be better if you added reviewers as they lgtm your ...
3 years, 8 months ago (2017-03-28 23:56:36 UTC) #10
Miao
https://codereview.chromium.org/2783733002/diff/1/device/bluetooth/test/bluetooth_test_bluez.cc File device/bluetooth/test/bluetooth_test_bluez.cc (right): https://codereview.chromium.org/2783733002/diff/1/device/bluetooth/test/bluetooth_test_bluez.cc#newcode155 device/bluetooth/test/bluetooth_test_bluez.cc:155: if (device) { On 2017/03/28 23:56:36, ortuno wrote: > ...
3 years, 8 months ago (2017-03-29 17:58:58 UTC) #11
xiaoyinh(OOO Sep 11-29)
Miao, ortuno, thanks for your comments. Please take another look, thanks! https://codereview.chromium.org/2783733002/diff/1/device/bluetooth/dbus/fake_bluetooth_device_client.cc File device/bluetooth/dbus/fake_bluetooth_device_client.cc (right): ...
3 years, 8 months ago (2017-03-29 21:58:07 UTC) #17
ortuno
Also please remove the TODO in https://cs.chromium.org/chromium/src/device/bluetooth/bluez/bluetooth_device_bluez.cc?type=cs&q=f:bluez+f:device+TODO&l=171 https://codereview.chromium.org/2783733002/diff/20001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/2783733002/diff/20001/device/bluetooth/bluetooth_device_unittest.cc#newcode170 device/bluetooth/bluetooth_device_unittest.cc:170: #if defined(OS_MACOSX) ...
3 years, 8 months ago (2017-03-30 02:58:14 UTC) #18
ortuno
+scheib for realz
3 years, 8 months ago (2017-03-30 02:59:14 UTC) #20
scheib
https://codereview.chromium.org/2783733002/diff/20001/device/bluetooth/dbus/fake_bluetooth_device_client.cc File device/bluetooth/dbus/fake_bluetooth_device_client.cc (right): https://codereview.chromium.org/2783733002/diff/20001/device/bluetooth/dbus/fake_bluetooth_device_client.cc#newcode1565 device/bluetooth/dbus/fake_bluetooth_device_client.cc:1565: properties->service_data.ReplaceValue(service_data); On 2017/03/30 02:58:14, ortuno wrote: > +scheib fyi ...
3 years, 8 months ago (2017-03-30 03:44:11 UTC) #21
Miao
https://codereview.chromium.org/2783733002/diff/20001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/2783733002/diff/20001/device/bluetooth/bluetooth_device_unittest.cc#newcode170 device/bluetooth/bluetooth_device_unittest.cc:170: #if defined(OS_MACOSX) || defined(OS_CHROMEOS) On 2017/03/30 02:58:14, ortuno wrote: ...
3 years, 8 months ago (2017-03-30 21:20:07 UTC) #22
ortuno
https://codereview.chromium.org/2783733002/diff/20001/device/bluetooth/dbus/fake_bluetooth_device_client.cc File device/bluetooth/dbus/fake_bluetooth_device_client.cc (right): https://codereview.chromium.org/2783733002/diff/20001/device/bluetooth/dbus/fake_bluetooth_device_client.cc#newcode1565 device/bluetooth/dbus/fake_bluetooth_device_client.cc:1565: properties->service_data.ReplaceValue(service_data); On 2017/03/30 at 21:20:07, Miao wrote: > On ...
3 years, 8 months ago (2017-03-30 22:18:17 UTC) #23
xiaoyinh(OOO Sep 11-29)
https://codereview.chromium.org/2783733002/diff/20001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/2783733002/diff/20001/device/bluetooth/bluetooth_device_unittest.cc#newcode170 device/bluetooth/bluetooth_device_unittest.cc:170: #if defined(OS_MACOSX) || defined(OS_CHROMEOS) On 2017/03/30 02:58:14, ortuno wrote: ...
3 years, 8 months ago (2017-03-31 16:26:53 UTC) #32
ortuno
lgtm with some minor comments https://codereview.chromium.org/2783733002/diff/60001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/2783733002/diff/60001/device/bluetooth/bluetooth_device_unittest.cc#newcode180 device/bluetooth/bluetooth_device_unittest.cc:180: #if defined(OS_MACOSX) #if !defined(OS_LINUX) ...
3 years, 8 months ago (2017-04-03 02:47:25 UTC) #33
xiaoyinh(OOO Sep 11-29)
https://codereview.chromium.org/2783733002/diff/60001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/2783733002/diff/60001/device/bluetooth/bluetooth_device_unittest.cc#newcode180 device/bluetooth/bluetooth_device_unittest.cc:180: #if defined(OS_MACOSX) On 2017/04/03 02:47:24, ortuno wrote: > #if ...
3 years, 8 months ago (2017-04-03 21:28:22 UTC) #38
Miao
lgtm
3 years, 8 months ago (2017-04-03 22:09:17 UTC) #39
Miao
lgtm
3 years, 8 months ago (2017-04-03 22:09:18 UTC) #40
ortuno
lgtm https://codereview.chromium.org/2783733002/diff/60001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/2783733002/diff/60001/device/bluetooth/bluetooth_device_unittest.cc#newcode186 device/bluetooth/bluetooth_device_unittest.cc:186: // Receive Advertisement with service data. On 2017/04/03 ...
3 years, 8 months ago (2017-04-03 22:39:34 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2783733002/80001
3 years, 8 months ago (2017-04-03 22:42:24 UTC) #43
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/ab0e2203cdb233620ef341cc297fc3d87ca0ddc5
3 years, 8 months ago (2017-04-03 22:49:21 UTC) #46
findit-for-me
Findit identified this CL at revision 461565 as the culprit for failures in the build ...
3 years, 8 months ago (2017-04-03 23:48:17 UTC) #47
ortuno
https://codereview.chromium.org/2783733002/diff/80001/device/bluetooth/test/bluetooth_test_mac.mm File device/bluetooth/test/bluetooth_test_mac.mm (left): https://codereview.chromium.org/2783733002/diff/80001/device/bluetooth/test/bluetooth_test_mac.mm#oldcode179 device/bluetooth/test/bluetooth_test_mac.mm:179: [NSData dataWithBytes:(unsigned char[]){2} length:1], Ah seems like we need ...
3 years, 8 months ago (2017-04-03 23:55:51 UTC) #48
xiaoyinh(OOO Sep 11-29)
On 2017/04/03 23:55:51, ortuno wrote: > https://codereview.chromium.org/2783733002/diff/80001/device/bluetooth/test/bluetooth_test_mac.mm > File device/bluetooth/test/bluetooth_test_mac.mm (left): > > https://codereview.chromium.org/2783733002/diff/80001/device/bluetooth/test/bluetooth_test_mac.mm#oldcode179 > ...
3 years, 8 months ago (2017-04-03 23:57:31 UTC) #49
caseq
On 2017/04/03 23:57:31, xiaoyinh wrote: > So sorry about that! Should I revert this first? ...
3 years, 8 months ago (2017-04-04 00:04:52 UTC) #50
xiaoyinh(OOO Sep 11-29)
3 years, 8 months ago (2017-04-04 00:06:40 UTC) #51
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/2792203003/ by xiaoyinh@chromium.org.

The reason for reverting is: This CL broke Mac build..

Powered by Google App Engine
This is Rietveld 408576698