diff options
author | Craig Tiller <ctiller@google.com> | 2015-09-22 10:45:28 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-09-22 10:45:28 -0700 |
commit | 1be70ccdb84ec41975cc018f6b2a2a89cf5072ee (patch) | |
tree | d4e6890ca32762bf786e2b801d3c26b27ec707ee /test/core/iomgr | |
parent | 45724b35e411fef7c5da66a74c78428c11d56843 (diff) |
Move arguments to the start of lists
Diffstat (limited to 'test/core/iomgr')
-rw-r--r-- | test/core/iomgr/alarm_list_test.c | 2 | ||||
-rw-r--r-- | test/core/iomgr/endpoint_pair_test.c | 2 | ||||
-rw-r--r-- | test/core/iomgr/endpoint_tests.c | 4 | ||||
-rw-r--r-- | test/core/iomgr/fd_posix_test.c | 8 | ||||
-rw-r--r-- | test/core/iomgr/resolve_address_test.c | 4 | ||||
-rw-r--r-- | test/core/iomgr/tcp_client_posix_test.c | 6 | ||||
-rw-r--r-- | test/core/iomgr/tcp_posix_test.c | 4 | ||||
-rw-r--r-- | test/core/iomgr/tcp_server_posix_test.c | 4 | ||||
-rw-r--r-- | test/core/iomgr/udp_server_test.c | 2 | ||||
-rw-r--r-- | test/core/iomgr/workqueue_test.c | 4 |
10 files changed, 20 insertions, 20 deletions
diff --git a/test/core/iomgr/alarm_list_test.c b/test/core/iomgr/alarm_list_test.c index d81dd49c35..8867545b33 100644 --- a/test/core/iomgr/alarm_list_test.c +++ b/test/core/iomgr/alarm_list_test.c @@ -44,7 +44,7 @@ static int cb_called[MAX_CB][2]; static void -cb (void *arg, int success, grpc_closure_list * closure_list) +cb (grpc_exec_ctx * exec_ctx, void *arg, int success) { cb_called[(gpr_intptr) arg][success]++; } diff --git a/test/core/iomgr/endpoint_pair_test.c b/test/core/iomgr/endpoint_pair_test.c index 4e7079ef14..2bc79301ea 100644 --- a/test/core/iomgr/endpoint_pair_test.c +++ b/test/core/iomgr/endpoint_pair_test.c @@ -70,7 +70,7 @@ static grpc_endpoint_test_config configs[] = { }; static void -destroy_pollset (void *p, int success, grpc_closure_list * closure_list) +destroy_pollset (grpc_exec_ctx * exec_ctx, void *p, int success) { grpc_pollset_destroy (p); } diff --git a/test/core/iomgr/endpoint_tests.c b/test/core/iomgr/endpoint_tests.c index 4a72043283..bea0371053 100644 --- a/test/core/iomgr/endpoint_tests.c +++ b/test/core/iomgr/endpoint_tests.c @@ -138,7 +138,7 @@ struct read_and_write_test_state }; static void -read_and_write_test_read_handler (void *data, int success, grpc_closure_list * closure_list) +read_and_write_test_read_handler (grpc_exec_ctx * exec_ctx, void *data, int success) { struct read_and_write_test_state *state = data; @@ -158,7 +158,7 @@ read_and_write_test_read_handler (void *data, int success, grpc_closure_list * c } static void -read_and_write_test_write_handler (void *data, int success, grpc_closure_list * closure_list) +read_and_write_test_write_handler (grpc_exec_ctx * exec_ctx, void *data, int success) { struct read_and_write_test_state *state = data; gpr_slice *slices = NULL; diff --git a/test/core/iomgr/fd_posix_test.c b/test/core/iomgr/fd_posix_test.c index 5449c38768..d8b4032162 100644 --- a/test/core/iomgr/fd_posix_test.c +++ b/test/core/iomgr/fd_posix_test.c @@ -250,7 +250,7 @@ listen_cb (void *arg, /*=sv_arg*/ When connection request arrives, listen_cb() is called to accept the connection request. */ static int -server_start (server * sv, grpc_closure_list * closure_list) +server_start (grpc_exec_ctx * exec_ctx, server * sv) { int port = 0; int fd; @@ -382,7 +382,7 @@ client_session_write (void *arg, /*client */ /* Start a client to send a stream of bytes. */ static void -client_start (client * cl, int port, grpc_closure_list * closure_list) +client_start (grpc_exec_ctx * exec_ctx, client * cl, int port) { int fd; struct sockaddr_in sin; @@ -455,7 +455,7 @@ test_grpc_fd (void) typedef struct fd_change_data { - void (*cb_that_ran) (void *, int success, grpc_closure_list * closure_list); + void (*cb_that_ran) (grpc_exec_ctx * exec_ctx, void *, int success); } fd_change_data; void @@ -578,7 +578,7 @@ test_grpc_fd_change (void) } static void -destroy_pollset (void *p, int success, grpc_closure_list * closure_list) +destroy_pollset (grpc_exec_ctx * exec_ctx, void *p, int success) { grpc_pollset_destroy (p); } diff --git a/test/core/iomgr/resolve_address_test.c b/test/core/iomgr/resolve_address_test.c index a1ce7efaf0..814cb9e150 100644 --- a/test/core/iomgr/resolve_address_test.c +++ b/test/core/iomgr/resolve_address_test.c @@ -45,7 +45,7 @@ test_deadline (void) } static void -must_succeed (void *evp, grpc_resolved_addresses * p, grpc_closure_list * closure_list) +must_succeed (grpc_exec_ctx * exec_ctx, void *evp, grpc_resolved_addresses * p) { GPR_ASSERT (p); GPR_ASSERT (p->naddrs >= 1); @@ -54,7 +54,7 @@ must_succeed (void *evp, grpc_resolved_addresses * p, grpc_closure_list * closur } static void -must_fail (void *evp, grpc_resolved_addresses * p, grpc_closure_list * closure_list) +must_fail (grpc_exec_ctx * exec_ctx, void *evp, grpc_resolved_addresses * p) { GPR_ASSERT (!p); gpr_event_set (evp, (void *) 1); diff --git a/test/core/iomgr/tcp_client_posix_test.c b/test/core/iomgr/tcp_client_posix_test.c index af9b96db14..b93b9a5725 100644 --- a/test/core/iomgr/tcp_client_posix_test.c +++ b/test/core/iomgr/tcp_client_posix_test.c @@ -68,7 +68,7 @@ finish_connection () } static void -must_succeed (void *arg, int success, grpc_closure_list * closure_list) +must_succeed (grpc_exec_ctx * exec_ctx, void *arg, int success) { GPR_ASSERT (g_connecting != NULL); GPR_ASSERT (success); @@ -79,7 +79,7 @@ must_succeed (void *arg, int success, grpc_closure_list * closure_list) } static void -must_fail (void *arg, int success, grpc_closure_list * closure_list) +must_fail (grpc_exec_ctx * exec_ctx, void *arg, int success) { GPR_ASSERT (g_connecting == NULL); GPR_ASSERT (!success); @@ -270,7 +270,7 @@ test_times_out (void) } static void -destroy_pollset (void *p, int success, grpc_closure_list * closure_list) +destroy_pollset (grpc_exec_ctx * exec_ctx, void *p, int success) { grpc_pollset_destroy (p); } diff --git a/test/core/iomgr/tcp_posix_test.c b/test/core/iomgr/tcp_posix_test.c index 5683e7cf53..af338249c5 100644 --- a/test/core/iomgr/tcp_posix_test.c +++ b/test/core/iomgr/tcp_posix_test.c @@ -157,7 +157,7 @@ count_slices (gpr_slice * slices, size_t nslices, int *current_data) } static void -read_cb (void *user_data, int success, grpc_closure_list * closure_list) +read_cb (grpc_exec_ctx * exec_ctx, void *user_data, int success) { struct read_socket_state *state = (struct read_socket_state *) user_data; size_t read_bytes; @@ -468,7 +468,7 @@ static grpc_endpoint_test_config configs[] = { }; static void -destroy_pollset (void *p, int success, grpc_closure_list * closure_list) +destroy_pollset (grpc_exec_ctx * exec_ctx, void *p, int success) { grpc_pollset_destroy (p); } diff --git a/test/core/iomgr/tcp_server_posix_test.c b/test/core/iomgr/tcp_server_posix_test.c index 92edfdd850..8467e937ee 100644 --- a/test/core/iomgr/tcp_server_posix_test.c +++ b/test/core/iomgr/tcp_server_posix_test.c @@ -49,7 +49,7 @@ static grpc_pollset g_pollset; static int g_nconnects = 0; static void -on_connect (void *arg, grpc_endpoint * tcp, grpc_closure_list * closure_list) +on_connect (grpc_exec_ctx * exec_ctx, void *arg, grpc_endpoint * tcp) { grpc_endpoint_shutdown (tcp, closure_list); grpc_endpoint_destroy (tcp, closure_list); @@ -173,7 +173,7 @@ test_connect (int n) } static void -destroy_pollset (void *p, int success, grpc_closure_list * closure_list) +destroy_pollset (grpc_exec_ctx * exec_ctx, void *p, int success) { grpc_pollset_destroy (p); } diff --git a/test/core/iomgr/udp_server_test.c b/test/core/iomgr/udp_server_test.c index b9cf289ed6..86e84adb55 100644 --- a/test/core/iomgr/udp_server_test.c +++ b/test/core/iomgr/udp_server_test.c @@ -175,7 +175,7 @@ test_receive (int number_of_clients) } static void -destroy_pollset (void *p, int success, grpc_closure_list * closure_list) +destroy_pollset (grpc_exec_ctx * exec_ctx, void *p, int success) { grpc_pollset_destroy (p); } diff --git a/test/core/iomgr/workqueue_test.c b/test/core/iomgr/workqueue_test.c index 43eebc3fbf..7e0f336a0d 100644 --- a/test/core/iomgr/workqueue_test.c +++ b/test/core/iomgr/workqueue_test.c @@ -41,7 +41,7 @@ static grpc_pollset g_pollset; static void -must_succeed (void *p, int success, grpc_closure_list * closure_list) +must_succeed (grpc_exec_ctx * exec_ctx, void *p, int success) { GPR_ASSERT (success == 1); gpr_mu_lock (GRPC_POLLSET_MU (&g_pollset)); @@ -76,7 +76,7 @@ test_add_closure (void) } static void -destroy_pollset (void *p, int success, grpc_closure_list * closure_list) +destroy_pollset (grpc_exec_ctx * exec_ctx, void *p, int success) { grpc_pollset_destroy (p); } |