diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-05 01:39:56 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-05 01:39:56 +0000 |
commit | 4a4afe389baae7c715da981aff490dda7f58f7a9 (patch) | |
tree | 737eaf351bac891f35342676ddbcf2ed256b69d8 /app | |
parent | f5fb4d4bc5bc2477eb3d7aadd13bd5c487b79559 (diff) | |
download | chromium_src-4a4afe389baae7c715da981aff490dda7f58f7a9.zip chromium_src-4a4afe389baae7c715da981aff490dda7f58f7a9.tar.gz chromium_src-4a4afe389baae7c715da981aff490dda7f58f7a9.tar.bz2 |
Use GetDisplayStringInLTRDirectionality() in more places to simplify code.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/1928004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46427 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app')
-rw-r--r-- | app/text_elider_unittest.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/text_elider_unittest.cc b/app/text_elider_unittest.cc index caf619d..cc421fb 100644 --- a/app/text_elider_unittest.cc +++ b/app/text_elider_unittest.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -179,8 +179,7 @@ TEST(TextEliderTest, TestFilenameEliding) { for (size_t i = 0; i < arraysize(testcases); ++i) { FilePath filepath(testcases[i].input); std::wstring expected = testcases[i].output; - if (base::i18n::IsRTL()) - base::i18n::WrapStringWithLTRFormatting(&expected); + base::i18n::GetDisplayStringInLTRDirectionality(&expected); EXPECT_EQ(expected, ElideFilename(filepath, font, font.GetStringWidth(testcases[i].output))); |