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

Side by Side Diff: app/l10n_util_unittest.cc

Issue 109043: Move l10n_util to app/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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_posix.cc ('k') | app/l10n_util_win.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) 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
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 }
OLDNEW
« no previous file with comments | « app/l10n_util_posix.cc ('k') | app/l10n_util_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698