summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/tests.c b/tests/tests.c
index d07d495..dea535c 100644
--- a/tests/tests.c
+++ b/tests/tests.c
@@ -39,8 +39,9 @@ static void test_upb_jit() {
ASSERT(def);
upb_handlers h;
- upb_handlers_init(&h, upb_downcast_msgdef(def));
- upb_register_all(&h, NULL, NULL, &upb_test_onvalue, NULL, NULL);
+ upb_handlers_init(&h);
+ upb_handlerset hset = {NULL, NULL, &upb_test_onvalue, NULL, NULL};
+ upb_handlers_reghandlerset(&h, upb_downcast_msgdef(def), &hset);
upb_decoder d;
upb_decoder_init(&d, &h);
upb_decoder_uninit(&d);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback