diff options
author | Sergio Villar Senin <svillar@igalia.com> | 2013-01-30 17:56:38 +0100 |
---|---|---|
committer | Sergio Villar Senin <svillar@igalia.com> | 2013-02-12 10:15:51 +0100 |
commit | b980d54cb2b77b6b9c54168e9c7ff772734caaac (patch) | |
tree | 6d9cfddad4eb2b68c14b2543a177acf3159ce109 /tests/cache-test.c | |
parent | 52b4df4b2b6d2c70fa333ce712041fd85a65d7c9 (diff) | |
download | libsoup-b980d54cb2b77b6b9c54168e9c7ff772734caaac.tar.gz |
test-utils: add cancellation support to soup_test_request_send
The function gets a new parametter used to enable request cancellation for
both sync and async sessions. The cancellation could be performed by either
using the GCancellable or by directly cancelling the SoupMessage.
Also the GMainContext used to simulate sync operations with async ones will
now try to execute all its pending events before quiting the main loop.
https://bugzilla.gnome.org/show_bug.cgi?id=692310
Diffstat (limited to 'tests/cache-test.c')
-rw-r--r-- | tests/cache-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cache-test.c b/tests/cache-test.c index ac19bfe5..22ca6f86 100644 --- a/tests/cache-test.c +++ b/tests/cache-test.c @@ -146,7 +146,7 @@ do_request (SoupSession *session, } g_object_unref (msg); - stream = soup_test_request_send (SOUP_REQUEST (req), NULL, &error); + stream = soup_test_request_send (SOUP_REQUEST (req), NULL, 0, &error); if (!stream) { debug_printf (1, " could not send request: %s\n", error->message); |