OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/message_loop/message_loop.h" | 5 #include "base/message_loop/message_loop.h" |
6 #include "base/prefs/pref_service.h" | 6 #include "base/prefs/pref_service.h" |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "base/task_runner.h" | 8 #include "base/task_runner.h" |
9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 namespace base { | 29 namespace base { |
30 class TaskRunner; | 30 class TaskRunner; |
31 } | 31 } |
32 | 32 |
33 namespace chromeos { | 33 namespace chromeos { |
34 | 34 |
35 namespace { | 35 namespace { |
36 | 36 |
37 // OOBE constants. | 37 // OOBE constants. |
38 const char* kLocaleSelect = "language-select"; | 38 const char kLocaleSelect[] = "language-select"; |
39 const char* kKeyboardSelect = "keyboard-select"; | 39 const char kKeyboardSelect[] = "keyboard-select"; |
40 | 40 |
41 const char* kUSLayout = "xkb:us::eng"; | 41 const char kUSLayout[] = "xkb:us::eng"; |
42 | 42 |
43 } | 43 } |
44 | 44 |
45 struct LocalizationTestParams { | 45 struct LocalizationTestParams { |
46 const char* initial_locale; | 46 const char* initial_locale; |
47 const char* keyboard_layout; | 47 const char* keyboard_layout; |
48 const char* expected_locale; | 48 const char* expected_locale; |
49 const char* expected_keyboard_layout; | 49 const char* expected_keyboard_layout; |
50 const char* expected_keyboard_select_control; | 50 const char* expected_keyboard_select_control; |
51 } const oobe_localization_test_parameters[] = { | 51 } const oobe_localization_test_parameters[] = { |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 RunLocalizationTest(); | 349 RunLocalizationTest(); |
350 } | 350 } |
351 | 351 |
352 INSTANTIATE_TEST_CASE_P( | 352 INSTANTIATE_TEST_CASE_P( |
353 StructSequence, | 353 StructSequence, |
354 OobeLocalizationTest, | 354 OobeLocalizationTest, |
355 testing::Range(&oobe_localization_test_parameters[0], | 355 testing::Range(&oobe_localization_test_parameters[0], |
356 &oobe_localization_test_parameters[arraysize( | 356 &oobe_localization_test_parameters[arraysize( |
357 oobe_localization_test_parameters)])); | 357 oobe_localization_test_parameters)])); |
358 } // namespace chromeos | 358 } // namespace chromeos |
OLD | NEW |