| 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 e5db354ea8852598bb55c526d12c7e0679eda908..3f8c78c1c93812551e3eb7ef337db298ef18691d 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
|
| @@ -6,10 +6,10 @@
|
|
|
| #include "base/command_line.h"
|
| #include "base/metrics/histogram_samples.h"
|
| +#include "base/strings/utf_string_conversions.h"
|
| #include "chrome/browser/ui/browser.h"
|
| -#include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h"
|
| #include "chrome/browser/ui/passwords/manage_passwords_test.h"
|
| -#include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h"
|
| +#include "chrome/browser/ui/passwords/passwords_model_delegate.h"
|
| #include "chrome/browser/ui/tabs/tab_strip_model.h"
|
| #include "chrome/browser/ui/views/frame/browser_view.h"
|
| #include "chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h"
|
| @@ -17,13 +17,11 @@
|
| #include "chrome/browser/ui/views/toolbar/toolbar_view.h"
|
| #include "chrome/test/base/interactive_test_utils.h"
|
| #include "components/password_manager/core/browser/password_bubble_experiment.h"
|
| -#include "components/password_manager/core/browser/password_manager_metrics_util.h"
|
| -#include "components/password_manager/core/browser/stub_password_manager_client.h"
|
| #include "content/public/browser/notification_types.h"
|
| #include "content/public/browser/render_view_host.h"
|
| #include "content/public/common/content_switches.h"
|
| #include "net/url_request/test_url_fetcher_factory.h"
|
| -#include "testing/gtest/include/gtest/gtest.h"
|
| +#include "testing/gmock/include/gmock/gmock.h"
|
|
|
| using testing::Eq;
|
| using testing::Field;
|
| @@ -373,7 +371,10 @@ IN_PROC_BROWSER_TEST_F(ManagePasswordsBubbleViewTest, AutoSignin) {
|
| ManagePasswordsBubbleView::CloseBubble();
|
| EXPECT_FALSE(IsBubbleShowing());
|
| content::RunAllPendingInMessageLoop();
|
| - EXPECT_EQ(password_manager::ui::MANAGE_STATE, GetController()->state());
|
| + content::WebContents* web_contents =
|
| + browser()->tab_strip_model()->GetActiveWebContents();
|
| + EXPECT_EQ(password_manager::ui::MANAGE_STATE,
|
| + PasswordsModelDelegateFromWebContents(web_contents)->GetState());
|
| }
|
|
|
| IN_PROC_BROWSER_TEST_F(ManagePasswordsBubbleViewTest, AutoSigninNoFocus) {
|
|
|