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

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

Issue 29344967: Issue 4031 - Implement tests for libadblockplus-android (Closed)
Patch Set: Updated tests, also moved to libadblockplus-android repo Created June 21, 2016, 10:51 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
Index: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/MockWebRequest.java
diff --git a/libadblockplus-android/src/org/adblockplus/libadblockplus/Disposable.java b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/MockWebRequest.java
similarity index 75%
copy from libadblockplus-android/src/org/adblockplus/libadblockplus/Disposable.java
copy to libadblockplus-android-tests/src/org/adblockplus/libadblockplus/MockWebRequest.java
index c3e766416f6dae1a9e28158f5542dd0648a50455..31e9d92bcb42dfc682a78674490a2fb3ce69ae1f 100644
--- a/libadblockplus-android/src/org/adblockplus/libadblockplus/Disposable.java
+++ b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/MockWebRequest.java
@@ -17,7 +17,13 @@
package org.adblockplus.libadblockplus;
-public interface Disposable
-{
- public void dispose();
+import java.util.List;
+
+public class MockWebRequest extends WebRequest {
+
+ public ServerResponse response = new ServerResponse();
+
+ public ServerResponse httpGET(String url, List<HeaderEntry> headers) {
+ return response;
+ }
}

Powered by Google App Engine
This is Rietveld