| Index: base/strings/stringprintf_unittest.cc
|
| diff --git a/base/strings/stringprintf_unittest.cc b/base/strings/stringprintf_unittest.cc
|
| index 4935b553b0e41c88b1ddf4ca82df18b9ee7309d0..321747869a076415232d16884c3198cf688c35e7 100644
|
| --- a/base/strings/stringprintf_unittest.cc
|
| +++ b/base/strings/stringprintf_unittest.cc
|
| @@ -31,7 +31,7 @@ TEST(StringPrintfTest, StringPrintfEmpty) {
|
|
|
| TEST(StringPrintfTest, StringPrintfMisc) {
|
| EXPECT_EQ("123hello w", StringPrintf("%3d%2s %1c", 123, "hello", 'w'));
|
| -#if !defined(OS_ANDROID)
|
| +#if defined(OS_WIN)
|
| EXPECT_EQ(L"123hello w", StringPrintf(L"%3d%2ls %1lc", 123, L"hello", 'w'));
|
| #endif
|
| }
|
| @@ -41,7 +41,7 @@ TEST(StringPrintfTest, StringAppendfEmptyString) {
|
| StringAppendF(&value, "%s", "");
|
| EXPECT_EQ("Hello", value);
|
|
|
| -#if !defined(OS_ANDROID)
|
| +#if defined(OS_WIN)
|
| std::wstring valuew(L"Hello");
|
| StringAppendF(&valuew, L"%ls", L"");
|
| EXPECT_EQ(L"Hello", valuew);
|
| @@ -53,7 +53,7 @@ TEST(StringPrintfTest, StringAppendfString) {
|
| StringAppendF(&value, " %s", "World");
|
| EXPECT_EQ("Hello World", value);
|
|
|
| -#if !defined(OS_ANDROID)
|
| +#if defined(OS_WIN)
|
| std::wstring valuew(L"Hello");
|
| StringAppendF(&valuew, L" %ls", L"World");
|
| EXPECT_EQ(L"Hello World", valuew);
|
| @@ -65,7 +65,7 @@ TEST(StringPrintfTest, StringAppendfInt) {
|
| StringAppendF(&value, " %d", 123);
|
| EXPECT_EQ("Hello 123", value);
|
|
|
| -#if !defined(OS_ANDROID)
|
| +#if defined(OS_WIN)
|
| std::wstring valuew(L"Hello");
|
| StringAppendF(&valuew, L" %d", 123);
|
| EXPECT_EQ(L"Hello 123", valuew);
|
| @@ -90,7 +90,7 @@ TEST(StringPrintfTest, StringPrintfBounds) {
|
| SStringPrintf(&out, "%s", src);
|
| EXPECT_STREQ(src, out.c_str());
|
|
|
| -#if !defined(OS_ANDROID)
|
| +#if defined(OS_WIN)
|
| srcw[kSrcLen - i] = 0;
|
| std::wstring outw;
|
| SStringPrintf(&outw, L"%ls", srcw);
|
|
|