| Index: chrome/browser/ui/views/profiles/forced_reauthentication_dialog_view_browsertest.cc
|
| diff --git a/chrome/browser/ui/views/profiles/forced_reauthentication_dialog_browsertest.cc b/chrome/browser/ui/views/profiles/forced_reauthentication_dialog_view_browsertest.cc
|
| similarity index 73%
|
| rename from chrome/browser/ui/views/profiles/forced_reauthentication_dialog_browsertest.cc
|
| rename to chrome/browser/ui/views/profiles/forced_reauthentication_dialog_view_browsertest.cc
|
| index 46394491c64a21a52d53fbe5ca02040c4547bb3b..33d1dfd778f94aeafcc3e9375162148c071ffb2e 100644
|
| --- a/chrome/browser/ui/views/profiles/forced_reauthentication_dialog_browsertest.cc
|
| +++ b/chrome/browser/ui/views/profiles/forced_reauthentication_dialog_view_browsertest.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "chrome/browser/ui/views/profiles/forced_reauthentication_dialog.h"
|
| +#include "chrome/browser/ui/views/profiles/forced_reauthentication_dialog_view.h"
|
|
|
| #include "base/bind.h"
|
| #include "base/bind_helpers.h"
|
| @@ -15,48 +15,48 @@
|
| #include "components/signin/core/browser/signin_manager.h"
|
| #include "ui/base/ui_base_types.h"
|
|
|
| -class ForcedReauthenticationDialogBrowserTest : public DialogBrowserTest {
|
| +class ForcedReauthenticationDialogViewBrowserTest : public DialogBrowserTest {
|
| public:
|
| - ForcedReauthenticationDialogBrowserTest() {}
|
| + ForcedReauthenticationDialogViewBrowserTest() {}
|
|
|
| // override DialogBrowserTest
|
| void ShowDialog(const std::string& name) override {
|
| Profile* profile = browser()->profile();
|
| SigninManager* manager = SigninManagerFactory::GetForProfile(profile);
|
| manager->SetAuthenticatedAccountInfo("test1", "test@xyz.com");
|
| - ForcedReauthenticationDialog::ShowDialog(profile, manager,
|
| - base::TimeDelta::FromSeconds(60));
|
| + ForcedReauthenticationDialogView::ShowDialog(
|
| + profile, manager, base::TimeDelta::FromSeconds(60));
|
| }
|
|
|
| // An integer represents the buttons of dialog.
|
|
|
| private:
|
| - DISALLOW_COPY_AND_ASSIGN(ForcedReauthenticationDialogBrowserTest);
|
| + DISALLOW_COPY_AND_ASSIGN(ForcedReauthenticationDialogViewBrowserTest);
|
| };
|
|
|
| -IN_PROC_BROWSER_TEST_F(ForcedReauthenticationDialogBrowserTest,
|
| +IN_PROC_BROWSER_TEST_F(ForcedReauthenticationDialogViewBrowserTest,
|
| InvokeDialog_default) {
|
| RunDialog();
|
| }
|
|
|
| // Dialog will not be display if there is no valid browser window.
|
| -IN_PROC_BROWSER_TEST_F(ForcedReauthenticationDialogBrowserTest,
|
| +IN_PROC_BROWSER_TEST_F(ForcedReauthenticationDialogViewBrowserTest,
|
| NotOpenDialogDueToNoBrowser) {
|
| Profile* profile = browser()->profile();
|
| CloseBrowserSynchronously(browser());
|
| - EXPECT_EQ(nullptr, ForcedReauthenticationDialog::ShowDialog(
|
| + EXPECT_EQ(nullptr, ForcedReauthenticationDialogView::ShowDialog(
|
| profile, SigninManagerFactory::GetForProfile(profile),
|
| base::TimeDelta::FromSeconds(60)));
|
| }
|
|
|
| -IN_PROC_BROWSER_TEST_F(ForcedReauthenticationDialogBrowserTest,
|
| +IN_PROC_BROWSER_TEST_F(ForcedReauthenticationDialogViewBrowserTest,
|
| NotOpenDialogDueToNoTabs) {
|
| Profile* profile = browser()->profile();
|
| TabStripModel* model = browser()->tab_strip_model();
|
| ASSERT_EQ(1, model->count());
|
| model->CloseWebContentsAt(0, TabStripModel::CLOSE_NONE);
|
| ASSERT_TRUE(model->empty());
|
| - EXPECT_EQ(nullptr, ForcedReauthenticationDialog::ShowDialog(
|
| + EXPECT_EQ(nullptr, ForcedReauthenticationDialogView::ShowDialog(
|
| profile, SigninManagerFactory::GetForProfile(profile),
|
| base::TimeDelta::FromSeconds(60)));
|
| }
|
|
|