diff options
author | Trent Nelson <trent.a.b.nelson@gmail.com> | 2014-02-12 13:01:58 -0700 |
---|---|---|
committer | Trent Nelson <trent.a.b.nelson@gmail.com> | 2014-02-12 13:01:58 -0700 |
commit | a74973f731cacf8262c6bc3cca4b811290e221ae (patch) | |
tree | 1149fd2fe039b8d9ce7c8cc7eb45188b383f7e9d | |
parent | 871405a63cb36a7c496042c73315a35810d50096 (diff) |
Fix compile of CharsetConverter tests.
-rw-r--r-- | xbmc/utils/test/TestCharsetConverter.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/xbmc/utils/test/TestCharsetConverter.cpp b/xbmc/utils/test/TestCharsetConverter.cpp index fdd4584470..e40c1b48fe 100644 --- a/xbmc/utils/test/TestCharsetConverter.cpp +++ b/xbmc/utils/test/TestCharsetConverter.cpp @@ -136,15 +136,14 @@ TEST_F(TestCharsetConverter, utf16LEtoW) EXPECT_STREQ(refstrw1.c_str(), varstrw1.c_str()); } -TEST_F(TestCharsetConverter, subtitleCharsetToW) +TEST_F(TestCharsetConverter, subtitleCharsetToUtf8) { - varstra1 = "test subtitleCharsetToW"; - refstrw1 = L"test subtitleCharsetToW"; - varstrw1.clear(); - g_charsetConverter.subtitleCharsetToW(varstra1, varstrw1); + refstra1 = "test subtitleCharsetToW"; + varstra1.clear(); + g_charsetConverter.subtitleCharsetToUtf8(refstra1, varstra1); /* Assign refstra1 to refstrw1 so that we can compare */ - EXPECT_STREQ(refstrw1.c_str(), varstrw1.c_str()); + EXPECT_STREQ(refstra1.c_str(), varstra1.c_str()); } TEST_F(TestCharsetConverter, utf8ToStringCharset_1) |