summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2011-05-10 21:59:46 -0700
committerJoshua Haberman <jhaberman@gmail.com>2011-05-10 21:59:46 -0700
commit3231fd0fdd64bc6355bce921a988713524726f23 (patch)
tree326d6c6d334d14005db80c448fca485f641ed516 /tests
parentea2a80840e08887e6e5ea59bce1f56a3c69bd38c (diff)
Vastly improved/simplified the upb_handlers API.
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