Home
last modified time | relevance | path

Searched refs:bev1 (Results 1 – 4 of 4) sorted by relevance

/external/libevent/test/
Dregress_bufferevent.c128 struct bufferevent *bev1 = NULL, *bev2 = NULL; in test_bufferevent_impl() local
136 bev1 = pair[0]; in test_bufferevent_impl()
138 bufferevent_setcb(bev1, readcb, writecb, errorcb, bev1); in test_bufferevent_impl()
140 tt_int_op(bufferevent_getfd(bev1), ==, -1); in test_bufferevent_impl()
141 tt_ptr_op(bufferevent_get_underlying(bev1), ==, 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()
145 bev1 = bufferevent_new(pair[0], readcb, writecb, errorcb, NULL); in test_bufferevent_impl()
147 tt_int_op(bufferevent_getfd(bev1), ==, pair[0]); in test_bufferevent_impl()
148 tt_ptr_op(bufferevent_get_underlying(bev1), ==, NULL); in test_bufferevent_impl()
[all …]
Dregress_zlib.c279 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 …]
Dregress_ssl.c399 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()
448 tt_int_op(bufferevent_getfd(bev1), ==, data->pair[0]); in regress_bufferevent_openssl()
450 tt_ptr_op(bufferevent_get_underlying(bev1), ==, bev_ll[0]); in regress_bufferevent_openssl()
461 bufferevent_free(bev1); 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()
469 bufferevent_enable(bev1, EV_READ|EV_WRITE); in regress_bufferevent_openssl()
473 evbuffer_add_printf(bufferevent_get_output(bev1), "1\n"); in regress_bufferevent_openssl()
491 bufferevent_enable(bev1, EV_READ|EV_WRITE); in regress_bufferevent_openssl()
[all …]
Dregress_http.c908 struct bufferevent *bev1, *bev2, *bev3; in http_allowed_methods_test() local
925 bev1 = bufferevent_socket_new(data->base, fd1, 0); in http_allowed_methods_test()
926 bufferevent_enable(bev1, EV_READ|EV_WRITE); in http_allowed_methods_test()
927 bufferevent_setcb(bev1, NULL, NULL, in http_allowed_methods_test()
936 bufferevent_write(bev1, http_request, strlen(http_request)); in http_allowed_methods_test()
976 bufferevent_free(bev1); in http_allowed_methods_test()