summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Yang <TeBoring@users.noreply.github.com>2018-12-04 15:21:32 -0800
committerGitHub <noreply@github.com>2018-12-04 15:21:32 -0800
commit13c59cb051c4deee5367f9c5fc7b5d07363496a0 (patch)
treed71ca4fa8ee5a0feed15eed99f8da51af21aa1d1 /tests
parent9e44a757edb7ba7155469d3305da32b3dc11c756 (diff)
Implement json decoding for Any message. (#130)
* Implement json decoding for Any message. type url may not appear as the first value in json. As a result, other data cannot be resolved before resolving type url. To solve that, this change caches the start and end position of unparsed values and resolve them in end_any_object when type url has been resolved. * Handle Any in switch * Update json parser size * Fix comments * Sync upstream * Add dependency on upb_pb for upb_json * Debug failed test * Fix cmake * Update test generated files * Remove debug tests
Diffstat (limited to 'tests')
-rw-r--r--tests/json/test_json.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/json/test_json.cc b/tests/json/test_json.cc
index bcdbf64..815d292 100644
--- a/tests/json/test_json.cc
+++ b/tests/json/test_json.cc
@@ -177,7 +177,7 @@ void test_json_roundtrip_message(const char* json_src,
env.env(), serialize_handlers, data_sink.Sink());
upb::json::Parser* parser =
upb::json::Parser::Create(
- env.env(), parser_method, printer->input(), false);
+ env.env(), parser_method, NULL, printer->input(), false);
env.ResetBytesSink(parser->input());
env.Reset(json_src, strlen(json_src), false, false);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback