summaryrefslogtreecommitdiff
path: root/tests/proxy-test.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2012-07-06 13:09:50 -0400
committerDan Winship <danw@gnome.org>2012-07-13 14:18:36 -0400
commitd9db0727ff48f96f5312e65c8f0296f634d2c2b4 (patch)
tree6dd42c03f1e6feaaa4b2b44dfe50ca3f2f711165 /tests/proxy-test.c
parent7b916078d6e1f3bc54124a9433295a8c3d825c22 (diff)
downloadlibsoup-d9db0727ff48f96f5312e65c8f0296f634d2c2b4.tar.gz
Clean up includes
Especially, include soup.h rather than individually including a bunch of other public soup-*.h files. Remove unnecessary system includes (many are leftovers from code that has moved down into glib).
Diffstat (limited to 'tests/proxy-test.c')
-rw-r--r--tests/proxy-test.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/tests/proxy-test.c b/tests/proxy-test.c
index 62bbd990..cebc8390 100644
--- a/tests/proxy-test.c
+++ b/tests/proxy-test.c
@@ -1,18 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-#define LIBSOUP_USE_UNSTABLE_REQUEST_API
-#include <libsoup/soup.h>
-#include <libsoup/soup-requester.h>
-#include <libsoup/soup-request-http.h>
#include "test-utils.h"
typedef struct {
@@ -121,7 +108,7 @@ test_url (const char *url, int proxy, guint expected,
msg = soup_message_new (SOUP_METHOD_GET, url);
if (!msg) {
- fprintf (stderr, "proxy-test: Could not parse URI\n");
+ g_printerr ("proxy-test: Could not parse URI\n");
exit (1);
}