diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2021-02-24 12:28:08 +1300 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2021-03-05 09:07:02 +0000 |
commit | 8e7652a2f96ea78b546e7b3fd04d4969c49b0085 (patch) | |
tree | 1e712225a55b4baca882abf153c23b595cc53c79 /tests/test-utils.h | |
parent | d8899fb9e5ef5b2531863f65a3d4eb60d4c3160c (diff) | |
download | libsoup-8e7652a2f96ea78b546e7b3fd04d4969c49b0085.tar.gz |
Add a method to override the remote connection.
This allows using a Unix socket to communicate on.
Fixes https://gitlab.gnome.org/GNOME/libsoup/-/issues/75
Diffstat (limited to 'tests/test-utils.h')
-rw-r--r-- | tests/test-utils.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test-utils.h b/tests/test-utils.h index f3dc8798..74d77644 100644 --- a/tests/test-utils.h +++ b/tests/test-utils.h @@ -69,10 +69,12 @@ guint soup_test_session_send_message (SoupSession *session, typedef enum { SOUP_TEST_SERVER_DEFAULT = 0, SOUP_TEST_SERVER_IN_THREAD = (1 << 0), - SOUP_TEST_SERVER_NO_DEFAULT_LISTENER = (1 << 1) + SOUP_TEST_SERVER_NO_DEFAULT_LISTENER = (1 << 1), + SOUP_TEST_SERVER_UNIX_SOCKET = (1 << 2) } SoupTestServerOptions; SoupServer *soup_test_server_new (SoupTestServerOptions options); +const char *soup_test_server_get_unix_path (SoupServer *server); void soup_test_server_run_in_thread (SoupServer *server); GUri *soup_test_server_get_uri (SoupServer *server, const char *scheme, |