Index: base/strings/string_number_conversions_unittest.cc |
diff --git a/base/strings/string_number_conversions_unittest.cc b/base/strings/string_number_conversions_unittest.cc |
index 0bc72f17ca10d48e0d9945e786c30c05e056b990..63aeedd21f58aa6a3297bb8d6d6b0da349947bfe 100644 |
--- a/base/strings/string_number_conversions_unittest.cc |
+++ b/base/strings/string_number_conversions_unittest.cc |
@@ -29,6 +29,8 @@ struct IntToStringTest { |
} // namespace |
+#if !defined(STRING_NUMBER_CONVERSIONS_DETECT_RISKY_CONVERSIONS) |
+ |
TEST(StringNumberConversionsTest, IntToString) { |
static const IntToStringTest<int> int_tests[] = { |
{ 0, "0", "0" }, |
@@ -360,6 +362,8 @@ TEST(StringNumberConversionsTest, StringToUint64) { |
EXPECT_EQ(6U, output); |
} |
+#endif // !defined(STRING_NUMBER_CONVERSIONS_DETECT_RISKY_CONVERSIONS) |
+ |
TEST(StringNumberConversionsTest, StringToSizeT) { |
size_t size_t_max = std::numeric_limits<size_t>::max(); |
std::string size_t_max_string = StringPrintf("%" PRIuS, size_t_max); |