| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "app/l10n_util.h" | 5 #include "app/l10n_util.h" |
| 6 #include "chrome/browser/browser_process.h" | 6 #include "chrome/browser/browser_process.h" |
| 7 #include "chrome/browser/chromeos/login/account_screen.h" | 7 #include "chrome/browser/chromeos/login/account_screen.h" |
| 8 #include "chrome/browser/chromeos/login/language_switch_model.h" | 8 #include "chrome/browser/chromeos/login/language_switch_model.h" |
| 9 #include "chrome/browser/chromeos/login/login_screen.h" | 9 #include "chrome/browser/chromeos/login/login_screen.h" |
| 10 #include "chrome/browser/chromeos/login/mock_update_screen.h" | 10 #include "chrome/browser/chromeos/login/mock_update_screen.h" |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 } | 169 } |
| 170 | 170 |
| 171 IN_PROC_BROWSER_TEST_F(WizardControllerFlowTest, ControlFlowErrorNetwork) { | 171 IN_PROC_BROWSER_TEST_F(WizardControllerFlowTest, ControlFlowErrorNetwork) { |
| 172 EXPECT_EQ(controller()->GetNetworkScreen(), controller()->current_screen()); | 172 EXPECT_EQ(controller()->GetNetworkScreen(), controller()->current_screen()); |
| 173 EXPECT_CALL(*mock_login_screen_, Show()).Times(1); | 173 EXPECT_CALL(*mock_login_screen_, Show()).Times(1); |
| 174 EXPECT_CALL(*mock_network_screen_, Hide()).Times(1); | 174 EXPECT_CALL(*mock_network_screen_, Hide()).Times(1); |
| 175 controller()->OnExit(chromeos::ScreenObserver::NETWORK_OFFLINE); | 175 controller()->OnExit(chromeos::ScreenObserver::NETWORK_OFFLINE); |
| 176 EXPECT_EQ(controller()->GetLoginScreen(), controller()->current_screen()); | 176 EXPECT_EQ(controller()->GetLoginScreen(), controller()->current_screen()); |
| 177 } | 177 } |
| 178 | 178 |
| 179 COMPILE_ASSERT(chromeos::ScreenObserver::EXIT_CODES_COUNT == 14, | 179 COMPILE_ASSERT(chromeos::ScreenObserver::EXIT_CODES_COUNT == 12, |
| 180 add_tests_for_new_control_flow_you_just_introduced); | 180 add_tests_for_new_control_flow_you_just_introduced); |
| OLD | NEW |