Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: chrome/browser/chromeos/login/wizard_controller_browsertest.cc

Issue 6246001: Move app/key* to ui/base/keycodes/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "base/utf_string_conversions.h" 6 #include "base/utf_string_conversions.h"
7 #include "chrome/browser/browser_process.h" 7 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/chromeos/login/account_screen.h" 8 #include "chrome/browser/chromeos/login/account_screen.h"
9 #include "chrome/browser/chromeos/login/eula_view.h" 9 #include "chrome/browser/chromeos/login/eula_view.h"
10 #include "chrome/browser/chromeos/login/language_switch_menu.h" 10 #include "chrome/browser/chromeos/login/language_switch_menu.h"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 #define MAYBE_Accelerators DISABLED_Accelerators 223 #define MAYBE_Accelerators DISABLED_Accelerators
224 #else 224 #else
225 #define MAYBE_Accelerators Accelerators 225 #define MAYBE_Accelerators Accelerators
226 #endif 226 #endif
227 227
228 IN_PROC_BROWSER_TEST_F(WizardControllerFlowTest, MAYBE_Accelerators) { 228 IN_PROC_BROWSER_TEST_F(WizardControllerFlowTest, MAYBE_Accelerators) {
229 EXPECT_EQ(controller()->GetNetworkScreen(), controller()->current_screen()); 229 EXPECT_EQ(controller()->GetNetworkScreen(), controller()->current_screen());
230 230
231 views::FocusManager* focus_manager = 231 views::FocusManager* focus_manager =
232 controller()->contents()->GetFocusManager(); 232 controller()->contents()->GetFocusManager();
233 views::Accelerator accel_account_screen(app::VKEY_A, false, true, true); 233 views::Accelerator accel_account_screen(ui::VKEY_A, false, true, true);
234 views::Accelerator accel_login_screen(app::VKEY_L, false, true, true); 234 views::Accelerator accel_login_screen(ui::VKEY_L, false, true, true);
235 views::Accelerator accel_network_screen(app::VKEY_N, false, true, true); 235 views::Accelerator accel_network_screen(ui::VKEY_N, false, true, true);
236 views::Accelerator accel_update_screen(app::VKEY_U, false, true, true); 236 views::Accelerator accel_update_screen(ui::VKEY_U, false, true, true);
237 views::Accelerator accel_image_screen(app::VKEY_I, false, true, true); 237 views::Accelerator accel_image_screen(ui::VKEY_I, false, true, true);
238 views::Accelerator accel_eula_screen(app::VKEY_E, false, true, true); 238 views::Accelerator accel_eula_screen(ui::VKEY_E, false, true, true);
239 239
240 EXPECT_CALL(*mock_network_screen_, Hide()).Times(1); 240 EXPECT_CALL(*mock_network_screen_, Hide()).Times(1);
241 EXPECT_CALL(*mock_account_screen_, Show()).Times(1); 241 EXPECT_CALL(*mock_account_screen_, Show()).Times(1);
242 EXPECT_TRUE(focus_manager->ProcessAccelerator(accel_account_screen)); 242 EXPECT_TRUE(focus_manager->ProcessAccelerator(accel_account_screen));
243 EXPECT_EQ(controller()->GetAccountScreen(), controller()->current_screen()); 243 EXPECT_EQ(controller()->GetAccountScreen(), controller()->current_screen());
244 244
245 focus_manager = controller()->contents()->GetFocusManager(); 245 focus_manager = controller()->contents()->GetFocusManager();
246 EXPECT_CALL(*mock_account_screen_, Hide()).Times(1); 246 EXPECT_CALL(*mock_account_screen_, Hide()).Times(1);
247 EXPECT_CALL(*mock_login_screen_, Show()).Times(1); 247 EXPECT_CALL(*mock_login_screen_, Show()).Times(1);
248 EXPECT_TRUE(focus_manager->ProcessAccelerator(accel_login_screen)); 248 EXPECT_TRUE(focus_manager->ProcessAccelerator(accel_login_screen));
(...skipping 17 matching lines...) Expand all
266 EXPECT_EQ(controller()->GetUserImageScreen(), controller()->current_screen()); 266 EXPECT_EQ(controller()->GetUserImageScreen(), controller()->current_screen());
267 267
268 focus_manager = controller()->contents()->GetFocusManager(); 268 focus_manager = controller()->contents()->GetFocusManager();
269 EXPECT_CALL(*mock_eula_screen_, Show()).Times(1); 269 EXPECT_CALL(*mock_eula_screen_, Show()).Times(1);
270 EXPECT_TRUE(focus_manager->ProcessAccelerator(accel_eula_screen)); 270 EXPECT_TRUE(focus_manager->ProcessAccelerator(accel_eula_screen));
271 EXPECT_EQ(controller()->GetEulaScreen(), controller()->current_screen()); 271 EXPECT_EQ(controller()->GetEulaScreen(), controller()->current_screen());
272 } 272 }
273 273
274 COMPILE_ASSERT(chromeos::ScreenObserver::EXIT_CODES_COUNT == 18, 274 COMPILE_ASSERT(chromeos::ScreenObserver::EXIT_CODES_COUNT == 18,
275 add_tests_for_new_control_flow_you_just_introduced); 275 add_tests_for_new_control_flow_you_just_introduced);
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/wizard_controller.cc ('k') | chrome/browser/chromeos/options/wifi_config_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698