blob: 9e969038a42e747573e760f6a3b2b5de5cb8534d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <string.h>
#include <stdlib.h>
#define LIBSOUP_USE_UNSTABLE_REQUEST_API
#include "libsoup/soup.h"
#include "libsoup/soup-requester.h"
#include "libsoup/soup-request-data.h"
#include "libsoup/soup-request-file.h"
#include "libsoup/soup-request-http.h"
void test_init (int argc, char **argv, GOptionEntry *entries);
void test_cleanup (void);
extern int debug_level, errors;
extern gboolean expect_warning, tls_available;
void debug_printf (int level, const char *format, ...) G_GNUC_PRINTF (2, 3);
#ifdef HAVE_APACHE
void apache_init (void);
void apache_cleanup (void);
#endif
SoupSession *soup_test_session_new (GType type, ...);
void soup_test_session_abort_unref (SoupSession *session);
SoupServer *soup_test_server_new (gboolean in_own_thread);
SoupServer *soup_test_server_new_ssl (gboolean in_own_thread);
void soup_test_server_quit_unref (SoupServer *server);
GInputStream *soup_test_request_send_async_as_sync (SoupRequest *req,
GCancellable *cancellable,
GError **error);
gboolean soup_test_stream_close_async_as_sync (GInputStream *stream,
GCancellable *cancellable,
GError **error);
|