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

Side by Side Diff: chrome/browser/chromeos/login/wizard_controller_browsertest.cc

Issue 220933003: Only perform forced re-enrollment in official builds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, fix empty argument case. Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/prefs/pref_registry_simple.h" 9 #include "base/prefs/pref_registry_simple.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 EXPECT_FALSE(ExistingUserController::current_controller() == NULL); 517 EXPECT_FALSE(ExistingUserController::current_controller() == NULL);
518 } 518 }
519 519
520 class WizardControllerEnrollmentFlowTest : public WizardControllerFlowTest { 520 class WizardControllerEnrollmentFlowTest : public WizardControllerFlowTest {
521 protected: 521 protected:
522 WizardControllerEnrollmentFlowTest() {} 522 WizardControllerEnrollmentFlowTest() {}
523 523
524 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { 524 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
525 WizardControllerFlowTest::SetUpCommandLine(command_line); 525 WizardControllerFlowTest::SetUpCommandLine(command_line);
526 526
527 command_line->AppendSwitch( 527 command_line->AppendSwitchASCII(
528 switches::kEnterpriseEnableForcedReEnrollment); 528 switches::kEnterpriseEnableForcedReEnrollment,
529 chromeos::AutoEnrollmentController::kForcedReEnrollmentAlways);
529 command_line->AppendSwitchASCII( 530 command_line->AppendSwitchASCII(
530 switches::kEnterpriseEnrollmentInitialModulus, "1"); 531 switches::kEnterpriseEnrollmentInitialModulus, "1");
531 command_line->AppendSwitchASCII( 532 command_line->AppendSwitchASCII(
532 switches::kEnterpriseEnrollmentModulusLimit, "2"); 533 switches::kEnterpriseEnrollmentModulusLimit, "2");
533 } 534 }
534 535
535 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE { 536 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE {
536 WizardControllerFlowTest::SetUpInProcessBrowserTestFixture(); 537 WizardControllerFlowTest::SetUpInProcessBrowserTestFixture();
537 system::StatisticsProvider::SetTestProvider(&statistics_provider_); 538 system::StatisticsProvider::SetTestProvider(&statistics_provider_);
538 EXPECT_CALL(statistics_provider_, StartLoadingMachineStatistics(_, _)); 539 EXPECT_CALL(statistics_provider_, StartLoadingMachineStatistics(_, _));
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 } 877 }
877 878
878 // TODO(dzhioev): Add test emaulating device with wrong HWID. 879 // TODO(dzhioev): Add test emaulating device with wrong HWID.
879 880
880 // TODO(nkostylev): Add test for WebUI accelerators http://crosbug.com/22571 881 // TODO(nkostylev): Add test for WebUI accelerators http://crosbug.com/22571
881 882
882 COMPILE_ASSERT(ScreenObserver::EXIT_CODES_COUNT == 20, 883 COMPILE_ASSERT(ScreenObserver::EXIT_CODES_COUNT == 20,
883 add_tests_for_new_control_flow_you_just_introduced); 884 add_tests_for_new_control_flow_you_just_introduced);
884 885
885 } // namespace chromeos 886 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698