Home
last modified time | relevance | path

Searched refs:JSONReader (Results 1 – 25 of 31) sorted by relevance

12

/external/libweave/third_party/chromium/base/json/
Djson_reader_unittest.cc23 scoped_ptr<Value> root = JSONReader().ReadToValue(" null "); in TEST()
28 root = JSONReader().ReadToValue("nu"); in TEST()
32 root = JSONReader().ReadToValue("true "); in TEST()
37 root = JSONReader().ReadToValue("/* comment */null"); in TEST()
40 root = JSONReader().ReadToValue("40 /* comment */"); in TEST()
43 root = JSONReader().ReadToValue("true // comment"); in TEST()
46 root = JSONReader().ReadToValue("/* comment */\"sample string\""); in TEST()
52 root = JSONReader().ReadToValue("[1, /* comment, 2 ] */ \n 3]"); in TEST()
61 root = JSONReader().ReadToValue("[1, /*a*/2, 3]"); in TEST()
65 root = JSONReader().ReadToValue("/* comment **/42"); in TEST()
[all …]
Djson_reader.cc14 static_assert(JSONReader::JSON_PARSE_ERROR_COUNT < 1000,
17 const char JSONReader::kInvalidEscape[] =
19 const char JSONReader::kSyntaxError[] =
21 const char JSONReader::kUnexpectedToken[] =
23 const char JSONReader::kTrailingComma[] =
25 const char JSONReader::kTooMuchNesting[] =
27 const char JSONReader::kUnexpectedDataAfterRoot[] =
29 const char JSONReader::kUnsupportedEncoding[] =
31 const char JSONReader::kUnquotedDictionaryKey[] =
34 JSONReader::JSONReader() in JSONReader() function in base::JSONReader
[all …]
Djson_parser_unittest.cc209 scoped_ptr<Value> root = JSONReader::ReadAndReturnError( in TEST_F()
217 root = JSONReader::ReadAndReturnError(big_json, JSON_PARSE_RFC, &error_code, in TEST_F()
220 EXPECT_EQ(JSONParser::FormatErrorMessage(5, 10, JSONReader::kSyntaxError), in TEST_F()
222 EXPECT_EQ(JSONReader::JSON_SYNTAX_ERROR, error_code); in TEST_F()
230 root = JSONReader::ReadAndReturnError(big_json_crlf, JSON_PARSE_RFC, in TEST_F()
233 EXPECT_EQ(JSONParser::FormatErrorMessage(5, 10, JSONReader::kSyntaxError), in TEST_F()
235 EXPECT_EQ(JSONReader::JSON_SYNTAX_ERROR, error_code); in TEST_F()
238 root = JSONReader::ReadAndReturnError("{},{}", JSON_PARSE_RFC, &error_code, in TEST_F()
242 JSONReader::kUnexpectedDataAfterRoot), error_message); in TEST_F()
243 EXPECT_EQ(JSONReader::JSON_UNEXPECTED_DATA_AFTER_ROOT, error_code); in TEST_F()
[all …]
Djson_parser.cc193 error_code_(JSONReader::JSON_NO_ERROR), in JSONParser()
218 error_code_ = JSONReader::JSON_NO_ERROR; in Parse()
240 ReportError(JSONReader::JSON_UNEXPECTED_DATA_AFTER_ROOT, 1); in Parse()
264 JSONReader::JsonParseError JSONParser::error_code() const { in error_code()
270 JSONReader::ErrorCodeToString(error_code_)); in GetErrorMessage()
480 ReportError(JSONReader::JSON_UNEXPECTED_TOKEN, 1); in ParseToken()
487 ReportError(JSONReader::JSON_UNEXPECTED_TOKEN, 1); in ConsumeDictionary()
493 ReportError(JSONReader::JSON_TOO_MUCH_NESTING, 1); in ConsumeDictionary()
503 ReportError(JSONReader::JSON_UNQUOTED_DICTIONARY_KEY, 1); in ConsumeDictionary()
517 ReportError(JSONReader::JSON_SYNTAX_ERROR, 1); in ConsumeDictionary()
[all …]
Djson_reader.h60 class BASE_EXPORT JSONReader {
87 JSONReader();
90 explicit JSONReader(int options);
92 ~JSONReader();
Djson_parser.h56 JSONReader::JsonParseError error_code() const;
213 void ReportError(JSONReader::JsonParseError code, int column_adjust);
246 JSONReader::JsonParseError error_code_;
/external/libchrome/base/json/
Djson_reader_unittest.cc28 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()
[all …]
Djson_reader.cc14 static_assert(JSONReader::JSON_PARSE_ERROR_COUNT < 1000,
17 const char JSONReader::kInvalidEscape[] =
19 const char JSONReader::kSyntaxError[] =
21 const char JSONReader::kUnexpectedToken[] =
23 const char JSONReader::kTrailingComma[] =
25 const char JSONReader::kTooMuchNesting[] =
27 const char JSONReader::kUnexpectedDataAfterRoot[] =
29 const char JSONReader::kUnsupportedEncoding[] =
31 const char JSONReader::kUnquotedDictionaryKey[] =
34 JSONReader::JSONReader() in JSONReader() function in base::JSONReader
[all …]
Djson_parser_unittest.cc208 scoped_ptr<Value> root = JSONReader::ReadAndReturnError( in TEST_F()
216 root = JSONReader::ReadAndReturnError(big_json, JSON_PARSE_RFC, &error_code, in TEST_F()
219 EXPECT_EQ(JSONParser::FormatErrorMessage(5, 10, JSONReader::kSyntaxError), in TEST_F()
221 EXPECT_EQ(JSONReader::JSON_SYNTAX_ERROR, error_code); in TEST_F()
229 root = JSONReader::ReadAndReturnError(big_json_crlf, JSON_PARSE_RFC, in TEST_F()
232 EXPECT_EQ(JSONParser::FormatErrorMessage(5, 10, JSONReader::kSyntaxError), in TEST_F()
234 EXPECT_EQ(JSONReader::JSON_SYNTAX_ERROR, error_code); in TEST_F()
237 root = JSONReader::ReadAndReturnError("{},{}", JSON_PARSE_RFC, &error_code, in TEST_F()
241 JSONReader::kUnexpectedDataAfterRoot), error_message); in TEST_F()
242 EXPECT_EQ(JSONReader::JSON_UNEXPECTED_DATA_AFTER_ROOT, error_code); in TEST_F()
[all …]
Djson_parser.cc198 error_code_(JSONReader::JSON_NO_ERROR), in JSONParser()
223 error_code_ = JSONReader::JSON_NO_ERROR; in Parse()
245 ReportError(JSONReader::JSON_UNEXPECTED_DATA_AFTER_ROOT, 1); in Parse()
269 JSONReader::JsonParseError JSONParser::error_code() const { in error_code()
275 JSONReader::ErrorCodeToString(error_code_)); in GetErrorMessage()
485 ReportError(JSONReader::JSON_UNEXPECTED_TOKEN, 1); in ParseToken()
492 ReportError(JSONReader::JSON_UNEXPECTED_TOKEN, 1); in ConsumeDictionary()
498 ReportError(JSONReader::JSON_TOO_MUCH_NESTING, 1); in ConsumeDictionary()
508 ReportError(JSONReader::JSON_UNQUOTED_DICTIONARY_KEY, 1); in ConsumeDictionary()
522 ReportError(JSONReader::JSON_SYNTAX_ERROR, 1); in ConsumeDictionary()
[all …]
Djson_reader.h60 class BASE_EXPORT JSONReader {
87 JSONReader();
90 explicit JSONReader(int options);
92 ~JSONReader();
Djson_value_converter_unittest.cc109 scoped_ptr<Value> value = base::JSONReader::Read(normal_data); in TEST()
151 scoped_ptr<Value> value = base::JSONReader::Read(normal_data); in TEST()
193 scoped_ptr<Value> value = base::JSONReader::Read(normal_data); in TEST()
209 scoped_ptr<Value> value = base::JSONReader::Read(normal_data); in TEST()
232 scoped_ptr<Value> value = base::JSONReader::Read(normal_data); in TEST()
249 scoped_ptr<Value> value = base::JSONReader::Read(normal_data); in TEST()
Djson_parser.h56 JSONReader::JsonParseError error_code() const;
213 void ReportError(JSONReader::JsonParseError code, int column_adjust);
246 JSONReader::JsonParseError error_code_;
Djson_value_serializer_unittest.cc81 scoped_ptr<Value> root = JSONReader::Read(json); in ValidateJsonList()
144 ASSERT_EQ(JSONReader::JSON_TRAILING_COMMA, error_code); in TEST()
197 ASSERT_EQ(JSONReader::JSON_TRAILING_COMMA, error_code); in TEST()
383 scoped_ptr<Value> root = JSONReader::Read("[\"// ok\\n /* foo */ \"]"); in TEST()
394 root = JSONReader::Read("/* /* inner */ outer */ [ 1 ]"); in TEST()
398 root = JSONReader::Read("/ * * / [1]"); in TEST()
Djson_string_value_serializer.cc54 return base::JSONReader::ReadAndReturnError( in Deserialize()
/external/libweave/src/test/
Dunittest_utils.cc21 base::JSONReader::ReadAndReturnError(json2, base::JSON_PARSE_RFC, &error, in CreateValue()
/external/libchrome/base/trace_event/
Dheap_profiler_type_name_deduplicator_unittest.cc27 return JSONReader::Read(json); in DumpAndReadBack()
/external/libweave/src/
Dutils.cc42 auto value = base::JSONReader::ReadAndReturnError( in LoadJsonDict()
Daccess_black_list_manager_impl.cc36 base::JSONReader::Read(store_->LoadSettings(kConfigFileName)))) { in Load()
Dconfig.cc156 auto value = base::JSONReader::Read(json_string); in LoadState()
/external/libweave/src/privet/
Dprivet_manager.cc131 auto value = base::JSONReader::Read(data); in PrivetRequestHandlerWithData()
/external/libchrome/base/metrics/
Dstatistics_recorder_unittest.cc268 scoped_ptr<Value> root = JSONReader::Read(json); in TEST_F()
293 root = JSONReader::Read(json); in TEST_F()
/external/dbus-binding-generator/chromeos-dbus-bindings/
Dgenerate_chromeos_dbus_bindings.cc82 std::unique_ptr<base::Value> json{base::JSONReader::Read(contents).release()}; in LoadConfig()
/external/libbrillo/brillo/
Dvalue_conversion_unittest.cc34 base::JSONReader::ReadAndReturnError(json, base::JSON_PARSE_RFC,nullptr, in ParseValue()
/external/libbrillo/brillo/http/
Dhttp_transport_fake.cc178 auto value = base::JSONReader::Read(GetDataAsString()); in GetDataAsJson()

12