aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/httpcli
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-09-22 10:55:42 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-09-22 10:55:42 -0700
commite7db29f8c74da29d88c1f373ae52a27982eb2c87 (patch)
tree14b82655da1213051cbd3060ad2720ee2fd388f4 /test/core/httpcli
parentf5768a6765cae20477f36b346ce18bfb44fe2e25 (diff)
Move argument passing to start of list
Diffstat (limited to 'test/core/httpcli')
-rw-r--r--test/core/httpcli/httpcli_test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/core/httpcli/httpcli_test.c b/test/core/httpcli/httpcli_test.c
index f28a25464b..504423c9da 100644
--- a/test/core/httpcli/httpcli_test.c
+++ b/test/core/httpcli/httpcli_test.c
@@ -88,12 +88,12 @@ test_get (int use_ssl, int port)
req.path = "/get";
req.handshaker = use_ssl ? &grpc_httpcli_ssl : &grpc_httpcli_plaintext;
- grpc_httpcli_get (&g_context, &g_pollset, &req, n_seconds_time (15), on_finish, (void *) 42, &closure_list);
+ grpc_httpcli_get (&g_context, &g_pollset, &req, n_seconds_time (15), on_finish, (&exec_ctx, void *) 42);
gpr_mu_lock (GRPC_POLLSET_MU (&g_pollset));
while (!g_done)
{
grpc_pollset_worker worker;
- grpc_pollset_work (&g_pollset, &worker, gpr_now (GPR_CLOCK_MONOTONIC), n_seconds_time (20), &closure_list);
+ grpc_pollset_work (&g_pollset, &worker, gpr_now (GPR_CLOCK_MONOTONIC), n_seconds_time (&exec_ctx, 20));
gpr_mu_unlock (GRPC_POLLSET_MU (&g_pollset));
grpc_exec_ctx_finish (&exec_ctx);
gpr_mu_lock (GRPC_POLLSET_MU (&g_pollset));
@@ -120,12 +120,12 @@ test_post (int use_ssl, int port)
req.path = "/post";
req.handshaker = use_ssl ? &grpc_httpcli_ssl : &grpc_httpcli_plaintext;
- grpc_httpcli_post (&g_context, &g_pollset, &req, "hello", 5, n_seconds_time (15), on_finish, (void *) 42, &closure_list);
+ grpc_httpcli_post (&g_context, &g_pollset, &req, "hello", 5, n_seconds_time (15), on_finish, (&exec_ctx, void *) 42);
gpr_mu_lock (GRPC_POLLSET_MU (&g_pollset));
while (!g_done)
{
grpc_pollset_worker worker;
- grpc_pollset_work (&g_pollset, &worker, gpr_now (GPR_CLOCK_MONOTONIC), n_seconds_time (20), &closure_list);
+ grpc_pollset_work (&g_pollset, &worker, gpr_now (GPR_CLOCK_MONOTONIC), n_seconds_time (&exec_ctx, 20));
gpr_mu_unlock (GRPC_POLLSET_MU (&g_pollset));
grpc_exec_ctx_finish (&exec_ctx);
gpr_mu_lock (GRPC_POLLSET_MU (&g_pollset));
@@ -184,7 +184,7 @@ main (int argc, char **argv)
grpc_httpcli_context_destroy (&g_context);
grpc_closure_init (&destroyed, destroy_pollset, &g_pollset);
- grpc_pollset_shutdown (&g_pollset, &destroyed, &closure_list);
+ grpc_pollset_shutdown (&exec_ctx, &g_pollset, &destroyed);
grpc_exec_ctx_finish (&exec_ctx);
grpc_shutdown ();