Index: base/json_reader_unittest.cc |
diff --git a/base/json_reader_unittest.cc b/base/json_reader_unittest.cc |
index 4339be1ca19e19866fbdf7ea8d8360718d0115a2..ebc7062c77f3fb6c3866c2cddb42a59bf52548b2 100644 |
--- a/base/json_reader_unittest.cc |
+++ b/base/json_reader_unittest.cc |
@@ -183,6 +183,12 @@ TEST(JSONReaderTest, Reading) { |
root = NULL; |
ASSERT_FALSE(JSONReader::JsonToValue("NaN", &root, false, false)); |
ASSERT_FALSE(root); |
+ root = NULL; |
+ ASSERT_FALSE(JSONReader::JsonToValue("nan", &root, false, false)); |
+ ASSERT_FALSE(root); |
+ root = NULL; |
+ ASSERT_FALSE(JSONReader::JsonToValue("inf", &root, false, false)); |
+ ASSERT_FALSE(root); |
// Invalid number formats |
root = NULL; |
@@ -495,4 +501,3 @@ TEST(JSONReaderTest, Reading) { |
ASSERT_FALSE(JSONReader::Read("10", &root, false)); |
ASSERT_FALSE(JSONReader::Read("\"root\"", &root, false)); |
} |
- |