aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/end2end/tests/cancel_after_accept.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-02-02 10:16:30 -0800
committerGravatar Craig Tiller <ctiller@google.com>2015-02-02 15:39:31 -0800
commitc4f0ebe63bbd4b7f9ca551fd6dcb0df026464623 (patch)
tree09b0da67e8386833fecec4135c370708cb5bafec /test/core/end2end/tests/cancel_after_accept.c
parentd2bfa1a288f3eeccbee3275787d95128f2871017 (diff)
Prepare for the new batch call API.
Rename all core API functions that are on their way to deprecation with an _old tag across all wrappings.
Diffstat (limited to 'test/core/end2end/tests/cancel_after_accept.c')
-rw-r--r--test/core/end2end/tests/cancel_after_accept.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/core/end2end/tests/cancel_after_accept.c b/test/core/end2end/tests/cancel_after_accept.c
index 05a2dc8bbb..f9bf9fabf4 100644
--- a/test/core/end2end/tests/cancel_after_accept.c
+++ b/test/core/end2end/tests/cancel_after_accept.c
@@ -113,19 +113,21 @@ static void test_cancel_after_accept(grpc_end2end_test_config config,
cq_verifier *v_client = cq_verifier_create(f.client_cq);
cq_verifier *v_server = cq_verifier_create(f.server_cq);
- c = grpc_channel_create_call(f.client, "/foo", "test.google.com", deadline);
+ c = grpc_channel_create_call_old(f.client, "/foo", "test.google.com",
+ deadline);
GPR_ASSERT(c);
GPR_ASSERT(GRPC_CALL_OK ==
- grpc_call_invoke(c, f.client_cq, tag(2), tag(3), 0));
+ grpc_call_invoke_old(c, f.client_cq, tag(2), tag(3), 0));
- GPR_ASSERT(GRPC_CALL_OK == grpc_server_request_call(f.server, tag(100)));
+ GPR_ASSERT(GRPC_CALL_OK == grpc_server_request_call_old(f.server, tag(100)));
cq_expect_server_rpc_new(v_server, &s, tag(100), "/foo", "test.google.com",
deadline, NULL);
cq_verify(v_server);
- GPR_ASSERT(GRPC_CALL_OK == grpc_call_server_accept(s, f.server_cq, tag(102)));
- GPR_ASSERT(GRPC_CALL_OK == grpc_call_server_end_initial_metadata(s, 0));
+ GPR_ASSERT(GRPC_CALL_OK ==
+ grpc_call_server_accept_old(s, f.server_cq, tag(102)));
+ GPR_ASSERT(GRPC_CALL_OK == grpc_call_server_end_initial_metadata_old(s, 0));
cq_expect_client_metadata_read(v_client, tag(2), NULL);
cq_verify(v_client);