diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-14 00:15:34 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-14 00:15:34 +0000 |
commit | b2d79d2f07f43899f8ece7dd9753c2955b685dd8 (patch) | |
tree | e7e53613eb9aac0e8dffb332b8c875f2c7b08f44 /base | |
parent | 9f64d25e3b396f155297c42499e6ec4f0f210c73 (diff) | |
download | chromium_src-b2d79d2f07f43899f8ece7dd9753c2955b685dd8.zip chromium_src-b2d79d2f07f43899f8ece7dd9753c2955b685dd8.tar.gz chromium_src-b2d79d2f07f43899f8ece7dd9753c2955b685dd8.tar.bz2 |
Retry on fix. I am a bad programmer.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77987 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/i18n/rtl_unittest.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/base/i18n/rtl_unittest.cc b/base/i18n/rtl_unittest.cc index c89de6d..3ee8254 100644 --- a/base/i18n/rtl_unittest.cc +++ b/base/i18n/rtl_unittest.cc @@ -153,14 +153,16 @@ TEST_F(RTLTest, WrapPathWithLTRFormatting) { std::wstring win_path(kTestData[i]); std::replace(win_path.begin(), win_path.end(), '/', '\\'); path = FilePath(win_path); + std::wstring wrapped_expected = + std::wstring(L"\x202a") + win_path + L"\x202c"; #else path = FilePath(base::SysWideToNativeMB(kTestData[i])); + std::wstring wrapped_expected = + std::wstring(L"\x202a") + kTestData[i] + L"\x202c"; #endif string16 localized_file_path_string; base::i18n::WrapPathWithLTRFormatting(path, &localized_file_path_string); - std::wstring wrapped_expected = - std::wstring(L"\x202a") + win_path + L"\x202c"; std::wstring wrapped_actual = UTF16ToWide(localized_file_path_string); EXPECT_EQ(wrapped_expected, wrapped_actual); } |