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

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

Issue 2832913002: Harmonizing SmartLock dialog (Closed)
Patch Set: Created 3 years, 8 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
Index: chrome/browser/ui/views/passwords/manage_passwords_bubble_view_browsertest.cc
diff --git a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view_browsertest.cc b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view_browsertest.cc
index f3c3a6f161b457c80ab2c85dd82de93df0b65220..7de151d97294b3ce0e23b3fcd28d4435992f061b 100644
--- a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view_browsertest.cc
+++ b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view_browsertest.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h"
#include "base/macros.h"
+#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/ui/passwords/manage_passwords_test.h"
#include "chrome/browser/ui/test/test_browser_dialog.h"
@@ -22,6 +23,16 @@ class ManagePasswordsBubbleDialogViewTest
} else if (name == "ManagePasswordBubble") {
SetupManagingPasswords();
ExecuteManagePasswordsCommand();
+ } else if (name == "AutoSignin") {
+ test_form()->origin = GURL("https://example.com");
+ test_form()->display_name = base::ASCIIToUTF16("Peter");
+ test_form()->username_value = base::ASCIIToUTF16("pet12@gmail.com");
+ std::vector<std::unique_ptr<autofill::PasswordForm>> local_credentials;
+ local_credentials.push_back(
+ base::MakeUnique<autofill::PasswordForm>(*test_form()));
+
+ ManagePasswordsBubbleView::set_auto_signin_toast_timeout(10);
+ SetupAutoSignin(std::move(local_credentials));
} else {
ADD_FAILURE() << "Unknown dialog type";
return;
@@ -46,3 +57,8 @@ IN_PROC_BROWSER_TEST_F(ManagePasswordsBubbleDialogViewTest,
InvokeDialog_ManagePasswordBubble) {
RunDialog();
}
+
+IN_PROC_BROWSER_TEST_F(ManagePasswordsBubbleDialogViewTest,
+ InvokeDialog_AutoSignin) {
+ RunDialog();
+}

Powered by Google App Engine
This is Rietveld 408576698