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

Side by Side Diff: chrome/browser/locale_tests_browsertest.cc

Issue 655413002: Convert ARRAYSIZE_UNSAFE -> arraysize in chrome/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/environment.h" 6 #include "base/environment.h"
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "chrome/test/base/in_process_browser_test.h" 8 #include "chrome/test/base/in_process_browser_test.h"
9 #include "ui/base/ui_base_switches.h" 9 #include "ui/base/ui_base_switches.h"
10 10
(...skipping 12 matching lines...) Expand all
23 23
24 static const struct { 24 static const struct {
25 const char* chrome_locale; 25 const char* chrome_locale;
26 const char* system_locale; 26 const char* system_locale;
27 } kLocales[] = { 27 } kLocales[] = {
28 { "da", "da_DK.UTF-8" }, 28 { "da", "da_DK.UTF-8" },
29 { "he", "he_IL.UTF-8" }, 29 { "he", "he_IL.UTF-8" },
30 { "zh-TW", "zh_TW.UTF-8" } 30 { "zh-TW", "zh_TW.UTF-8" }
31 }; 31 };
32 bool found_locale = false; 32 bool found_locale = false;
33 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kLocales); ++i) { 33 for (size_t i = 0; i < arraysize(kLocales); ++i) {
34 if (kLocales[i].chrome_locale == locale) { 34 if (kLocales[i].chrome_locale == locale) {
35 found_locale = true; 35 found_locale = true;
36 setenv("LC_ALL", kLocales[i].system_locale, 1); 36 setenv("LC_ALL", kLocales[i].system_locale, 1);
37 } 37 }
38 } 38 }
39 DCHECK(found_locale); 39 DCHECK(found_locale);
40 #endif 40 #endif
41 } 41 }
42 42
43 ~ScopedLocale() { 43 ~ScopedLocale() {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // code here because they just verify we can start Chrome and shut it down 104 // code here because they just verify we can start Chrome and shut it down
105 // cleanly on these locales. 105 // cleanly on these locales.
106 IN_PROC_BROWSER_TEST_F(LocaleTestDanish, TestStart) { 106 IN_PROC_BROWSER_TEST_F(LocaleTestDanish, TestStart) {
107 } 107 }
108 108
109 IN_PROC_BROWSER_TEST_F(LocaleTestHebrew, TestStart) { 109 IN_PROC_BROWSER_TEST_F(LocaleTestHebrew, TestStart) {
110 } 110 }
111 111
112 IN_PROC_BROWSER_TEST_F(LocaleTestTraditionalChinese, TestStart) { 112 IN_PROC_BROWSER_TEST_F(LocaleTestTraditionalChinese, TestStart) {
113 } 113 }
OLDNEW
« no previous file with comments | « chrome/browser/history/url_utils_unittest.cc ('k') | chrome/browser/media/media_stream_devices_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698