Home
last modified time | relevance | path

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

/external/libchrome/base/json/
Djson_reader_unittest.cc25 std::unique_ptr<Value> root = JSONReader().ReadToValue(" null "); in TEST()
31 EXPECT_FALSE(JSONReader().ReadToValue("nu")); in TEST()
35 std::unique_ptr<Value> root = JSONReader().ReadToValue("true "); in TEST()
41 std::unique_ptr<Value> root = JSONReader().ReadToValue("/* comment */null"); in TEST()
44 root = JSONReader().ReadToValue("40 /* comment */"); in TEST()
47 root = JSONReader().ReadToValue("true // comment"); in TEST()
50 root = JSONReader().ReadToValue("/* comment */\"sample string\""); in TEST()
57 ListValue::From(JSONReader().ReadToValue("[1, /* comment, 2 ] */ \n 3]")); in TEST()
65 list = ListValue::From(JSONReader().ReadToValue("[1, /*a*/2, 3]")); in TEST()
68 root = JSONReader().ReadToValue("/* comment **/42"); in TEST()
[all …]
Djson_reader.h119 std::unique_ptr<Value> ReadToValue(StringPiece json);
Djson_reader.cc113 std::unique_ptr<Value> JSONReader::ReadToValue(StringPiece json) { in ReadToValue() function in base::JSONReader