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

Issue 378643006: PasswordManager browser test: simplify checking for password prompt (Closed)

Created:
6 years, 5 months ago by vabr (Chromium)
Modified:
6 years, 5 months ago
Reviewers:
engedy
CC:
chromium-reviews, gcasto+watchlist_chromium.org, Mike West
Project:
chromium
Visibility:
Public.

Description

PasswordManager browser test: simplify checking for password prompt Currently, every single test case needs to check whether the infobar or tha password bubble is used, and do different checks accordingly. Even worse, auto-saving behaviour is different for those two, so people modifying existing tests are very likely to have false expectations. This CL creates a PromptObserver class by decoupling prompt observing from navigation observation. PromptObserver takes care of the differences between infobar and bubble automatically, and provides a clear API to check for the prompt being shown, and to instruct the prompt to save passwords, respectively. BUG=392144 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282772

Patch Set 1 : #

Patch Set 2 : Just rebased #

Patch Set 3 : Fix the problem with infobars #

Total comments: 18

Patch Set 4 : Comments addressed + git cl format #

Patch Set 5 : Just rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -194 lines) Patch
M chrome/browser/password_manager/password_manager_browsertest.cc View 1 2 3 43 chunks +210 lines, -194 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
vabr (Chromium)
Hi Balázs, Please take a look. Mike, highlighting this for you, because it is a ...
6 years, 5 months ago (2014-07-08 15:50:44 UTC) #1
vabr (Chromium)
The failure on Mac seems like a problem, I apparently got the infobar version wrong ...
6 years, 5 months ago (2014-07-09 13:27:31 UTC) #2
vabr (Chromium)
Hi Balázs, Tests should be fixed now, please take a look. Thanks! Vaclav
6 years, 5 months ago (2014-07-10 14:07:29 UTC) #3
engedy
LGTM modulo 2 comments, plus some nits. https://codereview.chromium.org/378643006/diff/80001/chrome/browser/password_manager/password_manager_browsertest.cc File chrome/browser/password_manager/password_manager_browsertest.cc (right): https://codereview.chromium.org/378643006/diff/80001/chrome/browser/password_manager/password_manager_browsertest.cc#newcode96 chrome/browser/password_manager/password_manager_browsertest.cc:96: // Observes ...
6 years, 5 months ago (2014-07-11 18:07:27 UTC) #4
engedy
On 2014/07/11 18:07:27, engedy wrote: > LGTM modulo 2 comments, plus some nits. > > ...
6 years, 5 months ago (2014-07-11 18:09:57 UTC) #5
vabr (Chromium)
Thanks! I addressed the comments and will send this to the CQ. Cheers, Vaclav https://codereview.chromium.org/378643006/diff/80001/chrome/browser/password_manager/password_manager_browsertest.cc ...
6 years, 5 months ago (2014-07-11 18:48:02 UTC) #6
vabr (Chromium)
The CQ bit was checked by vabr@chromium.org
6 years, 5 months ago (2014-07-11 18:52:12 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vabr@chromium.org/378643006/120001
6 years, 5 months ago (2014-07-11 18:53:19 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-11 23:35:35 UTC) #9
commit-bot: I haz the power
6 years, 5 months ago (2014-07-12 01:29:57 UTC) #10
Message was sent while issue was closed.
Change committed as 282772

Powered by Google App Engine
This is Rietveld 408576698