From 2d10fa33071d52d7a35ce3b13bc459cd16a0aa33 Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Thu, 26 Jun 2014 20:24:32 -0700 Subject: Sync from internal Google development. --- tests/test_handlers.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/test_handlers.c') diff --git a/tests/test_handlers.c b/tests/test_handlers.c index df22b8a..ad59465 100644 --- a/tests/test_handlers.c +++ b/tests/test_handlers.c @@ -18,7 +18,10 @@ static bool startmsg(void *c, const void *hd) { } static void test_error() { - upb_handlers *h = upb_handlers_new(GOOGLE_PROTOBUF_DESCRIPTORPROTO, &h); + const upb_symtab *s = upbdefs_google_protobuf_descriptor(&s); + upb_handlers *h = + upb_handlers_new(upbdefs_google_protobuf_DescriptorProto(s), &h); + upb_symtab_unref(s, &s); // Attempt to set the same handler twice causes error. ASSERT(upb_ok(upb_handlers_status(h))); -- cgit v1.2.3