• Home
  • Raw
  • Download

Lines Matching refs:error_code

207   int error_code = 0;  in TEST_F()  local
209 "[42]", JSON_PARSE_RFC, &error_code, &error_message); in TEST_F()
211 EXPECT_EQ(0, error_code); in TEST_F()
216 root = JSONReader::ReadAndReturnError(big_json, JSON_PARSE_RFC, &error_code, in TEST_F()
221 EXPECT_EQ(JSONReader::JSON_SYNTAX_ERROR, error_code); in TEST_F()
223 error_code = 0; in TEST_F()
230 &error_code, &error_message); 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()
242 EXPECT_EQ(JSONReader::JSON_UNEXPECTED_DATA_AFTER_ROOT, error_code); in TEST_F()
250 &error_code, &error_message); in TEST_F()
254 EXPECT_EQ(JSONReader::JSON_TOO_MUCH_NESTING, error_code); in TEST_F()
256 root = JSONReader::ReadAndReturnError("[1,]", JSON_PARSE_RFC, &error_code, in TEST_F()
261 EXPECT_EQ(JSONReader::JSON_TRAILING_COMMA, error_code); in TEST_F()
264 &error_code, &error_message); in TEST_F()
268 EXPECT_EQ(JSONReader::JSON_UNQUOTED_DICTIONARY_KEY, error_code); in TEST_F()
271 &error_code, &error_message); in TEST_F()
276 root = JSONReader::ReadAndReturnError("[nu]", JSON_PARSE_RFC, &error_code, in TEST_F()
281 EXPECT_EQ(JSONReader::JSON_SYNTAX_ERROR, error_code); in TEST_F()
284 &error_code, &error_message); in TEST_F()
288 EXPECT_EQ(JSONReader::JSON_INVALID_ESCAPE, error_code); in TEST_F()
291 &error_code, &error_message); in TEST_F()
295 EXPECT_EQ(JSONReader::JSON_INVALID_ESCAPE, error_code); in TEST_F()
298 &error_code, &error_message); in TEST_F()
302 EXPECT_EQ(JSONReader::JSON_INVALID_ESCAPE, error_code); in TEST_F()
311 int error_code = 0; in TEST_F() local
313 kUtf8Data, JSON_PARSE_RFC, &error_code, &error_message); in TEST_F()