Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3657)

Unified Diff: chrome/browser/ui/views/profiles/forced_reauthentication_dialog_view_browsertest.cc

Issue 2944713003: After signin token check failed, show force reauth dialog and start window closing countdown. (Closed)
Patch Set: nit Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/profiles/forced_reauthentication_dialog_view.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)));
}
« no previous file with comments | « chrome/browser/ui/views/profiles/forced_reauthentication_dialog_view.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698