Searched refs:bev2 (Results 1 – 4 of 4) sorted by relevance
/external/libevent/test/ |
D | regress_bufferevent.c | 128 struct bufferevent *bev1 = NULL, *bev2 = NULL; in test_bufferevent_impl() local 137 bev2 = pair[1]; in test_bufferevent_impl() 139 bufferevent_setcb(bev2, readcb, writecb, errorcb, NULL); in test_bufferevent_impl() 142 tt_ptr_op(bufferevent_pair_get_partner(bev1), ==, bev2); in test_bufferevent_impl() 143 tt_ptr_op(bufferevent_pair_get_partner(bev2), ==, bev1); in test_bufferevent_impl() 146 bev2 = bufferevent_new(pair[1], readcb, writecb, errorcb, NULL); in test_bufferevent_impl() 150 tt_ptr_op(bufferevent_pair_get_partner(bev2), ==, NULL); in test_bufferevent_impl() 166 bufferevent_enable(bev2, EV_READ); in test_bufferevent_impl() 169 tt_int_op(bufferevent_get_enabled(bev2), ==, EV_WRITE|EV_READ); in test_bufferevent_impl() 181 bufferevent_free(bev2); in test_bufferevent_impl() [all …]
|
D | regress_zlib.c | 279 struct bufferevent *bev1=NULL, *bev2=NULL; in test_bufferevent_zlib() local 297 bev2 = bufferevent_socket_new(NULL, pair[1], 0); in test_bufferevent_zlib() 309 bev2 = bufferevent_filter_new(bev2, zlib_input_filter, in test_bufferevent_zlib() 312 bufferevent_setcb(bev2, readcb, writecb, errorcb, NULL); in test_bufferevent_zlib() 317 bufferevent_enable(bev2, EV_READ); in test_bufferevent_zlib() 341 if (bev2) in test_bufferevent_zlib() 342 bufferevent_free(bev2); in test_bufferevent_zlib()
|
D | regress_ssl.c | 399 struct bufferevent *bev1, *bev2; in regress_bufferevent_openssl() local 444 open_ssl_bufevs(&bev1, &bev2, data->base, 0, flags, ssl1, ssl2, in regress_bufferevent_openssl() 462 bufferevent_free(bev2); in regress_bufferevent_openssl() 463 bev1 = bev2 = NULL; in regress_bufferevent_openssl() 464 open_ssl_bufevs(&bev1, &bev2, data->base, 1, flags, ssl1, ssl2, in regress_bufferevent_openssl() 470 bufferevent_enable(bev2, EV_READ|EV_WRITE); in regress_bufferevent_openssl() 492 bufferevent_disable(bev2, EV_READ|EV_WRITE); in regress_bufferevent_openssl()
|
D | regress_http.c | 908 struct bufferevent *bev1, *bev2, *bev3; in http_allowed_methods_test() local 943 bev2 = bufferevent_socket_new(data->base, fd2, 0); in http_allowed_methods_test() 944 bufferevent_enable(bev2, EV_READ|EV_WRITE); in http_allowed_methods_test() 945 bufferevent_setcb(bev2, NULL, NULL, in http_allowed_methods_test() 954 bufferevent_write(bev2, http_request, strlen(http_request)); in http_allowed_methods_test() 977 bufferevent_free(bev2); in http_allowed_methods_test()
|