Lines Matching refs:Read
252 ListValue::From(JSONReader::Read("[true, false, null]")); in TEST()
258 JSONReader::Read("[true, false, null, ]", JSON_ALLOW_TRAILING_COMMAS); in TEST()
263 std::unique_ptr<ListValue> list = ListValue::From(JSONReader::Read("[]")); in TEST()
270 JSONReader::Read("[[true], [], [false, [], [null]], null]")); in TEST()
276 JSONReader::Read("[[true], [], [false, [], [null, ] , ], null,]", in TEST()
283 EXPECT_FALSE(JSONReader::Read("[[true], [], [false, [], [null]], null")); in TEST()
286 EXPECT_FALSE(JSONReader::Read("[true,, null]")); in TEST()
287 EXPECT_FALSE(JSONReader::Read("[true,, null]", JSON_ALLOW_TRAILING_COMMAS)); in TEST()
290 EXPECT_FALSE(JSONReader::Read("[true null]")); in TEST()
293 EXPECT_FALSE(JSONReader::Read("[true,]")); in TEST()
299 ListValue::From(JSONReader::Read("[true,]", JSON_ALLOW_TRAILING_COMMAS)); in TEST()
313 EXPECT_FALSE(JSONReader::Read("[,]", JSON_ALLOW_TRAILING_COMMAS)); in TEST()
314 EXPECT_FALSE(JSONReader::Read("[true,,]", JSON_ALLOW_TRAILING_COMMAS)); in TEST()
315 EXPECT_FALSE(JSONReader::Read("[,true,]", JSON_ALLOW_TRAILING_COMMAS)); in TEST()
316 EXPECT_FALSE(JSONReader::Read("[true,,false]", JSON_ALLOW_TRAILING_COMMAS)); in TEST()
321 DictionaryValue::From(JSONReader::Read("{}")); in TEST()
326 auto dict_val = DictionaryValue::From(JSONReader::Read( in TEST()
339 std::unique_ptr<Value> root2 = JSONReader::Read( in TEST()
346 root2 = JSONReader::Read( in TEST()
356 root2 = JSONReader::Read( in TEST()
369 DictionaryValue::From(JSONReader::Read( in TEST()
383 std::unique_ptr<Value> root2 = JSONReader::Read( in TEST()
391 JSONReader::Read("{\"a.b\":3,\"c\":2,\"d.e.f\":{\"g.h.i.j\":1}}")); in TEST()
407 DictionaryValue::From(JSONReader::Read("{\"a\":{\"b\":2},\"a.b\":1}")); in TEST()
417 EXPECT_FALSE(JSONReader::Read("{\"a\": true")); in TEST()
420 EXPECT_FALSE(JSONReader::Read("{foo:true}")); in TEST()
421 EXPECT_FALSE(JSONReader::Read("{1234: false}")); in TEST()
422 EXPECT_FALSE(JSONReader::Read("{:false}")); in TEST()
425 EXPECT_FALSE(JSONReader::Read("{\"a\":true,}")); in TEST()
428 EXPECT_FALSE(JSONReader::Read("{\"a\":true,,\"b\":false}")); in TEST()
429 EXPECT_FALSE(JSONReader::Read("{\"a\":true,,\"b\":false}", in TEST()
433 EXPECT_FALSE(JSONReader::Read("{\"a\" \"b\"}")); in TEST()
436 EXPECT_FALSE(JSONReader::Read("{,}")); in TEST()
437 EXPECT_FALSE(JSONReader::Read("{,}", JSON_ALLOW_TRAILING_COMMAS)); in TEST()
438 EXPECT_FALSE(JSONReader::Read("{\"a\":true,,}", JSON_ALLOW_TRAILING_COMMAS)); in TEST()
439 EXPECT_FALSE(JSONReader::Read("{,\"a\":true}", JSON_ALLOW_TRAILING_COMMAS)); in TEST()
440 EXPECT_FALSE(JSONReader::Read("{\"a\":true,,\"b\":false}", in TEST()
447 EXPECT_FALSE(JSONReader::Read(evil)); in TEST()
455 std::unique_ptr<ListValue> list = ListValue::From(JSONReader::Read(not_evil)); in TEST()
525 std::unique_ptr<Value> root = JSONReader::Read("null"); in TEST()
529 root = JSONReader::Read("true"); in TEST()
535 root = JSONReader::Read("10"); in TEST()
541 root = JSONReader::Read("\"root\""); in TEST()
574 std::unique_ptr<Value> root = JSONReader::Read( in TEST()
659 root = JSONReader::Read(json, JSON_PARSE_RFC, 3); in TEST()
661 root = JSONReader::Read(json, JSON_PARSE_RFC, 4); in TEST()