| 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 "chrome/browser/chromeos/login/wizard_controller.h" | 5 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 6 | 6 |
| 7 #include "ash/common/accessibility_types.h" | 7 #include "ash/common/accessibility_types.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 EXPECT_FALSE(ExistingUserController::current_controller() == NULL); | 719 EXPECT_FALSE(ExistingUserController::current_controller() == NULL); |
| 720 } | 720 } |
| 721 | 721 |
| 722 class WizardControllerDeviceStateTest : public WizardControllerFlowTest { | 722 class WizardControllerDeviceStateTest : public WizardControllerFlowTest { |
| 723 protected: | 723 protected: |
| 724 WizardControllerDeviceStateTest() | 724 WizardControllerDeviceStateTest() |
| 725 : install_attributes_(std::string(), | 725 : install_attributes_(std::string(), |
| 726 std::string(), | 726 std::string(), |
| 727 std::string(), | 727 std::string(), |
| 728 policy::DEVICE_MODE_NOT_SET) { | 728 policy::DEVICE_MODE_NOT_SET) { |
| 729 fake_statistics_provider_.SetMachineStatistic("serial_number", "test"); | 729 fake_statistics_provider_.SetMachineStatistic( |
| 730 fake_statistics_provider_.SetMachineStatistic(system::kActivateDateKey, | 730 system::kSerialNumberKey, "test"); |
| 731 "2000-01"); | 731 fake_statistics_provider_.SetMachineStatistic( |
| 732 system::kActivateDateKey, "2000-01"); |
| 732 } | 733 } |
| 733 | 734 |
| 734 void SetUpCommandLine(base::CommandLine* command_line) override { | 735 void SetUpCommandLine(base::CommandLine* command_line) override { |
| 735 WizardControllerFlowTest::SetUpCommandLine(command_line); | 736 WizardControllerFlowTest::SetUpCommandLine(command_line); |
| 736 | 737 |
| 737 command_line->AppendSwitchASCII( | 738 command_line->AppendSwitchASCII( |
| 738 switches::kEnterpriseEnableForcedReEnrollment, | 739 switches::kEnterpriseEnableForcedReEnrollment, |
| 739 chromeos::AutoEnrollmentController::kForcedReEnrollmentAlways); | 740 chromeos::AutoEnrollmentController::kForcedReEnrollmentAlways); |
| 740 command_line->AppendSwitchASCII( | 741 command_line->AppendSwitchASCII( |
| 741 switches::kEnterpriseEnrollmentInitialModulus, "1"); | 742 switches::kEnterpriseEnrollmentInitialModulus, "1"); |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1222 // TODO(merkulova): Add tests for bluetooth HID detection screen variations when | 1223 // TODO(merkulova): Add tests for bluetooth HID detection screen variations when |
| 1223 // UI and logic is ready. http://crbug.com/127016 | 1224 // UI and logic is ready. http://crbug.com/127016 |
| 1224 | 1225 |
| 1225 // TODO(dzhioev): Add tests for controller/host pairing flow. | 1226 // TODO(dzhioev): Add tests for controller/host pairing flow. |
| 1226 // http://crbug.com/375191 | 1227 // http://crbug.com/375191 |
| 1227 | 1228 |
| 1228 static_assert(BaseScreenDelegate::EXIT_CODES_COUNT == 23, | 1229 static_assert(BaseScreenDelegate::EXIT_CODES_COUNT == 23, |
| 1229 "tests for new control flow are missing"); | 1230 "tests for new control flow are missing"); |
| 1230 | 1231 |
| 1231 } // namespace chromeos | 1232 } // namespace chromeos |
| OLD | NEW |