Home
last modified time | relevance | path

Searched refs:tt_want (Results 1 – 11 of 11) sorted by relevance

/external/libevent/test/
Dregress_http.c2408 tt_want(evhttp_add_header(&headers, "One", "Two") == 0); in http_bad_header_test()
2409 tt_want(evhttp_add_header(&headers, "One", "Two\r\n Three") == 0); in http_bad_header_test()
2410 tt_want(evhttp_add_header(&headers, "One\r", "Two") == -1); in http_bad_header_test()
2411 tt_want(evhttp_add_header(&headers, "One\n", "Two") == -1); in http_bad_header_test()
2412 tt_want(evhttp_add_header(&headers, "One", "Two\r") == -1); in http_bad_header_test()
2413 tt_want(evhttp_add_header(&headers, "One", "Two\n") == -1); in http_bad_header_test()
2424 tt_want(strcmp(real_val, value) == 0); in validate_header()
2438 tt_want(validate_header(&headers, "q", "test") == 0); in http_parse_query_test()
2443 tt_want(validate_header(&headers, "q", "test") == 0); in http_parse_query_test()
2444 tt_want(validate_header(&headers, "foo", "bar") == 0); in http_parse_query_test()
[all …]
Dregress_iocp.c190 tt_want(!event_iocp_shutdown_(port, 2000)); in test_iocp_port()
195 tt_want(pair_is_in(&o1, 10, 100)); in test_iocp_port()
196 tt_want(pair_is_in(&o1, 11, 101)); in test_iocp_port()
197 tt_want(pair_is_in(&o1, 12, 102)); in test_iocp_port()
198 tt_want(pair_is_in(&o1, 13, 103)); in test_iocp_port()
200 tt_want(pair_is_in(&o2, 20, 200)); in test_iocp_port()
201 tt_want(pair_is_in(&o2, 21, 201)); in test_iocp_port()
202 tt_want(pair_is_in(&o2, 22, 202)); in test_iocp_port()
203 tt_want(pair_is_in(&o2, 23, 203)); in test_iocp_port()
286 tt_want(!event_iocp_shutdown_(port, 2000)); in test_iocp_evbuffer()
Dregress_zlib.c331 tt_want(infilter_calls); in test_bufferevent_zlib()
332 tt_want(outfilter_calls); in test_bufferevent_zlib()
333 tt_want(readcb_finished); in test_bufferevent_zlib()
334 tt_want(writecb_finished); in test_bufferevent_zlib()
335 tt_want(!errorcb_invoked); in test_bufferevent_zlib()
Dregress_minheap.c49 tt_want(evutil_timercmp(&heap->p[i]->ev_timeout, in check_heap()
85 tt_want(evutil_timercmp(&last_e->ev_timeout, in test_heap_randomized()
Dregress_bufferevent.c785 tt_want(!bufferevent_socket_connect(bev1, sa, sizeof(localhost))); in test_bufferevent_connect()
786 tt_want(!bufferevent_socket_connect(bev2, sa, sizeof(localhost))); in test_bufferevent_connect()
843 tt_want(r == 0 || r == -1); in test_bufferevent_connect_fail_eventcb()
911 tt_want(r == 0 || r == -1); in test_bufferevent_connect_fail()
1049 tt_want(res1.total_calls == 2); in test_bufferevent_timeouts()
1050 tt_want(res1.n_read_timeouts == 1); in test_bufferevent_timeouts()
1051 tt_want(res1.n_write_timeouts == 1); in test_bufferevent_timeouts()
1052 tt_want(res2.total_calls == !(use_pair && !use_filter)); in test_bufferevent_timeouts()
1053 tt_want(res2.n_write_timeouts == !(use_pair && !use_filter)); in test_bufferevent_timeouts()
1054 tt_want(!res2.n_read_timeouts); in test_bufferevent_timeouts()
[all …]
Dregress_util.c434 tt_want(evutil_strtoll("5000000000", NULL, 10) == in test_evutil_strtoll()
436 tt_want(evutil_strtoll("-5000000000", NULL, 10) == in test_evutil_strtoll()
439 tt_want(evutil_strtoll(s, &endptr, 10) == (ev_int64_t)99999); in test_evutil_strtoll()
440 tt_want(endptr == s+6); in test_evutil_strtoll()
441 tt_want(evutil_strtoll("foo", NULL, 10) == 0); in test_evutil_strtoll()
544 tt_want(msg); in logfn()
Dregress_testutils.c213 tt_want(! evdns_server_request_drop(req)); in regress_dns_server_cb()
Dtinytest_macros.h109 #define tt_want(b) tt_want_msg( (b), "want("#b")") macro
Dregress_buffer.c979 tt_want(extra == (void *)0xdeadaffe); in reference_cb()
1750 tt_want(p == NULL); in test_evbuffer_find()
1764 tt_want(p == NULL); in test_evbuffer_find()
1769 tt_want(strncmp((char*)p, "ax", 2) == 0); in test_evbuffer_find()
Dregress.c1484 tt_want(ev == event_base_get_running_event(base)); in event_selfarg_cb()
3042 tt_want(check_dummy_mem_ok(mem_)); in dummy_realloc()
3052 tt_want(check_dummy_mem_ok(mem_)); in dummy_free()
Dregress_dns.c702 tt_want(! evdns_server_request_drop(req)); in fail_server_cb()
723 tt_want(! evdns_server_request_drop(req)); in fail_server_cb()