/external/libweave/third_party/chromium/base/json/ |
D | json_reader_unittest.cc | 23 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 …]
|
D | json_reader.cc | 14 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 …]
|
D | json_parser_unittest.cc | 209 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 …]
|
D | json_parser.cc | 193 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 …]
|
D | json_reader.h | 60 class BASE_EXPORT JSONReader { 87 JSONReader(); 90 explicit JSONReader(int options); 92 ~JSONReader();
|
D | json_parser.h | 56 JSONReader::JsonParseError error_code() const; 213 void ReportError(JSONReader::JsonParseError code, int column_adjust); 246 JSONReader::JsonParseError error_code_;
|
/external/libchrome/base/json/ |
D | json_reader_unittest.cc | 28 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 …]
|
D | json_reader.cc | 14 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 …]
|
D | json_parser_unittest.cc | 208 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 …]
|
D | json_parser.cc | 198 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 …]
|
D | json_reader.h | 60 class BASE_EXPORT JSONReader { 87 JSONReader(); 90 explicit JSONReader(int options); 92 ~JSONReader();
|
D | json_value_converter_unittest.cc | 109 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()
|
D | json_parser.h | 56 JSONReader::JsonParseError error_code() const; 213 void ReportError(JSONReader::JsonParseError code, int column_adjust); 246 JSONReader::JsonParseError error_code_;
|
D | json_value_serializer_unittest.cc | 81 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()
|
D | json_string_value_serializer.cc | 54 return base::JSONReader::ReadAndReturnError( in Deserialize()
|
/external/libweave/src/test/ |
D | unittest_utils.cc | 21 base::JSONReader::ReadAndReturnError(json2, base::JSON_PARSE_RFC, &error, in CreateValue()
|
/external/libchrome/base/trace_event/ |
D | heap_profiler_type_name_deduplicator_unittest.cc | 27 return JSONReader::Read(json); in DumpAndReadBack()
|
/external/libweave/src/ |
D | utils.cc | 42 auto value = base::JSONReader::ReadAndReturnError( in LoadJsonDict()
|
D | access_black_list_manager_impl.cc | 36 base::JSONReader::Read(store_->LoadSettings(kConfigFileName)))) { in Load()
|
D | config.cc | 156 auto value = base::JSONReader::Read(json_string); in LoadState()
|
/external/libweave/src/privet/ |
D | privet_manager.cc | 131 auto value = base::JSONReader::Read(data); in PrivetRequestHandlerWithData()
|
/external/libchrome/base/metrics/ |
D | statistics_recorder_unittest.cc | 268 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/ |
D | generate_chromeos_dbus_bindings.cc | 82 std::unique_ptr<base::Value> json{base::JSONReader::Read(contents).release()}; in LoadConfig()
|
/external/libbrillo/brillo/ |
D | value_conversion_unittest.cc | 34 base::JSONReader::ReadAndReturnError(json, base::JSON_PARSE_RFC,nullptr, in ParseValue()
|
/external/libbrillo/brillo/http/ |
D | http_transport_fake.cc | 178 auto value = base::JSONReader::Read(GetDataAsString()); in GetDataAsJson()
|