| OLD | NEW | 
|---|
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include "app/l10n_util.h" | 
| 7 #include "base/basictypes.h" | 8 #include "base/basictypes.h" | 
| 8 #include "base/file_util.h" | 9 #include "base/file_util.h" | 
| 9 #include "base/path_service.h" | 10 #include "base/path_service.h" | 
| 10 #include "base/stl_util-inl.h" | 11 #include "base/stl_util-inl.h" | 
| 11 #include "base/string_util.h" | 12 #include "base/string_util.h" | 
| 12 #if defined(OS_WIN) | 13 #if defined(OS_WIN) | 
| 13 #include "base/win_util.h" | 14 #include "base/win_util.h" | 
| 14 #endif | 15 #endif | 
| 15 #include "chrome/common/chrome_paths.h" | 16 #include "chrome/common/chrome_paths.h" | 
| 16 #include "chrome/common/l10n_util.h" |  | 
| 17 #if !defined(OS_MACOSX) | 17 #if !defined(OS_MACOSX) | 
| 18 #include "chrome/test/data/resource.h" | 18 #include "chrome/test/data/resource.h" | 
| 19 #endif | 19 #endif | 
| 20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" | 
| 21 #include "testing/platform_test.h" | 21 #include "testing/platform_test.h" | 
| 22 #include "unicode/locid.h" | 22 #include "unicode/locid.h" | 
| 23 | 23 | 
| 24 namespace { | 24 namespace { | 
| 25 | 25 | 
| 26 class StringWrapper { | 26 class StringWrapper { | 
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 426   EXPECT_EQ(l10n_util::LEFT_TO_RIGHT, GetTextDirection("en")); | 426   EXPECT_EQ(l10n_util::LEFT_TO_RIGHT, GetTextDirection("en")); | 
| 427   // Chinese in China with '-'. | 427   // Chinese in China with '-'. | 
| 428   EXPECT_EQ(l10n_util::LEFT_TO_RIGHT, GetTextDirection("zh-CN")); | 428   EXPECT_EQ(l10n_util::LEFT_TO_RIGHT, GetTextDirection("zh-CN")); | 
| 429   // Filipino : 3-letter code | 429   // Filipino : 3-letter code | 
| 430   EXPECT_EQ(l10n_util::LEFT_TO_RIGHT, GetTextDirection("fil")); | 430   EXPECT_EQ(l10n_util::LEFT_TO_RIGHT, GetTextDirection("fil")); | 
| 431   // Russian | 431   // Russian | 
| 432   EXPECT_EQ(l10n_util::LEFT_TO_RIGHT, GetTextDirection("ru")); | 432   EXPECT_EQ(l10n_util::LEFT_TO_RIGHT, GetTextDirection("ru")); | 
| 433   // Japanese that uses multiple scripts | 433   // Japanese that uses multiple scripts | 
| 434   EXPECT_EQ(l10n_util::LEFT_TO_RIGHT, GetTextDirection("ja")); | 434   EXPECT_EQ(l10n_util::LEFT_TO_RIGHT, GetTextDirection("ja")); | 
| 435 } | 435 } | 
| OLD | NEW | 
|---|