Lines Matching refs:ReadToValue
30 std::unique_ptr<Value> root = JSONReader().ReadToValue(" null "); in TEST()
37 EXPECT_FALSE(JSONReader().ReadToValue("nu")); in TEST()
42 std::unique_ptr<Value> root = JSONReader().ReadToValue("true "); in TEST()
49 std::unique_ptr<Value> root = JSONReader().ReadToValue("/* comment */null"); in TEST()
52 root = JSONReader().ReadToValue("40 /* comment */"); in TEST()
55 root = JSONReader().ReadToValue("true // comment"); in TEST()
58 root = JSONReader().ReadToValue("/* comment */\"sample string\""); in TEST()
65 JSONReader().ReadToValue("[1, /* comment, 2 ] */ \n 3]")); in TEST()
73 list = ListValue::From(JSONReader().ReadToValue("[1, /*a*/2, 3]")); in TEST()
76 root = JSONReader().ReadToValue("/* comment **/42"); in TEST()
81 root = JSONReader().ReadToValue( in TEST()
93 std::unique_ptr<Value> root = JSONReader().ReadToValue("43"); in TEST()
103 EXPECT_FALSE(JSONReader().ReadToValue("043")); in TEST()
104 EXPECT_FALSE(JSONReader().ReadToValue("0x43")); in TEST()
105 EXPECT_FALSE(JSONReader().ReadToValue("00")); in TEST()
111 std::unique_ptr<Value> root = JSONReader().ReadToValue("0"); in TEST()
122 std::unique_ptr<Value> root = JSONReader().ReadToValue("2147483648"); in TEST()
129 root = JSONReader().ReadToValue("-2147483649"); in TEST()
139 std::unique_ptr<Value> root = JSONReader().ReadToValue("43.1"); in TEST()
146 root = JSONReader().ReadToValue("4.3e-1"); in TEST()
153 root = JSONReader().ReadToValue("2.1e0"); in TEST()
160 root = JSONReader().ReadToValue("2.1e+0001"); in TEST()
167 root = JSONReader().ReadToValue("0.01"); in TEST()
174 root = JSONReader().ReadToValue("1.00"); in TEST()
184 EXPECT_FALSE(JSONReader().ReadToValue("1.")); in TEST()
185 EXPECT_FALSE(JSONReader().ReadToValue(".1")); in TEST()
186 EXPECT_FALSE(JSONReader().ReadToValue("1.e10")); in TEST()
191 EXPECT_FALSE(JSONReader().ReadToValue("1e")); in TEST()
192 EXPECT_FALSE(JSONReader().ReadToValue("1E")); in TEST()
193 EXPECT_FALSE(JSONReader().ReadToValue("1e1.")); in TEST()
194 EXPECT_FALSE(JSONReader().ReadToValue("1e1.0")); in TEST()
199 EXPECT_FALSE(JSONReader().ReadToValue("1e1000")); in TEST()
200 EXPECT_FALSE(JSONReader().ReadToValue("-1e1000")); in TEST()
201 EXPECT_FALSE(JSONReader().ReadToValue("NaN")); in TEST()
202 EXPECT_FALSE(JSONReader().ReadToValue("nan")); in TEST()
203 EXPECT_FALSE(JSONReader().ReadToValue("inf")); in TEST()
208 EXPECT_FALSE(JSONReader().ReadToValue("4.3.1")); in TEST()
209 EXPECT_FALSE(JSONReader().ReadToValue("4e3.1")); in TEST()
214 std::unique_ptr<Value> root = JSONReader().ReadToValue("\"hello world\""); in TEST()
224 std::unique_ptr<Value> root = JSONReader().ReadToValue("\"\""); in TEST()
235 JSONReader().ReadToValue("\" \\\"\\\\\\/\\b\\f\\n\\r\\t\\v\""); in TEST()
246 JSONReader().ReadToValue("\"\\x41\\x00\\u1234\""); in TEST()
256 EXPECT_FALSE(JSONReader().ReadToValue("\"no closing quote")); in TEST()
257 EXPECT_FALSE(JSONReader().ReadToValue("\"\\z invalid escape char\"")); in TEST()
258 EXPECT_FALSE(JSONReader().ReadToValue("\"\\xAQ invalid hex code\"")); in TEST()
259 EXPECT_FALSE(JSONReader().ReadToValue("not enough hex chars\\x1\"")); in TEST()
260 EXPECT_FALSE(JSONReader().ReadToValue("\"not enough escape chars\\u123\"")); in TEST()
262 JSONReader().ReadToValue("\"extra backslash at end of input\\\"")); in TEST()
487 JSONReader().ReadToValue("\"\xe7\xbd\x91\xe9\xa1\xb5\""); in TEST()
495 DictionaryValue::From(JSONReader().ReadToValue( in TEST()
504 EXPECT_FALSE(JSONReader().ReadToValue("\"345\xb0\xa1\xb0\xa2\"")); in TEST()
505 EXPECT_FALSE(JSONReader().ReadToValue("\"123\xc0\x81\"")); in TEST()
506 EXPECT_FALSE(JSONReader().ReadToValue("\"abc\xc0\xae\"")); in TEST()
511 std::unique_ptr<Value> root = JSONReader().ReadToValue("\"\\u20ac3,14\""); in TEST()
521 root = JSONReader().ReadToValue("\"\\ud83d\\udca9\\ud83d\\udc6c\""); in TEST()
543 root = JSONReader().ReadToValue(cases[i]); in TEST()
584 std::unique_ptr<Value> root(reader.ReadToValue(input)); in TEST()
669 EXPECT_FALSE(reader.ReadToValue(kInvalidJson[i])); in TEST()
679 EXPECT_FALSE(reader.ReadToValue(json_string)); in TEST()