]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/uris/uris.cpp
reverted DEBUG_INFO change
[wxWidgets.git] / tests / uris / uris.cpp
index 193beca20a6a7ff520f17734e2dd21c767adc33d..959c3e2928f73716078872290340aa9f5a09e55b 100644 (file)
@@ -25,7 +25,7 @@
 #include "wx/url.h"
 
 // Test wxURL & wxURI compat?
 #include "wx/url.h"
 
 // Test wxURL & wxURI compat?
-#define TEST_URL ( 0 && wxUSE_URL )
+#define TEST_URL ( 1 && wxUSE_URL )
 
 // ----------------------------------------------------------------------------
 // test class
 
 // ----------------------------------------------------------------------------
 // test class
@@ -50,6 +50,9 @@ private:
         CPPUNIT_TEST( Comparison );
 #if TEST_URL
         CPPUNIT_TEST( URLCompat );
         CPPUNIT_TEST( Comparison );
 #if TEST_URL
         CPPUNIT_TEST( URLCompat );
+#if wxUSE_PROTOCOL_HTTP
+        CPPUNIT_TEST( URLProxy  );
+#endif
 #endif
     CPPUNIT_TEST_SUITE_END();
 
 #endif
     CPPUNIT_TEST_SUITE_END();
 
@@ -66,6 +69,7 @@ private:
 
 #if TEST_URL
     void URLCompat();
 
 #if TEST_URL
     void URLCompat();
+    void URLProxy();
 #endif
 
     DECLARE_NO_COPY_CLASS(URITestCase)
 #endif
 
     DECLARE_NO_COPY_CLASS(URITestCase)
@@ -316,4 +320,12 @@ void URITestCase::URLCompat()
     CPPUNIT_ASSERT( test.GetPath() == wxT("%22myf%22ile.txt") );
 }
 
     CPPUNIT_ASSERT( test.GetPath() == wxT("%22myf%22ile.txt") );
 }
 
+#if wxUSE_PROTOCOL_HTTP
+void URITestCase::URLProxy()
+{
+    wxURL url(wxT("http://www.asite.com/index.html"));
+    url.SetProxy(wxT("pserv:3122"));
+}
+#endif // wxUSE_PROTOCOL_HTTP
 #endif
 #endif
+