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

Unified Diff: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/NotificationTest.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/NotificationTest.java
diff --git a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/NotificationTest.java b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/NotificationTest.java
index 55b1eadb5536bb596e8fe2b6ea05c23e79279d2f..7ba833f2350ae3c4ebab189d0a4e11850839be13 100644
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/NotificationTest.java
+++ b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/NotificationTest.java
@@ -21,6 +21,7 @@ import org.adblockplus.libadblockplus.FilterEngine;
import org.adblockplus.libadblockplus.LazyWebRequest;
import org.adblockplus.libadblockplus.Notification;
import org.adblockplus.libadblockplus.ShowNotificationCallback;
+import org.adblockplus.libadblockplus.WebRequest;
import org.junit.Test;
@@ -32,11 +33,15 @@ public class NotificationTest extends BaseJsTest
protected void setUp() throws Exception
{
super.setUp();
-
- jsEngine.setWebRequest(new LazyWebRequest());
filterEngine = new FilterEngine(jsEngine);
}
+ @Override
+ protected WebRequest createWebRequest()
+ {
+ return new LazyWebRequest();
+ }
+
protected void addNotification(String notification)
{
jsEngine.evaluate(

Powered by Google App Engine
This is Rietveld