summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYouness Alaoui <youness.alaoui@collabora.co.uk>2010-12-22 23:12:32 (GMT)
committerYouness Alaoui <youness.alaoui@collabora.co.uk>2010-12-22 23:12:32 (GMT)
commite0903ce01d724fc82930de29007f0a9b43845d56 (patch)
treeb01b4bd383d45ed9844dd50cfdd0399a7ac122bb
parent76bd50b0c96d21c662412d60fbf8d85e893473ec (diff)
downloadlibnice-e0903ce01d724fc82930de29007f0a9b43845d56.tar.gz
libnice-e0903ce01d724fc82930de29007f0a9b43845d56.tar.xz
Add a USE_PROXY option to test-fullmode
-rw-r--r--tests/test-fullmode.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test-fullmode.c b/tests/test-fullmode.c
index 2e9f84c..1ba5fb2 100644
--- a/tests/test-fullmode.c
+++ b/tests/test-fullmode.c
@@ -46,14 +46,19 @@
#define USE_TURN 0
#define USE_LOOPBACK 1
+#define USE_PROXY 0
#define TEST_GOOGLE 0
#define PROXY_IP "127.0.0.1"
#define PROXY_PORT 1080
-#define PROXY_TYPE NICE_PROXY_TYPE_SOCKS5
#define PROXY_USERNAME NULL
#define PROXY_PASSWORD NULL
+#if USE_PROXY
+#define PROXY_TYPE NICE_PROXY_TYPE_SOCKS5
+#else
+#define PROXY_TYPE NICE_PROXY_TYPE_NONE
+#endif
#if TEST_GOOGLE
#define NICE_COMPATIBILITY NICE_COMPATIBILITY_GOOGLE