diff options
author | David Garcia Quintas <dgq@google.com> | 2015-10-04 23:09:47 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2015-10-04 23:09:47 -0700 |
commit | f747bbc04327c9ef02690cd7466ec6786967c4fe (patch) | |
tree | b031152a4387370999e91d9922fef90efc86f3ac /test/core/surface/completion_queue_test.c | |
parent | cb954cfc2858829fe7bff785b1a5d5204bfd338f (diff) |
s/grpc_alarm/grpc_timer && s/grpc_cq_alarm/grpc_alarm
Diffstat (limited to 'test/core/surface/completion_queue_test.c')
-rw-r--r-- | test/core/surface/completion_queue_test.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/test/core/surface/completion_queue_test.c b/test/core/surface/completion_queue_test.c index 16bccc3609..e3fc789788 100644 --- a/test/core/surface/completion_queue_test.c +++ b/test/core/surface/completion_queue_test.c @@ -102,43 +102,6 @@ static void test_cq_end_op(void) { grpc_exec_ctx_finish(&exec_ctx); } -static void test_cq_alarm(void) { - grpc_completion_queue *cc; - - LOG_TEST("test_cq_alarm"); - cc = grpc_completion_queue_create(NULL); - { - /* regular expiry */ - grpc_event ev; - void *tag = create_test_tag(); - grpc_cq_alarm *cq_alarm = - grpc_cq_alarm_create(cc, GRPC_TIMEOUT_SECONDS_TO_DEADLINE(1), tag); - - ev = grpc_completion_queue_next(cc, GRPC_TIMEOUT_SECONDS_TO_DEADLINE(2), - NULL); - GPR_ASSERT(ev.type == GRPC_OP_COMPLETE); - GPR_ASSERT(ev.tag == tag); - GPR_ASSERT(ev.success); - grpc_cq_alarm_destroy(cq_alarm); - } - { - /* cancellation */ - grpc_event ev; - void *tag = create_test_tag(); - grpc_cq_alarm *cq_alarm = - grpc_cq_alarm_create(cc, GRPC_TIMEOUT_SECONDS_TO_DEADLINE(2), tag); - - grpc_cq_alarm_cancel(cq_alarm); - ev = grpc_completion_queue_next(cc, GRPC_TIMEOUT_SECONDS_TO_DEADLINE(1), - NULL); - GPR_ASSERT(ev.type == GRPC_OP_COMPLETE); - GPR_ASSERT(ev.tag == tag); - GPR_ASSERT(ev.success == 0); - grpc_cq_alarm_destroy(cq_alarm); - } - shutdown_and_destroy(cc); -} - static void test_shutdown_then_next_polling(void) { grpc_completion_queue *cc; grpc_event event; @@ -380,7 +343,6 @@ int main(int argc, char **argv) { test_shutdown_then_next_with_timeout(); test_cq_end_op(); test_pluck(); - test_cq_alarm(); test_threading(1, 1); test_threading(1, 10); test_threading(10, 1); |