[libgdata/offline-testing] tests: UNFINISHED fixes to the mock server



commit 184b74f074d2b93029c023f47768f509d94038b2
Author: Philip Withnall <philip tecnocode co uk>
Date:   Mon Jul 8 21:26:14 2013 +0100

    tests: UNFINISHED fixes to the mock server

 gdata/tests/mock-server.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gdata/tests/mock-server.c b/gdata/tests/mock-server.c
index 3b53a44..ae1cc39 100644
--- a/gdata/tests/mock-server.c
+++ b/gdata/tests/mock-server.c
@@ -600,6 +600,9 @@ trace_to_soup_message (const gchar *trace, SoupURI *base_uri)
        } else if (strncmp (trace, "DELETE", strlen ("DELETE")) == 0) {
                method = SOUP_METHOD_DELETE;
                trace += strlen ("DELETE");
+       } else if (strncmp (trace, "PUT", strlen ("PUT")) == 0) {
+               method = SOUP_METHOD_PUT;
+               trace += strlen ("PUT");
        } else {
                g_warning ("Unknown method ā€˜%sā€™.", trace);
                goto error;
@@ -1036,6 +1039,7 @@ gdata_mock_server_run (GDataMockServer *self)
                                        "ssl-cert-file", TEST_FILE_DIR "cert.pem",
                                        "ssl-key-file", TEST_FILE_DIR "key.pem",
                                        "async-context", thread_context,
+                                       "raw-paths", TRUE,
                                        NULL);
        soup_server_add_handler (priv->server, "/", server_handler_cb, self, NULL);
 


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