OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/utf_string_conversions.h" | 5 #include "base/utf_string_conversions.h" |
6 #include "chrome/browser/browser_process.h" | 6 #include "chrome/browser/browser_process.h" |
7 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.
h" | 7 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.
h" |
8 #include "chrome/browser/chromeos/login/enrollment/mock_enterprise_enrollment_sc
reen.h" | 8 #include "chrome/browser/chromeos/login/enrollment/mock_enterprise_enrollment_sc
reen.h" |
9 #include "chrome/browser/chromeos/login/existing_user_controller.h" | 9 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
10 #include "chrome/browser/chromeos/login/language_switch_menu.h" | 10 #include "chrome/browser/chromeos/login/language_switch_menu.h" |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 EXPECT_CALL(*mock_update_screen_, Hide()).Times(1); | 290 EXPECT_CALL(*mock_update_screen_, Hide()).Times(1); |
291 EXPECT_TRUE(focus_manager->ProcessAccelerator(accel_image_screen)); | 291 EXPECT_TRUE(focus_manager->ProcessAccelerator(accel_image_screen)); |
292 EXPECT_EQ(controller()->GetUserImageScreen(), controller()->current_screen()); | 292 EXPECT_EQ(controller()->GetUserImageScreen(), controller()->current_screen()); |
293 | 293 |
294 focus_manager = contents->GetFocusManager(); | 294 focus_manager = contents->GetFocusManager(); |
295 EXPECT_CALL(*mock_eula_screen_, Show()).Times(1); | 295 EXPECT_CALL(*mock_eula_screen_, Show()).Times(1); |
296 EXPECT_TRUE(focus_manager->ProcessAccelerator(accel_eula_screen)); | 296 EXPECT_TRUE(focus_manager->ProcessAccelerator(accel_eula_screen)); |
297 EXPECT_EQ(controller()->GetEulaScreen(), controller()->current_screen()); | 297 EXPECT_EQ(controller()->GetEulaScreen(), controller()->current_screen()); |
298 } | 298 } |
299 | 299 |
300 COMPILE_ASSERT(ScreenObserver::EXIT_CODES_COUNT == 17, | 300 COMPILE_ASSERT(ScreenObserver::EXIT_CODES_COUNT == 15, |
301 add_tests_for_new_control_flow_you_just_introduced); | 301 add_tests_for_new_control_flow_you_just_introduced); |
302 | 302 |
303 } // namespace chromeos | 303 } // namespace chromeos |
OLD | NEW |