aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/end2end/tests/empty_batch.c
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2015-08-13 15:03:46 -0700
committerGravatar Vijay Pai <vpai@google.com>2015-08-13 15:03:46 -0700
commitd9c1bc7281cac61472ba2cd6d39c1d5b878cc3bc (patch)
tree95fb3e7d33b7eda69131d6b46605d251871cb78d /test/core/end2end/tests/empty_batch.c
parented48bf8f71efce4a9037a74ae9ab2c83a3e9b4a7 (diff)
parentf123443aa524bf42d3d23a834e0ae33d57ed8648 (diff)
Merge pull request #2612 from nicolasnoble/the-ultimate-showdown
Adding reserved arguments and pointers in the API to ensure stability.
Diffstat (limited to 'test/core/end2end/tests/empty_batch.c')
-rw-r--r--test/core/end2end/tests/empty_batch.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/core/end2end/tests/empty_batch.c b/test/core/end2end/tests/empty_batch.c
index 138c6b07c5..feb2f18166 100644
--- a/test/core/end2end/tests/empty_batch.c
+++ b/test/core/end2end/tests/empty_batch.c
@@ -70,7 +70,7 @@ static gpr_timespec five_seconds_time(void) { return n_seconds_time(5); }
static void drain_cq(grpc_completion_queue *cq) {
grpc_event ev;
do {
- ev = grpc_completion_queue_next(cq, five_seconds_time());
+ ev = grpc_completion_queue_next(cq, five_seconds_time(), NULL);
} while (ev.type != GRPC_QUEUE_SHUTDOWN);
}
@@ -78,7 +78,8 @@ static void shutdown_server(grpc_end2end_test_fixture *f) {
if (!f->server) return;
grpc_server_shutdown_and_notify(f->server, f->cq, tag(1000));
GPR_ASSERT(grpc_completion_queue_pluck(f->cq, tag(1000),
- GRPC_TIMEOUT_SECONDS_TO_DEADLINE(5))
+ GRPC_TIMEOUT_SECONDS_TO_DEADLINE(5),
+ NULL)
.type == GRPC_OP_COMPLETE);
grpc_server_destroy(f->server);
f->server = NULL;
@@ -103,13 +104,15 @@ static void empty_batch_body(grpc_end2end_test_fixture f) {
grpc_call *c;
gpr_timespec deadline = five_seconds_time();
cq_verifier *cqv = cq_verifier_create(f.cq);
+ grpc_call_error error;
grpc_op *op = NULL;
c = grpc_channel_create_call(f.client, NULL, GRPC_PROPAGATE_DEFAULTS, f.cq,
- "/foo", "foo.test.google.fr", deadline);
+ "/foo", "foo.test.google.fr", deadline, NULL);
GPR_ASSERT(c);
- GPR_ASSERT(GRPC_CALL_OK == grpc_call_start_batch(c, op, 0, tag(1)));
+ error = grpc_call_start_batch(c, op, 0, tag(1), NULL);
+ GPR_ASSERT(GRPC_CALL_OK == error);
cq_expect_completion(cqv, tag(1), 1);
cq_verify(cqv);