Lines Matching refs:h
110 uv_idle_t h; in TEST_IMPL() local
111 uv_idle_init(uv_default_loop(), &h); in TEST_IMPL()
112 uv_idle_start(&h, (uv_idle_cb) fail_cb2); in TEST_IMPL()
113 uv_unref((uv_handle_t*)&h); in TEST_IMPL()
115 do_close(&h); in TEST_IMPL()
122 uv_async_t h; in TEST_IMPL() local
123 uv_async_init(uv_default_loop(), &h, NULL); in TEST_IMPL()
124 uv_unref((uv_handle_t*)&h); in TEST_IMPL()
126 do_close(&h); in TEST_IMPL()
133 uv_prepare_t h; in TEST_IMPL() local
134 uv_prepare_init(uv_default_loop(), &h); in TEST_IMPL()
135 uv_prepare_start(&h, (uv_prepare_cb) fail_cb2); in TEST_IMPL()
136 uv_unref((uv_handle_t*)&h); in TEST_IMPL()
138 do_close(&h); in TEST_IMPL()
145 uv_check_t h; in TEST_IMPL() local
146 uv_check_init(uv_default_loop(), &h); in TEST_IMPL()
147 uv_check_start(&h, (uv_check_cb) fail_cb2); in TEST_IMPL()
148 uv_unref((uv_handle_t*)&h); in TEST_IMPL()
150 do_close(&h); in TEST_IMPL()
156 static void prepare_cb(uv_prepare_t* h) { in prepare_cb() argument
157 ASSERT_NOT_NULL(h); in prepare_cb()
158 uv_unref((uv_handle_t*)h); in prepare_cb()
163 uv_prepare_t h; in TEST_IMPL() local
164 uv_prepare_init(uv_default_loop(), &h); in TEST_IMPL()
165 uv_prepare_start(&h, prepare_cb); in TEST_IMPL()
167 do_close(&h); in TEST_IMPL()
174 uv_timer_t h; in TEST_IMPL() local
175 uv_timer_init(uv_default_loop(), &h); in TEST_IMPL()
176 uv_unref((uv_handle_t*)&h); in TEST_IMPL()
178 do_close(&h); in TEST_IMPL()
185 uv_timer_t h; in TEST_IMPL() local
186 uv_timer_init(uv_default_loop(), &h); in TEST_IMPL()
187 uv_timer_start(&h, (uv_timer_cb)fail_cb, 42, 42); in TEST_IMPL()
188 uv_unref((uv_handle_t*)&h); in TEST_IMPL()
190 do_close(&h); in TEST_IMPL()
200 uv_fs_event_t h; in TEST_IMPL() local
201 uv_fs_event_init(uv_default_loop(), &h); in TEST_IMPL()
202 uv_fs_event_start(&h, (uv_fs_event_cb)fail_cb, ".", 0); in TEST_IMPL()
203 uv_unref((uv_handle_t*)&h); in TEST_IMPL()
205 do_close(&h); in TEST_IMPL()
212 uv_fs_poll_t h; in TEST_IMPL() local
213 uv_fs_poll_init(uv_default_loop(), &h); in TEST_IMPL()
214 uv_fs_poll_start(&h, NULL, ".", 999); in TEST_IMPL()
215 uv_unref((uv_handle_t*)&h); in TEST_IMPL()
217 do_close(&h); in TEST_IMPL()
224 uv_tcp_t h; in TEST_IMPL() local
225 uv_tcp_init(uv_default_loop(), &h); in TEST_IMPL()
226 uv_unref((uv_handle_t*)&h); in TEST_IMPL()
228 do_close(&h); in TEST_IMPL()
235 uv_tcp_t h; in TEST_IMPL() local
236 uv_tcp_init(uv_default_loop(), &h); in TEST_IMPL()
237 uv_listen((uv_stream_t*)&h, 128, (uv_connection_cb)fail_cb); in TEST_IMPL()
238 uv_unref((uv_handle_t*)&h); in TEST_IMPL()
240 do_close(&h); in TEST_IMPL()
247 uv_tcp_t h; in TEST_IMPL() local
248 uv_tcp_init(uv_default_loop(), &h); in TEST_IMPL()
249 uv_listen((uv_stream_t*)&h, 128, (uv_connection_cb)fail_cb); in TEST_IMPL()
250 uv_unref((uv_handle_t*)&h); in TEST_IMPL()
251 uv_close((uv_handle_t*)&h, close_cb); in TEST_IMPL()
261 uv_tcp_t h; in TEST_IMPL() local
263 uv_tcp_init(uv_default_loop(), &h); in TEST_IMPL()
265 &h, in TEST_IMPL()
268 uv_unref((uv_handle_t*)&h); in TEST_IMPL()
272 do_close(&h); in TEST_IMPL()
280 uv_tcp_t h; in TEST_IMPL() local
282 uv_tcp_init(uv_default_loop(), &h); in TEST_IMPL()
284 &h, in TEST_IMPL()
287 uv_unref((uv_handle_t*)&h); in TEST_IMPL()
292 do_close(&h); in TEST_IMPL()
299 uv_udp_t h; in TEST_IMPL() local
300 uv_udp_init(uv_default_loop(), &h); in TEST_IMPL()
301 uv_unref((uv_handle_t*)&h); in TEST_IMPL()
303 do_close(&h); in TEST_IMPL()
311 uv_udp_t h; in TEST_IMPL() local
313 uv_udp_init(uv_default_loop(), &h); in TEST_IMPL()
314 uv_udp_bind(&h, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
315 uv_udp_recv_start(&h, (uv_alloc_cb)fail_cb, (uv_udp_recv_cb)fail_cb); in TEST_IMPL()
316 uv_unref((uv_handle_t*)&h); in TEST_IMPL()
318 do_close(&h); in TEST_IMPL()
328 uv_udp_t h; in TEST_IMPL() local
331 uv_udp_init(uv_default_loop(), &h); in TEST_IMPL()
333 &h, in TEST_IMPL()
338 uv_unref((uv_handle_t*)&h); in TEST_IMPL()
341 do_close(&h); in TEST_IMPL()
349 uv_pipe_t h; in TEST_IMPL() local
350 uv_pipe_init(uv_default_loop(), &h, 0); in TEST_IMPL()
351 uv_unref((uv_handle_t*)&h); in TEST_IMPL()
353 do_close(&h); in TEST_IMPL()
360 uv_pipe_t h; in TEST_IMPL() local
361 uv_pipe_init(uv_default_loop(), &h, 0); in TEST_IMPL()
362 uv_listen((uv_stream_t*)&h, 128, (uv_connection_cb)fail_cb); in TEST_IMPL()
363 uv_unref((uv_handle_t*)&h); in TEST_IMPL()
365 do_close(&h); in TEST_IMPL()
372 uv_pipe_t h; in TEST_IMPL() local
373 uv_pipe_init(uv_default_loop(), &h, 0); in TEST_IMPL()
374 uv_pipe_connect(&connect_req, &h, TEST_PIPENAME, connect_and_shutdown); in TEST_IMPL()
375 uv_unref((uv_handle_t*)&h); in TEST_IMPL()
379 do_close(&h); in TEST_IMPL()
386 uv_pipe_t h; in TEST_IMPL() local
387 uv_pipe_init(uv_default_loop(), &h, 0); in TEST_IMPL()
388 uv_pipe_connect(&connect_req, &h, TEST_PIPENAME, connect_and_write); in TEST_IMPL()
389 uv_unref((uv_handle_t*)&h); in TEST_IMPL()
394 do_close(&h); in TEST_IMPL()
406 uv_process_t h; in TEST_IMPL() local
420 r = uv_spawn(uv_default_loop(), &h, &options); in TEST_IMPL()
423 uv_unref((uv_handle_t*)&h); in TEST_IMPL()
426 r = uv_process_kill(&h, /* SIGTERM */ 15); in TEST_IMPL()
429 do_close(&h); in TEST_IMPL()
437 uv_idle_t h; in TEST_IMPL() local
438 uv_idle_init(uv_default_loop(), &h); in TEST_IMPL()
439 uv_ref((uv_handle_t*)&h); in TEST_IMPL()
440 ASSERT_EQ(1, uv_has_ref((uv_handle_t*)&h)); in TEST_IMPL()
441 uv_unref((uv_handle_t*)&h); in TEST_IMPL()
442 ASSERT_OK(uv_has_ref((uv_handle_t*)&h)); in TEST_IMPL()