OLD | NEW |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-2016 Eyeo GmbH | 3 * Copyright (C) 2006-2016 Eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. | 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
16 */ | 16 */ |
17 | 17 |
18 package org.adblockplus.libadblockplus.tests; | 18 package org.adblockplus.libadblockplus.tests; |
19 | 19 |
20 import android.util.Log; | |
21 import org.adblockplus.libadblockplus.Filter; | 20 import org.adblockplus.libadblockplus.Filter; |
22 import org.adblockplus.libadblockplus.FilterEngine; | 21 import org.adblockplus.libadblockplus.FilterEngine; |
23 import org.adblockplus.libadblockplus.MockFilterChangeCallback; | 22 import org.adblockplus.libadblockplus.MockFilterChangeCallback; |
24 import org.adblockplus.libadblockplus.Subscription; | 23 import org.adblockplus.libadblockplus.Subscription; |
25 | 24 |
26 import org.junit.Test; | 25 import org.junit.Test; |
27 | 26 |
28 public class FilterEngineTest extends FilterEngineGenericTest | 27 public class FilterEngineTest extends FilterEngineGenericTest |
29 { | 28 { |
30 @Test | 29 @Test |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 assertFalse(filterEngine.isElemhideWhitelisted("http://example.com", emp
tyArray)); | 374 assertFalse(filterEngine.isElemhideWhitelisted("http://example.com", emp
tyArray)); |
376 | 375 |
377 String[] documentUrls1 = new String[] | 376 String[] documentUrls1 = new String[] |
378 { | 377 { |
379 "http://example.de" | 378 "http://example.de" |
380 }; | 379 }; |
381 assertTrue(filterEngine.isElemhideWhitelisted("http://example.com", docu
mentUrls1)); | 380 assertTrue(filterEngine.isElemhideWhitelisted("http://example.com", docu
mentUrls1)); |
382 assertFalse(filterEngine.isElemhideWhitelisted("http://example.co.uk", d
ocumentUrls1)); | 381 assertFalse(filterEngine.isElemhideWhitelisted("http://example.co.uk", d
ocumentUrls1)); |
383 } | 382 } |
384 } | 383 } |
OLD | NEW |