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

Unified Diff: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/UpdateCheckTest.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/UpdateCheckTest.java
diff --git a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/UpdateCheckTest.java b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/UpdateCheckTest.java
index 53148428a490a3161463af5d74d0ab53144c5fa2..42bc190988b46ecb497a58c523eca4cd675cf36e 100644
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/UpdateCheckTest.java
+++ b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/UpdateCheckTest.java
@@ -25,6 +25,7 @@ import org.adblockplus.libadblockplus.JsEngine;
import org.adblockplus.libadblockplus.JsValue;
import org.adblockplus.libadblockplus.LazyLogSystem;
import org.adblockplus.libadblockplus.LazyWebRequest;
+import org.adblockplus.libadblockplus.Platform;
import org.adblockplus.libadblockplus.ServerResponse;
import org.adblockplus.libadblockplus.UpdateCheckDoneCallback;
@@ -84,14 +85,15 @@ public class UpdateCheckTest extends BaseFilterEngineTest
public void reset() throws InterruptedException
{
disposeFilterEngine();
- if (jsEngine != null)
+ if (platform != null)
{
- jsEngine.dispose();
+ platform.dispose();
}
- jsEngine = new JsEngine(appInfo, new LazyLogSystem(), webRequest,
+ platform = new Platform(new LazyLogSystem(), webRequest,
getContext().getFilesDir().getAbsolutePath());
- jsEngine.setEventCallback("updateAvailable", eventCallback);
- filterEngine = new FilterEngine(jsEngine);
+ platform.setUpJsEngine(appInfo);
+ platform.getJsEngine().setEventCallback("updateAvailable", eventCallback);
+ filterEngine = platform.getFilterEngine();
}
@Override

Powered by Google App Engine
This is Rietveld