OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |