[libgdata/offline-testing: 2/2] tests: UNFINISHED additions necessary to get mocking working



commit 070a2b2cb707622cd326158d92b8a91450f1ffe0
Author: Philip Withnall <philip tecnocode co uk>
Date:   Wed Jul 3 19:47:09 2013 +0100

    tests: UNFINISHED additions necessary to get mocking working

 gdata/gdata-service.c |    3 ++-
 gdata/tests/common.c  |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gdata/gdata-service.c b/gdata/gdata-service.c
index 928ca40..84135b7 100644
--- a/gdata/gdata-service.c
+++ b/gdata/gdata-service.c
@@ -2114,7 +2114,8 @@ _gdata_service_get_log_level (void)
 SoupSession *
 _gdata_service_build_session (void)
 {
-       SoupSession *session = soup_session_sync_new_with_options (SOUP_SESSION_SSL_USE_SYSTEM_CA_FILE, TRUE, 
NULL);
+       /* TODO: Need to generate a certificate and sign it with the system CA (but also allow using an 
invalid/unsigned certificate for testing). */
+       SoupSession *session = soup_session_new_with_options ("ssl-strict", FALSE /* TODO */, NULL);
 
 #ifdef HAVE_GNOME
        soup_session_add_feature_by_type (session, SOUP_TYPE_GNOME_FEATURES_2_26);
diff --git a/gdata/tests/common.c b/gdata/tests/common.c
index 677515e..72306d1 100644
--- a/gdata/tests/common.c
+++ b/gdata/tests/common.c
@@ -116,7 +116,7 @@ gdata_test_init (int argc, char **argv)
        g_set_printerr_handler ((GPrintFunc) gdata_test_assert_handler);
 
        /* Enable full debugging */
-       g_setenv ("LIBGDATA_DEBUG", "3" /* GDATA_LOG_FULL */, FALSE);
+       g_setenv ("LIBGDATA_DEBUG", "4" /* GDATA_LOG_FULL */, FALSE); /* TODO */
        g_setenv ("G_MESSAGES_DEBUG", "libgdata", FALSE);
 
        mock_server = gdata_mock_server_new ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]