X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e605541c3690af3e085b4b36581f3c0267bffbfa..2ab572d4746a68ef87579b6acd7c9768efcaf127:/tests/uris/uris.cpp diff --git a/tests/uris/uris.cpp b/tests/uris/uris.cpp index 016c6fc024..959c3e2928 100644 --- a/tests/uris/uris.cpp +++ b/tests/uris/uris.cpp @@ -50,7 +50,9 @@ private: CPPUNIT_TEST( Comparison ); #if TEST_URL CPPUNIT_TEST( URLCompat ); +#if wxUSE_PROTOCOL_HTTP CPPUNIT_TEST( URLProxy ); +#endif #endif CPPUNIT_TEST_SUITE_END(); @@ -318,10 +320,12 @@ void URITestCase::URLCompat() CPPUNIT_ASSERT( test.GetPath() == wxT("%22myf%22ile.txt") ); } +#if wxUSE_PROTOCOL_HTTP void URITestCase::URLProxy() { - wxURL url("http://www.asite.com/index.html"); - url.SetProxy("pserv:3122"); + wxURL url(wxT("http://www.asite.com/index.html")); + url.SetProxy(wxT("pserv:3122")); } +#endif // wxUSE_PROTOCOL_HTTP #endif