diff options
Diffstat (limited to 'tests/tests.c')
-rw-r--r-- | tests/tests.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tests.c b/tests/tests.c index a78ca03..c6b5051 100644 --- a/tests/tests.c +++ b/tests/tests.c @@ -17,7 +17,7 @@ static upb_symtab *load_test_proto() { exit(1); } upb_status status = UPB_STATUS_INIT; - upb_parsedesc(s, descriptor, &status); + upb_read_descriptor(s, descriptor, &status); ASSERT(upb_ok(&status)); upb_status_uninit(&status); upb_string_unref(descriptor); @@ -42,7 +42,7 @@ static void test_upb_jit() { upb_handlerset hset = {NULL, NULL, &upb_test_onvalue, NULL, NULL, NULL, NULL}; upb_handlers_reghandlerset(h, upb_downcast_msgdef(def), &hset); upb_decoder d; - upb_decoder_init(&d, h); + upb_decoder_initforhandlers(&d, h); upb_decoder_uninit(&d); upb_symtab_unref(s); upb_def_unref(def); |