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

Side by Side Diff: ui/base/l10n/l10n_util_unittest.cc

Issue 18252003: Replace third_party/icu/public with third_party/icu/source (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: roll ICU to 211851 Created 7 years, 5 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 | « ui/base/l10n/l10n_util_collator.h ('k') | ui/base/models/table_model.h » ('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) 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 "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 "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/environment.h" 12 #include "base/environment.h"
13 #include "base/file_util.h" 13 #include "base/file_util.h"
14 #include "base/i18n/case_conversion.h" 14 #include "base/i18n/case_conversion.h"
15 #include "base/i18n/rtl.h" 15 #include "base/i18n/rtl.h"
16 #include "base/path_service.h" 16 #include "base/path_service.h"
17 #include "base/stl_util.h" 17 #include "base/stl_util.h"
18 #include "base/strings/string_util.h" 18 #include "base/strings/string_util.h"
19 #include "base/strings/utf_string_conversions.h" 19 #include "base/strings/utf_string_conversions.h"
20 #include "base/test/scoped_path_override.h" 20 #include "base/test/scoped_path_override.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 #include "testing/platform_test.h" 22 #include "testing/platform_test.h"
23 #include "third_party/icu/public/common/unicode/locid.h" 23 #include "third_party/icu/source/common/unicode/locid.h"
24 #include "ui/base/l10n/l10n_util.h" 24 #include "ui/base/l10n/l10n_util.h"
25 #include "ui/base/l10n/l10n_util_collator.h" 25 #include "ui/base/l10n/l10n_util_collator.h"
26 #include "ui/base/ui_base_paths.h" 26 #include "ui/base/ui_base_paths.h"
27 27
28 #if defined(OS_WIN) 28 #if defined(OS_WIN)
29 #include "base/win/windows_version.h" 29 #include "base/win/windows_version.h"
30 #endif 30 #endif
31 31
32 #if !defined(OS_MACOSX) 32 #if !defined(OS_MACOSX)
33 #include "ui/base/test/data/resource.h" 33 #include "ui/base/test/data/resource.h"
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("Latin")); 452 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("Latin"));
453 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("German")); 453 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("German"));
454 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("pt--BR")); 454 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("pt--BR"));
455 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("sl-macedonia")); 455 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("sl-macedonia"));
456 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("@")); 456 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("@"));
457 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("en-US@")); 457 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("en-US@"));
458 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("en-US@x")); 458 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("en-US@x"));
459 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("en-US@x=")); 459 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("en-US@x="));
460 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("en-US@=y")); 460 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("en-US@=y"));
461 } 461 }
OLDNEW
« no previous file with comments | « ui/base/l10n/l10n_util_collator.h ('k') | ui/base/models/table_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698