diff options
author | 2016-01-08 12:33:22 -0800 | |
---|---|---|
committer | 2016-01-08 12:33:22 -0800 | |
commit | 8b791a4a7f784fb367af6e56c2596c578e974338 (patch) | |
tree | ab7baa05c08aeac191768fadc766866434beb36b /test/core/end2end | |
parent | c357749b48720e00bce57c26acb2195047d63263 (diff) | |
parent | b47eab53dec9a6d811ad26e0873dc7ec1bac7d46 (diff) |
Merged from master and resolved merge conflicts
Diffstat (limited to 'test/core/end2end')
62 files changed, 697 insertions, 154 deletions
diff --git a/test/core/end2end/cq_verifier.c b/test/core/end2end/cq_verifier.c index 922de268f4..724d419a7a 100644 --- a/test/core/end2end/cq_verifier.c +++ b/test/core/end2end/cq_verifier.c @@ -110,7 +110,7 @@ int contains_metadata(grpc_metadata_array *array, const char *key, static gpr_slice merge_slices(gpr_slice *slices, size_t nslices) { size_t i; size_t len = 0; - gpr_uint8 *cursor; + uint8_t *cursor; gpr_slice out; for (i = 0; i < nslices; i++) { diff --git a/test/core/end2end/dualstack_socket_test.c b/test/core/end2end/dualstack_socket_test.c index e5ee7c4375..58e13a4098 100644 --- a/test/core/end2end/dualstack_socket_test.c +++ b/test/core/end2end/dualstack_socket_test.c @@ -49,7 +49,7 @@ /* This test exercises IPv4, IPv6, and dualstack sockets in various ways. */ -static void *tag(gpr_intptr i) { return (void *)i; } +static void *tag(intptr_t i) { return (void *)i; } static gpr_timespec ms_from_now(int ms) { return GRPC_TIMEOUT_MILLIS_TO_DEADLINE(ms); diff --git a/test/core/end2end/end2end_nosec_tests.c b/test/core/end2end/end2end_nosec_tests.c new file mode 100644 index 0000000000..d9df5fd7f0 --- /dev/null +++ b/test/core/end2end/end2end_nosec_tests.c @@ -0,0 +1,264 @@ + +/* + * + * Copyright 2015-2016, Google Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following disclaimer + * in the documentation and/or other materials provided with the + * distribution. + * * Neither the name of Google Inc. nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +/* This file is auto-generated */ + +#include "test/core/end2end/end2end_tests.h" +#include <string.h> +#include <grpc/support/log.h> + +extern void bad_hostname(grpc_end2end_test_config config); +extern void binary_metadata(grpc_end2end_test_config config); +extern void cancel_after_accept(grpc_end2end_test_config config); +extern void cancel_after_client_done(grpc_end2end_test_config config); +extern void cancel_after_invoke(grpc_end2end_test_config config); +extern void cancel_before_invoke(grpc_end2end_test_config config); +extern void cancel_in_a_vacuum(grpc_end2end_test_config config); +extern void cancel_with_status(grpc_end2end_test_config config); +extern void channel_connectivity(grpc_end2end_test_config config); +extern void channel_ping(grpc_end2end_test_config config); +extern void compressed_payload(grpc_end2end_test_config config); +extern void default_host(grpc_end2end_test_config config); +extern void disappearing_server(grpc_end2end_test_config config); +extern void empty_batch(grpc_end2end_test_config config); +extern void graceful_server_shutdown(grpc_end2end_test_config config); +extern void high_initial_seqno(grpc_end2end_test_config config); +extern void hpack_size(grpc_end2end_test_config config); +extern void invoke_large_request(grpc_end2end_test_config config); +extern void large_metadata(grpc_end2end_test_config config); +extern void max_concurrent_streams(grpc_end2end_test_config config); +extern void max_message_length(grpc_end2end_test_config config); +extern void metadata(grpc_end2end_test_config config); +extern void negative_deadline(grpc_end2end_test_config config); +extern void no_op(grpc_end2end_test_config config); +extern void payload(grpc_end2end_test_config config); +extern void ping_pong_streaming(grpc_end2end_test_config config); +extern void registered_call(grpc_end2end_test_config config); +extern void request_with_flags(grpc_end2end_test_config config); +extern void request_with_payload(grpc_end2end_test_config config); +extern void server_finishes_request(grpc_end2end_test_config config); +extern void shutdown_finishes_calls(grpc_end2end_test_config config); +extern void shutdown_finishes_tags(grpc_end2end_test_config config); +extern void simple_delayed_request(grpc_end2end_test_config config); +extern void simple_request(grpc_end2end_test_config config); +extern void trailing_metadata(grpc_end2end_test_config config); + +void grpc_end2end_tests(int argc, char **argv, + grpc_end2end_test_config config) { + int i; + + if (argc <= 1) { + bad_hostname(config); + binary_metadata(config); + cancel_after_accept(config); + cancel_after_client_done(config); + cancel_after_invoke(config); + cancel_before_invoke(config); + cancel_in_a_vacuum(config); + cancel_with_status(config); + channel_connectivity(config); + channel_ping(config); + compressed_payload(config); + default_host(config); + disappearing_server(config); + empty_batch(config); + graceful_server_shutdown(config); + high_initial_seqno(config); + hpack_size(config); + invoke_large_request(config); + large_metadata(config); + max_concurrent_streams(config); + max_message_length(config); + metadata(config); + negative_deadline(config); + no_op(config); + payload(config); + ping_pong_streaming(config); + registered_call(config); + request_with_flags(config); + request_with_payload(config); + server_finishes_request(config); + shutdown_finishes_calls(config); + shutdown_finishes_tags(config); + simple_delayed_request(config); + simple_request(config); + trailing_metadata(config); + return; + } + + for (i = 1; i < argc; i++) { + if (0 == strcmp("bad_hostname", argv[i])) { + bad_hostname(config); + continue; + } + if (0 == strcmp("binary_metadata", argv[i])) { + binary_metadata(config); + continue; + } + if (0 == strcmp("cancel_after_accept", argv[i])) { + cancel_after_accept(config); + continue; + } + if (0 == strcmp("cancel_after_client_done", argv[i])) { + cancel_after_client_done(config); + continue; + } + if (0 == strcmp("cancel_after_invoke", argv[i])) { + cancel_after_invoke(config); + continue; + } + if (0 == strcmp("cancel_before_invoke", argv[i])) { + cancel_before_invoke(config); + continue; + } + if (0 == strcmp("cancel_in_a_vacuum", argv[i])) { + cancel_in_a_vacuum(config); + continue; + } + if (0 == strcmp("cancel_with_status", argv[i])) { + cancel_with_status(config); + continue; + } + if (0 == strcmp("channel_connectivity", argv[i])) { + channel_connectivity(config); + continue; + } + if (0 == strcmp("channel_ping", argv[i])) { + channel_ping(config); + continue; + } + if (0 == strcmp("compressed_payload", argv[i])) { + compressed_payload(config); + continue; + } + if (0 == strcmp("default_host", argv[i])) { + default_host(config); + continue; + } + if (0 == strcmp("disappearing_server", argv[i])) { + disappearing_server(config); + continue; + } + if (0 == strcmp("empty_batch", argv[i])) { + empty_batch(config); + continue; + } + if (0 == strcmp("graceful_server_shutdown", argv[i])) { + graceful_server_shutdown(config); + continue; + } + if (0 == strcmp("high_initial_seqno", argv[i])) { + high_initial_seqno(config); + continue; + } + if (0 == strcmp("hpack_size", argv[i])) { + hpack_size(config); + continue; + } + if (0 == strcmp("invoke_large_request", argv[i])) { + invoke_large_request(config); + continue; + } + if (0 == strcmp("large_metadata", argv[i])) { + large_metadata(config); + continue; + } + if (0 == strcmp("max_concurrent_streams", argv[i])) { + max_concurrent_streams(config); + continue; + } + if (0 == strcmp("max_message_length", argv[i])) { + max_message_length(config); + continue; + } + if (0 == strcmp("metadata", argv[i])) { + metadata(config); + continue; + } + if (0 == strcmp("negative_deadline", argv[i])) { + negative_deadline(config); + continue; + } + if (0 == strcmp("no_op", argv[i])) { + no_op(config); + continue; + } + if (0 == strcmp("payload", argv[i])) { + payload(config); + continue; + } + if (0 == strcmp("ping_pong_streaming", argv[i])) { + ping_pong_streaming(config); + continue; + } + if (0 == strcmp("registered_call", argv[i])) { + registered_call(config); + continue; + } + if (0 == strcmp("request_with_flags", argv[i])) { + request_with_flags(config); + continue; + } + if (0 == strcmp("request_with_payload", argv[i])) { + request_with_payload(config); + continue; + } + if (0 == strcmp("server_finishes_request", argv[i])) { + server_finishes_request(config); + continue; + } + if (0 == strcmp("shutdown_finishes_calls", argv[i])) { + shutdown_finishes_calls(config); + continue; + } + if (0 == strcmp("shutdown_finishes_tags", argv[i])) { + shutdown_finishes_tags(config); + continue; + } + if (0 == strcmp("simple_delayed_request", argv[i])) { + simple_delayed_request(config); + continue; + } + if (0 == strcmp("simple_request", argv[i])) { + simple_request(config); + continue; + } + if (0 == strcmp("trailing_metadata", argv[i])) { + trailing_metadata(config); + continue; + } + gpr_log(GPR_DEBUG, "not a test: '%%s'", argv[i]); + abort(); + } +} diff --git a/test/core/end2end/end2end_tests.c b/test/core/end2end/end2end_tests.c new file mode 100644 index 0000000000..7b1471eb89 --- /dev/null +++ b/test/core/end2end/end2end_tests.c @@ -0,0 +1,270 @@ + +/* + * + * Copyright 2015-2016, Google Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following disclaimer + * in the documentation and/or other materials provided with the + * distribution. + * * Neither the name of Google Inc. nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +/* This file is auto-generated */ + +#include "test/core/end2end/end2end_tests.h" +#include <string.h> +#include <grpc/support/log.h> + +extern void bad_hostname(grpc_end2end_test_config config); +extern void binary_metadata(grpc_end2end_test_config config); +extern void call_creds(grpc_end2end_test_config config); +extern void cancel_after_accept(grpc_end2end_test_config config); +extern void cancel_after_client_done(grpc_end2end_test_config config); +extern void cancel_after_invoke(grpc_end2end_test_config config); +extern void cancel_before_invoke(grpc_end2end_test_config config); +extern void cancel_in_a_vacuum(grpc_end2end_test_config config); +extern void cancel_with_status(grpc_end2end_test_config config); +extern void channel_connectivity(grpc_end2end_test_config config); +extern void channel_ping(grpc_end2end_test_config config); +extern void compressed_payload(grpc_end2end_test_config config); +extern void default_host(grpc_end2end_test_config config); +extern void disappearing_server(grpc_end2end_test_config config); +extern void empty_batch(grpc_end2end_test_config config); +extern void graceful_server_shutdown(grpc_end2end_test_config config); +extern void high_initial_seqno(grpc_end2end_test_config config); +extern void hpack_size(grpc_end2end_test_config config); +extern void invoke_large_request(grpc_end2end_test_config config); +extern void large_metadata(grpc_end2end_test_config config); +extern void max_concurrent_streams(grpc_end2end_test_config config); +extern void max_message_length(grpc_end2end_test_config config); +extern void metadata(grpc_end2end_test_config config); +extern void negative_deadline(grpc_end2end_test_config config); +extern void no_op(grpc_end2end_test_config config); +extern void payload(grpc_end2end_test_config config); +extern void ping_pong_streaming(grpc_end2end_test_config config); +extern void registered_call(grpc_end2end_test_config config); +extern void request_with_flags(grpc_end2end_test_config config); +extern void request_with_payload(grpc_end2end_test_config config); +extern void server_finishes_request(grpc_end2end_test_config config); +extern void shutdown_finishes_calls(grpc_end2end_test_config config); +extern void shutdown_finishes_tags(grpc_end2end_test_config config); +extern void simple_delayed_request(grpc_end2end_test_config config); +extern void simple_request(grpc_end2end_test_config config); +extern void trailing_metadata(grpc_end2end_test_config config); + +void grpc_end2end_tests(int argc, char **argv, + grpc_end2end_test_config config) { + int i; + + if (argc <= 1) { + bad_hostname(config); + binary_metadata(config); + call_creds(config); + cancel_after_accept(config); + cancel_after_client_done(config); + cancel_after_invoke(config); + cancel_before_invoke(config); + cancel_in_a_vacuum(config); + cancel_with_status(config); + channel_connectivity(config); + channel_ping(config); + compressed_payload(config); + default_host(config); + disappearing_server(config); + empty_batch(config); + graceful_server_shutdown(config); + high_initial_seqno(config); + hpack_size(config); + invoke_large_request(config); + large_metadata(config); + max_concurrent_streams(config); + max_message_length(config); + metadata(config); + negative_deadline(config); + no_op(config); + payload(config); + ping_pong_streaming(config); + registered_call(config); + request_with_flags(config); + request_with_payload(config); + server_finishes_request(config); + shutdown_finishes_calls(config); + shutdown_finishes_tags(config); + simple_delayed_request(config); + simple_request(config); + trailing_metadata(config); + return; + } + + for (i = 1; i < argc; i++) { + if (0 == strcmp("bad_hostname", argv[i])) { + bad_hostname(config); + continue; + } + if (0 == strcmp("binary_metadata", argv[i])) { + binary_metadata(config); + continue; + } + if (0 == strcmp("call_creds", argv[i])) { + call_creds(config); + continue; + } + if (0 == strcmp("cancel_after_accept", argv[i])) { + cancel_after_accept(config); + continue; + } + if (0 == strcmp("cancel_after_client_done", argv[i])) { + cancel_after_client_done(config); + continue; + } + if (0 == strcmp("cancel_after_invoke", argv[i])) { + cancel_after_invoke(config); + continue; + } + if (0 == strcmp("cancel_before_invoke", argv[i])) { + cancel_before_invoke(config); + continue; + } + if (0 == strcmp("cancel_in_a_vacuum", argv[i])) { + cancel_in_a_vacuum(config); + continue; + } + if (0 == strcmp("cancel_with_status", argv[i])) { + cancel_with_status(config); + continue; + } + if (0 == strcmp("channel_connectivity", argv[i])) { + channel_connectivity(config); + continue; + } + if (0 == strcmp("channel_ping", argv[i])) { + channel_ping(config); + continue; + } + if (0 == strcmp("compressed_payload", argv[i])) { + compressed_payload(config); + continue; + } + if (0 == strcmp("default_host", argv[i])) { + default_host(config); + continue; + } + if (0 == strcmp("disappearing_server", argv[i])) { + disappearing_server(config); + continue; + } + if (0 == strcmp("empty_batch", argv[i])) { + empty_batch(config); + continue; + } + if (0 == strcmp("graceful_server_shutdown", argv[i])) { + graceful_server_shutdown(config); + continue; + } + if (0 == strcmp("high_initial_seqno", argv[i])) { + high_initial_seqno(config); + continue; + } + if (0 == strcmp("hpack_size", argv[i])) { + hpack_size(config); + continue; + } + if (0 == strcmp("invoke_large_request", argv[i])) { + invoke_large_request(config); + continue; + } + if (0 == strcmp("large_metadata", argv[i])) { + large_metadata(config); + continue; + } + if (0 == strcmp("max_concurrent_streams", argv[i])) { + max_concurrent_streams(config); + continue; + } + if (0 == strcmp("max_message_length", argv[i])) { + max_message_length(config); + continue; + } + if (0 == strcmp("metadata", argv[i])) { + metadata(config); + continue; + } + if (0 == strcmp("negative_deadline", argv[i])) { + negative_deadline(config); + continue; + } + if (0 == strcmp("no_op", argv[i])) { + no_op(config); + continue; + } + if (0 == strcmp("payload", argv[i])) { + payload(config); + continue; + } + if (0 == strcmp("ping_pong_streaming", argv[i])) { + ping_pong_streaming(config); + continue; + } + if (0 == strcmp("registered_call", argv[i])) { + registered_call(config); + continue; + } + if (0 == strcmp("request_with_flags", argv[i])) { + request_with_flags(config); + continue; + } + if (0 == strcmp("request_with_payload", argv[i])) { + request_with_payload(config); + continue; + } + if (0 == strcmp("server_finishes_request", argv[i])) { + server_finishes_request(config); + continue; + } + if (0 == strcmp("shutdown_finishes_calls", argv[i])) { + shutdown_finishes_calls(config); + continue; + } + if (0 == strcmp("shutdown_finishes_tags", argv[i])) { + shutdown_finishes_tags(config); + continue; + } + if (0 == strcmp("simple_delayed_request", argv[i])) { + simple_delayed_request(config); + continue; + } + if (0 == strcmp("simple_request", argv[i])) { + simple_request(config); + continue; + } + if (0 == strcmp("trailing_metadata", argv[i])) { + trailing_metadata(config); + continue; + } + gpr_log(GPR_DEBUG, "not a test: '%%s'", argv[i]); + abort(); + } +} diff --git a/test/core/end2end/end2end_tests.h b/test/core/end2end/end2end_tests.h index 3f1665613c..bc44f43a17 100644 --- a/test/core/end2end/end2end_tests.h +++ b/test/core/end2end/end2end_tests.h @@ -54,7 +54,7 @@ struct grpc_end2end_test_fixture { struct grpc_end2end_test_config { const char *name; - gpr_uint32 feature_mask; + uint32_t feature_mask; grpc_end2end_test_fixture (*create_fixture)(grpc_channel_args *client_args, grpc_channel_args *server_args); void (*init_client)(grpc_end2end_test_fixture *f, @@ -64,6 +64,6 @@ struct grpc_end2end_test_config { void (*tear_down_data)(grpc_end2end_test_fixture *f); }; -void grpc_end2end_tests(grpc_end2end_test_config config); +void grpc_end2end_tests(int argc, char **argv, grpc_end2end_test_config config); #endif /* GRPC_TEST_CORE_END2END_END2END_TESTS_H */ diff --git a/test/core/end2end/fixtures/h2_census.c b/test/core/end2end/fixtures/h2_census.c index 90f3713cc8..e74c9ae243 100644 --- a/test/core/end2end/fixtures/h2_census.c +++ b/test/core/end2end/fixtures/h2_census.c @@ -123,7 +123,7 @@ int main(int argc, char **argv) { grpc_init(); for (i = 0; i < sizeof(configs) / sizeof(*configs); i++) { - grpc_end2end_tests(configs[i]); + grpc_end2end_tests(argc, argv, configs[i]); } grpc_shutdown(); diff --git a/test/core/end2end/fixtures/h2_compress.c b/test/core/end2end/fixtures/h2_compress.c index 6e7a1faf55..fea8a4f751 100644 --- a/test/core/end2end/fixtures/h2_compress.c +++ b/test/core/end2end/fixtures/h2_compress.c @@ -127,7 +127,7 @@ int main(int argc, char **argv) { grpc_init(); for (i = 0; i < sizeof(configs) / sizeof(*configs); i++) { - grpc_end2end_tests(configs[i]); + grpc_end2end_tests(argc, argv, configs[i]); } grpc_shutdown(); diff --git a/test/core/end2end/fixtures/h2_fakesec.c b/test/core/end2end/fixtures/h2_fakesec.c index bc009e1df1..2767f1df4a 100644 --- a/test/core/end2end/fixtures/h2_fakesec.c +++ b/test/core/end2end/fixtures/h2_fakesec.c @@ -154,7 +154,7 @@ int main(int argc, char **argv) { grpc_init(); for (i = 0; i < sizeof(configs) / sizeof(*configs); i++) { - grpc_end2end_tests(configs[i]); + grpc_end2end_tests(argc, argv, configs[i]); } grpc_shutdown(); diff --git a/test/core/end2end/fixtures/h2_full+pipe.c b/test/core/end2end/fixtures/h2_full+pipe.c index 83cde49305..4b93581899 100644 --- a/test/core/end2end/fixtures/h2_full+pipe.c +++ b/test/core/end2end/fixtures/h2_full+pipe.c @@ -111,7 +111,7 @@ int main(int argc, char **argv) { grpc_init(); for (i = 0; i < sizeof(configs) / sizeof(*configs); i++) { - grpc_end2end_tests(configs[i]); + grpc_end2end_tests(argc, argv, configs[i]); } grpc_shutdown(); diff --git a/test/core/end2end/fixtures/h2_full+poll+pipe.c b/test/core/end2end/fixtures/h2_full+poll+pipe.c index ffae11f90d..d475a7bb55 100644 --- a/test/core/end2end/fixtures/h2_full+poll+pipe.c +++ b/test/core/end2end/fixtures/h2_full+poll+pipe.c @@ -111,7 +111,7 @@ int main(int argc, char **argv) { grpc_init(); for (i = 0; i < sizeof(configs) / sizeof(*configs); i++) { - grpc_end2end_tests(configs[i]); + grpc_end2end_tests(argc, argv, configs[i]); } grpc_shutdown(); diff --git a/test/core/end2end/fixtures/h2_full+poll.c b/test/core/end2end/fixtures/h2_full+poll.c index 48feefc931..3f5e6096f6 100644 --- a/test/core/end2end/fixtures/h2_full+poll.c +++ b/test/core/end2end/fixtures/h2_full+poll.c @@ -109,7 +109,7 @@ int main(int argc, char **argv) { grpc_init(); for (i = 0; i < sizeof(configs) / sizeof(*configs); i++) { - grpc_end2end_tests(configs[i]); + grpc_end2end_tests(argc, argv, configs[i]); } grpc_shutdown(); diff --git a/test/core/end2end/fixtures/h2_full.c b/test/core/end2end/fixtures/h2_full.c index 0170dcf0e5..ebaa1c6a2c 100644 --- a/test/core/end2end/fixtures/h2_full.c +++ b/test/core/end2end/fixtures/h2_full.c @@ -108,7 +108,7 @@ int main(int argc, char **argv) { grpc_init(); for (i = 0; i < sizeof(configs) / sizeof(*configs); i++) { - grpc_end2end_tests(configs[i]); + grpc_end2end_tests(argc, argv, configs[i]); } grpc_shutdown(); diff --git a/test/core/end2end/fixtures/h2_oauth2.c b/test/core/end2end/fixtures/h2_oauth2.c index 7a34cc67d8..e2c82917ef 100644 --- a/test/core/end2end/fixtures/h2_oauth2.c +++ b/test/core/end2end/fixtures/h2_oauth2.c @@ -230,7 +230,7 @@ int main(int argc, char **argv) { grpc_init(); for (i = 0; i < sizeof(configs) / sizeof(*configs); i++) { - grpc_end2end_tests(configs[i]); + grpc_end2end_tests(argc, argv, configs[i]); } grpc_shutdown(); diff --git a/test/core/end2end/fixtures/h2_proxy.c b/test/core/end2end/fixtures/h2_proxy.c index 44083e2676..8bcc1b6ee0 100644 --- a/test/core/end2end/fixtures/h2_proxy.c +++ b/test/core/end2end/fixtures/h2_proxy.c @@ -123,7 +123,7 @@ int main(int argc, char **argv) { grpc_init(); for (i = 0; i < sizeof(configs) / sizeof(*configs); i++) { - grpc_end2end_tests(configs[i]); + grpc_end2end_tests(argc, argv, configs[i]); } grpc_shutdown(); diff --git a/test/core/end2end/fixtures/h2_sockpair+trace.c b/test/core/end2end/fixtures/h2_sockpair+trace.c index ccc8631d94..511c8b1a46 100644 --- a/test/core/end2end/fixtures/h2_sockpair+trace.c +++ b/test/core/end2end/fixtures/h2_sockpair+trace.c @@ -169,7 +169,7 @@ int main(int argc, char **argv) { GPR_ASSERT(1 == grpc_tracer_set_enabled("all", 1)); for (i = 0; i < sizeof(configs) / sizeof(*configs); i++) { - grpc_end2end_tests(configs[i]); + grpc_end2end_tests(argc, argv, configs[i]); } grpc_shutdown(); diff --git a/test/core/end2end/fixtures/h2_sockpair.c b/test/core/end2end/fixtures/h2_sockpair.c index a6a84c9b1a..6b4787b1e5 100644 --- a/test/core/end2end/fixtures/h2_sockpair.c +++ b/test/core/end2end/fixtures/h2_sockpair.c @@ -153,7 +153,7 @@ int main(int argc, char **argv) { grpc_init(); for (i = 0; i < sizeof(configs) / sizeof(*configs); i++) { - grpc_end2end_tests(configs[i]); + grpc_end2end_tests(argc, argv, configs[i]); } grpc_shutdown(); diff --git a/test/core/end2end/fixtures/h2_sockpair_1byte.c b/test/core/end2end/fixtures/h2_sockpair_1byte.c index 4b8f9054ef..3ae8e96683 100644 --- a/test/core/end2end/fixtures/h2_sockpair_1byte.c +++ b/test/core/end2end/fixtures/h2_sockpair_1byte.c @@ -153,7 +153,7 @@ int main(int argc, char **argv) { grpc_init(); for (i = 0; i < sizeof(configs) / sizeof(*configs); i++) { - grpc_end2end_tests(configs[i]); + grpc_end2end_tests(argc, argv, configs[i]); } grpc_shutdown(); diff --git a/test/core/end2end/fixtures/h2_ssl+poll.c b/test/core/end2end/fixtures/h2_ssl+poll.c index 37e1758f00..614654ed52 100644 --- a/test/core/end2end/fixtures/h2_ssl+poll.c +++ b/test/core/end2end/fixtures/h2_ssl+poll.c @@ -179,7 +179,7 @@ int main(int argc, char **argv) { grpc_init(); for (i = 0; i < sizeof(configs) / sizeof(*configs); i++) { - grpc_end2end_tests(configs[i]); + grpc_end2end_tests(argc, argv, configs[i]); } grpc_shutdown(); diff --git a/test/core/end2end/fixtures/h2_ssl.c b/test/core/end2end/fixtures/h2_ssl.c index f5a006bd08..5c63dfb6aa 100644 --- a/test/core/end2end/fixtures/h2_ssl.c +++ b/test/core/end2end/fixtures/h2_ssl.c @@ -176,7 +176,7 @@ int main(int argc, char **argv) { grpc_init(); for (i = 0; i < sizeof(configs) / sizeof(*configs); i++) { - grpc_end2end_tests(configs[i]); + grpc_end2end_tests(argc, argv, configs[i]); } grpc_shutdown(); diff --git a/test/core/end2end/fixtures/h2_ssl_proxy.c b/test/core/end2end/fixtures/h2_ssl_proxy.c index 7233cdbe2d..a93bd83a1f 100644 --- a/test/core/end2end/fixtures/h2_ssl_proxy.c +++ b/test/core/end2end/fixtures/h2_ssl_proxy.c @@ -206,7 +206,7 @@ int main(int argc, char **argv) { grpc_init(); for (i = 0; i < sizeof(configs) / sizeof(*configs); i++) { - grpc_end2end_tests(configs[i]); + grpc_end2end_tests(argc, argv, configs[i]); } grpc_shutdown(); diff --git a/test/core/end2end/fixtures/h2_uchannel.c b/test/core/end2end/fixtures/h2_uchannel.c index ea630c3275..9b622e80d6 100644 --- a/test/core/end2end/fixtures/h2_uchannel.c +++ b/test/core/end2end/fixtures/h2_uchannel.c @@ -348,7 +348,7 @@ int main(int argc, char **argv) { grpc_init(); for (i = 0; i < sizeof(configs) / sizeof(*configs); i++) { - grpc_end2end_tests(configs[i]); + grpc_end2end_tests(argc, argv, configs[i]); } grpc_shutdown(); diff --git a/test/core/end2end/fixtures/h2_uds+poll.c b/test/core/end2end/fixtures/h2_uds+poll.c index 05b9ea0949..155017c887 100644 --- a/test/core/end2end/fixtures/h2_uds+poll.c +++ b/test/core/end2end/fixtures/h2_uds+poll.c @@ -115,7 +115,7 @@ int main(int argc, char **argv) { grpc_init(); for (i = 0; i < sizeof(configs) / sizeof(*configs); i++) { - grpc_end2end_tests(configs[i]); + grpc_end2end_tests(argc, argv, configs[i]); } grpc_shutdown(); diff --git a/test/core/end2end/fixtures/h2_uds.c b/test/core/end2end/fixtures/h2_uds.c index 59d39bbb0f..30928270e5 100644 --- a/test/core/end2end/fixtures/h2_uds.c +++ b/test/core/end2end/fixtures/h2_uds.c @@ -113,7 +113,7 @@ int main(int argc, char **argv) { grpc_init(); for (i = 0; i < sizeof(configs) / sizeof(*configs); i++) { - grpc_end2end_tests(configs[i]); + grpc_end2end_tests(argc, argv, configs[i]); } grpc_shutdown(); diff --git a/test/core/end2end/gen_build_yaml.py b/test/core/end2end/gen_build_yaml.py index 9f94cfe6be..6a4038da73 100755 --- a/test/core/end2end/gen_build_yaml.py +++ b/test/core/end2end/gen_build_yaml.py @@ -77,8 +77,8 @@ END2END_FIXTURES = { } TestOptions = collections.namedtuple( - 'TestOptions', 'needs_fullstack needs_dns proxyable flaky secure traceable') -default_test_options = TestOptions(False, False, True, False, False, True) + 'TestOptions', 'needs_fullstack needs_dns proxyable secure traceable') +default_test_options = TestOptions(False, False, True, False, True) connectivity_test_options = default_test_options._replace(needs_fullstack=True) # maps test names to options @@ -164,56 +164,33 @@ def main(): '#': 'generated with test/end2end/gen_build_json.py', 'libs': [ { - 'name': 'end2end_fixture_%s' % f, + 'name': 'end2end_tests', 'build': 'private', 'language': 'c', - 'secure': 'check' if END2END_FIXTURES[f].secure else False, - 'src': ['test/core/end2end/fixtures/%s.c' % f], - 'platforms': ['linux', 'mac', 'posix'] if f.endswith('_posix') - else END2END_FIXTURES[f].platforms, - 'deps': sec_deps, - 'headers': ['test/core/end2end/end2end_tests.h'], - 'vs_proj_dir': 'test', - } for f in sorted(END2END_FIXTURES.keys()) - ] + [ - { - 'name': 'end2end_nosec_fixture_%s' % f, - 'build': 'private', - 'language': 'c', - 'secure': False, - 'src': ['test/core/end2end/fixtures/%s.c' % f], - 'platforms': ['linux', 'mac', 'posix'] if f.endswith('_posix') - else END2END_FIXTURES[f].platforms, - 'deps': unsec_deps, - 'headers': ['test/core/end2end/end2end_tests.h'], - 'vs_proj_dir': 'test', - } for f in sorted(END2END_FIXTURES.keys()) - if not END2END_FIXTURES[f].secure - ] + [ - { - 'name': 'end2end_test_%s' % t, - 'build': 'private', - 'language': 'c', - 'secure': 'check' if END2END_TESTS[t].secure else False, - 'src': ['test/core/end2end/tests/%s.c' % t], + 'secure': True, + 'src': ['test/core/end2end/end2end_tests.c'] + [ + 'test/core/end2end/tests/%s.c' % t + for t in sorted(END2END_TESTS.keys())], 'headers': ['test/core/end2end/tests/cancel_test_helpers.h', 'test/core/end2end/end2end_tests.h'], 'deps': sec_deps, - 'vs_proj_dir': 'test', - } for t in sorted(END2END_TESTS.keys()) + 'vs_proj_dir': 'test/end2end/tests', + } ] + [ { - 'name': 'end2end_nosec_test_%s' % t, + 'name': 'end2end_nosec_tests', 'build': 'private', 'language': 'c', 'secure': False, - 'src': ['test/core/end2end/tests/%s.c' % t], + 'src': ['test/core/end2end/end2end_nosec_tests.c'] + [ + 'test/core/end2end/tests/%s.c' % t + for t in sorted(END2END_TESTS.keys()) + if not END2END_TESTS[t].secure], 'headers': ['test/core/end2end/tests/cancel_test_helpers.h', 'test/core/end2end/end2end_tests.h'], 'deps': unsec_deps, - 'vs_proj_dir': 'test', - } for t in sorted(END2END_TESTS.keys()) - if not END2END_TESTS[t].secure + 'vs_proj_dir': 'test/end2end/tests', + } ] + [ { 'name': 'end2end_certs', @@ -224,49 +201,81 @@ def main(): "test/core/end2end/data/server1_cert.c", "test/core/end2end/data/server1_key.c" ], - 'vs_proj_dir': 'test', + 'vs_proj_dir': 'test/end2end', } ], 'targets': [ { - 'name': '%s_%s_test' % (f, t), + 'name': '%s_test' % f, 'build': 'test', 'language': 'c', - 'src': [], - 'flaky': END2END_TESTS[t].flaky, + 'run': False, + 'src': ['test/core/end2end/fixtures/%s.c' % f], 'platforms': END2END_FIXTURES[f].platforms, 'ci_platforms': (END2END_FIXTURES[f].platforms if END2END_FIXTURES[f].ci_mac else without( END2END_FIXTURES[f].platforms, 'mac')), 'deps': [ - 'end2end_fixture_%s' % f, 'end2end_test_%s' % t + 'end2end_tests' ] + sec_deps, - 'vs_proj_dir': 'test', + 'vs_proj_dir': 'test/end2end/fixtures', } for f in sorted(END2END_FIXTURES.keys()) - for t in sorted(END2END_TESTS.keys()) if compatible(f, t) ] + [ { - 'name': '%s_%s_nosec_test' % (f, t), + 'name': '%s_nosec_test' % f, 'build': 'test', 'language': 'c', 'secure': 'no', - 'src': [], - 'flaky': END2END_TESTS[t].flaky, + 'src': ['test/core/end2end/fixtures/%s.c' % f], + 'run': False, 'platforms': END2END_FIXTURES[f].platforms, 'ci_platforms': (END2END_FIXTURES[f].platforms if END2END_FIXTURES[f].ci_mac else without( END2END_FIXTURES[f].platforms, 'mac')), 'deps': [ - 'end2end_nosec_fixture_%s' % f, 'end2end_nosec_test_%s' % t + 'end2end_nosec_tests' ] + unsec_deps, - 'vs_proj_dir': 'test', + 'vs_proj_dir': 'test/end2end/fixtures', + } + for f in sorted(END2END_FIXTURES.keys()) + if not END2END_FIXTURES[f].secure + ], + 'tests': [ + { + 'name': '%s_test' % f, + 'args': [t], + 'exclude_configs': [], + 'platforms': END2END_FIXTURES[f].platforms, + 'ci_platforms': (END2END_FIXTURES[f].platforms + if END2END_FIXTURES[f].ci_mac else without( + END2END_FIXTURES[f].platforms, 'mac')), + 'flaky': False, + 'language': 'c', + } + for f in sorted(END2END_FIXTURES.keys()) + for t in sorted(END2END_TESTS.keys()) if compatible(f, t) + ] + [ + { + 'name': '%s_test' % f, + 'args': [t], + 'exclude_configs': [], + 'platforms': END2END_FIXTURES[f].platforms, + 'ci_platforms': (END2END_FIXTURES[f].platforms + if END2END_FIXTURES[f].ci_mac else without( + END2END_FIXTURES[f].platforms, 'mac')), + 'flaky': False, + 'language': 'c', } for f in sorted(END2END_FIXTURES.keys()) if not END2END_FIXTURES[f].secure for t in sorted(END2END_TESTS.keys()) if compatible(f, t) and not END2END_TESTS[t].secure - ] + ], + 'core_end2end_tests': dict( + (t, END2END_TESTS[t].secure) + for t in END2END_TESTS.keys() + ) } print yaml.dump(json) diff --git a/test/core/end2end/invalid_call_argument_test.c b/test/core/end2end/invalid_call_argument_test.c index 1fd4c0145a..4029e96a41 100644 --- a/test/core/end2end/invalid_call_argument_test.c +++ b/test/core/end2end/invalid_call_argument_test.c @@ -39,7 +39,7 @@ #include "test/core/util/port.h" #include "test/core/util/test_config.h" -static void *tag(gpr_intptr i) { return (void *)i; } +static void *tag(intptr_t i) { return (void *)i; } struct test_state { int is_client; diff --git a/test/core/end2end/no_server_test.c b/test/core/end2end/no_server_test.c index 775fb221d0..5c971eac6a 100644 --- a/test/core/end2end/no_server_test.c +++ b/test/core/end2end/no_server_test.c @@ -37,7 +37,7 @@ #include "test/core/end2end/cq_verifier.h" #include "test/core/util/test_config.h" -static void *tag(gpr_intptr i) { return (void *)i; } +static void *tag(intptr_t i) { return (void *)i; } int main(int argc, char **argv) { grpc_channel *chan; diff --git a/test/core/end2end/tests/bad_hostname.c b/test/core/end2end/tests/bad_hostname.c index ca4c1a9805..14587389c7 100644 --- a/test/core/end2end/tests/bad_hostname.c +++ b/test/core/end2end/tests/bad_hostname.c @@ -47,7 +47,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -174,7 +174,7 @@ static void test_invoke_simple_request(grpc_end2end_test_config config) { config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void bad_hostname(grpc_end2end_test_config config) { if (config.feature_mask & FEATURE_MASK_SUPPORTS_HOSTNAME_VERIFICATION) { test_invoke_simple_request(config); } diff --git a/test/core/end2end/tests/binary_metadata.c b/test/core/end2end/tests/binary_metadata.c index e6404d6f51..4eccd16c4c 100644 --- a/test/core/end2end/tests/binary_metadata.c +++ b/test/core/end2end/tests/binary_metadata.c @@ -45,7 +45,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -284,6 +284,6 @@ static void test_request_response_with_metadata_and_payload( config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void binary_metadata(grpc_end2end_test_config config) { test_request_response_with_metadata_and_payload(config); } diff --git a/test/core/end2end/tests/call_creds.c b/test/core/end2end/tests/call_creds.c index bbfad21b62..c9d4251b68 100644 --- a/test/core/end2end/tests/call_creds.c +++ b/test/core/end2end/tests/call_creds.c @@ -55,7 +55,7 @@ typedef enum { NONE, OVERRIDE, DESTROY } override_mode; enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -467,7 +467,7 @@ static void test_request_with_server_rejecting_client_creds( config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void call_creds(grpc_end2end_test_config config) { if (config.feature_mask & FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS) { test_request_response_with_payload_and_call_creds(config); test_request_response_with_payload_and_overridden_call_creds(config); diff --git a/test/core/end2end/tests/cancel_after_accept.c b/test/core/end2end/tests/cancel_after_accept.c index 68bd4bc36e..4646bf7bca 100644 --- a/test/core/end2end/tests/cancel_after_accept.c +++ b/test/core/end2end/tests/cancel_after_accept.c @@ -46,7 +46,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -226,7 +226,7 @@ static void test_cancel_after_accept(grpc_end2end_test_config config, config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void cancel_after_accept(grpc_end2end_test_config config) { unsigned i; for (i = 0; i < GPR_ARRAY_SIZE(cancellation_modes); i++) { diff --git a/test/core/end2end/tests/cancel_after_client_done.c b/test/core/end2end/tests/cancel_after_client_done.c index 1e919ce19e..364598a76a 100644 --- a/test/core/end2end/tests/cancel_after_client_done.c +++ b/test/core/end2end/tests/cancel_after_client_done.c @@ -46,7 +46,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -230,7 +230,7 @@ static void test_cancel_after_accept_and_writes_closed( config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void cancel_after_client_done(grpc_end2end_test_config config) { unsigned i; for (i = 0; i < GPR_ARRAY_SIZE(cancellation_modes); i++) { diff --git a/test/core/end2end/tests/cancel_after_invoke.c b/test/core/end2end/tests/cancel_after_invoke.c index a84f9be14e..ec0b0dea4c 100644 --- a/test/core/end2end/tests/cancel_after_invoke.c +++ b/test/core/end2end/tests/cancel_after_invoke.c @@ -46,7 +46,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -190,7 +190,7 @@ static void test_cancel_after_invoke(grpc_end2end_test_config config, config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void cancel_after_invoke(grpc_end2end_test_config config) { unsigned i, j; for (j = 2; j < 6; j++) { diff --git a/test/core/end2end/tests/cancel_before_invoke.c b/test/core/end2end/tests/cancel_before_invoke.c index 61574df3d0..7b432fe87e 100644 --- a/test/core/end2end/tests/cancel_before_invoke.c +++ b/test/core/end2end/tests/cancel_before_invoke.c @@ -45,7 +45,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -188,7 +188,7 @@ static void test_cancel_before_invoke(grpc_end2end_test_config config, config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void cancel_before_invoke(grpc_end2end_test_config config) { size_t i; for (i = 1; i <= 6; i++) { test_cancel_before_invoke(config, i); diff --git a/test/core/end2end/tests/cancel_in_a_vacuum.c b/test/core/end2end/tests/cancel_in_a_vacuum.c index 6435d22ee9..214ab2b9e8 100644 --- a/test/core/end2end/tests/cancel_in_a_vacuum.c +++ b/test/core/end2end/tests/cancel_in_a_vacuum.c @@ -46,7 +46,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -120,7 +120,7 @@ static void test_cancel_in_a_vacuum(grpc_end2end_test_config config, config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void cancel_in_a_vacuum(grpc_end2end_test_config config) { unsigned i; for (i = 0; i < GPR_ARRAY_SIZE(cancellation_modes); i++) { diff --git a/test/core/end2end/tests/cancel_with_status.c b/test/core/end2end/tests/cancel_with_status.c index 2e36902a51..1541ca099f 100644 --- a/test/core/end2end/tests/cancel_with_status.c +++ b/test/core/end2end/tests/cancel_with_status.c @@ -47,7 +47,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -176,7 +176,7 @@ static void test_invoke_simple_request(grpc_end2end_test_config config, config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void cancel_with_status(grpc_end2end_test_config config) { size_t i; for (i = 1; i <= 4; i++) { test_invoke_simple_request(config, i); diff --git a/test/core/end2end/tests/channel_connectivity.c b/test/core/end2end/tests/channel_connectivity.c index 0e0ac03015..0e21e65557 100644 --- a/test/core/end2end/tests/channel_connectivity.c +++ b/test/core/end2end/tests/channel_connectivity.c @@ -40,7 +40,7 @@ #include "test/core/end2end/cq_verifier.h" -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } typedef struct { gpr_event started; @@ -168,7 +168,7 @@ static void test_connectivity(grpc_end2end_test_config config) { cq_verifier_destroy(cqv); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void channel_connectivity(grpc_end2end_test_config config) { GPR_ASSERT(config.feature_mask & FEATURE_MASK_SUPPORTS_DELAYED_CONNECTION); test_connectivity(config); } diff --git a/test/core/end2end/tests/channel_ping.c b/test/core/end2end/tests/channel_ping.c index 441e49ee7a..73fab206fb 100644 --- a/test/core/end2end/tests/channel_ping.c +++ b/test/core/end2end/tests/channel_ping.c @@ -40,7 +40,7 @@ #include "test/core/end2end/cq_verifier.h" -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static void test_ping(grpc_end2end_test_config config) { grpc_end2end_test_fixture f = config.create_fixture(NULL, NULL); @@ -91,7 +91,7 @@ static void test_ping(grpc_end2end_test_config config) { cq_verifier_destroy(cqv); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void channel_ping(grpc_end2end_test_config config) { GPR_ASSERT(config.feature_mask & FEATURE_MASK_SUPPORTS_DELAYED_CONNECTION); test_ping(config); } diff --git a/test/core/end2end/tests/compressed_payload.c b/test/core/end2end/tests/compressed_payload.c index 0d07110aef..33b1d8f9fe 100644 --- a/test/core/end2end/tests/compressed_payload.c +++ b/test/core/end2end/tests/compressed_payload.c @@ -50,7 +50,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -104,7 +104,7 @@ static void end_test(grpc_end2end_test_fixture *f) { static void request_with_payload_template( grpc_end2end_test_config config, const char *test_name, - gpr_uint32 send_flags_bitmask, + uint32_t send_flags_bitmask, grpc_compression_algorithm requested_compression_algorithm, grpc_compression_algorithm expected_compression_algorithm, grpc_metadata *client_metadata) { @@ -330,7 +330,7 @@ static void test_invoke_request_with_compressed_payload_md_override( GRPC_COMPRESS_DEFLATE, GRPC_COMPRESS_NONE, &none_compression_override); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void compressed_payload(grpc_end2end_test_config config) { test_invoke_request_with_exceptionally_uncompressed_payload(config); test_invoke_request_with_uncompressed_payload(config); test_invoke_request_with_compressed_payload(config); diff --git a/test/core/end2end/tests/default_host.c b/test/core/end2end/tests/default_host.c index fc06b8950d..dc3303436b 100644 --- a/test/core/end2end/tests/default_host.c +++ b/test/core/end2end/tests/default_host.c @@ -47,7 +47,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -225,7 +225,7 @@ static void test_invoke_simple_request(grpc_end2end_test_config config) { config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void default_host(grpc_end2end_test_config config) { if ((config.feature_mask & FEATURE_MASK_SUPPORTS_HOSTNAME_VERIFICATION) == 0) return; if ((config.feature_mask & FEATURE_MASK_SUPPORTS_DELAYED_CONNECTION) == 0) diff --git a/test/core/end2end/tests/disappearing_server.c b/test/core/end2end/tests/disappearing_server.c index de3ea16f66..5b2bbaf70c 100644 --- a/test/core/end2end/tests/disappearing_server.c +++ b/test/core/end2end/tests/disappearing_server.c @@ -45,7 +45,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static gpr_timespec n_seconds_time(int n) { return GRPC_TIMEOUT_SECONDS_TO_DEADLINE(n); @@ -209,7 +209,7 @@ static void disappearing_server_test(grpc_end2end_test_config config) { config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void disappearing_server(grpc_end2end_test_config config) { GPR_ASSERT(config.feature_mask & FEATURE_MASK_SUPPORTS_DELAYED_CONNECTION); disappearing_server_test(config); } diff --git a/test/core/end2end/tests/empty_batch.c b/test/core/end2end/tests/empty_batch.c index f331aa92e0..24320c0f32 100644 --- a/test/core/end2end/tests/empty_batch.c +++ b/test/core/end2end/tests/empty_batch.c @@ -47,7 +47,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -129,6 +129,6 @@ static void test_invoke_empty_body(grpc_end2end_test_config config) { config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void empty_batch(grpc_end2end_test_config config) { test_invoke_empty_body(config); } diff --git a/test/core/end2end/tests/graceful_server_shutdown.c b/test/core/end2end/tests/graceful_server_shutdown.c index 8efa5a34d0..cc6a9d44f8 100644 --- a/test/core/end2end/tests/graceful_server_shutdown.c +++ b/test/core/end2end/tests/graceful_server_shutdown.c @@ -45,7 +45,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -207,6 +207,6 @@ static void test_early_server_shutdown_finishes_inflight_calls( config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void graceful_server_shutdown(grpc_end2end_test_config config) { test_early_server_shutdown_finishes_inflight_calls(config); } diff --git a/test/core/end2end/tests/high_initial_seqno.c b/test/core/end2end/tests/high_initial_seqno.c index 399b6e2183..8d16ef5f5e 100644 --- a/test/core/end2end/tests/high_initial_seqno.c +++ b/test/core/end2end/tests/high_initial_seqno.c @@ -49,7 +49,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -231,7 +231,7 @@ static void test_invoke_10_simple_requests(grpc_end2end_test_config config, gpr_free(name); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void high_initial_seqno(grpc_end2end_test_config config) { test_invoke_10_simple_requests(config, 16777213); if (config.feature_mask & FEATURE_MASK_SUPPORTS_DELAYED_CONNECTION) { test_invoke_10_simple_requests(config, 2147483645); diff --git a/test/core/end2end/tests/hpack_size.c b/test/core/end2end/tests/hpack_size.c index f16883ecfd..fd4fe3419f 100644 --- a/test/core/end2end/tests/hpack_size.c +++ b/test/core/end2end/tests/hpack_size.c @@ -47,7 +47,7 @@ #include "src/core/support/string.h" #include "test/core/end2end/cq_verifier.h" -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } const char *hobbits[][2] = {{"Adaldrida", "Brandybuck"}, {"Adamanta", "Took"}, @@ -433,7 +433,7 @@ static void test_size(grpc_end2end_test_config config, int encode_size, gpr_free(name); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void hpack_size(grpc_end2end_test_config config) { static const int interesting_sizes[] = {4096, 0, 100, 1000, 32768, 4 * 1024 * 1024}; size_t i, j; diff --git a/test/core/end2end/tests/invoke_large_request.c b/test/core/end2end/tests/invoke_large_request.c index c612af91e3..f0b019821d 100644 --- a/test/core/end2end/tests/invoke_large_request.c +++ b/test/core/end2end/tests/invoke_large_request.c @@ -45,7 +45,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -251,6 +251,6 @@ static void test_invoke_large_request(grpc_end2end_test_config config) { config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void invoke_large_request(grpc_end2end_test_config config) { test_invoke_large_request(config); } diff --git a/test/core/end2end/tests/large_metadata.c b/test/core/end2end/tests/large_metadata.c index 763f75d59d..1b41e89b26 100644 --- a/test/core/end2end/tests/large_metadata.c +++ b/test/core/end2end/tests/large_metadata.c @@ -45,7 +45,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -242,6 +242,6 @@ static void test_request_with_large_metadata(grpc_end2end_test_config config) { config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void large_metadata(grpc_end2end_test_config config) { test_request_with_large_metadata(config); } diff --git a/test/core/end2end/tests/max_concurrent_streams.c b/test/core/end2end/tests/max_concurrent_streams.c index d39aabaf70..d6b2a06f9b 100644 --- a/test/core/end2end/tests/max_concurrent_streams.c +++ b/test/core/end2end/tests/max_concurrent_streams.c @@ -45,7 +45,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -348,7 +348,7 @@ static void test_max_concurrent_streams(grpc_end2end_test_config config) { * both); * check this here */ /* We'll get tag 303 or 403, we want 300, 400 */ - live_call = ((int)(gpr_intptr)ev.tag) - 1; + live_call = ((int)(intptr_t)ev.tag) - 1; got_client_start = 1; } } @@ -433,6 +433,6 @@ static void test_max_concurrent_streams(grpc_end2end_test_config config) { config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void max_concurrent_streams(grpc_end2end_test_config config) { test_max_concurrent_streams(config); } diff --git a/test/core/end2end/tests/max_message_length.c b/test/core/end2end/tests/max_message_length.c index c311f0a44e..59ab7f476c 100644 --- a/test/core/end2end/tests/max_message_length.c +++ b/test/core/end2end/tests/max_message_length.c @@ -45,7 +45,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -218,6 +218,6 @@ static void test_max_message_length(grpc_end2end_test_config config) { config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void max_message_length(grpc_end2end_test_config config) { test_max_message_length(config); } diff --git a/test/core/end2end/tests/metadata.c b/test/core/end2end/tests/metadata.c index 2593cde027..5e92091eb7 100644 --- a/test/core/end2end/tests/metadata.c +++ b/test/core/end2end/tests/metadata.c @@ -45,7 +45,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -260,6 +260,6 @@ static void test_request_response_with_metadata_and_payload( config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void metadata(grpc_end2end_test_config config) { test_request_response_with_metadata_and_payload(config); } diff --git a/test/core/end2end/tests/negative_deadline.c b/test/core/end2end/tests/negative_deadline.c index 23b8591e25..2109310634 100644 --- a/test/core/end2end/tests/negative_deadline.c +++ b/test/core/end2end/tests/negative_deadline.c @@ -47,7 +47,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -173,7 +173,7 @@ static void test_invoke_simple_request(grpc_end2end_test_config config, config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void negative_deadline(grpc_end2end_test_config config) { size_t i; for (i = 1; i <= 4; i++) { test_invoke_simple_request(config, i); diff --git a/test/core/end2end/tests/no_op.c b/test/core/end2end/tests/no_op.c index dbaad3004e..4bc1d631d1 100644 --- a/test/core/end2end/tests/no_op.c +++ b/test/core/end2end/tests/no_op.c @@ -45,7 +45,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -103,4 +103,4 @@ static void test_no_op(grpc_end2end_test_config config) { config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { test_no_op(config); } +void no_op(grpc_end2end_test_config config) { test_no_op(config); } diff --git a/test/core/end2end/tests/payload.c b/test/core/end2end/tests/payload.c index df44c0de1e..bc220cbdc9 100644 --- a/test/core/end2end/tests/payload.c +++ b/test/core/end2end/tests/payload.c @@ -45,7 +45,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -264,7 +264,7 @@ static void test_invoke_10_request_response_with_payload( config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void payload(grpc_end2end_test_config config) { test_invoke_request_response_with_payload(config); test_invoke_10_request_response_with_payload(config); } diff --git a/test/core/end2end/tests/ping_pong_streaming.c b/test/core/end2end/tests/ping_pong_streaming.c index 27180dd679..8351f508c5 100644 --- a/test/core/end2end/tests/ping_pong_streaming.c +++ b/test/core/end2end/tests/ping_pong_streaming.c @@ -45,7 +45,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -268,7 +268,7 @@ static void test_pingpong_streaming(grpc_end2end_test_config config, config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void ping_pong_streaming(grpc_end2end_test_config config) { int i; for (i = 1; i < 10; i++) { diff --git a/test/core/end2end/tests/registered_call.c b/test/core/end2end/tests/registered_call.c index ef4d5063b5..d9d2b19d12 100644 --- a/test/core/end2end/tests/registered_call.c +++ b/test/core/end2end/tests/registered_call.c @@ -47,7 +47,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -227,7 +227,7 @@ static void test_invoke_10_simple_requests(grpc_end2end_test_config config) { config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void registered_call(grpc_end2end_test_config config) { test_invoke_simple_request(config); test_invoke_10_simple_requests(config); } diff --git a/test/core/end2end/tests/request_with_flags.c b/test/core/end2end/tests/request_with_flags.c index 0ad5a4612e..340aba6cdb 100644 --- a/test/core/end2end/tests/request_with_flags.c +++ b/test/core/end2end/tests/request_with_flags.c @@ -46,7 +46,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -99,7 +99,7 @@ static void end_test(grpc_end2end_test_fixture *f) { } static void test_invoke_request_with_flags( - grpc_end2end_test_config config, gpr_uint32 *flags_for_op, + grpc_end2end_test_config config, uint32_t *flags_for_op, grpc_call_error call_start_batch_expected_result) { grpc_call *c; gpr_slice request_payload_slice = gpr_slice_from_copied_string("hello world"); @@ -185,9 +185,9 @@ static void test_invoke_request_with_flags( config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void request_with_flags(grpc_end2end_test_config config) { size_t i; - gpr_uint32 flags_for_op[GRPC_OP_RECV_CLOSE_ON_SERVER + 1]; + uint32_t flags_for_op[GRPC_OP_RECV_CLOSE_ON_SERVER + 1]; { /* check that all grpc_op_types fail when their flag value is set to an @@ -205,8 +205,8 @@ void grpc_end2end_tests(grpc_end2end_test_config config) { } { /* check valid operation with allowed flags for GRPC_OP_SEND_BUFFER */ - gpr_uint32 flags[] = {GRPC_WRITE_BUFFER_HINT, GRPC_WRITE_NO_COMPRESS, - GRPC_WRITE_INTERNAL_COMPRESS}; + uint32_t flags[] = {GRPC_WRITE_BUFFER_HINT, GRPC_WRITE_NO_COMPRESS, + GRPC_WRITE_INTERNAL_COMPRESS}; for (i = 0; i < GPR_ARRAY_SIZE(flags); ++i) { memset(flags_for_op, 0, sizeof(flags_for_op)); flags_for_op[GRPC_OP_SEND_MESSAGE] = flags[i]; diff --git a/test/core/end2end/tests/request_with_payload.c b/test/core/end2end/tests/request_with_payload.c index ee5b071372..1aced6a875 100644 --- a/test/core/end2end/tests/request_with_payload.c +++ b/test/core/end2end/tests/request_with_payload.c @@ -45,7 +45,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -229,6 +229,6 @@ static void test_invoke_request_with_payload(grpc_end2end_test_config config) { config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void request_with_payload(grpc_end2end_test_config config) { test_invoke_request_with_payload(config); } diff --git a/test/core/end2end/tests/server_finishes_request.c b/test/core/end2end/tests/server_finishes_request.c index 94863e7280..6bca8d476c 100644 --- a/test/core/end2end/tests/server_finishes_request.c +++ b/test/core/end2end/tests/server_finishes_request.c @@ -47,7 +47,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -207,6 +207,6 @@ static void test_invoke_simple_request(grpc_end2end_test_config config) { config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void server_finishes_request(grpc_end2end_test_config config) { test_invoke_simple_request(config); } diff --git a/test/core/end2end/tests/shutdown_finishes_calls.c b/test/core/end2end/tests/shutdown_finishes_calls.c index aa679081ec..b56ba464b9 100644 --- a/test/core/end2end/tests/shutdown_finishes_calls.c +++ b/test/core/end2end/tests/shutdown_finishes_calls.c @@ -45,7 +45,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -189,6 +189,6 @@ static void test_early_server_shutdown_finishes_inflight_calls( config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void shutdown_finishes_calls(grpc_end2end_test_config config) { test_early_server_shutdown_finishes_inflight_calls(config); } diff --git a/test/core/end2end/tests/shutdown_finishes_tags.c b/test/core/end2end/tests/shutdown_finishes_tags.c index 53a1573e16..4a060de716 100644 --- a/test/core/end2end/tests/shutdown_finishes_tags.c +++ b/test/core/end2end/tests/shutdown_finishes_tags.c @@ -45,7 +45,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -116,6 +116,6 @@ static void test_early_server_shutdown_finishes_tags( cq_verifier_destroy(cqv); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void shutdown_finishes_tags(grpc_end2end_test_config config) { test_early_server_shutdown_finishes_tags(config); } diff --git a/test/core/end2end/tests/simple_delayed_request.c b/test/core/end2end/tests/simple_delayed_request.c index 04447f9df4..0afef7503b 100644 --- a/test/core/end2end/tests/simple_delayed_request.c +++ b/test/core/end2end/tests/simple_delayed_request.c @@ -45,7 +45,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static gpr_timespec n_seconds_time(int n) { return GRPC_TIMEOUT_SECONDS_TO_DEADLINE(n); @@ -216,7 +216,7 @@ static void test_simple_delayed_request_long(grpc_end2end_test_config config) { config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void simple_delayed_request(grpc_end2end_test_config config) { GPR_ASSERT(config.feature_mask & FEATURE_MASK_SUPPORTS_DELAYED_CONNECTION); test_simple_delayed_request_short(config); test_simple_delayed_request_long(config); diff --git a/test/core/end2end/tests/simple_request.c b/test/core/end2end/tests/simple_request.c index ce5df86a92..3720cd1631 100644 --- a/test/core/end2end/tests/simple_request.c +++ b/test/core/end2end/tests/simple_request.c @@ -47,7 +47,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -238,7 +238,7 @@ static void test_invoke_10_simple_requests(grpc_end2end_test_config config) { config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void simple_request(grpc_end2end_test_config config) { int i; for (i = 0; i < 10; i++) { test_invoke_simple_request(config); diff --git a/test/core/end2end/tests/trailing_metadata.c b/test/core/end2end/tests/trailing_metadata.c index 71f10eb8f5..78525e9538 100644 --- a/test/core/end2end/tests/trailing_metadata.c +++ b/test/core/end2end/tests/trailing_metadata.c @@ -45,7 +45,7 @@ enum { TIMEOUT = 200000 }; -static void *tag(gpr_intptr t) { return (void *)t; } +static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, @@ -265,6 +265,6 @@ static void test_request_response_with_metadata_and_payload( config.tear_down_data(&f); } -void grpc_end2end_tests(grpc_end2end_test_config config) { +void trailing_metadata(grpc_end2end_test_config config) { test_request_response_with_metadata_and_payload(config); } |