Index: libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java |
diff --git a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/MockWebRequest.java b/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java |
similarity index 66% |
copy from libadblockplus-android-tests/src/org/adblockplus/libadblockplus/MockWebRequest.java |
copy to libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java |
index d92e47b05b8e7406c90f2e3e94c3088c2d64d167..3d6e4afa88c4a72199f2e8bb15542c9924749b68 100644 |
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/MockWebRequest.java |
+++ b/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java |
@@ -15,16 +15,18 @@ |
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
*/ |
-package org.adblockplus.libadblockplus; |
+package org.adblockplus.libadblockplus.android.webviewapp; |
-import java.util.List; |
+import org.adblockplus.libadblockplus.android.settings.AdblockHelper; |
-public class MockWebRequest extends WebRequest |
+public class Application extends android.app.Application |
{ |
- public ServerResponse response = new ServerResponse(); |
+ @Override |
+ public void onCreate() |
+ { |
+ super.onCreate(); |
- public ServerResponse httpGET(String url, List<HeaderEntry> headers) |
- { |
- return response; |
- } |
+ // init Adblock |
+ AdblockHelper.get().init(this, true, AdblockHelper.PREFERENCE_NAME); |
+ } |
} |