test-utils: add cancellation support to soup_test_request_send
authorSergio Villar Senin <svillar@igalia.com>
Wed, 30 Jan 2013 16:56:38 +0000 (17:56 +0100)
committerSergio Villar Senin <svillar@igalia.com>
Tue, 12 Feb 2013 09:15:51 +0000 (10:15 +0100)
commitb980d54cb2b77b6b9c54168e9c7ff772734caaac
tree6d9cfddad4eb2b68c14b2543a177acf3159ce109
parent52b4df4b2b6d2c70fa333ce712041fd85a65d7c9
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
tests/cache-test.c
tests/coding-test.c
tests/connection-test.c
tests/misc-test.c
tests/proxy-test.c
tests/redirect-test.c
tests/sniffing-test.c
tests/test-utils.c
tests/test-utils.h
tests/timeout-test.c