aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core
diff options
context:
space:
mode:
Diffstat (limited to 'test/core')
-rw-r--r--test/core/channel/channel_stack_test.c6
-rw-r--r--test/core/channel/metadata_buffer_test.c12
2 files changed, 13 insertions, 5 deletions
diff --git a/test/core/channel/channel_stack_test.c b/test/core/channel/channel_stack_test.c
index 44ede2f1d9..06b090108f 100644
--- a/test/core/channel/channel_stack_test.c
+++ b/test/core/channel/channel_stack_test.c
@@ -66,11 +66,13 @@ static void call_destroy_func(grpc_call_element *elem) {
++*(int *)(elem->channel_data);
}
-static void call_func(grpc_call_element *elem, grpc_call_op *op) {
+static void call_func(grpc_call_element *elem, grpc_call_element *from_elem,
+ grpc_call_op *op) {
++*(int *)(elem->call_data);
}
-static void channel_func(grpc_channel_element *elem, grpc_channel_op *op) {
+static void channel_func(grpc_channel_element *elem,
+ grpc_channel_element *from_elem, grpc_channel_op *op) {
++*(int *)(elem->channel_data);
}
diff --git a/test/core/channel/metadata_buffer_test.c b/test/core/channel/metadata_buffer_test.c
index 4a60b53f81..aa2399272f 100644
--- a/test/core/channel/metadata_buffer_test.c
+++ b/test/core/channel/metadata_buffer_test.c
@@ -61,10 +61,14 @@ typedef struct {
size_t value_prefix_len;
} channel_data;
-static void fail_call_op(grpc_call_element *elem, grpc_call_op *op) { abort(); }
+static void fail_call_op(grpc_call_element *elem, grpc_call_element *from_elem,
+ grpc_call_op *op) {
+ abort();
+}
/* verify that the metadata passed on during flush is the same as we expect */
-static void expect_call_op(grpc_call_element *elem, grpc_call_op *op) {
+static void expect_call_op(grpc_call_element *elem,
+ grpc_call_element *from_elem, grpc_call_op *op) {
size_t *n = elem->call_data;
channel_data *cd = elem->channel_data;
gpr_slice key = construct_buffer(cd->key_prefix_len, *n);
@@ -85,7 +89,9 @@ static void expect_call_op(grpc_call_element *elem, grpc_call_op *op) {
grpc_mdelem_unref(op->data.metadata);
}
-static void fail_channel_op(grpc_channel_element *elem, grpc_channel_op *op) {
+static void fail_channel_op(grpc_channel_element *elem,
+ grpc_channel_element *from_elem,
+ grpc_channel_op *op) {
abort();
}