From 559e23c796f973a65d05c76e211835b126ee8ac8 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Fri, 17 Jun 2011 10:34:29 -0700 Subject: Major refactoring: abandon upb_msg, add upb_accessors. Next on the chopping block is upb_string. --- tests/tests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/tests.c') 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); -- cgit v1.2.3