| 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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 // After warning is skipped, user returns to sign-in screen. | 715 // After warning is skipped, user returns to sign-in screen. |
| 716 // And this destroys WizardController. | 716 // And this destroys WizardController. |
| 717 OnExit(*mock_wrong_hwid_screen_, | 717 OnExit(*mock_wrong_hwid_screen_, |
| 718 BaseScreenDelegate::WRONG_HWID_WARNING_SKIPPED); | 718 BaseScreenDelegate::WRONG_HWID_WARNING_SKIPPED); |
| 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_(ScopedStubInstallAttributes::CreateUnset()) { |
| 726 std::string(), | |
| 727 std::string(), | |
| 728 policy::DEVICE_MODE_NOT_SET) { | |
| 729 fake_statistics_provider_.SetMachineStatistic( | 726 fake_statistics_provider_.SetMachineStatistic( |
| 730 system::kSerialNumberKey, "test"); | 727 system::kSerialNumberKey, "test"); |
| 731 fake_statistics_provider_.SetMachineStatistic( | 728 fake_statistics_provider_.SetMachineStatistic( |
| 732 system::kActivateDateKey, "2000-01"); | 729 system::kActivateDateKey, "2000-01"); |
| 733 } | 730 } |
| 734 | 731 |
| 735 void SetUpCommandLine(base::CommandLine* command_line) override { | 732 void SetUpCommandLine(base::CommandLine* command_line) override { |
| 736 WizardControllerFlowTest::SetUpCommandLine(command_line); | 733 WizardControllerFlowTest::SetUpCommandLine(command_line); |
| 737 | 734 |
| 738 command_line->AppendSwitchASCII( | 735 command_line->AppendSwitchASCII( |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1223 // TODO(merkulova): Add tests for bluetooth HID detection screen variations when | 1220 // TODO(merkulova): Add tests for bluetooth HID detection screen variations when |
| 1224 // UI and logic is ready. http://crbug.com/127016 | 1221 // UI and logic is ready. http://crbug.com/127016 |
| 1225 | 1222 |
| 1226 // TODO(dzhioev): Add tests for controller/host pairing flow. | 1223 // TODO(dzhioev): Add tests for controller/host pairing flow. |
| 1227 // http://crbug.com/375191 | 1224 // http://crbug.com/375191 |
| 1228 | 1225 |
| 1229 static_assert(BaseScreenDelegate::EXIT_CODES_COUNT == 23, | 1226 static_assert(BaseScreenDelegate::EXIT_CODES_COUNT == 23, |
| 1230 "tests for new control flow are missing"); | 1227 "tests for new control flow are missing"); |
| 1231 | 1228 |
| 1232 } // namespace chromeos | 1229 } // namespace chromeos |
| OLD | NEW |