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

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

Issue 29857561: Fix libadblockplus-android tests, Part 2
Patch Set: Created Aug. 16, 2018, 11:48 a.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/BaseFilterEngineTest.java
diff --git a/adblock-android-tests/src/org/adblockplus/libadblockplus/tests/BaseFilterEngineTest.java b/adblock-android-tests/src/org/adblockplus/libadblockplus/tests/BaseFilterEngineTest.java
deleted file mode 100644
index 2741bb8e70b172460c52829e9609683b7e965a99..0000000000000000000000000000000000000000
--- a/adblock-android-tests/src/org/adblockplus/libadblockplus/tests/BaseFilterEngineTest.java
+++ /dev/null
@@ -1,56 +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.FilterEngine;
-import org.adblockplus.libadblockplus.LazyWebRequest;
-import org.adblockplus.libadblockplus.WebRequest;
-
-public abstract class BaseFilterEngineTest extends BasePlatformTest
-{
- protected FilterEngine filterEngine;
-
- @Override
- protected void setUp() throws Exception
- {
- super.setUp();
- filterEngine = platform.getFilterEngine();
- }
-
- @Override
- protected void tearDown() throws Exception
- {
- disposeFilterEngine();
- super.tearDown();
- }
-
- protected void disposeFilterEngine() throws InterruptedException
- {
- if (filterEngine != null)
- {
- Thread.sleep(200); // let FS finish its operations
- filterEngine = null;
- }
- }
-
- @Override
- protected WebRequest createWebRequest()
- {
- return new LazyWebRequest();
- }
-}

Powered by Google App Engine
This is Rietveld