• Home
  • Raw
  • Download

Lines Matching refs:ASSERT

30   ASSERT((uv_udp_t*)(handle) == &server || (uv_udp_t*)(handle) == &client)
49 ASSERT(suggested_size <= sizeof(slab)); in alloc_cb()
57 ASSERT(1 == uv_is_closing(handle)); in close_cb()
68 ASSERT(flags == 0); in cl_recv_cb()
71 ASSERT(0 && "unexpected error"); in cl_recv_cb()
81 ASSERT(nread == 4); in cl_recv_cb()
82 ASSERT(!memcmp("PONG", buf->base, nread)); in cl_recv_cb()
94 ASSERT(status == 0); in cl_send_cb()
98 ASSERT(r == 0); in cl_send_cb()
106 ASSERT(status == 0); in sv_send_cb()
126 ASSERT(0 && "unexpected error"); in sv_recv_cb()
136 ASSERT(flags == 0); in sv_recv_cb()
139 ASSERT(nread == 4); in sv_recv_cb()
140 ASSERT(!memcmp("PING", rcvbuf->base, nread)); in sv_recv_cb()
147 ASSERT(r == 0); in sv_recv_cb()
154 ASSERT(r == 0); in sv_recv_cb()
166 ASSERT(0 == uv_ip4_addr("0.0.0.0", TEST_PORT, &addr)); in TEST_IMPL()
169 ASSERT(r == 0); in TEST_IMPL()
172 ASSERT(r == 0); in TEST_IMPL()
175 ASSERT(r == 0); in TEST_IMPL()
177 ASSERT(0 == uv_ip4_addr("127.0.0.1", TEST_PORT, &addr)); in TEST_IMPL()
180 ASSERT(r == 0); in TEST_IMPL()
191 ASSERT(r == 0); in TEST_IMPL()
193 ASSERT(close_cb_called == 0); in TEST_IMPL()
194 ASSERT(cl_send_cb_called == 0); in TEST_IMPL()
195 ASSERT(cl_recv_cb_called == 0); in TEST_IMPL()
196 ASSERT(sv_send_cb_called == 0); in TEST_IMPL()
197 ASSERT(sv_recv_cb_called == 0); in TEST_IMPL()
201 ASSERT(cl_send_cb_called == 1); in TEST_IMPL()
202 ASSERT(cl_recv_cb_called == 1); in TEST_IMPL()
203 ASSERT(sv_send_cb_called == 1); in TEST_IMPL()
204 ASSERT(sv_recv_cb_called == 1); in TEST_IMPL()
205 ASSERT(close_cb_called == 2); in TEST_IMPL()
207 ASSERT(client.send_queue_size == 0); in TEST_IMPL()
208 ASSERT(server.send_queue_size == 0); in TEST_IMPL()