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

Unified Diff: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/IsAllowedConnectionCallbackTest.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/IsAllowedConnectionCallbackTest.java
diff --git a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/IsAllowedConnectionCallbackTest.java b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/IsAllowedConnectionCallbackTest.java
index 6b71cef6ec749858f7fa602f18286b86bfd74194..37e2be56fc18417f4e04e97655d89aaf859a4eb6 100644
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/IsAllowedConnectionCallbackTest.java
+++ b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/IsAllowedConnectionCallbackTest.java
@@ -19,11 +19,10 @@ package org.adblockplus.libadblockplus.tests;
import android.os.SystemClock;
-import org.adblockplus.libadblockplus.AppInfo;
import org.adblockplus.libadblockplus.FilterEngine;
import org.adblockplus.libadblockplus.HeaderEntry;
import org.adblockplus.libadblockplus.IsAllowedConnectionCallback;
-import org.adblockplus.libadblockplus.JsEngine;
+import org.adblockplus.libadblockplus.Platform;
import org.adblockplus.libadblockplus.ServerResponse;
import org.adblockplus.libadblockplus.Subscription;
import org.adblockplus.libadblockplus.WebRequest;
@@ -96,10 +95,11 @@ public class IsAllowedConnectionCallbackTest extends BaseFilterEngineTest
@Override
protected void setUp() throws Exception
{
- jsEngine = new JsEngine(AppInfo.builder().build(), createLogSystem(), createWebRequest(),
+ platform = new Platform(createLogSystem(), createWebRequest(),
getContext().getFilesDir().getAbsolutePath());
callback = new TestCallback();
- filterEngine = new FilterEngine(jsEngine, callback);
+ platform.setUpFilterEngine(callback);
+ filterEngine = platform.getFilterEngine();
}
@Override

Powered by Google App Engine
This is Rietveld