Searched refs:ReadToValue (Results 1 – 4 of 4) sorted by relevance
25 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 …]
119 std::unique_ptr<Value> ReadToValue(StringPiece json);
113 std::unique_ptr<Value> JSONReader::ReadToValue(StringPiece json) { in ReadToValue() function in base::JSONReader
10 - Add JSONReader::{Read,ReadAndReturnError,ReadToValue}Deprecated, alias147 std::unique_ptr<Value> ReadToValue(StringPiece json);149 + return JSONReader::ReadToValue(json);152 // Returns the error code if the last call to ReadToValue() failed.