diff options
author | Craig Tiller <ctiller@google.com> | 2016-05-16 17:15:24 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-05-16 17:15:24 -0700 |
commit | 40945c702ad828bd4d3fee67e17d737e11f896c9 (patch) | |
tree | 805aab344775b9280c3f617167edd835d2b0828a /test | |
parent | 9f9d4223fbb0cc93b95c5c1bd379c8b848936b7d (diff) |
Add missing function for completion queue
Diffstat (limited to 'test')
-rw-r--r-- | test/core/surface/completion_queue_test.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/core/surface/completion_queue_test.c b/test/core/surface/completion_queue_test.c index d62d5a93b1..be6115e012 100644 --- a/test/core/surface/completion_queue_test.c +++ b/test/core/surface/completion_queue_test.c @@ -63,6 +63,12 @@ static void test_no_op(void) { shutdown_and_destroy(grpc_completion_queue_create(NULL)); } +static void test_pollset_conversion() { + grpc_completion_queue *cq = grpc_completion_queue(NULL); + GPR_ASSERT(grpc_cq_from_pollset(grpc_cq_pollset(cq)) == cq); + shutdown_and_destroy(cq); +} + static void test_wait_empty(void) { grpc_completion_queue *cc; grpc_event event; |