| 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 371e4c50f25b12957218aae9b4ec77db766ef342..81170e071f53408617b206ce1ad07131f1747daf 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;
|
| @@ -366,7 +364,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) {
|
|
|