summaryrefslogtreecommitdiff
path: root/tests/test_handlers.c
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2014-06-26 20:24:32 -0700
committerJosh Haberman <jhaberman@gmail.com>2014-06-26 20:24:32 -0700
commit2d10fa33071d52d7a35ce3b13bc459cd16a0aa33 (patch)
treebf47d38e2e1cc8ddb4711b23b26e7fd10742e07d /tests/test_handlers.c
parent7d565f1e7a0f107506d3cf31ef2e33e22a504d2b (diff)
Sync from internal Google development.
Diffstat (limited to 'tests/test_handlers.c')
-rw-r--r--tests/test_handlers.c5
1 files changed, 4 insertions, 1 deletions
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)));
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback