• Home
  • Raw
  • Download

Lines Matching refs:session

45 finished_cb (SoupSession *session, SoupMessage *msg, gpointer user_data)  in finished_cb()  argument
53 cancel_message_cb (SoupMessage *msg, gpointer session) in cancel_message_cb() argument
55 soup_session_cancel_message (session, msg, SOUP_STATUS_CANCELLED); in cancel_message_cb()
60 do_test_for_session (SoupSession *session, SoupURI *uri, in do_test_for_session() argument
75 soup_session_send_message (session, msg); in do_test_for_session()
80 soup_session_queue_message (session, msg, finished_cb, &finished); in do_test_for_session()
103 soup_session_send_message (session, msg); in do_test_for_session()
126 soup_session_queue_message (session, msg, finished_cb, &finished); in do_test_for_session()
128 G_CALLBACK (cancel_message_cb), session); in do_test_for_session()
153 SoupSession *session; in do_plain_tests() local
155 session = soup_test_session_new (SOUP_TYPE_SESSION, NULL); in do_plain_tests()
156 do_test_for_session (session, uri, TRUE, TRUE, FALSE); in do_plain_tests()
157 soup_test_session_abort_unref (session); in do_plain_tests()
164 SoupSession *session; in do_async_tests() local
166 session = soup_test_session_new (SOUP_TYPE_SESSION_ASYNC, NULL); in do_async_tests()
167 do_test_for_session (session, uri, TRUE, FALSE, TRUE); in do_async_tests()
168 soup_test_session_abort_unref (session); in do_async_tests()
175 SoupSession *session; in do_sync_tests() local
177 session = soup_test_session_new (SOUP_TYPE_SESSION_SYNC, NULL); in do_sync_tests()
178 do_test_for_session (session, uri, FALSE, TRUE, FALSE); in do_sync_tests()
179 soup_test_session_abort_unref (session); in do_sync_tests()
183 priority_test_finished_cb (SoupSession *session, SoupMessage *msg, gpointer user_data) in priority_test_finished_cb() argument
202 SoupSession *session; in do_priority_tests() local
211 session = soup_test_session_new (SOUP_TYPE_SESSION_ASYNC, NULL); in do_priority_tests()
212 g_object_set (session, "max-conns", 1, NULL); in do_priority_tests()
229 soup_session_queue_message (session, msg, priority_test_finished_cb, &finished_count); in do_priority_tests()
236 soup_test_session_abort_unref (session); in do_priority_tests()
241 SoupSession *session, in test_session_properties() argument
248 g_object_get (G_OBJECT (session), in test_session_properties()
267 SoupSession *session; in do_property_tests() local
279 session = g_object_new (SOUP_TYPE_SESSION, in do_property_tests()
281 test_session_properties ("Base plain session", session, in do_property_tests()
283 g_object_unref (session); in do_property_tests()
285 session = g_object_new (SOUP_TYPE_SESSION, in do_property_tests()
288 test_session_properties ("Session with NULL :proxy-resolver", session, in do_property_tests()
290 g_object_unref (session); in do_property_tests()
293 session = g_object_new (SOUP_TYPE_SESSION, in do_property_tests()
296 test_session_properties ("Session with non-NULL :proxy-resolver", session, in do_property_tests()
299 g_object_unref (session); in do_property_tests()
301 session = g_object_new (SOUP_TYPE_SESSION, in do_property_tests()
304 test_session_properties ("Session with NULL :proxy-uri", session, in do_property_tests()
306 g_object_unref (session); in do_property_tests()
309 session = g_object_new (SOUP_TYPE_SESSION, in do_property_tests()
312 g_object_get (G_OBJECT (session), in do_property_tests()
315 test_session_properties ("Session with non-NULL :proxy-uri", session, in do_property_tests()
319 g_object_unref (session); in do_property_tests()
323 session = g_object_new (SOUP_TYPE_SESSION, in do_property_tests()
326 test_session_properties ("Session with removed proxy resolver feature", session, in do_property_tests()
328 g_object_unref (session); in do_property_tests()
331 session = g_object_new (SOUP_TYPE_SESSION, in do_property_tests()
334 test_session_properties ("Session with NULL :tls-database", session, in do_property_tests()
336 g_object_unref (session); in do_property_tests()
349 session = g_object_new (SOUP_TYPE_SESSION, in do_property_tests()
352 test_session_properties ("Session with non-NULL :tls-database", session, in do_property_tests()
355 g_object_unref (session); in do_property_tests()
358 session = g_object_new (SOUP_TYPE_SESSION, in do_property_tests()
361 test_session_properties ("Session with :ssl-use-system-ca-file FALSE", session, in do_property_tests()
363 g_object_unref (session); in do_property_tests()
365 session = g_object_new (SOUP_TYPE_SESSION, in do_property_tests()
368 test_session_properties ("Session with :ssl-use-system-ca-file TRUE", session, in do_property_tests()
370 g_object_unref (session); in do_property_tests()
383 SoupSession *session; in do_features_test() local
387 session = soup_test_session_new (SOUP_TYPE_SESSION_ASYNC, NULL); in do_features_test()
389 features = soup_session_get_features (session, SOUP_TYPE_SESSION_FEATURE); in do_features_test()
393 g_assert_true (soup_session_has_feature (session, SOUP_TYPE_AUTH_MANAGER)); in do_features_test()
394 feature = soup_session_get_feature (session, SOUP_TYPE_AUTH_MANAGER); in do_features_test()
396 soup_session_remove_feature (session, feature); in do_features_test()
397 g_assert_false (soup_session_has_feature (session, SOUP_TYPE_AUTH_MANAGER)); in do_features_test()
398 g_assert_null (soup_session_get_feature (session, SOUP_TYPE_AUTH_MANAGER)); in do_features_test()
402 g_assert_true (soup_session_has_feature (session, SOUP_TYPE_REQUEST_HTTP)); in do_features_test()
403 g_assert_true (soup_session_has_feature (session, SOUP_TYPE_REQUEST_FILE)); in do_features_test()
404 g_assert_true (soup_session_has_feature (session, SOUP_TYPE_REQUEST_DATA)); in do_features_test()
405 soup_session_remove_feature_by_type (session, SOUP_TYPE_REQUEST_FILE); in do_features_test()
406 g_assert_false (soup_session_has_feature (session, SOUP_TYPE_REQUEST_FILE)); in do_features_test()
407 g_assert_true (soup_session_has_feature (session, SOUP_TYPE_REQUEST_HTTP)); in do_features_test()
408 g_assert_true (soup_session_has_feature (session, SOUP_TYPE_REQUEST_DATA)); in do_features_test()
410 soup_test_session_abort_unref (session); in do_features_test()