Lines Matching refs:JSONReader

28   scoped_ptr<Value> root = JSONReader().ReadToValue("   null   ");  in TEST()
33 root = JSONReader().ReadToValue("nu"); in TEST()
37 root = JSONReader().ReadToValue("true "); in TEST()
42 root = JSONReader().ReadToValue("/* comment */null"); in TEST()
45 root = JSONReader().ReadToValue("40 /* comment */"); in TEST()
48 root = JSONReader().ReadToValue("true // comment"); in TEST()
51 root = JSONReader().ReadToValue("/* comment */\"sample string\""); in TEST()
57 root = JSONReader().ReadToValue("[1, /* comment, 2 ] */ \n 3]"); in TEST()
66 root = JSONReader().ReadToValue("[1, /*a*/2, 3]"); in TEST()
70 root = JSONReader().ReadToValue("/* comment **/42"); in TEST()
75 root = JSONReader().ReadToValue( in TEST()
85 root = JSONReader().ReadToValue("43"); in TEST()
92 root = JSONReader().ReadToValue("043"); in TEST()
94 root = JSONReader().ReadToValue("0x43"); in TEST()
96 root = JSONReader().ReadToValue("00"); in TEST()
101 root = JSONReader().ReadToValue("0"); in TEST()
110 root = JSONReader().ReadToValue("2147483648"); in TEST()
117 root = JSONReader().ReadToValue("-2147483649"); in TEST()
125 root = JSONReader().ReadToValue("43.1"); in TEST()
132 root = JSONReader().ReadToValue("4.3e-1"); in TEST()
139 root = JSONReader().ReadToValue("2.1e0"); in TEST()
146 root = JSONReader().ReadToValue("2.1e+0001"); in TEST()
153 root = JSONReader().ReadToValue("0.01"); in TEST()
160 root = JSONReader().ReadToValue("1.00"); in TEST()
168 root = JSONReader().ReadToValue("1."); in TEST()
170 root = JSONReader().ReadToValue(".1"); in TEST()
172 root = JSONReader().ReadToValue("1.e10"); in TEST()
176 root = JSONReader().ReadToValue("1e"); in TEST()
178 root = JSONReader().ReadToValue("1E"); in TEST()
180 root = JSONReader().ReadToValue("1e1."); in TEST()
182 root = JSONReader().ReadToValue("1e1.0"); in TEST()
186 root = JSONReader().ReadToValue("1e1000"); in TEST()
188 root = JSONReader().ReadToValue("-1e1000"); in TEST()
190 root = JSONReader().ReadToValue("NaN"); in TEST()
192 root = JSONReader().ReadToValue("nan"); in TEST()
194 root = JSONReader().ReadToValue("inf"); in TEST()
198 root = JSONReader().ReadToValue("4.3.1"); in TEST()
200 root = JSONReader().ReadToValue("4e3.1"); in TEST()
204 root = JSONReader().ReadToValue("\"hello world\""); in TEST()
212 root = JSONReader().ReadToValue("\"\""); in TEST()
220 root = JSONReader().ReadToValue("\" \\\"\\\\\\/\\b\\f\\n\\r\\t\\v\""); in TEST()
228 root = JSONReader().ReadToValue("\"\\x41\\x00\\u1234\""); in TEST()
236 root = JSONReader().ReadToValue("\"no closing quote"); in TEST()
238 root = JSONReader().ReadToValue("\"\\z invalid escape char\""); in TEST()
240 root = JSONReader().ReadToValue("\"\\xAQ invalid hex code\""); in TEST()
242 root = JSONReader().ReadToValue("not enough hex chars\\x1\""); in TEST()
244 root = JSONReader().ReadToValue("\"not enough escape chars\\u123\""); in TEST()
246 root = JSONReader().ReadToValue("\"extra backslash at end of input\\\""); in TEST()
250 root = JSONReader::Read("[true, false, null]"); in TEST()
258 JSONReader::Read("[true, false, null, ]", JSON_ALLOW_TRAILING_COMMAS); in TEST()
262 root = JSONReader::Read("[]"); in TEST()
269 root = JSONReader::Read("[[true], [], [false, [], [null]], null]"); in TEST()
276 root2 = JSONReader::Read("[[true], [], [false, [], [null, ] , ], null,]", in TEST()
281 root = JSONReader::Read("[[true], [], [false, [], [null]], null"); in TEST()
285 root = JSONReader::Read("[true,, null]"); in TEST()
287 root = JSONReader::Read("[true,, null]", JSON_ALLOW_TRAILING_COMMAS); in TEST()
291 root = JSONReader::Read("[true null]"); in TEST()
295 root = JSONReader::Read("[true,]"); in TEST()
299 root = JSONReader::Read("[true,]", JSON_ALLOW_TRAILING_COMMAS); in TEST()
313 root = JSONReader::Read("[,]", JSON_ALLOW_TRAILING_COMMAS); in TEST()
315 root = JSONReader::Read("[true,,]", JSON_ALLOW_TRAILING_COMMAS); in TEST()
317 root = JSONReader::Read("[,true,]", JSON_ALLOW_TRAILING_COMMAS); in TEST()
319 root = JSONReader::Read("[true,,false]", JSON_ALLOW_TRAILING_COMMAS); in TEST()
323 root = JSONReader::Read("{}"); in TEST()
327 root = JSONReader::Read( in TEST()
342 root2 = JSONReader::Read( in TEST()
349 root2 = JSONReader::Read( in TEST()
359 root2 = JSONReader::Read( in TEST()
370 root = JSONReader::Read( in TEST()
386 root2 = JSONReader::Read( in TEST()
392 root = JSONReader::Read("{\"a.b\":3,\"c\":2,\"d.e.f\":{\"g.h.i.j\":1}}"); in TEST()
409 root = JSONReader::Read("{\"a\":{\"b\":2},\"a.b\":1}"); in TEST()
419 root = JSONReader::Read("{\"a\": true"); in TEST()
423 root = JSONReader::Read("{foo:true}"); in TEST()
427 root = JSONReader::Read("{\"a\":true,}"); in TEST()
431 root = JSONReader::Read("{\"a\":true,,\"b\":false}"); in TEST()
434 JSONReader::Read("{\"a\":true,,\"b\":false}", JSON_ALLOW_TRAILING_COMMAS); in TEST()
438 root = JSONReader::Read("{\"a\" \"b\"}"); in TEST()
442 root = JSONReader::Read("{,}"); in TEST()
444 root = JSONReader::Read("{,}", JSON_ALLOW_TRAILING_COMMAS); in TEST()
446 root = JSONReader::Read("{\"a\":true,,}", JSON_ALLOW_TRAILING_COMMAS); in TEST()
448 root = JSONReader::Read("{,\"a\":true}", JSON_ALLOW_TRAILING_COMMAS); in TEST()
451 JSONReader::Read("{\"a\":true,,\"b\":false}", JSON_ALLOW_TRAILING_COMMAS); in TEST()
457 root = JSONReader::Read(evil); in TEST()
467 root = JSONReader::Read(not_evil); in TEST()
474 root = JSONReader().ReadToValue("\"\xe7\xbd\x91\xe9\xa1\xb5\""); in TEST()
481 root = JSONReader().ReadToValue( in TEST()
490 root = JSONReader().ReadToValue("\"345\xb0\xa1\xb0\xa2\""); in TEST()
492 root = JSONReader().ReadToValue("\"123\xc0\x81\""); in TEST()
494 root = JSONReader().ReadToValue("\"abc\xc0\xae\""); in TEST()
498 root = JSONReader().ReadToValue("\"\\u20ac3,14\""); in TEST()
505 root = JSONReader().ReadToValue("\"\\ud83d\\udca9\\ud83d\\udc6c\""); in TEST()
524 root = JSONReader().ReadToValue(cases[i]); in TEST()
529 root = JSONReader::Read("null"); in TEST()
532 root = JSONReader::Read("true"); in TEST()
537 root = JSONReader::Read("10"); in TEST()
542 root = JSONReader::Read("\"root\""); in TEST()
559 JSONReader reader; in TEST()
577 scoped_ptr<Value> root = JSONReader::Read( in TEST()
648 JSONReader reader; in TEST()
651 EXPECT_NE(JSONReader::JSON_NO_ERROR, reader.error_code()); in TEST()
659 JSONReader reader; in TEST()
661 EXPECT_EQ(JSONReader::JSON_UNEXPECTED_DATA_AFTER_ROOT, reader.error_code()); in TEST()