| 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 fead5b75df6406024bf1db44bf5856486bd13f82..2914038063be07620e16eb8c73b93dec1c992a7f 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
|
| @@ -8,6 +8,7 @@
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/browser/ui/tabs/tab_strip_model.h"
|
| #include "chrome/browser/ui/views/passwords/manage_passwords_view_test.h"
|
| +#include "chrome/test/base/interactive_test_utils.h"
|
| #include "components/password_manager/core/browser/password_manager_metrics_util.h"
|
| #include "components/password_manager/core/browser/stub_password_manager_client.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| @@ -159,3 +160,14 @@ IN_PROC_BROWSER_TEST_F(ManagePasswordsBubbleViewTest,
|
| samples->GetCount(
|
| metrics_util::MANUAL_MANAGE_PASSWORDS));
|
| }
|
| +
|
| +IN_PROC_BROWSER_TEST_F(ManagePasswordsBubbleViewTest, CloseOnClick) {
|
| + ManagePasswordsBubbleView::ShowBubble(
|
| + browser()->tab_strip_model()->GetActiveWebContents(),
|
| + ManagePasswordsBubble::AUTOMATIC);
|
| + EXPECT_TRUE(ManagePasswordsBubbleView::IsShowing());
|
| + EXPECT_FALSE(ManagePasswordsBubbleView::manage_password_bubble()->
|
| + GetFocusManager()->GetFocusedView());
|
| + ui_test_utils::ClickOnView(browser(), VIEW_ID_TAB_CONTAINER);
|
| + EXPECT_FALSE(ManagePasswordsBubbleView::IsShowing());
|
| +}
|
|
|