aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/transport
diff options
context:
space:
mode:
Diffstat (limited to 'test/core/transport')
-rw-r--r--test/core/transport/chttp2/hpack_table_test.c6
-rw-r--r--test/core/transport/chttp2/stream_encoder_test.c8
-rw-r--r--test/core/transport/chttp2/stream_map_test.c6
-rw-r--r--test/core/transport/chttp2/timeout_encoding_test.c6
-rw-r--r--test/core/transport/metadata_test.c18
-rw-r--r--test/core/transport/transport_end2end_tests.c12
6 files changed, 28 insertions, 28 deletions
diff --git a/test/core/transport/chttp2/hpack_table_test.c b/test/core/transport/chttp2/hpack_table_test.c
index 8810925ba5..1576a30c1b 100644
--- a/test/core/transport/chttp2/hpack_table_test.c
+++ b/test/core/transport/chttp2/hpack_table_test.c
@@ -54,7 +54,7 @@ static void assert_index(const grpc_chttp2_hptbl *tbl, int idx, const char *key,
assert_str(tbl, md->value, value);
}
-static void test_static_lookup() {
+static void test_static_lookup(void) {
grpc_chttp2_hptbl tbl;
grpc_mdctx *mdctx;
@@ -128,7 +128,7 @@ static void test_static_lookup() {
grpc_mdctx_orphan(mdctx);
}
-static void test_many_additions() {
+static void test_many_additions(void) {
grpc_chttp2_hptbl tbl;
int i;
char key[32];
@@ -165,7 +165,7 @@ static grpc_chttp2_hptbl_find_result find_simple(grpc_chttp2_hptbl *tbl,
return r;
}
-static void test_find() {
+static void test_find(void) {
grpc_chttp2_hptbl tbl;
int i;
char buffer[32];
diff --git a/test/core/transport/chttp2/stream_encoder_test.c b/test/core/transport/chttp2/stream_encoder_test.c
index ba552786db..102288f5d7 100644
--- a/test/core/transport/chttp2/stream_encoder_test.c
+++ b/test/core/transport/chttp2/stream_encoder_test.c
@@ -102,7 +102,7 @@ static void assert_result_ok(void *user_data, grpc_op_error error) {
GPR_ASSERT(error == GRPC_OP_OK);
}
-static void test_small_data_framing() {
+static void test_small_data_framing(void) {
grpc_sopb_add_no_op(&g_sopb);
verify_sopb(10, 0, 0, "");
@@ -135,7 +135,7 @@ static void add_sopb_header(const char *key, const char *value) {
grpc_mdelem_from_strings(g_mdctx, key, value));
}
-static void test_basic_headers() {
+static void test_basic_headers(void) {
int i;
add_sopb_header("a", "a");
@@ -183,7 +183,7 @@ static void encode_int_to_str(int i, char *p) {
p[2] = 0;
}
-static void test_decode_table_overflow() {
+static void test_decode_table_overflow(void) {
int i;
char key[3], value[3];
char expect[128];
@@ -282,7 +282,7 @@ static void test_decode_random_headers_inner(int max_len) {
}
#define DECL_TEST_DECODE_RANDOM_HEADERS(n) \
- static void test_decode_random_headers_##n() { \
+ static void test_decode_random_headers_##n(void) { \
test_decode_random_headers_inner(n); \
} \
int keeps_formatting_correct_##n
diff --git a/test/core/transport/chttp2/stream_map_test.c b/test/core/transport/chttp2/stream_map_test.c
index 459ef2aede..9b4446f7f8 100644
--- a/test/core/transport/chttp2/stream_map_test.c
+++ b/test/core/transport/chttp2/stream_map_test.c
@@ -38,7 +38,7 @@
#define LOG_TEST() gpr_log(GPR_INFO, "%s", __FUNCTION__)
/* test creation & destruction */
-static void test_no_op() {
+static void test_no_op(void) {
grpc_chttp2_stream_map map;
LOG_TEST();
@@ -48,7 +48,7 @@ static void test_no_op() {
}
/* test lookup on an empty map */
-static void test_empty_find() {
+static void test_empty_find(void) {
grpc_chttp2_stream_map map;
LOG_TEST();
@@ -59,7 +59,7 @@ static void test_empty_find() {
}
/* test it's safe to delete twice */
-static void test_double_deletion() {
+static void test_double_deletion(void) {
grpc_chttp2_stream_map map;
LOG_TEST();
diff --git a/test/core/transport/chttp2/timeout_encoding_test.c b/test/core/transport/chttp2/timeout_encoding_test.c
index 793d2b945e..4bb84e3f0b 100644
--- a/test/core/transport/chttp2/timeout_encoding_test.c
+++ b/test/core/transport/chttp2/timeout_encoding_test.c
@@ -49,7 +49,7 @@ static void assert_encodes_as(gpr_timespec ts, const char *s) {
GPR_ASSERT(0 == strcmp(buffer, s));
}
-void test_encoding() {
+void test_encoding(void) {
LOG_TEST();
assert_encodes_as(gpr_time_from_micros(-1), "1n");
assert_encodes_as(gpr_time_from_seconds(-10), "1n");
@@ -106,7 +106,7 @@ void decode_suite(char ext, gpr_timespec (*answer)(long x)) {
}
}
-void test_decoding() {
+void test_decoding(void) {
LOG_TEST();
decode_suite('n', gpr_time_from_nanos);
decode_suite('u', gpr_time_from_micros);
@@ -117,7 +117,7 @@ void test_decoding() {
assert_decodes_as("1000000000000000000000u", gpr_inf_future);
}
-void test_decoding_fails() {
+void test_decoding_fails(void) {
gpr_timespec x;
LOG_TEST();
GPR_ASSERT(0 == grpc_chttp2_decode_timeout("", &x));
diff --git a/test/core/transport/metadata_test.c b/test/core/transport/metadata_test.c
index ec424ce144..804096d0e1 100644
--- a/test/core/transport/metadata_test.c
+++ b/test/core/transport/metadata_test.c
@@ -45,7 +45,7 @@
/* a large number */
#define MANY 1000000
-static void test_no_op() {
+static void test_no_op(void) {
grpc_mdctx *ctx;
LOG_TEST();
@@ -54,7 +54,7 @@ static void test_no_op() {
grpc_mdctx_orphan(ctx);
}
-static void test_create_string() {
+static void test_create_string(void) {
grpc_mdctx *ctx;
grpc_mdstr *s1, *s2, *s3;
@@ -74,7 +74,7 @@ static void test_create_string() {
grpc_mdstr_unref(s3);
}
-static void test_create_metadata() {
+static void test_create_metadata(void) {
grpc_mdctx *ctx;
grpc_mdelem *m1, *m2, *m3;
@@ -97,7 +97,7 @@ static void test_create_metadata() {
grpc_mdctx_orphan(ctx);
}
-static void test_create_many_ephemeral_metadata() {
+static void test_create_many_ephemeral_metadata(void) {
grpc_mdctx *ctx;
char buffer[256];
long i;
@@ -118,7 +118,7 @@ static void test_create_many_ephemeral_metadata() {
grpc_mdctx_orphan(ctx);
}
-static void test_create_many_persistant_metadata() {
+static void test_create_many_persistant_metadata(void) {
grpc_mdctx *ctx;
char buffer[256];
long i;
@@ -149,7 +149,7 @@ static void test_create_many_persistant_metadata() {
gpr_free(created);
}
-static void test_spin_creating_the_same_thing() {
+static void test_spin_creating_the_same_thing(void) {
grpc_mdctx *ctx;
LOG_TEST();
@@ -173,7 +173,7 @@ static void test_spin_creating_the_same_thing() {
grpc_mdctx_orphan(ctx);
}
-static void test_things_stick_around() {
+static void test_things_stick_around(void) {
grpc_mdctx *ctx;
int i, j;
char buffer[64];
@@ -220,7 +220,7 @@ static void test_things_stick_around() {
gpr_free(shuf);
}
-static void test_slices_work() {
+static void test_slices_work(void) {
/* ensure no memory leaks when switching representation from mdstr to slice */
grpc_mdctx *ctx;
grpc_mdstr *str;
@@ -245,7 +245,7 @@ static void test_slices_work() {
grpc_mdctx_orphan(ctx);
}
-static void test_base64_and_huffman_works() {
+static void test_base64_and_huffman_works(void) {
grpc_mdctx *ctx;
grpc_mdstr *str;
gpr_slice slice1;
diff --git a/test/core/transport/transport_end2end_tests.c b/test/core/transport/transport_end2end_tests.c
index 86e987bef0..712081bc8a 100644
--- a/test/core/transport/transport_end2end_tests.c
+++ b/test/core/transport/transport_end2end_tests.c
@@ -144,36 +144,36 @@ static gpr_slice alloc_recv_buffer(void *user_data, grpc_transport *transport,
return gpr_slice_malloc(size_hint);
}
-static void pending_ops_cleanup() {
+static void pending_ops_cleanup(void) {
gpr_mu_destroy(&g_mu);
gpr_cv_destroy(&g_cv);
}
-static void pending_ops_init() {
+static void pending_ops_init(void) {
gpr_mu_init(&g_mu);
gpr_cv_init(&g_cv);
atexit(pending_ops_cleanup);
}
-static void use_pending_ops() {
+static void use_pending_ops(void) {
gpr_once_init(&g_pending_ops_init, pending_ops_init);
}
-static void add_pending_op() {
+static void add_pending_op(void) {
use_pending_ops();
gpr_mu_lock(&g_mu);
g_pending_ops++;
gpr_mu_unlock(&g_mu);
}
-static void end_pending_op() {
+static void end_pending_op(void) {
gpr_mu_lock(&g_mu);
g_pending_ops--;
gpr_cv_broadcast(&g_cv);
gpr_mu_unlock(&g_mu);
}
-static void wait_pending_ops() {
+static void wait_pending_ops(void) {
use_pending_ops();
gpr_mu_lock(&g_mu);
while (g_pending_ops > 0) {