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

Delta Between Two Patch Sets: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/UtilsTest.java

Issue 29351744: Issue 4399 - Add WebView inheritor with ad blocking (Closed)
Left Patch Set: supporting api 21 with referer and pre-21 with no referer Created Sept. 30, 2016, 1:28 p.m.
Right Patch Set: changed packages, now using AdblockEngine (original ABPEngine), improved demo app Created Oct. 25, 2016, 11:20 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 package org.adblockplus.libadblockplus.tests; 1 package org.adblockplus.libadblockplus.tests;
2 2
3 import org.adblockplus.android.Utils; 3 import org.adblockplus.libadblockplus.android.Utils;
4 import org.junit.Test; 4 import org.junit.Test;
5 5
6 import java.util.Arrays; 6 import java.util.Arrays;
7 import java.util.LinkedList; 7 import java.util.LinkedList;
8 import java.util.List; 8 import java.util.List;
9 9
10 /** 10 /**
11 * Test for Utils 11 * Test for Utils
12 */ 12 */
13 public class UtilsTest extends BaseJsTest 13 public class UtilsTest extends BaseJsTest
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 @Test 47 @Test
48 public void testJson_singleWithNull() 48 public void testJson_singleWithNull()
49 { 49 {
50 final List<String> list = new LinkedList<String>(); 50 final List<String> list = new LinkedList<String>();
51 list.add(null); 51 list.add(null);
52 String json = Utils.stringListToJsonArray(list); 52 String json = Utils.stringListToJsonArray(list);
53 assertEquals("[]", json); 53 assertEquals("[]", json);
54 } 54 }
55 } 55 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld