Home
last modified time | relevance | path

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

/external/libevent/test/
Dregress_http.c2364 tt_want(evhttp_add_header(&headers, "One", "Two") == 0); in http_bad_header_test()
2365 tt_want(evhttp_add_header(&headers, "One", "Two\r\n Three") == 0); in http_bad_header_test()
2366 tt_want(evhttp_add_header(&headers, "One\r", "Two") == -1); in http_bad_header_test()
2367 tt_want(evhttp_add_header(&headers, "One\n", "Two") == -1); in http_bad_header_test()
2368 tt_want(evhttp_add_header(&headers, "One", "Two\r") == -1); in http_bad_header_test()
2369 tt_want(evhttp_add_header(&headers, "One", "Two\n") == -1); in http_bad_header_test()
2380 tt_want(strcmp(real_val, value) == 0); in validate_header()
2394 tt_want(validate_header(&headers, "q", "test") == 0); in http_parse_query_test()
2399 tt_want(validate_header(&headers, "q", "test") == 0); in http_parse_query_test()
2400 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.c772 tt_want(!bufferevent_socket_connect(bev1, sa, sizeof(localhost))); in test_bufferevent_connect()
773 tt_want(!bufferevent_socket_connect(bev2, sa, sizeof(localhost))); in test_bufferevent_connect()
883 tt_want(r == 0 || r == -1); in test_bufferevent_connect_fail()
1034 tt_want(res1.n_read_timeouts); in test_bufferevent_timeouts()
1035 tt_want(res1.n_write_timeouts); in test_bufferevent_timeouts()
1036 tt_want(res1.n_read_timeouts == 1); in test_bufferevent_timeouts()
1037 tt_want(res1.n_write_timeouts == 1); in test_bufferevent_timeouts()
1162 tt_want(!bufferevent_socket_connect(bev, sa, sizeof(localhost))); in test_bufferevent_trigger()
Dregress_util.c371 tt_want(evutil_strtoll("5000000000", NULL, 10) == in test_evutil_strtoll()
373 tt_want(evutil_strtoll("-5000000000", NULL, 10) == in test_evutil_strtoll()
376 tt_want(evutil_strtoll(s, &endptr, 10) == (ev_int64_t)99999); in test_evutil_strtoll()
377 tt_want(endptr == s+6); in test_evutil_strtoll()
378 tt_want(evutil_strtoll("foo", NULL, 10) == 0); in test_evutil_strtoll()
481 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.c789 tt_want(extra == (void *)0xdeadaffe); in reference_cb()
1560 tt_want(p == NULL); in test_evbuffer_find()
1574 tt_want(p == NULL); in test_evbuffer_find()
1579 tt_want(strncmp((char*)p, "ax", 2) == 0); in test_evbuffer_find()
Dregress.c1402 tt_want(ev == event_base_get_running_event(base)); in event_selfarg_cb()
2971 tt_want(check_dummy_mem_ok(mem_)); in dummy_realloc()
2981 tt_want(check_dummy_mem_ok(mem_)); in dummy_free()
Dregress_dns.c703 tt_want(! evdns_server_request_drop(req)); in fail_server_cb()
724 tt_want(! evdns_server_request_drop(req)); in fail_server_cb()