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

Unified Diff: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineGenericTest.java

Issue 29526696: Issue 5556 - remove WebRequest setter (Closed) Base URL: github.com:abby-sergz/libadblockplus-android.git
Patch Set: Created Aug. 24, 2017, 5:24 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: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineGenericTest.java
diff --git a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineGenericTest.java b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineGenericTest.java
index 6e6ecd02273ee306517583259c6e8ff060d721cc..9fe3cbaeb9e77ae32a25086e2ba8aa03624327eb 100644
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineGenericTest.java
+++ b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineGenericTest.java
@@ -19,6 +19,7 @@ package org.adblockplus.libadblockplus.tests;
import org.adblockplus.libadblockplus.FilterEngine;
import org.adblockplus.libadblockplus.LazyWebRequest;
+import org.adblockplus.libadblockplus.WebRequest;
public abstract class FilterEngineGenericTest extends BaseJsTest
{
@@ -28,9 +29,12 @@ public abstract class FilterEngineGenericTest extends BaseJsTest
protected void setUp() throws Exception
{
super.setUp();
-
- jsEngine.setWebRequest(new LazyWebRequest());
-
filterEngine = new FilterEngine(jsEngine);
}
+
+ @Override
+ protected WebRequest createWebRequest()
+ {
+ return new LazyWebRequest();
+ }
}

Powered by Google App Engine
This is Rietveld