Lines Matching refs:tt_assert
332 tt_assert(evhttp_connection_get_server(evcon) == arg); in http_basic_cb()
339 tt_assert(sa); in http_basic_cb()
343 tt_assert(!strncmp(addrbuf, "127.0.0.1:", strlen("127.0.0.1:"))); in http_basic_cb()
346 tt_assert(!strncmp(addrbuf, "[::1]:", strlen("[::1]:"))); in http_basic_cb()
708 tt_assert(fd != EVUTIL_INVALID_SOCKET); in http_bad_request_test()
740 tt_assert(fd != EVUTIL_INVALID_SOCKET); in http_bad_request_test()
824 tt_assert(http); in http_delete_test()
826 tt_assert(fd != EVUTIL_INVALID_SOCKET); in http_delete_test()
909 tt_assert(fd != EVUTIL_INVALID_SOCKET); in http_on_complete_test()
970 tt_assert(fd1 != EVUTIL_INVALID_SOCKET); in http_allowed_methods_test()
992 tt_assert(fd2 != EVUTIL_INVALID_SOCKET); in http_allowed_methods_test()
1010 tt_assert(fd3 != EVUTIL_INVALID_SOCKET); in http_allowed_methods_test()
1034 tt_assert(result1); in http_allowed_methods_test()
1035 tt_assert(!strncmp(result1, "HTTP/1.1 501 ", strlen("HTTP/1.1 501 "))); in http_allowed_methods_test()
1038 tt_assert(result2); in http_allowed_methods_test()
1039 tt_assert(!strncmp(result2, "HTTP/1.1 200 ", strlen("HTTP/1.1 200 "))); in http_allowed_methods_test()
1042 tt_assert(result3); in http_allowed_methods_test()
1043 tt_assert(!strncmp(result3, "HTTP/1.1 501 ", strlen("HTTP/1.1 501 "))); in http_allowed_methods_test()
1086 tt_assert(http); in http_connection_test_()
1103 tt_assert(evcon); in http_connection_test_()
1106 tt_assert(evhttp_connection_get_base(evcon) == data->base); in http_connection_test_()
1110 tt_assert(evhttp_connection_get_server(evcon) == NULL); in http_connection_test_()
1129 tt_assert(test_ok); in http_connection_test_()
1204 tt_assert(regress_dnsserver(data->base, &portnum, search_table)); in http_connection_async_test()
1207 tt_assert(dns_base); in http_connection_async_test()
1217 tt_assert(evcon); in http_connection_async_test()
1237 tt_assert(test_ok); in http_connection_async_test()
1298 tt_assert(evcon); in http_autofree_connection_test()
1330 tt_assert(TAILQ_FIRST(&http->connections) == NULL); in http_autofree_connection_test()
1348 tt_assert(!req); in http_failed_request_done()
1356 tt_assert(req); in http_timed_out_request_done()
1418 tt_assert(evcon[i]); in http_fill_backlog()
1422 tt_assert(req); in http_fill_backlog()
1479 tt_assert(regress_dnsserver(data->base, &portnum, search_table)); in http_cancel_test()
1482 tt_assert(dns_base); in http_cancel_test()
1517 tt_assert(evcon); in http_cancel_test()
1696 tt_assert(evhttp_add_server_alias(second, "manolito.info") == 0); in http_virtual_host_test()
1697 tt_assert(evhttp_add_server_alias(third, "bonkers.org") == 0); in http_virtual_host_test()
1700 tt_assert(evcon); in http_virtual_host_test()
1716 tt_assert(test_ok == 1); in http_virtual_host_test()
1735 tt_assert(test_ok == 1); in http_virtual_host_test()
1753 tt_assert(test_ok == 1) in http_virtual_host_test()
1771 tt_assert(test_ok == 1) in http_virtual_host_test()
1789 tt_assert(test_ok == 1) in http_virtual_host_test()
1795 tt_assert(fd != EVUTIL_INVALID_SOCKET); in http_virtual_host_test()
1933 tt_assert(evcon); in http_dispatcher_test()
1944 tt_assert(req); in http_dispatcher_test()
1982 tt_assert(evcon); in http_post_test()
1990 tt_assert(req); in http_post_test()
2007 tt_assert(req); in http_post_test()
2121 tt_assert(evcon); in http_put_test()
2128 tt_assert(req); in http_put_test()
2246 tt_assert(fd != EVUTIL_INVALID_SOCKET); in http_failure_test()
2273 tt_assert(req); in close_detect_done()
2274 tt_assert(evhttp_request_get_response_code(req) == HTTP_OK); in close_detect_done()
2340 tt_assert(evcon); in http_close_detection_()
2344 tt_assert(evcon); in http_close_detection_()
2366 tt_assert(TAILQ_FIRST(&http->connections) == NULL); in http_close_detection_()
2428 tt_assert(real_val != NULL); in validate_header()
2514 tt_assert(evhttp_find_header(&headers, "q") == NULL); in http_parse_query_str_test()
2919 tt_assert(s); \ in http_uriencode_test()
2923 tt_assert(s2); \ in http_uriencode_test()
2933 tt_assert(s); \ in http_uriencode_test()
2942 tt_assert(s); \ in http_uriencode_test()
2967 tt_assert(s); in http_uriencode_test()
2975 tt_assert(s); in http_uriencode_test()
2994 tt_assert(!memcmp(s, "\0\0x\0\0", 5)); in http_uriencode_test()
3001 tt_assert(!memcmp(s, "\0\0x\0\0", 5)); in http_uriencode_test()
3032 tt_assert(base); in http_base_test()
3036 tt_assert(fd != EVUTIL_INVALID_SOCKET); in http_base_test()
3123 tt_assert(fd != EVUTIL_INVALID_SOCKET); in http_incomplete_test_()
3340 tt_assert(fd != EVUTIL_INVALID_SOCKET); in http_chunk_out_test_impl()
3374 tt_assert(evcon); in http_chunk_out_test_impl()
3391 tt_assert(test_ok == 1); in http_chunk_out_test_impl()
3419 tt_assert(evcon); in http_stream_out_test_impl()
3489 tt_assert(evcon); in http_stream_in_test_()
3559 tt_assert(evcon); in http_stream_in_cancel_test()
3588 tt_assert(!req); in http_connection_fail_done()
3621 tt_assert(evcon); in http_connection_fail_test_impl()
3629 tt_assert(req); in http_connection_fail_test_impl()
3648 tt_assert(req); in http_connection_retry_done()
3695 tt_assert(evcon); in http_simple_test_impl()
3699 tt_assert(req); in http_simple_test_impl()
3737 tt_assert(evcon); in http_connection_retry_test_basic()
3739 tt_assert(!evhttp_connection_set_flags(evcon, EVHTTP_CON_REUSE_CONNECTED_ADDR)); in http_connection_retry_test_basic()
3751 tt_assert(req); in http_connection_retry_test_basic()
3786 tt_assert(req); in http_connection_retry_test_basic()
3803 tt_assert(test_ok == 1); in http_connection_retry_test_basic()
3815 tt_assert(req); in http_connection_retry_test_basic()
3856 tt_assert(regress_dnsserver(data->base, &portnum, search_table)); in http_connection_retry_conn_address_test_impl()
3858 tt_assert(dns_base); in http_connection_retry_conn_address_test_impl()
3891 tt_assert(escaped); in http_primitives()
3896 tt_assert(escaped); in http_primitives()
3900 tt_assert(xhttp); in http_primitives()
3930 tt_assert(fd != EVUTIL_INVALID_SOCKET); in http_multi_line_header_test()
3991 tt_assert(evcon); in http_negative_content_length_test()
4021 tt_assert(req); in http_data_length_constraints_test_done()
4029 tt_assert(req); in http_large_entity_test_done()
4037 tt_assert(req); in http_expectation_failed_done()
4061 tt_assert(continue_size < size); in http_data_length_constraints_test_impl()
4069 tt_assert(evcon); in http_data_length_constraints_test_impl()
4072 tt_assert(!evhttp_connection_set_flags(evcon, EVHTTP_CON_READ_ON_WRITE_ERROR)); in http_data_length_constraints_test_impl()
4080 tt_assert(req); in http_data_length_constraints_test_impl()
4090 tt_assert(req); in http_data_length_constraints_test_impl()
4176 tt_assert(!evhttp_set_flags(http, EVHTTP_SERVER_LINGERING_CLOSE)); in http_lingering_close_test_impl()
4180 tt_assert(evcon); in http_lingering_close_test_impl()
4197 tt_assert(req); in http_lingering_close_test_impl()
4329 tt_assert(evhttp_set_cb(http, "/test", in http_terminate_chunked_test_impl()
4333 tt_assert(fd != EVUTIL_INVALID_SOCKET); in http_terminate_chunked_test_impl()
4393 tt_assert(regress_dnsserver(data->base, &portnum, ipv6_search_table)); in http_ipv6_for_domain_test_impl()
4396 tt_assert(dns_base); in http_ipv6_for_domain_test_impl()
4425 tt_assert(evcon); in http_request_get_addr_on_close()
4428 tt_assert(storage); in http_request_get_addr_on_close()
4431 tt_assert(!strncmp(addrbuf, local, sizeof(local) - 1)); in http_request_get_addr_on_close()
4453 tt_assert(evcon); in http_get_addr_test()
4522 tt_assert(fd != EVUTIL_INVALID_SOCKET); in http_write_during_read_test_impl()
4563 tt_assert(evcon); in http_request_own_test()
4596 tt_assert(fd != EVUTIL_INVALID_SOCKET); in http_run_bev_request()
4641 tt_assert(test_ok == -2); in http_request_extra_body_test()
4652 tt_assert(test_ok == -2); in http_request_extra_body_test()