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

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

Issue 29819555: Fix libadblockplus-android tests
Patch Set: Added missing files, removed a whitespace Created Aug. 16, 2018, 12:27 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: adblock-android-tests/src/org/adblockplus/libadblockplus/UpdaterTest.java
diff --git a/adblock-android-tests/src/org/adblockplus/libadblockplus/LazyWebRequest.java b/adblock-android-tests/src/org/adblockplus/libadblockplus/UpdaterTest.java
similarity index 69%
rename from adblock-android-tests/src/org/adblockplus/libadblockplus/LazyWebRequest.java
rename to adblock-android-tests/src/org/adblockplus/libadblockplus/UpdaterTest.java
index 6af8ab8df43a3db3036ab833900a70f802cd1ab7..fd9967a752d390e6112c22cb0452e3f40dcf5797 100644
--- a/adblock-android-tests/src/org/adblockplus/libadblockplus/LazyWebRequest.java
+++ b/adblock-android-tests/src/org/adblockplus/libadblockplus/UpdaterTest.java
@@ -17,16 +17,19 @@
package org.adblockplus.libadblockplus;
-import java.util.List;
-
-public class LazyWebRequest implements WebRequest
+public class UpdaterTest extends BaseFilterEngineTest
{
+ protected MockWebRequest mockWebRequest;
+
@Override
- public ServerResponse httpGET(String url, List<HeaderEntry> headers)
+ protected void setUp() throws Exception
{
- while (true)
- {
-
- }
+ mockWebRequest = new MockWebRequest();
+ setWebRequest(mockWebRequest);
+ setAppInfo(AppInfo.builder()
+ .setName("test")
+ .setVersion("1.0.1")
+ .build());
+ super.setUp();
}
}

Powered by Google App Engine
This is Rietveld