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

Unified Diff: adblock-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineUpdaterTest.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. 16, 2018, 3:17 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
« no previous file with comments | « no previous file | adblock-android-tests/src/org/adblockplus/libadblockplus/tests/UpdateCheckTest.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: adblock-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineUpdaterTest.java
diff --git a/adblock-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineUpdaterTest.java b/adblock-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineUpdaterTest.java
deleted file mode 100644
index fe7657a7e32bdc66ec810f3f787dfdc3de7610b6..0000000000000000000000000000000000000000
--- a/adblock-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineUpdaterTest.java
+++ /dev/null
@@ -1,53 +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.MockUpdateAvailableCallback;
-import org.adblockplus.libadblockplus.NoOpUpdaterCallback;
-import org.adblockplus.libadblockplus.ServerResponse;
-
-import org.junit.Test;
-
-public class FilterEngineUpdaterTest extends UpdaterTest
-{
- @Test
- public void testSetRemoveUpdateAvailableCallback() throws InterruptedException
- {
- mockWebRequest.response.setStatus(ServerResponse.NsStatus.OK);
- mockWebRequest.response.setResponseStatus(200);
- mockWebRequest.response.setResponse(
- "{\n" +
- " \"test\": {\n" +
- " \"version\": \"1.0.2\",\n" +
- " \"url\": \"https://downloads.adblockplus.org/test-1.0.2.tar.gz?update\"\n" +
- " }\n" +
- "}");
-
- MockUpdateAvailableCallback mockUpdateAvailableCallback =
- new MockUpdateAvailableCallback(0);
- filterEngine.setUpdateAvailableCallback(mockUpdateAvailableCallback);
- filterEngine.forceUpdateCheck(new NoOpUpdaterCallback());
- Thread.sleep(1000);
- assertEquals(1, mockUpdateAvailableCallback.getTimesCalled());
-
- filterEngine.removeUpdateAvailableCallback();
- filterEngine.forceUpdateCheck(new NoOpUpdaterCallback());
- Thread.sleep(1000);
- assertEquals(1, mockUpdateAvailableCallback.getTimesCalled());
- }
-}
« no previous file with comments | « no previous file | adblock-android-tests/src/org/adblockplus/libadblockplus/tests/UpdateCheckTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld