diff options
author | Craig Tiller <ctiller@google.com> | 2015-09-16 10:02:09 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-09-16 10:02:09 -0700 |
commit | 7d57ba138fc4dbde885c5a59231ae6de6968e557 (patch) | |
tree | 7d5f4fc9f6bf306585286aebd26f44640921f8cd /test/core/security | |
parent | 47a708e252c8f56091c11e63eadba51a995ca7c8 (diff) |
Tests compile
Diffstat (limited to 'test/core/security')
-rw-r--r-- | test/core/security/secure_endpoint_test.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/core/security/secure_endpoint_test.c b/test/core/security/secure_endpoint_test.c index 047d37748d..67fa9322a7 100644 --- a/test/core/security/secure_endpoint_test.c +++ b/test/core/security/secure_endpoint_test.c @@ -46,6 +46,7 @@ #include "src/core/tsi/fake_transport_security.h" static grpc_pollset g_pollset; +static grpc_workqueue *g_workqueue; static grpc_endpoint_test_fixture secure_endpoint_create_fixture_tcp_socketpair( size_t slice_size, gpr_slice *leftover_slices, size_t leftover_nslices) { @@ -54,7 +55,7 @@ static grpc_endpoint_test_fixture secure_endpoint_create_fixture_tcp_socketpair( grpc_endpoint_test_fixture f; grpc_endpoint_pair tcp; - tcp = grpc_iomgr_create_endpoint_pair("fixture", slice_size); + tcp = grpc_iomgr_create_endpoint_pair("fixture", slice_size, g_workqueue); grpc_endpoint_add_to_pollset(tcp.client, &g_pollset); grpc_endpoint_add_to_pollset(tcp.server, &g_pollset); @@ -165,9 +166,11 @@ int main(int argc, char **argv) { grpc_test_init(argc, argv); grpc_init(); + g_workqueue = grpc_workqueue_create(); grpc_pollset_init(&g_pollset); grpc_endpoint_tests(configs[0], &g_pollset); test_leftover(configs[1], 1); + grpc_workqueue_unref(g_workqueue); grpc_pollset_shutdown(&g_pollset, destroy_pollset, &g_pollset); grpc_shutdown(); |