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

Unified Diff: test/WebRequest.cpp

Issue 29508555: Issue 5450 - move FilterEngine into Platform (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created Aug. 7, 2017, 8:28 a.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
« test/BaseJsTest.cpp ('K') | « test/UpdateCheck.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/WebRequest.cpp
diff --git a/test/WebRequest.cpp b/test/WebRequest.cpp
index fb51e884796fbe86a0c13b59255ac8a98025e90a..cd14e207ff1a5b1d91969a378e8979d56653afe7 100644
--- a/test/WebRequest.cpp
+++ b/test/WebRequest.cpp
@@ -190,7 +190,7 @@ TEST_F(DefaultWebRequestTest, RealWebRequest)
TEST_F(DefaultWebRequestTest, XMLHttpRequest)
{
- auto filterEngine = CreateFilterEngine(*fileSystem, jsEngine);
+ auto filterEngine = CreateFilterEngine(*fileSystem, *platform);
ResetTestXHR(jsEngine, "https://easylist-downloads.adblockplus.org/easylist.txt");
jsEngine->Evaluate("\
@@ -220,7 +220,7 @@ TEST_F(DefaultWebRequestTest, DummyWebRequest)
TEST_F(DefaultWebRequestTest, XMLHttpRequest)
{
- auto filterEngine = CreateFilterEngine(*fileSystem, jsEngine);
+ auto filterEngine = CreateFilterEngine(*fileSystem, *platform);
ResetTestXHR(jsEngine);
jsEngine->Evaluate("\
@@ -276,7 +276,7 @@ namespace
TEST_F(MockWebRequestAndLogSystemTest, RequestHeaderValidation)
{
- auto filterEngine = CreateFilterEngine(*fileSystem, jsEngine);
+ auto filterEngine = CreateFilterEngine(*fileSystem, *platform);
const std::string msg = "Attempt to set a forbidden header was denied: ";
« test/BaseJsTest.cpp ('K') | « test/UpdateCheck.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld