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

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

Issue 29536629: 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. 8, 2017, 12:20 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/UpdaterTest.java
diff --git a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/UpdaterTest.java b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/UpdaterTest.java
index 8e482f809539f2d123c07b850b7f948cae1e3e04..4a8130497a3dee3a92ed1bd4ed21848d0b4b598a 100644
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/UpdaterTest.java
+++ b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/UpdaterTest.java
@@ -21,6 +21,7 @@ import org.adblockplus.libadblockplus.AppInfo;
import org.adblockplus.libadblockplus.FilterEngine;
import org.adblockplus.libadblockplus.JsEngine;
import org.adblockplus.libadblockplus.MockWebRequest;
+import org.adblockplus.libadblockplus.Platform;
import org.adblockplus.libadblockplus.WebRequest;
import android.test.AndroidTestCase;
@@ -37,11 +38,10 @@ public class UpdaterTest extends BaseFilterEngineTest
.setName("test")
.setVersion("1.0.1")
.build();
-
mockWebRequest = new MockWebRequest();
- jsEngine = new JsEngine(appInfo, null, mockWebRequest,
+ platform = new Platform(null, mockWebRequest,
getContext().getFilesDir().getAbsolutePath());
-
- filterEngine = new FilterEngine(jsEngine);
+ platform.setUpJsEngine(appInfo);
+ filterEngine = platform.getFilterEngine();
}
}

Powered by Google App Engine
This is Rietveld