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

Unified Diff: chrome/browser/ui/views/passwords/password_dialog_view_browsertest.cc

Issue 2869683003: Views/Harmony: Remove references to layout constants in c/b/u/v/passwords. (Closed)
Patch Set: Review comments. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/passwords/password_dialog_view_browsertest.cc
diff --git a/chrome/browser/ui/views/passwords/password_dialog_view_browsertest.cc b/chrome/browser/ui/views/passwords/password_dialog_view_browsertest.cc
index 0d4c7d571998ab3f64d0c60ec0f0f995dbcf73db..6b44d84b8898dd2b99c714633b465d5bcd6f96dc 100644
--- a/chrome/browser/ui/views/passwords/password_dialog_view_browsertest.cc
+++ b/chrome/browser/ui/views/passwords/password_dialog_view_browsertest.cc
@@ -469,6 +469,11 @@ IN_PROC_BROWSER_TEST_F(PasswordDialogViewTest,
// DialogBrowserTest methods for interactive dialog invocation.
void PasswordDialogViewTest::ShowDialog(const std::string& name) {
+ if (name == "AutoSigninFirstRun") {
+ controller()->OnPromptEnableAutoSignin();
+ return;
+ }
+
GURL origin("https://example.com");
std::vector<std::unique_ptr<autofill::PasswordForm>> local_credentials;
autofill::PasswordForm form;
@@ -504,4 +509,9 @@ IN_PROC_BROWSER_TEST_F(
RunDialog();
}
+IN_PROC_BROWSER_TEST_F(PasswordDialogViewTest,
+ InvokeDialog_AutoSigninFirstRun) {
+ RunDialog();
+}
+
} // namespace
« no previous file with comments | « chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698