git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53866
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/url.h"
// Test wxURL & wxURI compat?
#include "wx/url.h"
// Test wxURL & wxURI compat?
-#define TEST_URL ( 1 && wxUSE_URL )
+#define TEST_URL wxUSE_URL
+
+// Define this as 1 to test network connections, this is disabled by default as
+// some machines running automatic builds don't allow outgoing connections and
+// so the tests fail
+#define TEST_NETWORK 0
// ----------------------------------------------------------------------------
// test class
// ----------------------------------------------------------------------------
// test class
CPPUNIT_ASSERT(url.GetError() == wxURL_NOERR);
CPPUNIT_ASSERT(url.GetError() == wxURL_NOERR);
wxInputStream* pInput = url.GetInputStream();
CPPUNIT_ASSERT( pInput != NULL );
wxInputStream* pInput = url.GetInputStream();
CPPUNIT_ASSERT( pInput != NULL );
CPPUNIT_ASSERT( url == wxURL(wxT("http://user:password@wxwidgets.org")) );
CPPUNIT_ASSERT( url == wxURL(wxT("http://user:password@wxwidgets.org")) );