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

Issue 2569703004: Add "interactive" UI integration tests for PermissionRequestManager. (Closed)

Created:
4 years ago by tapted
Modified:
3 years, 9 months ago
Reviewers:
dominickn, raymes
CC:
chromium-reviews, mlamouri+watch-permissions_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add "interactive" UI integration tests for PermissionRequestManager. Existing PermissionRequestManager tests use a MockPermissionPromptFactory which replaces the code that generates actual UI with stubs. To get coverage of the UI creation code, and to allow the set of permission prompts to be easily "invoked" for UI review, extend PermissionRequestManagerBrowserTest with one that uses "real" UI rather than a mock. Then, add "Dialog" BrowserTests for a range of permission types that can be requested. These are run on the bots or (optionally) interactively with a command such as `browser_tests --gtest_filter=BrowserDialogTest.Invoke --interactive --dialog=PermissionDialogTest.InvokeDialog_multiple` BUG=605667, 663935 Review-Url: https://codereview.chromium.org/2569703004 Cr-Commit-Position: refs/heads/master@{#457296} Committed: https://chromium.googlesource.com/chromium/src/+/38424d53080c397f8cc13c6581fe937070922ac0

Patch Set 1 #

Patch Set 2 : Neater #

Patch Set 3 : Add media requests #

Patch Set 4 : rebase #

Patch Set 5 : CrOS test #

Total comments: 6

Patch Set 6 : rebase? #

Patch Set 7 : Respond to comments + adapt to new MediaRequest API #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -0 lines) Patch
M chrome/browser/media/webrtc/media_stream_devices_controller.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/permissions/permission_request_manager_browsertest.cc View 1 2 3 4 5 6 4 chunks +249 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (25 generated)
tapted
Hi Raymes, please take a look. I dwelled on this for a bit thinking "this ...
3 years, 9 months ago (2017-03-09 04:15:20 UTC) #17
raymes
1 request. I think keeping this decoupled from MediaStreamDevicesController is good for now. I'm doing ...
3 years, 9 months ago (2017-03-12 23:33:53 UTC) #18
tapted
PTAL - extended the MediaStreamDevicesControllerTestApi to cater for the API changes https://codereview.chromium.org/2569703004/diff/80001/chrome/browser/permissions/permission_request_manager_browsertest.cc File chrome/browser/permissions/permission_request_manager_browsertest.cc (right): ...
3 years, 9 months ago (2017-03-14 00:43:53 UTC) #21
dominickn
Request: can you add crbug.com/663935 to this CL? I think this definitely covers "test permissions ...
3 years, 9 months ago (2017-03-14 05:46:58 UTC) #25
tapted
On 2017/03/14 05:46:58, dominickn wrote: > Request: can you add crbug.com/663935 to this CL? I ...
3 years, 9 months ago (2017-03-14 05:48:52 UTC) #27
raymes
lgtm, thanks Trent! Sorry for the delay
3 years, 9 months ago (2017-03-15 23:41:11 UTC) #28
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/2569703004/120001
3 years, 9 months ago (2017-03-16 00:10:43 UTC) #30
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 01:17:58 UTC) #33
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/38424d53080c397f8cc13c6581fe...

Powered by Google App Engine
This is Rietveld 408576698