diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2011-06-17 10:34:29 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2011-06-17 10:34:29 -0700 |
commit | 559e23c796f973a65d05c76e211835b126ee8ac8 (patch) | |
tree | ec359628f3b93b88718cc34e5ec86ca6e6c6c1e2 /tests/tests.c | |
parent | a503b8859c37906ab5012db163daca43bfe393bb (diff) |
Major refactoring: abandon upb_msg, add upb_accessors.
Next on the chopping block is upb_string.
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); |