diff options
Diffstat (limited to 'chrome/common/json_value_serializer_unittest.cc')
-rw-r--r-- | chrome/common/json_value_serializer_unittest.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/common/json_value_serializer_unittest.cc b/chrome/common/json_value_serializer_unittest.cc index acb2903..a4e9d89 100644 --- a/chrome/common/json_value_serializer_unittest.cc +++ b/chrome/common/json_value_serializer_unittest.cc @@ -191,7 +191,7 @@ namespace { void ValidateJsonList(const std::string& json) { Value* root = NULL; - ASSERT_TRUE(JSONReader::Read(json, &root)); + ASSERT_TRUE(JSONReader::Read(json, &root, false)); ASSERT_TRUE(root && root->IsType(Value::TYPE_LIST)); ListValue* list = static_cast<ListValue*>(root); ASSERT_EQ(1, list->GetSize()); @@ -215,7 +215,7 @@ TEST(JSONValueSerializerTest, JSONReaderComments) { Value* root = NULL; // It's ok to have a comment in a string. - ASSERT_TRUE(JSONReader::Read("[\"// ok\\n /* foo */ \"]", &root)); + ASSERT_TRUE(JSONReader::Read("[\"// ok\\n /* foo */ \"]", &root, false)); ASSERT_TRUE(root && root->IsType(Value::TYPE_LIST)); ListValue* list = static_cast<ListValue*>(root); ASSERT_EQ(1, list->GetSize()); @@ -228,10 +228,10 @@ TEST(JSONValueSerializerTest, JSONReaderComments) { root = NULL; // You can't nest comments. - ASSERT_FALSE(JSONReader::Read("/* /* inner */ outer */ [ 1 ]", &root)); + ASSERT_FALSE(JSONReader::Read("/* /* inner */ outer */ [ 1 ]", &root, false)); // Not a open comment token. - ASSERT_FALSE(JSONReader::Read("/ * * / [1]", &root)); + ASSERT_FALSE(JSONReader::Read("/ * * / [1]", &root, false)); } namespace { |