summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2011-02-24 00:09:27 -0800
committerJoshua Haberman <joshua@reverberate.org>2011-02-24 00:09:27 -0800
commitabfc897b50532e5ed64f7f5497f80ef56abd3b26 (patch)
tree003c19da802085acb293d0b7d30026e9ad1adc56 /tests
parent4d6585290955613b23e5ade89794fb465cb7ec3a (diff)
Pass the upb_fielddef* to the endmsg callback.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_stream.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/test_stream.c b/tests/test_stream.c
index 468d40c..8a136fd 100644
--- a/tests/test_stream.c
+++ b/tests/test_stream.c
@@ -53,7 +53,8 @@ static upb_flow_t startsubmsg(void *closure, struct _upb_fielddef *f,
}
}
-static upb_flow_t endsubmsg(void *closure) {
+static upb_flow_t endsubmsg(void *closure, struct _upb_fielddef *f) {
+ (void)f;
test_data *d = closure;
strappendf(d->str, "endsubmsg\n");
return UPB_CONTINUE;
@@ -99,9 +100,9 @@ static void test_dispatcher() {
data.should_delegate = false;
upb_dispatch_startsubmsg(&d, NULL);
upb_dispatch_value(&d, NULL, val);
- upb_dispatch_endsubmsg(&d);
- upb_dispatch_endsubmsg(&d);
- upb_dispatch_endsubmsg(&d);
+ upb_dispatch_endsubmsg(&d, NULL);
+ upb_dispatch_endsubmsg(&d, NULL);
+ upb_dispatch_endsubmsg(&d, NULL);
upb_dispatch_endmsg(&d);
upb_string expected = UPB_STACK_STRING(
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback