/third_party/libsoup/tests/ |
D | cache-test.c | 189 soup_test_assert (!last_request_unqueued, in do_request() 332 soup_test_assert (!last_request_hit_network, in do_basics_test() 334 soup_test_assert (last_request_unqueued, in do_basics_test() 345 soup_test_assert (!last_request_validated, in do_basics_test() 347 soup_test_assert (!last_request_hit_network, in do_basics_test() 349 soup_test_assert (last_request_unqueued, in do_basics_test() 359 soup_test_assert (last_request_hit_network, in do_basics_test() 361 soup_test_assert (last_request_unqueued, in do_basics_test() 367 soup_test_assert (!last_request_hit_network, in do_basics_test() 369 soup_test_assert (last_request_unqueued, in do_basics_test() [all …]
|
D | no-ssl-test.c | 18 soup_test_assert (!is_https, "get_http_status() returned TRUE? (flags %x)", flags); in do_ssl_test_for_session() 75 soup_test_assert (!use_system, "ssl-use-system-ca-file defaults to TRUE"); in do_session_property_tests() 76 soup_test_assert (tlsdb == NULL, "tls-database set by default"); in do_session_property_tests() 77 soup_test_assert (ca_file == NULL, "ca-file set by default"); in do_session_property_tests() 85 soup_test_assert (ca_file == NULL, "setting ssl-use-system-ca-file set ssl-ca-file"); in do_session_property_tests() 96 soup_test_assert (ca_file == NULL, "setting ssl-ca-file did not fail"); in do_session_property_tests() 97 soup_test_assert (!use_system, "setting ssl-ca-file set ssl-use-system-ca-file"); in do_session_property_tests() 98 soup_test_assert (tlsdb == NULL, "setting ssl-ca-file set tls-database"); in do_session_property_tests() 108 soup_test_assert (tlsdb == NULL, "setting tls-database NULL failed"); in do_session_property_tests() 109 soup_test_assert (!use_system, "setting tls-database NULL set ssl-use-system-ca-file"); in do_session_property_tests() [all …]
|
D | connection-test.c | 235 soup_test_assert (i < 4, "socket queue overflowed"); in request_started_socket_collector() 258 soup_test_assert (sockets[1] == NULL, "Message was retried"); in do_timeout_test_for_session() 274 soup_test_assert (sockets[1] == sockets[0], in do_timeout_test_for_session() 276 soup_test_assert (sockets[2] != NULL, in do_timeout_test_for_session() 278 soup_test_assert (sockets[2] != sockets[1], in do_timeout_test_for_session() 280 soup_test_assert (sockets[3] == NULL, in do_timeout_test_for_session() 328 soup_test_assert (sockets[1] == NULL, "Message was retried"); in do_timeout_req_test_for_session() 358 soup_test_assert (sockets[1] == sockets[0], in do_timeout_req_test_for_session() 360 soup_test_assert (sockets[2] != NULL, in do_timeout_req_test_for_session() 362 soup_test_assert (sockets[2] != sockets[1], in do_timeout_req_test_for_session() [all …]
|
D | ssl-test.c | 23 soup_test_assert (FALSE, "Response not https"); in do_properties_test_for_session() 178 soup_test_assert (!use_system, in do_session_property_tests() 180 soup_test_assert (tlsdb == NULL, in do_session_property_tests() 182 soup_test_assert (ca_file == NULL, in do_session_property_tests() 194 soup_test_assert (use_system, in do_session_property_tests() 197 soup_test_assert (tlsdb != NULL, in do_session_property_tests() 201 soup_test_assert (ca_file == NULL, in do_session_property_tests() 214 soup_test_assert (!use_system, in do_session_property_tests() 217 soup_test_assert (tlsdb != NULL, in do_session_property_tests() 221 soup_test_assert (ca_file != NULL, in do_session_property_tests() [all …]
|
D | auth-test.c | 207 soup_test_assert (auth == exp, in handler() 211 soup_test_assert (*expected, in handler() 247 soup_test_assert (*authenticated || !auth, in bug271540_sent() 249 soup_test_assert (!*authenticated || auth, in bug271540_sent() 269 soup_test_assert (!*authenticated, in bug271540_authenticate() 440 soup_test_assert (got_401 == expect_401, in do_digest_nonce_test() 532 soup_test_assert (!*been_here, in async_authenticate_assert_once() 545 soup_test_assert (!*been_here, in async_authenticate_assert_once_and_stop() 618 soup_test_assert (auth, "msg1 didn't get authenticate signal"); in do_async_auth_good_password_test() 678 soup_test_assert (been_there, in do_async_auth_bad_password_test() [all …]
|
D | context-test.c | 111 soup_test_assert (FALSE, "timeout"); in idle_start_test1_thread() 231 soup_test_assert (FALSE, "idle ran"); in idle_test2_fail() 298 soup_test_assert (FALSE, "msg1 not started"); in do_multicontext_test() 300 soup_test_assert (FALSE, "msg2 started while loop1 was running"); in do_multicontext_test() 307 soup_test_assert (FALSE, "msg1 finished while loop2 was running"); in do_multicontext_test() 309 soup_test_assert (FALSE, "msg2 not finished"); in do_multicontext_test() 316 soup_test_assert (FALSE, "msg1 not finished"); in do_multicontext_test()
|
D | range-test.c | 19 soup_test_assert (FALSE, "Could not find/parse Content-Range"); in check_part() 24 soup_test_assert (FALSE, in check_part() 33 soup_test_assert (FALSE, in check_part() 41 soup_test_assert (FALSE, in check_part() 49 soup_test_assert (FALSE, "Range length (%d) does not match body length (%d)\n", in check_part() 127 soup_test_assert (FALSE, "Could not parse multipart"); in do_multi_range()
|
D | session-test.c | 109 soup_test_assert (!local_timeout, in do_test_for_session() 112 soup_test_assert (local_timeout, in do_test_for_session() 191 soup_test_assert (priority == expected_priorities[*finished_count], in priority_test_finished_cb() 253 soup_test_assert (proxy_resolver == expected_proxy_resolver, in test_session_properties() 256 soup_test_assert (tlsdb == expected_tls_database, in test_session_properties()
|
D | xmlrpc-old-test.c | 46 soup_test_assert (FALSE, "FAULT: %d %s\n", err->code, err->message); in send_xmlrpc() 49 soup_test_assert (FALSE, "ERROR: could not parse response\n"); in send_xmlrpc() 390 soup_test_assert (FALSE, "ERROR: XML did not contain <params/>!"); in test_ping() 432 soup_test_assert (FALSE, "ERROR: could not parse response\n"); in do_bad_xmlrpc() 434 soup_test_assert (FALSE, "Unexpectedly got successful response!\n"); in do_bad_xmlrpc()
|
D | chunk-test.c | 26 soup_test_assert (ptd->chunks[ptd->next - 1] == NULL, in write_next_chunk() 56 soup_test_assert (chunk, in write_next_chunk_streaming_hack() 83 soup_test_assert (*buffer_ptr, in clear_buffer_ptr() 227 soup_test_assert (gtd->current_chunk == NULL, in chunk_allocator() 303 soup_test_assert (chunk, "Lost second chunk"); in temp_test_wrote_chunk()
|
D | timeout-test.c | 84 soup_test_assert (idle_first != idle_second, in do_msg_tests_for_session() 96 soup_test_assert (plain_first == plain_second, in do_msg_tests_for_session() 182 soup_test_assert (idle_first != idle_second, in do_req_tests_for_session() 194 soup_test_assert (plain_first == plain_second, in do_req_tests_for_session()
|
D | test-utils.h | 97 #define soup_test_assert(expr, ...) \ macro 109 void soup_test_assert (gboolean expr, const char *fmt, ...);
|
D | date-test.c | 80 soup_test_assert (strcmp (good->date, strdate2) == 0, in check_good() 230 soup_test_assert (date == NULL, in check_bad() 344 soup_test_assert (FALSE, "date parsing failed for '%s'.", conv->source); in check_conversion()
|
D | xmlrpc-test.c | 44 soup_test_assert (FALSE, "FAULT: %d %s\n", err->code, err->message); in send_xmlrpc() 46 soup_test_assert (FALSE, "ERROR: %s\n", err->message); in send_xmlrpc() 359 soup_test_assert (FALSE, "ERROR: XML did not contain <params/>!"); in test_ping() 399 soup_test_assert (FALSE, "ERROR: could not parse response: %s\n", err->message); in do_bad_xmlrpc() 401 soup_test_assert (FALSE, "Unexpectedly got successful response!\n"); in do_bad_xmlrpc()
|
D | proxy-test.c | 48 soup_test_assert (!soup_auth_is_for_proxy (auth), in authenticate() 51 soup_test_assert (soup_auth_is_for_proxy (auth), in authenticate() 54 soup_test_assert (FALSE, in authenticate() 315 soup_test_assert (strcmp (req_uri->path, new_uri->path) != 0, in do_proxy_redirect_test()
|
D | continue-test.c | 105 soup_test_assert (events != NULL, in EVENT_HANDLER() 129 soup_test_assert (expected_status == actual_status, in EVENT_HANDLER() 140 soup_test_assert (events == NULL, in EVENT_HANDLER()
|
D | sniffing-test.c | 151 soup_test_assert (g_object_get_data (G_OBJECT (msg), "got-chunk") == NULL, in content_sniffed() 170 soup_test_assert (g_object_get_data (G_OBJECT (msg), "content-sniffed") == NULL, in got_headers() 243 soup_test_assert (g_object_get_data (G_OBJECT (msg), "content-sniffed") != NULL, in do_signals_test() 246 soup_test_assert (g_object_get_data (G_OBJECT (msg), "content-sniffed") == NULL, in do_signals_test()
|
D | multipart-test.c | 93 soup_test_assert (is_next, in check_is_next() 200 soup_test_assert (FALSE, "unexpected read of size: %d", (int)nread); in check_read() 290 soup_test_assert (FALSE, "unexpected part received"); in check_headers()
|
D | header-parsing-test.c | 1063 soup_test_assert (FALSE, "UTF-8 decoding FAILED"); in do_content_disposition_tests() 1079 soup_test_assert (FALSE, "iso-8859-1 decoding FAILED"); in do_content_disposition_tests() 1095 soup_test_assert (FALSE, "fallback decoding FAILED"); in do_content_disposition_tests()
|
D | pull-api-test.c | 315 soup_test_assert (!sync_async_is_finished (msg), in do_synchronously_async_test() 318 soup_test_assert (sync_async_is_finished (msg), in do_synchronously_async_test()
|
D | redirect-test.c | 152 soup_test_assert ((*treq)->method, in restarted()
|
D | cookies-test.c | 341 soup_test_assert (FALSE, "got unexpected cookie '%s'", in do_cookies_parsing_test()
|
D | misc-test.c | 335 soup_test_assert (id == 0, in ensure_no_signal_handlers() 916 soup_test_assert (FALSE, "idle was queued"); in do_idle_on_dispose_test()
|
D | ntlm-test.c | 432 soup_test_assert (authenticated_ntlm == (use_ntlm && use_builtin_ntlm), in do_ntlm_round()
|
D | server-test.c | 25 soup_test_assert (FALSE, "default server_callback got request for '*'"); in server_callback() 101 soup_test_assert (FALSE, "server_star_callback got request for '%s'", path); in server_star_callback()
|