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

Unified Diff: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/MockWebRequestTest.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/MockWebRequestTest.java
diff --git a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/MockWebRequestTest.java b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/MockWebRequestTest.java
index f35585a39af90969c93cf13eb71b241266dfe890..d0681f5db248aafbb8e6f37c0e4d901a016cb726 100644
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/MockWebRequestTest.java
+++ b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/MockWebRequestTest.java
@@ -58,11 +58,9 @@ public class MockWebRequestTest extends BaseJsTest
}
@Override
- protected void setUp() throws Exception
+ protected WebRequest createWebRequest()
{
- super.setUp();
-
- jsEngine.setWebRequest(new LocalMockWebRequest());
+ return new LocalMockWebRequest();
}
@Test

Powered by Google App Engine
This is Rietveld