| 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();
|
| +}
|
|
|