Searched refs:bev1 (Results 1 – 4 of 4) sorted by relevance
/external/libevent/test/ |
D | regress_bufferevent.c | 141 struct bufferevent *bev1 = NULL, *bev2 = NULL; in test_bufferevent_impl() local 149 bev1 = pair[0]; in test_bufferevent_impl() 151 bufferevent_setcb(bev1, readcb, writecb, errorcb, bev1); in test_bufferevent_impl() 153 tt_fd_op(bufferevent_getfd(bev1), ==, EVUTIL_INVALID_SOCKET); in test_bufferevent_impl() 154 tt_ptr_op(bufferevent_get_underlying(bev1), ==, NULL); in test_bufferevent_impl() 155 tt_ptr_op(bufferevent_pair_get_partner(bev1), ==, bev2); in test_bufferevent_impl() 156 tt_ptr_op(bufferevent_pair_get_partner(bev2), ==, bev1); in test_bufferevent_impl() 158 bev1 = bufferevent_new(pair[0], readcb, writecb, errorcb, NULL); in test_bufferevent_impl() 160 tt_fd_op(bufferevent_getfd(bev1), ==, pair[0]); in test_bufferevent_impl() 161 tt_ptr_op(bufferevent_get_underlying(bev1), ==, NULL); in test_bufferevent_impl() [all …]
|
D | regress_zlib.c | 279 struct bufferevent *bev1=NULL, *bev2=NULL; in test_bufferevent_zlib() local 296 bev1 = bufferevent_socket_new(NULL, pair[0], 0); in test_bufferevent_zlib() 307 bev1 = bufferevent_filter_new(bev1, NULL, zlib_output_filter, in test_bufferevent_zlib() 311 bufferevent_setcb(bev1, readcb, writecb, errorcb, NULL); in test_bufferevent_zlib() 314 bufferevent_disable(bev1, EV_READ); in test_bufferevent_zlib() 315 bufferevent_enable(bev1, EV_WRITE); in test_bufferevent_zlib() 323 bufferevent_write(bev1, buffer, 1800); in test_bufferevent_zlib() 324 bufferevent_write(bev1, buffer + 1800, sizeof(buffer) - 1800); in test_bufferevent_zlib() 327 bufferevent_flush(bev1, EV_WRITE, BEV_FINISHED); in test_bufferevent_zlib() 339 if (bev1) in test_bufferevent_zlib() [all …]
|
D | regress_ssl.c | 462 struct bufferevent *bev1, *bev2; in regress_bufferevent_openssl() local 500 open_ssl_bufevs(&bev1, &bev2, data->base, 0, flags, ssl1, ssl2, in regress_bufferevent_openssl() 504 tt_fd_op(bufferevent_getfd(bev1), ==, data->pair[0]); in regress_bufferevent_openssl() 506 tt_ptr_op(bufferevent_get_underlying(bev1), ==, bev_ll[0]); in regress_bufferevent_openssl() 517 bufferevent_free(bev1); in regress_bufferevent_openssl() 519 bev1 = bev2 = NULL; in regress_bufferevent_openssl() 520 open_ssl_bufevs(&bev1, &bev2, data->base, 1, flags, ssl1, ssl2, in regress_bufferevent_openssl() 525 bufferevent_enable(bev1, EV_READ|EV_WRITE); in regress_bufferevent_openssl() 529 evbuffer_add_printf(bufferevent_get_output(bev1), "1\n"); in regress_bufferevent_openssl() 547 bufferevent_enable(bev1, EV_READ|EV_WRITE); in regress_bufferevent_openssl() [all …]
|
D | regress_http.c | 954 struct bufferevent *bev1, *bev2, *bev3; in http_allowed_methods_test() local 971 bev1 = bufferevent_socket_new(data->base, fd1, 0); in http_allowed_methods_test() 972 bufferevent_enable(bev1, EV_READ|EV_WRITE); in http_allowed_methods_test() 973 bufferevent_setcb(bev1, NULL, NULL, in http_allowed_methods_test() 982 bufferevent_write(bev1, http_request, strlen(http_request)); in http_allowed_methods_test() 1022 bufferevent_free(bev1); in http_allowed_methods_test()
|