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

Side by Side Diff: app/l10n_util_unittest.cc

Issue 3058027: Add #include utf_string_conversions.h to all files that use ASCIIToWide and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 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
« no previous file with comments | « app/l10n_util.cc ('k') | base/file_util_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #if defined(OS_POSIX) && !defined(OS_MACOSX) 7 #if defined(OS_POSIX) && !defined(OS_MACOSX)
8 #include <cstdlib> 8 #include <cstdlib>
9 #endif 9 #endif
10 10
11 #include "app/app_paths.h" 11 #include "app/app_paths.h"
12 #include "app/l10n_util.h" 12 #include "app/l10n_util.h"
13 #include "app/l10n_util_collator.h" 13 #include "app/l10n_util_collator.h"
14 #if !defined(OS_MACOSX) 14 #if !defined(OS_MACOSX)
15 #include "app/test/data/resource.h" 15 #include "app/test/data/resource.h"
16 #endif 16 #endif
17 #include "base/basictypes.h" 17 #include "base/basictypes.h"
18 #include "base/env_var.h" 18 #include "base/env_var.h"
19 #include "base/file_util.h" 19 #include "base/file_util.h"
20 #include "base/path_service.h" 20 #include "base/path_service.h"
21 #include "base/stl_util-inl.h" 21 #include "base/stl_util-inl.h"
22 #include "base/string_util.h" 22 #include "base/string_util.h"
23 #include "base/utf_string_conversions.h"
23 #if defined(OS_WIN) 24 #if defined(OS_WIN)
24 #include "base/win_util.h" 25 #include "base/win_util.h"
25 #endif 26 #endif
26 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
27 #include "testing/platform_test.h" 28 #include "testing/platform_test.h"
28 #include "unicode/locid.h" 29 #include "unicode/locid.h"
29 30
30 namespace { 31 namespace {
31 32
32 class StringWrapper { 33 class StringWrapper {
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 295
295 result = l10n_util::GetDisplayNameForLocale("zh-TW", "en", false); 296 result = l10n_util::GetDisplayNameForLocale("zh-TW", "en", false);
296 EXPECT_EQ(result, ASCIIToUTF16("Chinese (Traditional Han)")); 297 EXPECT_EQ(result, ASCIIToUTF16("Chinese (Traditional Han)"));
297 298
298 result = l10n_util::GetDisplayNameForLocale("pt-BR", "en", false); 299 result = l10n_util::GetDisplayNameForLocale("pt-BR", "en", false);
299 EXPECT_EQ(result, ASCIIToUTF16("Portuguese (Brazil)")); 300 EXPECT_EQ(result, ASCIIToUTF16("Portuguese (Brazil)"));
300 301
301 result = l10n_util::GetDisplayNameForLocale("es-419", "en", false); 302 result = l10n_util::GetDisplayNameForLocale("es-419", "en", false);
302 EXPECT_EQ(result, ASCIIToUTF16("Spanish (Latin America and the Caribbean)")); 303 EXPECT_EQ(result, ASCIIToUTF16("Spanish (Latin America and the Caribbean)"));
303 } 304 }
OLDNEW
« no previous file with comments | « app/l10n_util.cc ('k') | base/file_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698