| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |