|
|
Created:
5 years, 3 months ago by Jeffrey Yasskin Modified:
5 years, 3 months ago 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@lkcr Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionHandle RESCAN events from the Bluetooth chooser by starting or extending a discovery session.
I also added interfaces to support tests that this works, documented in https://github.com/WebBluetoothCG/web-bluetooth/pull/165.
BUG=533185
TBR=mkwst@chromium.org
Committed: https://crrev.com/1e9f0c90c10d405dacfe7ab9b5ae4c1c05227a98
Cr-Commit-Position: refs/heads/master@{#350586}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Rename StartDiscovery to StartDeviceDiscovery. #
Total comments: 2
Patch Set 3 : Don't mock {Add,Remove}Observer. #Patch Set 4 : Remove uses of mocked {Add,Remove}Observer. #Patch Set 5 : Revert removal of mock {Add,Remove}Observer. #
Total comments: 2
Patch Set 6 : Merge in the Blink-side tests from https://codereview.chromium.org/1348953004 #Patch Set 7 : Comment the AddDevice() helper function in the test adapters. #Patch Set 8 : Sync #Messages
Total messages: 54 (23 generated)
jyasskin@chromium.org changed reviewers: + ortuno@chromium.org, scheib@chromium.org
The CQ bit was checked by jyasskin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1353053002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1353053002/1
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm https://codereview.chromium.org/1353053002/diff/1/content/browser/bluetooth/b... File content/browser/bluetooth/bluetooth_dispatcher_host.h (right): https://codereview.chromium.org/1353053002/diff/1/content/browser/bluetooth/b... content/browser/bluetooth/bluetooth_dispatcher_host.h:64: void StartDiscovery(RequestDeviceSession* session, int chooser_id); Should this be named StartDeviceDiscovery? In case we have other types of Discovery Sessions like service discovery or characteristic discovery?
jyasskin@chromium.org changed reviewers: + armansito@chromium.org, mkwst@chromium.org
Mike, please check content/shell/browser/blink_test_controller.cc. Arman, please check the extra observer support in MockBluetoothAdapter. https://codereview.chromium.org/1353053002/diff/1/content/browser/bluetooth/b... File content/browser/bluetooth/bluetooth_dispatcher_host.h (right): https://codereview.chromium.org/1353053002/diff/1/content/browser/bluetooth/b... content/browser/bluetooth/bluetooth_dispatcher_host.h:64: void StartDiscovery(RequestDeviceSession* session, int chooser_id); On 2015/09/18 19:31:56, ortuno wrote: > Should this be named StartDeviceDiscovery? In case we have other types of > Discovery Sessions like service discovery or characteristic discovery? Yeah, good point. Done.
https://codereview.chromium.org/1353053002/diff/20001/device/bluetooth/test/m... File device/bluetooth/test/mock_bluetooth_adapter.cc (right): https://codereview.chromium.org/1353053002/diff/20001/device/bluetooth/test/m... device/bluetooth/test/mock_bluetooth_adapter.cc:25: })); Do you ever need MockBluetoothAdapter::AddObserver|RemoveObserver to be mocked in tests? Why not just not override them in this class at all?
The CQ bit was checked by jyasskin@chromium.org to run a CQ dry run
https://codereview.chromium.org/1353053002/diff/20001/device/bluetooth/test/m... File device/bluetooth/test/mock_bluetooth_adapter.cc (right): https://codereview.chromium.org/1353053002/diff/20001/device/bluetooth/test/m... device/bluetooth/test/mock_bluetooth_adapter.cc:25: })); On 2015/09/18 23:33:49, armansito wrote: > Do you ever need MockBluetoothAdapter::AddObserver|RemoveObserver to be mocked > in tests? Why not just not override them in this class at all? My tests don't need it; let's see if anyone else's do. Changed.
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1353053002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1353053002/40001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
On 2015/09/19 00:26:11, commit-bot: I haz the power wrote: > Dry run: Try jobs failed on following builders: > linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, > http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) > mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, > http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...) Looks like the mocks are indeed being used from some webbluetooth unit tests but then again it might be better to remove those expectations from those tests anyway since these probably don't really serve a good purpose as expectations.
The CQ bit was checked by jyasskin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1353053002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1353053002/60001
jyasskin@chromium.org changed reviewers: + kalman@chromium.org, tengs@chromium.org
On 2015/09/19 02:29:13, armansito wrote: > On 2015/09/19 00:26:11, commit-bot: I haz the power wrote: > > Dry run: Try jobs failed on following builders: > > linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, > > > http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) > > mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, > > > http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...) > > Looks like the mocks are indeed being used from some webbluetooth unit tests but > then again it might be better to remove those expectations from those tests > anyway since these probably don't really serve a good purpose as expectations. Several of these expectations look like they're asserting that the components clean up after themselves as they're being destroyed, which is fairly valuable to avoid use-after-free's. + some representatives of the teams whose assertions we'd be removing. I'm inclined to revert that part of the change.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/...)
On 2015/09/23 01:00:01, Jeffrey Yasskin wrote: > On 2015/09/19 02:29:13, armansito wrote: > > On 2015/09/19 00:26:11, commit-bot: I haz the power wrote: > > > Dry run: Try jobs failed on following builders: > > > linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, > > > > > > http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) > > > mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, > > > > > > http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...) > > > > Looks like the mocks are indeed being used from some webbluetooth unit tests > but > > then again it might be better to remove those expectations from those tests > > anyway since these probably don't really serve a good purpose as expectations. > > > Several of these expectations look like they're asserting that the components > clean up after themselves as they're being destroyed, which is fairly valuable > to avoid use-after-free's. + some representatives of the teams whose assertions > we'd be removing. I'm inclined to revert that part of the change. sgtm. Pre-emptive lgtm
jyasskin@chromium.org changed reviewers: - kalman@chromium.org, tengs@chromium.org
The CQ bit was checked by jyasskin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1353053002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1353053002/80001
Thanks. Mike and Vince, I still need your LGTMs for content/shell and content/shell/layout_tests/*bluetooth.
LGTM, comment request: https://codereview.chromium.org/1353053002/diff/80001/content/shell/browser/l... File content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc (right): https://codereview.chromium.org/1353053002/diff/80001/content/shell/browser/l... content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc:257: static void AddDevice(scoped_refptr<NiceMockBluetoothAdapter> adapter, This is hard enough to trace code flow to warrant a comment explaining it. Briefly here and possibly at the use below as well.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
jyasskin@chromium.org changed reviewers: + jochen@chromium.org
Hey Jochen, Mike's marked "slow" and I'm going on vacation Saturday, so can you look at the 2 lines in https://codereview.chromium.org/1353053002/diff/120001/content/shell/browser/... FYI to others: Since the blink merge is done, I merged in the tests Gio approved in https://codereview.chromium.org/1348953004/. https://codereview.chromium.org/1353053002/diff/80001/content/shell/browser/l... File content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc (right): https://codereview.chromium.org/1353053002/diff/80001/content/shell/browser/l... content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc:257: static void AddDevice(scoped_refptr<NiceMockBluetoothAdapter> adapter, On 2015/09/23 03:35:00, scheib wrote: > This is hard enough to trace code flow to warrant a comment explaining it. > Briefly here and possibly at the use below as well. Done.
The CQ bit was checked by jyasskin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1353053002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1353053002/120001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by jyasskin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1353053002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1353053002/120001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by jyasskin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1353053002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1353053002/140001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_...) linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by jyasskin@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from ortuno@chromium.org, armansito@chromium.org, scheib@chromium.org Link to the patchset: https://codereview.chromium.org/1353053002/#ps140001 (title: "Sync")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1353053002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1353053002/140001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
The CQ bit was checked by jyasskin@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1353053002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1353053002/140001
lgtm
Message was sent while issue was closed.
Committed patchset #8 (id:140001)
Message was sent while issue was closed.
Patchset 8 (id:??) landed as https://crrev.com/1e9f0c90c10d405dacfe7ab9b5ae4c1c05227a98 Cr-Commit-Position: refs/heads/master@{#350586} |