Home
last modified time | relevance | path

Searched refs:ReadToValue (Results 1 – 3 of 3) sorted by relevance

/external/libchrome/base/json/
Djson_reader_unittest.cc30 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()
[all …]
Djson_reader.h125 std::unique_ptr<Value> ReadToValue(StringPiece json);
Djson_reader.cc109 std::unique_ptr<Value> JSONReader::ReadToValue(StringPiece json) { in ReadToValue() function in base::JSONReader