diff options
author | Craig Tiller <ctiller@google.com> | 2015-06-01 11:32:04 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-06-01 11:32:04 -0700 |
commit | 49ff23f32dce0a8d70381858d658d5077aaaeef9 (patch) | |
tree | db85a97d9392f12192b17927c35742063fb66cfd /test/core | |
parent | a0abe37367755b4256f8591e3ef4ba3600a4f636 (diff) |
Rephrase integration for httpcli
Diffstat (limited to 'test/core')
-rw-r--r-- | test/core/httpcli/httpcli_test.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/core/httpcli/httpcli_test.c b/test/core/httpcli/httpcli_test.c index b32ade2009..8f9d30c0e1 100644 --- a/test/core/httpcli/httpcli_test.c +++ b/test/core/httpcli/httpcli_test.c @@ -42,7 +42,7 @@ static gpr_mu g_mu; static int g_done = 0; -static grpc_pollset_set g_pollset_set; +static grpc_httpcli_context g_context; static grpc_pollset g_pollset; static gpr_timespec n_seconds_time(int seconds) { @@ -69,7 +69,7 @@ static void test_get(int use_ssl) { req.path = "/"; req.use_ssl = use_ssl; - grpc_httpcli_get(&req, n_seconds_time(15), &g_pollset_set, on_finish, (void *)42); + grpc_httpcli_get(&g_context, &req, n_seconds_time(15), on_finish, (void *)42); gpr_mu_lock(&g_mu); while (!g_done) { grpc_pollset_work(&g_pollset, n_seconds_time(20)); @@ -98,10 +98,10 @@ static void test_post(int use_ssl) { int main(int argc, char **argv) { grpc_test_init(argc, argv); grpc_iomgr_init(); - grpc_pollset_set_init(&g_pollset_set); + grpc_httpcli_context_init(&g_context); grpc_pollset_init(&g_pollset); gpr_mu_init(&g_mu); - grpc_pollset_set_add_pollset(&g_pollset_set, &g_pollset); + grpc_httpcli_context_add_interested_party(&g_context, &g_pollset); test_get(0); test_get(1); @@ -109,7 +109,7 @@ int main(int argc, char **argv) { /* test_post(0); */ /* test_post(1); */ - grpc_pollset_set_destroy(&g_pollset_set); + grpc_httpcli_context_destroy(&g_context); grpc_pollset_destroy(&g_pollset); grpc_iomgr_shutdown(); gpr_mu_destroy(&g_mu); |