Lines Matching refs:tt_want
2364 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()
2405 tt_want(validate_header(&headers, "q", "test foo") == 0); in http_parse_query_test()
2410 tt_want(validate_header(&headers, "q", "test\nfoo") == 0); in http_parse_query_test()
2415 tt_want(validate_header(&headers, "q", "test\rfoo") == 0); in http_parse_query_test()
2424 tt_want(validate_header(&headers, "q", "test this") == 0); in http_parse_query_test()
2430 tt_want(validate_header(&headers, "q", "test") == 0); in http_parse_query_test()
2431 tt_want(validate_header(&headers, "q2", "foo") == 0); in http_parse_query_test()
2448 tt_want(validate_header(&headers, "q", "") == 0); in http_parse_query_test()
2449 tt_want(validate_header(&headers, "q2", "") == 0); in http_parse_query_test()
2450 tt_want(validate_header(&headers, "q3", "") == 0); in http_parse_query_test()
2470 tt_want(ret != NULL); \ in http_parse_uri_test()
2471 tt_want(ret == url_tmp); \ in http_parse_uri_test()
2476 tt_want(evhttp_uri_join(NULL, 0, 0) == NULL); in http_parse_uri_test()
2477 tt_want(evhttp_uri_join(NULL, url_tmp, 0) == NULL); in http_parse_uri_test()
2478 tt_want(evhttp_uri_join(NULL, url_tmp, sizeof(url_tmp)) == NULL); in http_parse_uri_test()
2495 tt_want(evhttp_uri_join(uri, url_tmp, \ in http_parse_uri_test()
2538 tt_want(0==evhttp_uri_set_host(uri, "www.example.com")); in http_parse_uri_test()
2539 tt_want(evhttp_uri_join(uri, url_tmp, sizeof(url_tmp)) != NULL); in http_parse_uri_test()
2541 tt_want(evhttp_uri_join(uri, url_tmp, 3) == NULL); in http_parse_uri_test()
2543 tt_want(0==evhttp_uri_set_path(uri, "hi_mom")); in http_parse_uri_test()
2544 tt_want(evhttp_uri_join(uri, url_tmp, sizeof(url_tmp)) == NULL); in http_parse_uri_test()
2545 tt_want(evhttp_uri_join(uri, NULL, sizeof(url_tmp))==NULL); in http_parse_uri_test()
2546 tt_want(evhttp_uri_join(uri, url_tmp, 0)==NULL); in http_parse_uri_test()
2549 tt_want(uri != NULL); in http_parse_uri_test()
2550 tt_want(evhttp_uri_get_host(uri) == NULL); in http_parse_uri_test()
2551 tt_want(evhttp_uri_get_userinfo(uri) == NULL); in http_parse_uri_test()
2552 tt_want(evhttp_uri_get_port(uri) == -1); in http_parse_uri_test()
2553 tt_want(!strcmp(evhttp_uri_get_scheme(uri), "mailto")); in http_parse_uri_test()
2554 tt_want(!strcmp(evhttp_uri_get_path(uri), "foo@bar")); in http_parse_uri_test()
2555 tt_want(evhttp_uri_get_query(uri) == NULL); in http_parse_uri_test()
2556 tt_want(evhttp_uri_get_fragment(uri) == NULL); in http_parse_uri_test()
2562 tt_want(-1 == evhttp_uri_set_scheme(uri,"")); in http_parse_uri_test()
2563 tt_want(-1 == evhttp_uri_set_scheme(uri,"33")); in http_parse_uri_test()
2564 tt_want(-1 == evhttp_uri_set_scheme(uri,"hi!")); in http_parse_uri_test()
2565 tt_want(-1 == evhttp_uri_set_userinfo(uri,"hello@")); in http_parse_uri_test()
2566 tt_want(-1 == evhttp_uri_set_host(uri,"[1.2.3.4]")); in http_parse_uri_test()
2567 tt_want(-1 == evhttp_uri_set_host(uri,"[")); in http_parse_uri_test()
2568 tt_want(-1 == evhttp_uri_set_host(uri,"www.[foo].com")); in http_parse_uri_test()
2569 tt_want(-1 == evhttp_uri_set_port(uri,-3)); in http_parse_uri_test()
2570 tt_want(-1 == evhttp_uri_set_path(uri,"hello?world")); in http_parse_uri_test()
2571 tt_want(-1 == evhttp_uri_set_query(uri,"hello#world")); in http_parse_uri_test()
2572 tt_want(-1 == evhttp_uri_set_fragment(uri,"hello#world")); in http_parse_uri_test()
2574 tt_want(0 == evhttp_uri_set_scheme(uri,"http")); in http_parse_uri_test()
2575 tt_want(0 == evhttp_uri_set_scheme(uri,NULL)); in http_parse_uri_test()
2576 tt_want(0 == evhttp_uri_set_userinfo(uri,"username:pass")); in http_parse_uri_test()
2577 tt_want(0 == evhttp_uri_set_userinfo(uri,NULL)); in http_parse_uri_test()
2578 tt_want(0 == evhttp_uri_set_host(uri,"www.example.com")); in http_parse_uri_test()
2579 tt_want(0 == evhttp_uri_set_host(uri,"1.2.3.4")); in http_parse_uri_test()
2580 tt_want(0 == evhttp_uri_set_host(uri,"[1:2:3:4::]")); in http_parse_uri_test()
2581 tt_want(0 == evhttp_uri_set_host(uri,"[v7.wobblewobble]")); in http_parse_uri_test()
2582 tt_want(0 == evhttp_uri_set_host(uri,NULL)); in http_parse_uri_test()
2583 tt_want(0 == evhttp_uri_set_host(uri,"")); in http_parse_uri_test()
2584 tt_want(0 == evhttp_uri_set_port(uri, -1)); in http_parse_uri_test()
2585 tt_want(0 == evhttp_uri_set_port(uri, 80)); in http_parse_uri_test()
2586 tt_want(0 == evhttp_uri_set_port(uri, 65535)); in http_parse_uri_test()
2587 tt_want(0 == evhttp_uri_set_path(uri, "")); in http_parse_uri_test()
2588 tt_want(0 == evhttp_uri_set_path(uri, "/documents/public/index.html")); in http_parse_uri_test()
2589 tt_want(0 == evhttp_uri_set_path(uri, NULL)); in http_parse_uri_test()
2590 tt_want(0 == evhttp_uri_set_query(uri, "key=val&key2=val2")); in http_parse_uri_test()
2591 tt_want(0 == evhttp_uri_set_query(uri, "keyvalblarg")); in http_parse_uri_test()
2592 tt_want(0 == evhttp_uri_set_query(uri, "")); in http_parse_uri_test()
2593 tt_want(0 == evhttp_uri_set_query(uri, NULL)); in http_parse_uri_test()
2594 tt_want(0 == evhttp_uri_set_fragment(uri, "")); in http_parse_uri_test()
2595 tt_want(0 == evhttp_uri_set_fragment(uri, "here?i?am")); in http_parse_uri_test()
2596 tt_want(0 == evhttp_uri_set_fragment(uri, NULL)); in http_parse_uri_test()
2601 tt_want(strcmp(evhttp_uri_get_scheme(uri), "http") == 0); in http_parse_uri_test()
2602 tt_want(strcmp(evhttp_uri_get_host(uri), "www.test.com") == 0); in http_parse_uri_test()
2603 tt_want(strcmp(evhttp_uri_get_path(uri), "/") == 0); in http_parse_uri_test()
2604 tt_want(strcmp(evhttp_uri_get_query(uri), "q=t%33est") == 0); in http_parse_uri_test()
2605 tt_want(evhttp_uri_get_userinfo(uri) == NULL); in http_parse_uri_test()
2606 tt_want(evhttp_uri_get_port(uri) == -1); in http_parse_uri_test()
2607 tt_want(evhttp_uri_get_fragment(uri) == NULL); in http_parse_uri_test()
2612 tt_want(strcmp(evhttp_uri_get_scheme(uri), "http") == 0); in http_parse_uri_test()
2613 tt_want(strcmp(evhttp_uri_get_host(uri), "%77ww.test.com") == 0); in http_parse_uri_test()
2614 tt_want(strcmp(evhttp_uri_get_path(uri), "") == 0); in http_parse_uri_test()
2615 tt_want(evhttp_uri_get_query(uri) == NULL); in http_parse_uri_test()
2616 tt_want(evhttp_uri_get_userinfo(uri) == NULL); in http_parse_uri_test()
2617 tt_want(evhttp_uri_get_port(uri) == -1); in http_parse_uri_test()
2618 tt_want(evhttp_uri_get_fragment(uri) == NULL); in http_parse_uri_test()
2623 tt_want(strcmp(evhttp_uri_get_scheme(uri), "http") == 0); in http_parse_uri_test()
2624 tt_want(strcmp(evhttp_uri_get_host(uri), "www.test.com") == 0); in http_parse_uri_test()
2625 tt_want(strcmp(evhttp_uri_get_path(uri), "") == 0); in http_parse_uri_test()
2626 tt_want(strcmp(evhttp_uri_get_query(uri), "q=test") == 0); in http_parse_uri_test()
2627 tt_want(evhttp_uri_get_userinfo(uri) == NULL); in http_parse_uri_test()
2628 tt_want(evhttp_uri_get_port(uri) == -1); in http_parse_uri_test()
2629 tt_want(evhttp_uri_get_fragment(uri) == NULL); in http_parse_uri_test()
2634 tt_want(strcmp(evhttp_uri_get_scheme(uri), "http") == 0); in http_parse_uri_test()
2635 tt_want(strcmp(evhttp_uri_get_host(uri), "www.test.com") == 0); in http_parse_uri_test()
2636 tt_want(strcmp(evhttp_uri_get_path(uri), "") == 0); in http_parse_uri_test()
2637 tt_want(evhttp_uri_get_query(uri) == NULL); in http_parse_uri_test()
2638 tt_want(evhttp_uri_get_userinfo(uri) == NULL); in http_parse_uri_test()
2639 tt_want(evhttp_uri_get_port(uri) == -1); in http_parse_uri_test()
2645 tt_want(strcmp(evhttp_uri_get_scheme(uri), "http") == 0); in http_parse_uri_test()
2646 tt_want(strcmp(evhttp_uri_get_host(uri), "8000") == 0); in http_parse_uri_test()
2647 tt_want(strcmp(evhttp_uri_get_path(uri), "/") == 0); in http_parse_uri_test()
2648 tt_want(evhttp_uri_get_query(uri) == NULL); in http_parse_uri_test()
2649 tt_want(evhttp_uri_get_userinfo(uri) == NULL); in http_parse_uri_test()
2650 tt_want(evhttp_uri_get_port(uri) == -1); in http_parse_uri_test()
2651 tt_want(evhttp_uri_get_fragment(uri) == NULL); in http_parse_uri_test()
2656 tt_want(strcmp(evhttp_uri_get_scheme(uri), "http") == 0); in http_parse_uri_test()
2657 tt_want(strcmp(evhttp_uri_get_host(uri), "") == 0); in http_parse_uri_test()
2658 tt_want(strcmp(evhttp_uri_get_path(uri), "/") == 0); in http_parse_uri_test()
2659 tt_want(evhttp_uri_get_query(uri) == NULL); in http_parse_uri_test()
2660 tt_want(evhttp_uri_get_userinfo(uri) == NULL); in http_parse_uri_test()
2661 tt_want(evhttp_uri_get_port(uri) == 8000); in http_parse_uri_test()
2662 tt_want(evhttp_uri_get_fragment(uri) == NULL); in http_parse_uri_test()
2667 tt_want(strcmp(evhttp_uri_get_scheme(uri), "http") == 0); in http_parse_uri_test()
2668 tt_want(strcmp(evhttp_uri_get_host(uri), "www.test.com") == 0); in http_parse_uri_test()
2670 tt_want(evhttp_uri_get_query(uri) == NULL); in http_parse_uri_test()
2671 tt_want(evhttp_uri_get_userinfo(uri) == NULL); in http_parse_uri_test()
2672 tt_want(evhttp_uri_get_port(uri) == -1); in http_parse_uri_test()
2673 tt_want(evhttp_uri_get_fragment(uri) == NULL); in http_parse_uri_test()
2678 tt_want(strcmp(evhttp_uri_get_scheme(uri), "http") == 0); in http_parse_uri_test()
2679 tt_want(strcmp(evhttp_uri_get_host(uri), "www.test.com") == 0); in http_parse_uri_test()
2680 tt_want(strcmp(evhttp_uri_get_path(uri), "") == 0); in http_parse_uri_test()
2681 tt_want(evhttp_uri_get_query(uri) == NULL); in http_parse_uri_test()
2682 tt_want(evhttp_uri_get_userinfo(uri) == NULL); in http_parse_uri_test()
2683 tt_want(evhttp_uri_get_port(uri) == -1); in http_parse_uri_test()
2684 tt_want(evhttp_uri_get_fragment(uri) == NULL); in http_parse_uri_test()
2689 tt_want(strcmp(evhttp_uri_get_scheme(uri), "ftp") == 0); in http_parse_uri_test()
2690 tt_want(strcmp(evhttp_uri_get_host(uri), "www.test.com") == 0); in http_parse_uri_test()
2691 tt_want(strcmp(evhttp_uri_get_path(uri), "/") == 0); in http_parse_uri_test()
2692 tt_want(strcmp(evhttp_uri_get_query(uri), "q=test") == 0); in http_parse_uri_test()
2693 tt_want(evhttp_uri_get_userinfo(uri) == NULL); in http_parse_uri_test()
2694 tt_want(evhttp_uri_get_port(uri) == -1); in http_parse_uri_test()
2695 tt_want(evhttp_uri_get_fragment(uri) == NULL); in http_parse_uri_test()
2700 tt_want(strcmp(evhttp_uri_get_scheme(uri), "ftp") == 0); in http_parse_uri_test()
2701 tt_want(strcmp(evhttp_uri_get_host(uri), "[::1]") == 0); in http_parse_uri_test()
2702 tt_want(strcmp(evhttp_uri_get_path(uri), "/") == 0); in http_parse_uri_test()
2703 tt_want(strcmp(evhttp_uri_get_query(uri), "q=test") == 0); in http_parse_uri_test()
2704 tt_want(evhttp_uri_get_userinfo(uri) == NULL); in http_parse_uri_test()
2705 tt_want(evhttp_uri_get_port(uri) == 999); in http_parse_uri_test()
2706 tt_want(evhttp_uri_get_fragment(uri) == NULL); in http_parse_uri_test()
2711 tt_want(strcmp(evhttp_uri_get_scheme(uri), "ftp") == 0); in http_parse_uri_test()
2712 tt_want(strcmp(evhttp_uri_get_host(uri), "[ff00::127.0.0.1]") == 0); in http_parse_uri_test()
2713 tt_want(strcmp(evhttp_uri_get_path(uri), "/") == 0); in http_parse_uri_test()
2714 tt_want(strcmp(evhttp_uri_get_query(uri), "q=test") == 0); in http_parse_uri_test()
2715 tt_want(evhttp_uri_get_userinfo(uri) == NULL); in http_parse_uri_test()
2716 tt_want(evhttp_uri_get_port(uri) == -1); in http_parse_uri_test()
2717 tt_want(evhttp_uri_get_fragment(uri) == NULL); in http_parse_uri_test()
2722 tt_want(strcmp(evhttp_uri_get_scheme(uri), "ftp") == 0); in http_parse_uri_test()
2723 tt_want(strcmp(evhttp_uri_get_host(uri), "[v99.not_(any:time)_soon]") == 0); in http_parse_uri_test()
2724 tt_want(strcmp(evhttp_uri_get_path(uri), "/") == 0); in http_parse_uri_test()
2725 tt_want(strcmp(evhttp_uri_get_query(uri), "q=test") == 0); in http_parse_uri_test()
2726 tt_want(evhttp_uri_get_userinfo(uri) == NULL); in http_parse_uri_test()
2727 tt_want(evhttp_uri_get_port(uri) == -1); in http_parse_uri_test()
2728 tt_want(evhttp_uri_get_fragment(uri) == NULL); in http_parse_uri_test()
2733 tt_want(strcmp(evhttp_uri_get_scheme(uri), "scheme") == 0); in http_parse_uri_test()
2734 tt_want(strcmp(evhttp_uri_get_userinfo(uri), "user:pass") == 0); in http_parse_uri_test()
2735 tt_want(strcmp(evhttp_uri_get_host(uri), "foo.com") == 0); in http_parse_uri_test()
2736 tt_want(evhttp_uri_get_port(uri) == 42); in http_parse_uri_test()
2737 tt_want(strcmp(evhttp_uri_get_path(uri), "/") == 0); in http_parse_uri_test()
2738 tt_want(strcmp(evhttp_uri_get_query(uri), "q=test&s=some+thing") == 0); in http_parse_uri_test()
2739 tt_want(strcmp(evhttp_uri_get_fragment(uri), "fragment") == 0); in http_parse_uri_test()
2744 tt_want(strcmp(evhttp_uri_get_scheme(uri), "scheme") == 0); in http_parse_uri_test()
2745 tt_want(strcmp(evhttp_uri_get_userinfo(uri), "user") == 0); in http_parse_uri_test()
2746 tt_want(strcmp(evhttp_uri_get_host(uri), "foo.com") == 0); in http_parse_uri_test()
2747 tt_want(evhttp_uri_get_port(uri) == -1); in http_parse_uri_test()
2748 tt_want(strcmp(evhttp_uri_get_path(uri), "/") == 0); in http_parse_uri_test()
2749 tt_want(evhttp_uri_get_query(uri) == NULL); in http_parse_uri_test()
2750 tt_want(strcmp(evhttp_uri_get_fragment(uri), "fragment") == 0); in http_parse_uri_test()
2755 tt_want(strcmp(evhttp_uri_get_scheme(uri), "scheme") == 0); in http_parse_uri_test()
2756 tt_want(strcmp(evhttp_uri_get_userinfo(uri), "%75ser") == 0); in http_parse_uri_test()
2757 tt_want(strcmp(evhttp_uri_get_host(uri), "foo.com") == 0); in http_parse_uri_test()
2758 tt_want(evhttp_uri_get_port(uri) == -1); in http_parse_uri_test()
2759 tt_want(strcmp(evhttp_uri_get_path(uri), "/") == 0); in http_parse_uri_test()
2760 tt_want(evhttp_uri_get_query(uri) == NULL); in http_parse_uri_test()
2761 tt_want(strcmp(evhttp_uri_get_fragment(uri), "frag@ment") == 0); in http_parse_uri_test()
2766 tt_want(strcmp(evhttp_uri_get_scheme(uri), "file") == 0); in http_parse_uri_test()
2767 tt_want(evhttp_uri_get_userinfo(uri) == NULL); in http_parse_uri_test()
2768 tt_want(strcmp(evhttp_uri_get_host(uri), "") == 0); in http_parse_uri_test()
2769 tt_want(evhttp_uri_get_port(uri) == -1); in http_parse_uri_test()
2770 tt_want(strcmp(evhttp_uri_get_path(uri), "/some/path/to/the/file") == 0); in http_parse_uri_test()
2771 tt_want(evhttp_uri_get_query(uri) == NULL); in http_parse_uri_test()
2772 tt_want(evhttp_uri_get_fragment(uri) == NULL); in http_parse_uri_test()
2777 tt_want(uri != NULL); in http_parse_uri_test()
2778 tt_want(evhttp_uri_get_scheme(uri) == NULL); in http_parse_uri_test()
2779 tt_want(evhttp_uri_get_userinfo(uri) == NULL); in http_parse_uri_test()
2780 tt_want(strcmp(evhttp_uri_get_host(uri), "") == 0); in http_parse_uri_test()
2781 tt_want(evhttp_uri_get_port(uri) == -1); in http_parse_uri_test()
2782 tt_want(strcmp(evhttp_uri_get_path(uri), "/some/path/to/the-file") == 0); in http_parse_uri_test()
2783 tt_want(evhttp_uri_get_query(uri) == NULL); in http_parse_uri_test()
2784 tt_want(evhttp_uri_get_fragment(uri) == NULL); in http_parse_uri_test()
2789 tt_want(uri != NULL); in http_parse_uri_test()
2790 tt_want(evhttp_uri_get_scheme(uri) == NULL); in http_parse_uri_test()
2791 tt_want(evhttp_uri_get_userinfo(uri) == NULL); in http_parse_uri_test()
2792 tt_want(evhttp_uri_get_host(uri) == NULL); in http_parse_uri_test()
2793 tt_want(evhttp_uri_get_port(uri) == -1); in http_parse_uri_test()
2794 tt_want(strcmp(evhttp_uri_get_path(uri), "/s:ome/path/to/the-file") == 0); in http_parse_uri_test()
2795 tt_want(strcmp(evhttp_uri_get_query(uri), "q=99") == 0); in http_parse_uri_test()
2796 tt_want(strcmp(evhttp_uri_get_fragment(uri), "fred") == 0); in http_parse_uri_test()
2801 tt_want(uri != NULL); in http_parse_uri_test()
2802 tt_want(evhttp_uri_get_scheme(uri) == NULL); in http_parse_uri_test()
2803 tt_want(evhttp_uri_get_userinfo(uri) == NULL); in http_parse_uri_test()
2804 tt_want(evhttp_uri_get_host(uri) == NULL); in http_parse_uri_test()
2805 tt_want(evhttp_uri_get_port(uri) == -1); in http_parse_uri_test()
2806 tt_want(strcmp(evhttp_uri_get_path(uri), "relative/path/with/co:lon") == 0); in http_parse_uri_test()
2807 tt_want(evhttp_uri_get_query(uri) == NULL); in http_parse_uri_test()
2808 tt_want(evhttp_uri_get_fragment(uri) == NULL); in http_parse_uri_test()
2813 tt_want(uri != NULL); in http_parse_uri_test()
2814 tt_want(evhttp_uri_get_scheme(uri) == NULL); in http_parse_uri_test()
2815 tt_want(evhttp_uri_get_userinfo(uri) == NULL); in http_parse_uri_test()
2816 tt_want(evhttp_uri_get_host(uri) == NULL); in http_parse_uri_test()
2817 tt_want(evhttp_uri_get_port(uri) == -1); in http_parse_uri_test()
2818 tt_want(strcmp(evhttp_uri_get_path(uri), "bob") == 0); in http_parse_uri_test()
2819 tt_want(strcmp(evhttp_uri_get_query(uri), "q=99&q2=q?33") == 0); in http_parse_uri_test()
2820 tt_want(strcmp(evhttp_uri_get_fragment(uri), "fr?ed") == 0); in http_parse_uri_test()
2825 tt_want(uri != NULL); in http_parse_uri_test()
2826 tt_want(evhttp_uri_get_scheme(uri) == NULL); in http_parse_uri_test()
2827 tt_want(evhttp_uri_get_userinfo(uri) == NULL); in http_parse_uri_test()
2828 tt_want(evhttp_uri_get_host(uri) == NULL); in http_parse_uri_test()
2829 tt_want(evhttp_uri_get_port(uri) == -1); in http_parse_uri_test()
2830 tt_want(strcmp(evhttp_uri_get_path(uri), "") == 0); in http_parse_uri_test()
2831 tt_want(evhttp_uri_get_query(uri) == NULL); in http_parse_uri_test()
2832 tt_want(strcmp(evhttp_uri_get_fragment(uri), "fr?ed") == 0); in http_parse_uri_test()