Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/WebRequest.cpp

Issue 10234088: Use GYP to generate MSVS project files (Closed)
Patch Set: Moved project files to build/ Created April 24, 2013, 1:57 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld