summaryrefslogtreecommitdiff
path: root/tests/test_handlers.c
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2013-12-20 17:40:40 -0800
committerJosh Haberman <jhaberman@gmail.com>2013-12-20 17:40:40 -0800
commitce9bba3cb5409844f8f3d7dcc235a9ea30cad090 (patch)
tree6c4e0a7c023c790a278f3616c749280c8da205af /tests/test_handlers.c
parentaa8db6ab5ea18848247b8c4ac4715cf344941e94 (diff)
Sync from Google-internal development.
Diffstat (limited to 'tests/test_handlers.c')
-rw-r--r--tests/test_handlers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_handlers.c b/tests/test_handlers.c
index 36881fe..df22b8a 100644
--- a/tests/test_handlers.c
+++ b/tests/test_handlers.c
@@ -18,13 +18,13 @@ static bool startmsg(void *c, const void *hd) {
}
static void test_error() {
- upb_handlers *h = upb_handlers_new(GOOGLE_PROTOBUF_DESCRIPTORPROTO, NULL, &h);
+ upb_handlers *h = upb_handlers_new(GOOGLE_PROTOBUF_DESCRIPTORPROTO, &h);
// Attempt to set the same handler twice causes error.
ASSERT(upb_ok(upb_handlers_status(h)));
- upb_handlers_setstartmsg(h, &startmsg, NULL, NULL);
+ upb_handlers_setstartmsg(h, &startmsg, NULL);
ASSERT(upb_ok(upb_handlers_status(h)));
- upb_handlers_setstartmsg(h, &startmsg, NULL, NULL);
+ upb_handlers_setstartmsg(h, &startmsg, NULL);
ASSERT(!upb_ok(upb_handlers_status(h)));
ASSERT(!upb_handlers_freeze(&h, 1, NULL));
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback