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

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

Issue 529273002: Change base/file_utils.h includes to base/files/file_utils.h in gin, google_apis, printing, sql, ui… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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
« no previous file with comments | « ui/base/l10n/l10n_util.cc ('k') | ui/base/resource/data_pack.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) 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/files/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/source/common/unicode/locid.h" 23 #include "third_party/icu/source/common/unicode/locid.h"
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("Latin")); 557 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("Latin"));
558 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("German")); 558 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("German"));
559 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("pt--BR")); 559 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("pt--BR"));
560 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("sl-macedonia")); 560 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("sl-macedonia"));
561 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("@")); 561 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("@"));
562 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("en-US@")); 562 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("en-US@"));
563 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("en-US@x")); 563 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("en-US@x"));
564 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("en-US@x=")); 564 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("en-US@x="));
565 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("en-US@=y")); 565 EXPECT_FALSE(l10n_util::IsValidLocaleSyntax("en-US@=y"));
566 } 566 }
OLDNEW
« no previous file with comments | « ui/base/l10n/l10n_util.cc ('k') | ui/base/resource/data_pack.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698