Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 1 | /* |
| 2 | * |
Craig Tiller | 0605995 | 2015-02-18 08:34:56 -0800 | [diff] [blame] | 3 | * Copyright 2015, Google Inc. |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 4 | * All rights reserved. |
| 5 | * |
| 6 | * Redistribution and use in source and binary forms, with or without |
| 7 | * modification, are permitted provided that the following conditions are |
| 8 | * met: |
| 9 | * |
| 10 | * * Redistributions of source code must retain the above copyright |
| 11 | * notice, this list of conditions and the following disclaimer. |
| 12 | * * Redistributions in binary form must reproduce the above |
| 13 | * copyright notice, this list of conditions and the following disclaimer |
| 14 | * in the documentation and/or other materials provided with the |
| 15 | * distribution. |
| 16 | * * Neither the name of Google Inc. nor the names of its |
| 17 | * contributors may be used to endorse or promote products derived from |
| 18 | * this software without specific prior written permission. |
| 19 | * |
| 20 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 21 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 22 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 23 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 24 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 25 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 26 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 27 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 28 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 29 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 30 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 31 | * |
| 32 | */ |
| 33 | |
| 34 | #include "test/core/end2end/end2end_tests.h" |
| 35 | |
| 36 | #include <stdio.h> |
| 37 | #include <string.h> |
| 38 | #include <unistd.h> |
| 39 | |
| 40 | #include <grpc/byte_buffer.h> |
| 41 | #include <grpc/support/alloc.h> |
| 42 | #include <grpc/support/log.h> |
| 43 | #include <grpc/support/time.h> |
| 44 | #include <grpc/support/useful.h> |
| 45 | #include "test/core/end2end/cq_verifier.h" |
| 46 | |
| 47 | enum { TIMEOUT = 200000 }; |
| 48 | |
| 49 | static void *tag(gpr_intptr t) { return (void *)t; } |
| 50 | |
| 51 | static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, |
| 52 | const char *test_name, |
| 53 | grpc_channel_args *client_args, |
| 54 | grpc_channel_args *server_args) { |
| 55 | grpc_end2end_test_fixture f; |
| 56 | gpr_log(GPR_INFO, "%s/%s", test_name, config.name); |
| 57 | f = config.create_fixture(client_args, server_args); |
| 58 | config.init_client(&f, client_args); |
| 59 | config.init_server(&f, server_args); |
| 60 | return f; |
| 61 | } |
| 62 | |
| 63 | static gpr_timespec n_seconds_time(int n) { |
Craig Tiller | 8ad8a41 | 2015-02-25 08:36:40 -0800 | [diff] [blame] | 64 | return GRPC_TIMEOUT_SECONDS_TO_DEADLINE(n); |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 65 | } |
| 66 | |
Craig Tiller | 32946d3 | 2015-01-15 11:37:30 -0800 | [diff] [blame] | 67 | static gpr_timespec five_seconds_time(void) { return n_seconds_time(5); } |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 68 | |
| 69 | static void drain_cq(grpc_completion_queue *cq) { |
| 70 | grpc_event *ev; |
| 71 | grpc_completion_type type; |
| 72 | do { |
| 73 | ev = grpc_completion_queue_next(cq, five_seconds_time()); |
| 74 | GPR_ASSERT(ev); |
| 75 | type = ev->type; |
| 76 | grpc_event_finish(ev); |
| 77 | } while (type != GRPC_QUEUE_SHUTDOWN); |
| 78 | } |
| 79 | |
| 80 | static void shutdown_server(grpc_end2end_test_fixture *f) { |
| 81 | if (!f->server) return; |
| 82 | grpc_server_shutdown(f->server); |
| 83 | grpc_server_destroy(f->server); |
| 84 | f->server = NULL; |
| 85 | } |
| 86 | |
| 87 | static void shutdown_client(grpc_end2end_test_fixture *f) { |
| 88 | if (!f->client) return; |
| 89 | grpc_channel_destroy(f->client); |
| 90 | f->client = NULL; |
| 91 | } |
| 92 | |
| 93 | static void end_test(grpc_end2end_test_fixture *f) { |
| 94 | shutdown_server(f); |
| 95 | shutdown_client(f); |
| 96 | |
| 97 | grpc_completion_queue_shutdown(f->server_cq); |
| 98 | drain_cq(f->server_cq); |
| 99 | grpc_completion_queue_destroy(f->server_cq); |
| 100 | grpc_completion_queue_shutdown(f->client_cq); |
| 101 | drain_cq(f->client_cq); |
| 102 | grpc_completion_queue_destroy(f->client_cq); |
| 103 | } |
| 104 | |
| 105 | static void simple_request_body(grpc_end2end_test_fixture f) { |
| 106 | grpc_call *c; |
| 107 | grpc_call *s; |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 108 | gpr_timespec deadline = five_seconds_time(); |
| 109 | cq_verifier *v_client = cq_verifier_create(f.client_cq); |
| 110 | cq_verifier *v_server = cq_verifier_create(f.server_cq); |
Craig Tiller | 8b1d989 | 2015-04-28 14:28:19 -0700 | [diff] [blame^] | 111 | grpc_op ops[6]; |
| 112 | grpc_op *op; |
| 113 | grpc_metadata_array initial_metadata_recv; |
| 114 | grpc_metadata_array trailing_metadata_recv; |
| 115 | grpc_metadata_array request_metadata_recv; |
| 116 | grpc_call_details call_details; |
| 117 | grpc_status_code status; |
| 118 | char *details = NULL; |
| 119 | size_t details_capacity = 0; |
| 120 | int was_cancelled = 2; |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 121 | |
Craig Tiller | 8b1d989 | 2015-04-28 14:28:19 -0700 | [diff] [blame^] | 122 | c = grpc_channel_create_call(f.client, f.client_cq, "/foo", |
| 123 | "foo.test.google.fr:1234", deadline); |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 124 | GPR_ASSERT(c); |
| 125 | |
Craig Tiller | 8b1d989 | 2015-04-28 14:28:19 -0700 | [diff] [blame^] | 126 | grpc_metadata_array_init(&initial_metadata_recv); |
| 127 | grpc_metadata_array_init(&trailing_metadata_recv); |
| 128 | grpc_metadata_array_init(&request_metadata_recv); |
| 129 | grpc_call_details_init(&call_details); |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 130 | |
Craig Tiller | 8b1d989 | 2015-04-28 14:28:19 -0700 | [diff] [blame^] | 131 | op = ops; |
| 132 | op->op = GRPC_OP_SEND_INITIAL_METADATA; |
| 133 | op->data.send_initial_metadata.count = 0; |
| 134 | op++; |
| 135 | op->op = GRPC_OP_SEND_CLOSE_FROM_CLIENT; |
| 136 | op++; |
| 137 | op->op = GRPC_OP_RECV_INITIAL_METADATA; |
| 138 | op->data.recv_initial_metadata = &initial_metadata_recv; |
| 139 | op++; |
| 140 | op->op = GRPC_OP_RECV_STATUS_ON_CLIENT; |
| 141 | op->data.recv_status_on_client.trailing_metadata = &trailing_metadata_recv; |
| 142 | op->data.recv_status_on_client.status = &status; |
| 143 | op->data.recv_status_on_client.status_details = &details; |
| 144 | op->data.recv_status_on_client.status_details_capacity = &details_capacity; |
| 145 | op++; |
| 146 | GPR_ASSERT(GRPC_CALL_OK == grpc_call_start_batch(c, ops, op - ops, tag(1))); |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 147 | |
Craig Tiller | 8b1d989 | 2015-04-28 14:28:19 -0700 | [diff] [blame^] | 148 | GPR_ASSERT(GRPC_CALL_OK == grpc_server_request_call(f.server, &s, |
| 149 | &call_details, |
| 150 | &request_metadata_recv, |
| 151 | f.server_cq, tag(101))); |
| 152 | cq_expect_completion(v_server, tag(101), GRPC_OP_OK); |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 153 | cq_verify(v_server); |
| 154 | |
Craig Tiller | 8b1d989 | 2015-04-28 14:28:19 -0700 | [diff] [blame^] | 155 | op = ops; |
| 156 | op->op = GRPC_OP_SEND_INITIAL_METADATA; |
| 157 | op->data.send_initial_metadata.count = 0; |
| 158 | op++; |
| 159 | op->op = GRPC_OP_SEND_STATUS_FROM_SERVER; |
| 160 | op->data.send_status_from_server.trailing_metadata_count = 0; |
| 161 | op->data.send_status_from_server.status = GRPC_STATUS_UNIMPLEMENTED; |
| 162 | op->data.send_status_from_server.status_details = "xyz"; |
| 163 | op++; |
| 164 | op->op = GRPC_OP_RECV_CLOSE_ON_SERVER; |
| 165 | op->data.recv_close_on_server.cancelled = &was_cancelled; |
| 166 | op++; |
| 167 | GPR_ASSERT(GRPC_CALL_OK == grpc_call_start_batch(s, ops, op - ops, tag(102))); |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 168 | |
Craig Tiller | 8b1d989 | 2015-04-28 14:28:19 -0700 | [diff] [blame^] | 169 | cq_expect_completion(v_server, tag(102), GRPC_OP_OK); |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 170 | cq_verify(v_server); |
| 171 | |
Craig Tiller | 8b1d989 | 2015-04-28 14:28:19 -0700 | [diff] [blame^] | 172 | cq_expect_completion(v_client, tag(1), GRPC_OP_OK); |
| 173 | cq_verify(v_client); |
| 174 | |
| 175 | GPR_ASSERT(status == GRPC_STATUS_UNIMPLEMENTED); |
| 176 | GPR_ASSERT(0 == strcmp(details, "xyz")); |
| 177 | GPR_ASSERT(0 == strcmp(call_details.method, "/foo")); |
| 178 | GPR_ASSERT(0 == strcmp(call_details.host, "foo.test.google.fr:1234")); |
| 179 | GPR_ASSERT(was_cancelled == 0); |
| 180 | |
| 181 | gpr_free(details); |
| 182 | grpc_metadata_array_destroy(&initial_metadata_recv); |
| 183 | grpc_metadata_array_destroy(&trailing_metadata_recv); |
| 184 | grpc_metadata_array_destroy(&request_metadata_recv); |
| 185 | grpc_call_details_destroy(&call_details); |
| 186 | |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 187 | grpc_call_destroy(c); |
| 188 | grpc_call_destroy(s); |
| 189 | |
| 190 | cq_verifier_destroy(v_client); |
| 191 | cq_verifier_destroy(v_server); |
| 192 | } |
| 193 | |
| 194 | static void test_max_concurrent_streams(grpc_end2end_test_config config) { |
| 195 | grpc_end2end_test_fixture f; |
| 196 | grpc_arg server_arg; |
| 197 | grpc_channel_args server_args; |
| 198 | grpc_call *c1; |
| 199 | grpc_call *c2; |
| 200 | grpc_call *s1; |
| 201 | grpc_call *s2; |
ctiller | 58393c2 | 2015-01-07 14:03:30 -0800 | [diff] [blame] | 202 | int live_call; |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 203 | gpr_timespec deadline; |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 204 | cq_verifier *v_client; |
| 205 | cq_verifier *v_server; |
ctiller | 58393c2 | 2015-01-07 14:03:30 -0800 | [diff] [blame] | 206 | grpc_event *ev; |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 207 | |
| 208 | server_arg.key = GRPC_ARG_MAX_CONCURRENT_STREAMS; |
| 209 | server_arg.type = GRPC_ARG_INTEGER; |
| 210 | server_arg.value.integer = 1; |
| 211 | |
| 212 | server_args.num_args = 1; |
| 213 | server_args.args = &server_arg; |
| 214 | |
| 215 | f = begin_test(config, __FUNCTION__, NULL, &server_args); |
| 216 | v_client = cq_verifier_create(f.client_cq); |
| 217 | v_server = cq_verifier_create(f.server_cq); |
| 218 | |
| 219 | /* perform a ping-pong to ensure that settings have had a chance to round |
| 220 | trip */ |
| 221 | simple_request_body(f); |
| 222 | /* perform another one to make sure that the one stream case still works */ |
| 223 | simple_request_body(f); |
| 224 | |
| 225 | /* start two requests - ensuring that the second is not accepted until |
| 226 | the first completes */ |
| 227 | deadline = five_seconds_time(); |
Julien Boeuf | 597a4f2 | 2015-02-23 15:57:14 -0800 | [diff] [blame] | 228 | c1 = grpc_channel_create_call_old(f.client, "/alpha", "foo.test.google.fr", |
Craig Tiller | a7cac78 | 2015-02-02 10:16:30 -0800 | [diff] [blame] | 229 | deadline); |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 230 | GPR_ASSERT(c1); |
Julien Boeuf | 597a4f2 | 2015-02-23 15:57:14 -0800 | [diff] [blame] | 231 | c2 = grpc_channel_create_call_old(f.client, "/beta", "foo.test.google.fr", |
Craig Tiller | a7cac78 | 2015-02-02 10:16:30 -0800 | [diff] [blame] | 232 | deadline); |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 233 | GPR_ASSERT(c1); |
| 234 | |
Craig Tiller | cce17ac | 2015-01-20 09:29:28 -0800 | [diff] [blame] | 235 | GPR_ASSERT(GRPC_CALL_OK == grpc_server_request_call_old(f.server, tag(100))); |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 236 | |
Craig Tiller | 40fc7a6 | 2015-01-13 16:11:58 -0800 | [diff] [blame] | 237 | GPR_ASSERT(GRPC_CALL_OK == |
Craig Tiller | a7cac78 | 2015-02-02 10:16:30 -0800 | [diff] [blame] | 238 | grpc_call_invoke_old(c1, f.client_cq, tag(301), tag(302), 0)); |
Craig Tiller | 40fc7a6 | 2015-01-13 16:11:58 -0800 | [diff] [blame] | 239 | GPR_ASSERT(GRPC_CALL_OK == |
Craig Tiller | a7cac78 | 2015-02-02 10:16:30 -0800 | [diff] [blame] | 240 | grpc_call_invoke_old(c2, f.client_cq, tag(401), tag(402), 0)); |
| 241 | GPR_ASSERT(GRPC_CALL_OK == grpc_call_writes_done_old(c1, tag(303))); |
Craig Tiller | e2d795a | 2015-02-25 15:00:21 -0800 | [diff] [blame] | 242 | GPR_ASSERT(GRPC_CALL_OK == grpc_call_writes_done_old(c2, tag(403))); |
Craig Tiller | 80fa15c | 2015-01-13 16:10:49 -0800 | [diff] [blame] | 243 | |
ctiller | 58393c2 | 2015-01-07 14:03:30 -0800 | [diff] [blame] | 244 | ev = grpc_completion_queue_next( |
| 245 | f.client_cq, gpr_time_add(gpr_now(), gpr_time_from_seconds(10))); |
| 246 | GPR_ASSERT(ev); |
Craig Tiller | 80fa15c | 2015-01-13 16:10:49 -0800 | [diff] [blame] | 247 | GPR_ASSERT(ev->type == GRPC_FINISH_ACCEPTED); |
ctiller | 58393c2 | 2015-01-07 14:03:30 -0800 | [diff] [blame] | 248 | GPR_ASSERT(ev->data.invoke_accepted == GRPC_OP_OK); |
| 249 | /* The /alpha or /beta calls started above could be invoked (but NOT both); |
| 250 | * check this here */ |
Craig Tiller | fc84e7b | 2015-01-13 16:49:44 -0800 | [diff] [blame] | 251 | /* We'll get tag 303 or 403, we want 300, 400 */ |
Craig Tiller | cce17ac | 2015-01-20 09:29:28 -0800 | [diff] [blame] | 252 | live_call = ((int)(gpr_intptr) ev->tag) - 3; |
ctiller | 58393c2 | 2015-01-07 14:03:30 -0800 | [diff] [blame] | 253 | grpc_event_finish(ev); |
| 254 | |
ctiller | 58393c2 | 2015-01-07 14:03:30 -0800 | [diff] [blame] | 255 | cq_expect_server_rpc_new(v_server, &s1, tag(100), |
| 256 | live_call == 300 ? "/alpha" : "/beta", |
Julien Boeuf | 597a4f2 | 2015-02-23 15:57:14 -0800 | [diff] [blame] | 257 | "foo.test.google.fr", deadline, NULL); |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 258 | cq_verify(v_server); |
| 259 | |
Craig Tiller | d7f2c2b | 2015-01-15 10:18:47 -0800 | [diff] [blame] | 260 | GPR_ASSERT(GRPC_CALL_OK == |
Craig Tiller | a7cac78 | 2015-02-02 10:16:30 -0800 | [diff] [blame] | 261 | grpc_call_server_accept_old(s1, f.server_cq, tag(102))); |
| 262 | GPR_ASSERT(GRPC_CALL_OK == grpc_call_server_end_initial_metadata_old(s1, 0)); |
ctiller | 58393c2 | 2015-01-07 14:03:30 -0800 | [diff] [blame] | 263 | cq_expect_client_metadata_read(v_client, tag(live_call + 1), NULL); |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 264 | cq_verify(v_client); |
| 265 | |
| 266 | GPR_ASSERT(GRPC_CALL_OK == |
Craig Tiller | a7cac78 | 2015-02-02 10:16:30 -0800 | [diff] [blame] | 267 | grpc_call_start_write_status_old(s1, GRPC_STATUS_UNIMPLEMENTED, |
| 268 | "xyz", tag(103))); |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 269 | cq_expect_finish_accepted(v_server, tag(103), GRPC_OP_OK); |
| 270 | cq_expect_finished(v_server, tag(102), NULL); |
| 271 | cq_verify(v_server); |
| 272 | |
| 273 | /* first request is finished, we should be able to start the second */ |
ctiller | 58393c2 | 2015-01-07 14:03:30 -0800 | [diff] [blame] | 274 | cq_expect_finished_with_status(v_client, tag(live_call + 2), |
| 275 | GRPC_STATUS_UNIMPLEMENTED, "xyz", NULL); |
Craig Tiller | bf44493 | 2015-01-13 17:13:08 -0800 | [diff] [blame] | 276 | live_call = (live_call == 300) ? 400 : 300; |
Craig Tiller | e2d795a | 2015-02-25 15:00:21 -0800 | [diff] [blame] | 277 | cq_expect_finish_accepted(v_client, tag(live_call + 3), GRPC_OP_OK); |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 278 | cq_verify(v_client); |
| 279 | |
Craig Tiller | cce17ac | 2015-01-20 09:29:28 -0800 | [diff] [blame] | 280 | GPR_ASSERT(GRPC_CALL_OK == grpc_server_request_call_old(f.server, tag(200))); |
ctiller | 58393c2 | 2015-01-07 14:03:30 -0800 | [diff] [blame] | 281 | cq_expect_server_rpc_new(v_server, &s2, tag(200), |
| 282 | live_call == 300 ? "/alpha" : "/beta", |
Julien Boeuf | 597a4f2 | 2015-02-23 15:57:14 -0800 | [diff] [blame] | 283 | "foo.test.google.fr", deadline, NULL); |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 284 | cq_verify(v_server); |
| 285 | |
Craig Tiller | d7f2c2b | 2015-01-15 10:18:47 -0800 | [diff] [blame] | 286 | GPR_ASSERT(GRPC_CALL_OK == |
Craig Tiller | a7cac78 | 2015-02-02 10:16:30 -0800 | [diff] [blame] | 287 | grpc_call_server_accept_old(s2, f.server_cq, tag(202))); |
| 288 | GPR_ASSERT(GRPC_CALL_OK == grpc_call_server_end_initial_metadata_old(s2, 0)); |
ctiller | 58393c2 | 2015-01-07 14:03:30 -0800 | [diff] [blame] | 289 | cq_expect_client_metadata_read(v_client, tag(live_call + 1), NULL); |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 290 | cq_verify(v_client); |
| 291 | |
| 292 | GPR_ASSERT(GRPC_CALL_OK == |
Craig Tiller | a7cac78 | 2015-02-02 10:16:30 -0800 | [diff] [blame] | 293 | grpc_call_start_write_status_old(s2, GRPC_STATUS_UNIMPLEMENTED, |
| 294 | "xyz", tag(203))); |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 295 | cq_expect_finish_accepted(v_server, tag(203), GRPC_OP_OK); |
| 296 | cq_expect_finished(v_server, tag(202), NULL); |
| 297 | cq_verify(v_server); |
| 298 | |
ctiller | 58393c2 | 2015-01-07 14:03:30 -0800 | [diff] [blame] | 299 | cq_expect_finished_with_status(v_client, tag(live_call + 2), |
| 300 | GRPC_STATUS_UNIMPLEMENTED, "xyz", NULL); |
Nicolas Noble | b7ebd3b | 2014-11-26 16:33:03 -0800 | [diff] [blame] | 301 | cq_verify(v_client); |
| 302 | |
| 303 | cq_verifier_destroy(v_client); |
| 304 | cq_verifier_destroy(v_server); |
| 305 | |
| 306 | grpc_call_destroy(c1); |
| 307 | grpc_call_destroy(s1); |
| 308 | grpc_call_destroy(c2); |
| 309 | grpc_call_destroy(s2); |
| 310 | |
| 311 | end_test(&f); |
| 312 | config.tear_down_data(&f); |
| 313 | } |
| 314 | |
| 315 | void grpc_end2end_tests(grpc_end2end_test_config config) { |
| 316 | test_max_concurrent_streams(config); |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 317 | } |