• Home
  • Raw
  • Download

Lines Matching refs:ASSERT

73   ASSERT(0 == uv_fileno((uv_handle_t*)handle, &fd));  in poll_cb()
80 ASSERT(n >= 0 || errno != EINVAL); in poll_cb()
82 ASSERT(0 == uv_poll_stop(&poll_req[0])); in poll_cb()
83 ASSERT(0 == uv_poll_start(&poll_req[0], in poll_cb()
92 ASSERT(n >= 0 || errno != EINVAL); in poll_cb()
94 ASSERT(strncmp(buffer, "world", n) == 0); in poll_cb()
95 ASSERT(5 == n); in poll_cb()
99 ASSERT(n == 4); in poll_cb()
100 ASSERT(strncmp(buffer, "hello", n) == 0); in poll_cb()
107 ASSERT(n == 5); in poll_cb()
108 ASSERT(strncmp(buffer, "world", n) == 0); in poll_cb()
113 ASSERT(got_eagain()); in poll_cb()
120 ASSERT(n >= 0 || errno != EINVAL); in poll_cb()
121 ASSERT(3 == n); in poll_cb()
122 ASSERT(strncmp(buffer, "foo", n) == 0); in poll_cb()
131 ASSERT(3 == n); in poll_cb()
138 ASSERT(0 == status); in connection_cb()
139 ASSERT(0 == uv_accept(handle, (uv_stream_t*) &peer_handle)); in connection_cb()
140 ASSERT(0 == uv_fileno((uv_handle_t*) &peer_handle, &server_fd)); in connection_cb()
141 ASSERT(0 == uv_poll_init_socket(uv_default_loop(), &poll_req[0], client_fd)); in connection_cb()
142 ASSERT(0 == uv_poll_init_socket(uv_default_loop(), &poll_req[1], server_fd)); in connection_cb()
143 ASSERT(0 == uv_poll_start(&poll_req[0], in connection_cb()
146 ASSERT(0 == uv_poll_start(&poll_req[1], in connection_cb()
152 ASSERT(5 == r); in connection_cb()
157 ASSERT(5 == r); in connection_cb()
159 ASSERT(0 == uv_idle_start(&idle, idle_cb)); in connection_cb()
168 ASSERT(0 == uv_ip4_addr("127.0.0.1", TEST_PORT, &addr)); in TEST_IMPL()
171 ASSERT(0 == uv_tcp_init(loop, &server_handle)); in TEST_IMPL()
172 ASSERT(0 == uv_tcp_init(loop, &client_handle)); in TEST_IMPL()
173 ASSERT(0 == uv_tcp_init(loop, &peer_handle)); in TEST_IMPL()
174 ASSERT(0 == uv_idle_init(loop, &idle)); in TEST_IMPL()
175 ASSERT(0 == uv_tcp_bind(&server_handle, (const struct sockaddr*) &addr, 0)); in TEST_IMPL()
176 ASSERT(0 == uv_listen((uv_stream_t*) &server_handle, 1, connection_cb)); in TEST_IMPL()
179 ASSERT(0 == uv_tcp_nodelay(&client_handle, 1)); in TEST_IMPL()
182 ASSERT(client_fd >= 0); in TEST_IMPL()
187 ASSERT(r == 0); in TEST_IMPL()
189 ASSERT(0 == uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
191 ASSERT(ticks == kMaxTicks); in TEST_IMPL()
194 ASSERT(cli_pr_check == 1); in TEST_IMPL()
196 ASSERT(cli_rd_check == 2); in TEST_IMPL()
200 ASSERT(srv_rd_check == 1); in TEST_IMPL()