#include "wx/url.h"
// Test wxURL & wxURI compat?
-#define TEST_URL ( 0 && wxUSE_URL )
+#define TEST_URL ( 1 && wxUSE_URL )
// ----------------------------------------------------------------------------
// test class
CPPUNIT_TEST( Comparison );
#if TEST_URL
CPPUNIT_TEST( URLCompat );
+#if wxUSE_PROTOCOL_HTTP
+ CPPUNIT_TEST( URLProxy );
+#endif
#endif
CPPUNIT_TEST_SUITE_END();
#if TEST_URL
void URLCompat();
+ void URLProxy();
#endif
DECLARE_NO_COPY_CLASS(URITestCase)
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
+