Git init
[profile/ivi/libsoup2.4.git] / tests / test-utils.h
1 #ifdef HAVE_CONFIG_H
2 #include "config.h"
3 #endif
4
5 #include "libsoup/soup-types.h"
6
7 void test_init    (int argc, char **argv, GOptionEntry *entries);
8 void test_cleanup (void);
9
10 extern int debug_level, errors;
11 extern gboolean expect_warning, tls_available;
12 void debug_printf (int level, const char *format, ...) G_GNUC_PRINTF (2, 3);
13
14 #ifdef HAVE_APACHE
15 void apache_init    (void);
16 void apache_cleanup (void);
17 #endif
18
19 SoupSession *soup_test_session_new         (GType type, ...);
20 void         soup_test_session_abort_unref (SoupSession *session);
21
22 SoupServer  *soup_test_server_new        (gboolean in_own_thread);
23 SoupServer  *soup_test_server_new_ssl    (gboolean in_own_thread);
24 void         soup_test_server_quit_unref (SoupServer *server);