summaryrefslogtreecommitdiff
path: root/tests/session-test.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2020-10-16 14:26:05 +0200
committerCarlos Garcia Campos <cgarcia@igalia.com>2020-10-26 10:21:15 +0100
commit83735da1c001c946df6c14bd7659a615739e8cb8 (patch)
tree179cfd130c42b58c1c76aa406a2a4d325ef8847a /tests/session-test.c
parent17d751486955149b52b25c05a4a53307cdc36ab7 (diff)
downloadlibsoup-83735da1c001c946df6c14bd7659a615739e8cb8.tar.gz
session: add io priority parameter to soup_session_send_async()
And use it for the all the IO async operations where possible.
Diffstat (limited to 'tests/session-test.c')
-rw-r--r--tests/session-test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/session-test.c b/tests/session-test.c
index be85d669..1e8d2b14 100644
--- a/tests/session-test.c
+++ b/tests/session-test.c
@@ -79,7 +79,7 @@ do_test_for_session (SoupSession *session, SoupURI *uri,
server_processed_message = timeout = finished = FALSE;
g_signal_connect (msg, "finished",
G_CALLBACK (finished_cb), &finished);
- soup_session_send_async (session, msg, NULL, NULL, NULL);
+ soup_session_send_async (session, msg, G_PRIORITY_DEFAULT, NULL, NULL, NULL);
g_object_unref (msg);
while (!timeout)
g_usleep (100);
@@ -128,7 +128,7 @@ do_test_for_session (SoupSession *session, SoupURI *uri,
finished = FALSE;
g_signal_connect (msg, "finished",
G_CALLBACK (finished_cb), &finished);
- soup_session_send_async (session, msg, NULL, NULL, NULL);
+ soup_session_send_async (session, msg, G_PRIORITY_DEFAULT, NULL, NULL, NULL);
g_signal_connect (msg, "wrote-headers",
G_CALLBACK (cancel_message_cb), session);
@@ -215,7 +215,7 @@ do_priority_tests (gconstpointer data)
soup_message_set_priority (msg, priorities[i]);
g_signal_connect (msg, "finished",
G_CALLBACK (priority_test_finished_cb), &finished_count);
- soup_session_send_async (session, msg, NULL, NULL, NULL);
+ soup_session_send_async (session, msg, G_PRIORITY_DEFAULT, NULL, NULL, NULL);
g_object_unref (msg);
}