Index: base/strings/safe_sprintf_unittest.cc |
diff --git a/base/strings/safe_sprintf_unittest.cc b/base/strings/safe_sprintf_unittest.cc |
index 0e1423511031c5f831b966031c4d252480f78355..937fa4eca2329342377ce1596199b62bf3b37935 100644 |
--- a/base/strings/safe_sprintf_unittest.cc |
+++ b/base/strings/safe_sprintf_unittest.cc |
@@ -264,18 +264,6 @@ TEST(SafeSPrintfTest, NArgs) { |
EXPECT_EQ(10, SafeSNPrintf(buf, 11, "%c%c%c%c%c%c%c%c%c%c", |
1, 2, 3, 4, 5, 6, 7, 8, 9, 10)); |
EXPECT_EQ("\1\2\3\4\5\6\7\10\11\12", std::string(buf)); |
- |
- |
- // C++11 is smart enough to handle variadic template arguments. It can |
- // deal with arbitrary numbers of arguments. |
-#if __cplusplus >= 201103 // C++11 |
- EXPECT_EQ(11, SafeSPrintf(buf, "%c%c%c%c%c%c%c%c%c%c%c", |
- 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)); |
- EXPECT_EQ("\1\2\3\4\5\6\7\10\11\12\13", std::string(buf)); |
- EXPECT_EQ(11, SafeSNPrintf(buf, 12, "%c%c%c%c%c%c%c%c%c%c%c", |
- 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)); |
- EXPECT_EQ("\1\2\3\4\5\6\7\10\11\12\13", std::string(buf)); |
-#endif |
} |
TEST(SafeSPrintfTest, DataTypes) { |