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

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

Issue 29536604: Issue 5556 - Update to use libadblockplus revision hg:566f64c8a2a8 (Closed) Base URL: github.com:abby-sergz/libadblockplus-android.git
Patch Set: address comment Created Sept. 7, 2017, 12:54 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/BaseJsTest.java
diff --git a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/BaseJsTest.java b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/BaseJsTest.java
deleted file mode 100644
index fc988be5c4d82ac6816b86909cb9f0f1f0ff01bb..0000000000000000000000000000000000000000
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/BaseJsTest.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * This file is part of Adblock Plus <https://adblockplus.org/>,
- * Copyright (C) 2006-present eyeo GmbH
- *
- * Adblock Plus is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 3 as
- * published by the Free Software Foundation.
- *
- * Adblock Plus is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
- */
-
-package org.adblockplus.libadblockplus.tests;
-
-import org.adblockplus.libadblockplus.AppInfo;
-import org.adblockplus.libadblockplus.JsEngine;
-import org.adblockplus.libadblockplus.LazyLogSystem;
-import org.adblockplus.libadblockplus.LogSystem;
-import org.adblockplus.libadblockplus.ThrowingWebRequest;
-import org.adblockplus.libadblockplus.WebRequest;
-
-import android.content.Context;
-import android.test.InstrumentationTestCase;
-
-public abstract class BaseJsTest extends InstrumentationTestCase
-{
- protected JsEngine jsEngine;
-
- @Override
- protected void setUp() throws Exception
- {
- super.setUp();
-
- jsEngine = new JsEngine(AppInfo.builder().build(), createLogSystem(), createWebRequest(),
- getContext().getFilesDir().getAbsolutePath());
- }
-
- // If the method returns null then a default implementation of the Log System
- // provided by libadblockplus is used.
- protected LogSystem createLogSystem()
- {
- return null;
- }
-
- protected WebRequest createWebRequest()
- {
- return new ThrowingWebRequest();
- }
-
- protected Context getContext()
- {
- return getInstrumentation().getTargetContext();
- }
-}

Powered by Google App Engine
This is Rietveld