Lines Matching refs:timer
45 uv_timer_t timer; in TEST_IMPL() local
47 r = uv_timer_init(uv_default_loop(), &timer); in TEST_IMPL()
51 ASSERT_OK(uv_is_active((uv_handle_t*) &timer)); in TEST_IMPL()
52 ASSERT_OK(uv_is_closing((uv_handle_t*) &timer)); in TEST_IMPL()
54 r = uv_timer_start(&timer, timer_cb, 1000, 0); in TEST_IMPL()
57 ASSERT_EQ(1, uv_is_active((uv_handle_t*) &timer)); in TEST_IMPL()
58 ASSERT_OK(uv_is_closing((uv_handle_t*) &timer)); in TEST_IMPL()
60 r = uv_timer_stop(&timer); in TEST_IMPL()
63 ASSERT_OK(uv_is_active((uv_handle_t*) &timer)); in TEST_IMPL()
64 ASSERT_OK(uv_is_closing((uv_handle_t*) &timer)); in TEST_IMPL()
66 r = uv_timer_start(&timer, timer_cb, 1000, 0); in TEST_IMPL()
69 ASSERT_EQ(1, uv_is_active((uv_handle_t*) &timer)); in TEST_IMPL()
70 ASSERT_OK(uv_is_closing((uv_handle_t*) &timer)); in TEST_IMPL()
72 uv_close((uv_handle_t*) &timer, close_cb); in TEST_IMPL()
74 ASSERT_OK(uv_is_active((uv_handle_t*) &timer)); in TEST_IMPL()
75 ASSERT_EQ(1, uv_is_closing((uv_handle_t*) &timer)); in TEST_IMPL()