Index: test/WebRequest.cpp |
=================================================================== |
--- a/test/WebRequest.cpp |
+++ b/test/WebRequest.cpp |
@@ -51,17 +51,17 @@ TEST(WebRequestTest, TestWebRequest) |
ASSERT_TRUE(jsEngine->Evaluate("this.foo")->IsUndefined()); |
AdblockPlus::Sleep(200); |
ASSERT_EQ(AdblockPlus::WebRequest::NS_OK, jsEngine->Evaluate("foo.status")->AsInt()); |
ASSERT_EQ(123, jsEngine->Evaluate("foo.responseStatus")->AsInt()); |
ASSERT_EQ("http://example.com/\nX\nY", jsEngine->Evaluate("foo.responseText")->AsString()); |
ASSERT_EQ("{\"Foo\":\"Bar\"}", jsEngine->Evaluate("JSON.stringify(foo.responseHeaders)")->AsString()); |
} |
-#if defined(HAVE_CURL) || defined(HAVE_WININET) |
+#if defined(HAVE_CURL) || defined(_WIN32) |
TEST(WebRequestTest, RealWebRequest) |
{ |
AdblockPlus::JsEnginePtr jsEngine(AdblockPlus::JsEngine::New()); |
// This URL should redirect to easylist-downloads.adblockplus.org and we |
// should get the actual filter list back. |
jsEngine->Evaluate("_webRequest.GET('https://easylist.adblockplus.org/easylist.txt', {}, function(result) {foo = result;} )"); |
do |