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

Unified Diff: chrome/browser/chromeos/login/enrollment/enrollment_screen_browsertest.cc

Issue 2739073002: cros: Use ScreenManager as a component instead of deriving WizardController from it (Closed)
Patch Set: Address comment Created 3 years, 9 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 | « no previous file | chrome/browser/chromeos/login/enterprise_enrollment_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/enrollment/enrollment_screen_browsertest.cc
diff --git a/chrome/browser/chromeos/login/enrollment/enrollment_screen_browsertest.cc b/chrome/browser/chromeos/login/enrollment/enrollment_screen_browsertest.cc
index d1029f88beddac192d0e39651f2e9b7bc8726488..534381c1b06b5c7648d6e02cd3cce7a2b69dd85d 100644
--- a/chrome/browser/chromeos/login/enrollment/enrollment_screen_browsertest.cc
+++ b/chrome/browser/chromeos/login/enrollment/enrollment_screen_browsertest.cc
@@ -41,8 +41,8 @@ class EnrollmentScreenTest : public WizardInProcessBrowserTest {
IN_PROC_BROWSER_TEST_F(EnrollmentScreenTest, TestCancel) {
ASSERT_TRUE(WizardController::default_controller());
- EnrollmentScreen* enrollment_screen =
- EnrollmentScreen::Get(WizardController::default_controller());
+ EnrollmentScreen* enrollment_screen = EnrollmentScreen::Get(
+ WizardController::default_controller()->screen_manager());
ASSERT_TRUE(enrollment_screen);
base::RunLoop run_loop;
@@ -69,8 +69,8 @@ IN_PROC_BROWSER_TEST_F(EnrollmentScreenTest, DISABLED_TestSuccess) {
ASSERT_TRUE(WizardController::default_controller());
EXPECT_FALSE(StartupUtils::IsOobeCompleted());
- EnrollmentScreen* enrollment_screen =
- EnrollmentScreen::Get(WizardController::default_controller());
+ EnrollmentScreen* enrollment_screen = EnrollmentScreen::Get(
+ WizardController::default_controller()->screen_manager());
ASSERT_TRUE(enrollment_screen);
base::RunLoop run_loop;
@@ -105,8 +105,8 @@ class AttestationAuthEnrollmentScreenTest : public EnrollmentScreenTest {
IN_PROC_BROWSER_TEST_F(AttestationAuthEnrollmentScreenTest, TestCancel) {
ASSERT_TRUE(WizardController::default_controller());
- EnrollmentScreen* enrollment_screen =
- EnrollmentScreen::Get(WizardController::default_controller());
+ EnrollmentScreen* enrollment_screen = EnrollmentScreen::Get(
+ WizardController::default_controller()->screen_manager());
ASSERT_TRUE(enrollment_screen);
base::RunLoop run_loop;
@@ -133,7 +133,8 @@ IN_PROC_BROWSER_TEST_F(EnrollmentScreenTest, EnrollmentSpinner) {
WizardController* wcontroller = WizardController::default_controller();
ASSERT_TRUE(wcontroller);
- EnrollmentScreen* enrollment_screen = EnrollmentScreen::Get(wcontroller);
+ EnrollmentScreen* enrollment_screen =
+ EnrollmentScreen::Get(wcontroller->screen_manager());
ASSERT_TRUE(enrollment_screen);
EnrollmentScreenView* view = enrollment_screen->GetView();
@@ -177,8 +178,8 @@ class ForcedAttestationAuthEnrollmentScreenTest : public EnrollmentScreenTest {
IN_PROC_BROWSER_TEST_F(ForcedAttestationAuthEnrollmentScreenTest, TestCancel) {
ASSERT_TRUE(WizardController::default_controller());
- EnrollmentScreen* enrollment_screen =
- EnrollmentScreen::Get(WizardController::default_controller());
+ EnrollmentScreen* enrollment_screen = EnrollmentScreen::Get(
+ WizardController::default_controller()->screen_manager());
ASSERT_TRUE(enrollment_screen);
base::RunLoop run_loop;
@@ -224,8 +225,8 @@ class MultiAuthEnrollmentScreenTest : public EnrollmentScreenTest {
IN_PROC_BROWSER_TEST_F(MultiAuthEnrollmentScreenTest, TestCancel) {
ASSERT_TRUE(WizardController::default_controller());
- EnrollmentScreen* enrollment_screen =
- EnrollmentScreen::Get(WizardController::default_controller());
+ EnrollmentScreen* enrollment_screen = EnrollmentScreen::Get(
+ WizardController::default_controller()->screen_manager());
ASSERT_TRUE(enrollment_screen);
base::RunLoop run_loop;
@@ -269,8 +270,8 @@ class ProvisionedEnrollmentScreenTest : public EnrollmentScreenTest {
IN_PROC_BROWSER_TEST_F(ProvisionedEnrollmentScreenTest, TestBackButton) {
ASSERT_TRUE(WizardController::default_controller());
- EnrollmentScreen* enrollment_screen =
- EnrollmentScreen::Get(WizardController::default_controller());
+ EnrollmentScreen* enrollment_screen = EnrollmentScreen::Get(
+ WizardController::default_controller()->screen_manager());
ASSERT_TRUE(enrollment_screen);
base::RunLoop run_loop;
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/enterprise_enrollment_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698