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

Unified Diff: chrome/browser/chromeos/login/wizard_controller_browsertest.cc

Issue 306993004: Remove the option to skip auto-update checks on OOBE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
Index: chrome/browser/chromeos/login/wizard_controller_browsertest.cc
diff --git a/chrome/browser/chromeos/login/wizard_controller_browsertest.cc b/chrome/browser/chromeos/login/wizard_controller_browsertest.cc
index c0f6c912b347318827d1a3f001025b551a95cff4..08d83e84875a9916e3c42e6bb8a32b9248a4d88e 100644
--- a/chrome/browser/chromeos/login/wizard_controller_browsertest.cc
+++ b/chrome/browser/chromeos/login/wizard_controller_browsertest.cc
@@ -550,39 +550,6 @@ IN_PROC_BROWSER_TEST_F(WizardControllerFlowTest, ControlFlowErrorUpdate) {
EXPECT_FALSE(ExistingUserController::current_controller() == NULL);
}
-IN_PROC_BROWSER_TEST_F(WizardControllerFlowTest, ControlFlowSkipUpdateEnroll) {
- EXPECT_EQ(WizardController::default_controller()->GetNetworkScreen(),
- WizardController::default_controller()->current_screen());
- EXPECT_CALL(*mock_update_screen_, StartNetworkCheck()).Times(0);
- EXPECT_CALL(*mock_eula_screen_, Show()).Times(1);
- EXPECT_CALL(*mock_update_screen_, Show()).Times(0);
- EXPECT_CALL(*mock_network_screen_, Hide()).Times(1);
- OnExit(ScreenObserver::NETWORK_CONNECTED);
-
- EXPECT_EQ(WizardController::default_controller()->GetEulaScreen(),
- WizardController::default_controller()->current_screen());
- EXPECT_CALL(*mock_eula_screen_, Hide()).Times(1);
- EXPECT_CALL(*mock_update_screen_, StartNetworkCheck()).Times(0);
- EXPECT_CALL(*mock_update_screen_, Show()).Times(0);
- WizardController::default_controller()->SkipUpdateEnrollAfterEula();
- EXPECT_CALL(*mock_enrollment_screen_->actor(),
- SetParameters(mock_enrollment_screen_,
- EnrollmentScreenActor::ENROLLMENT_MODE_MANUAL,
- ""))
- .Times(1);
- EXPECT_CALL(*mock_enrollment_screen_, Show()).Times(1);
- EXPECT_CALL(*mock_enrollment_screen_, Hide()).Times(0);
- OnExit(ScreenObserver::EULA_ACCEPTED);
- content::RunAllPendingInMessageLoop();
-
- EXPECT_EQ(WizardController::default_controller()->GetEnrollmentScreen(),
- WizardController::default_controller()->current_screen());
- EXPECT_TRUE(ExistingUserController::current_controller() == NULL);
- EXPECT_EQ("ethernet,wifi,cellular",
- NetworkHandler::Get()->network_state_handler()
- ->GetCheckPortalListForTest());
-}
-
IN_PROC_BROWSER_TEST_F(WizardControllerFlowTest, ControlFlowEulaDeclined) {
EXPECT_EQ(WizardController::default_controller()->GetNetworkScreen(),
WizardController::default_controller()->current_screen());
« no previous file with comments | « chrome/browser/chromeos/login/wizard_controller.cc ('k') | chrome/browser/resources/login/display_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698