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

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

Issue 29908555: Issue 7035 - Update libadblockplus dependency (Closed) Base URL: git@github.com:adblockplus/libadblockplus-android.git@d150f08d5d72de8938c7ebbdccd9b0c4e06b4070
Patch Set: Issue 7035 - Update libadblockplus dependency Created Oct. 15, 2018, 12:48 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: adblock-android-tests/src/org/adblockplus/libadblockplus/tests/UpdateCheckTest.java
diff --git a/adblock-android-tests/src/org/adblockplus/libadblockplus/tests/UpdateCheckTest.java b/adblock-android-tests/src/org/adblockplus/libadblockplus/tests/UpdateCheckTest.java
index 2aa5c139002e268952c385f8fbd9cac51cb0ed2a..c474d977c83160a70211f4ef7afaf9ccf2ae29f3 100644
--- a/adblock-android-tests/src/org/adblockplus/libadblockplus/tests/UpdateCheckTest.java
+++ b/adblock-android-tests/src/org/adblockplus/libadblockplus/tests/UpdateCheckTest.java
@@ -31,7 +31,7 @@ import org.junit.Test;
import java.util.List;
-public class UpdateCheckTest extends BaseFilterEngineTest
+public class UpdateCheckTest extends BaseUpdaterTest
{
protected String previousRequestUrl;
@@ -82,7 +82,7 @@ public class UpdateCheckTest extends BaseFilterEngineTest
public void reset() throws InterruptedException
{
- disposeFilterEngine();
+ disposeUpdater();
if (platform != null)
{
platform.dispose();
@@ -91,7 +91,7 @@ public class UpdateCheckTest extends BaseFilterEngineTest
getContext().getFilesDir().getAbsolutePath());
platform.setUpJsEngine(appInfo);
platform.getJsEngine().setEventCallback("updateAvailable", eventCallback);
- filterEngine = platform.getFilterEngine();
+ updater = platform.getUpdater();
}
@Override
@@ -106,7 +106,7 @@ public class UpdateCheckTest extends BaseFilterEngineTest
public void forceUpdateCheck()
{
- filterEngine.forceUpdateCheck(updateCallback);
+ updater.forceUpdateCheck(updateCallback);
}
@Test
@@ -132,7 +132,7 @@ public class UpdateCheckTest extends BaseFilterEngineTest
assertTrue(updateCallbackCalled);
assertNotNull(updateError);
- String expectedUrl = filterEngine.getPref("update_url_release").asString();
+ String expectedUrl = updater.getPref("update_url_release").asString();
String platform = "libadblockplus";
String platformVersion = "1.0";

Powered by Google App Engine
This is Rietveld