Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(442)

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/util/UrlUtilitiesTest.java

Issue 2818593002: Use ChromeJUnit4ClassRunner for javatests in chrome (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.util; 5 package org.chromium.chrome.browser.util;
6 6
7 import android.support.test.filters.SmallTest; 7 import android.support.test.filters.SmallTest;
8 8
9 import org.junit.Assert; 9 import org.junit.Assert;
10 import org.junit.Before; 10 import org.junit.Before;
11 import org.junit.Rule; 11 import org.junit.Rule;
12 import org.junit.Test; 12 import org.junit.Test;
13 import org.junit.runner.RunWith; 13 import org.junit.runner.RunWith;
14 14
15 import org.chromium.base.test.BaseJUnit4ClassRunner; 15 import org.chromium.chrome.test.ChromeJUnit4ClassRunner;
16 import org.chromium.content.browser.test.NativeLibraryTestRule; 16 import org.chromium.content.browser.test.NativeLibraryTestRule;
17 17
18 /** Tests for {@link UrlUtilities}. */ 18 /** Tests for {@link UrlUtilities}. */
19 @RunWith(BaseJUnit4ClassRunner.class) 19 @RunWith(ChromeJUnit4ClassRunner.class)
20 public class UrlUtilitiesTest { 20 public class UrlUtilitiesTest {
21 @Rule 21 @Rule
22 public NativeLibraryTestRule mActivityTestRule = new NativeLibraryTestRule() ; 22 public NativeLibraryTestRule mActivityTestRule = new NativeLibraryTestRule() ;
23 23
24 @Before 24 @Before
25 public void setUp() throws Exception { 25 public void setUp() throws Exception {
26 mActivityTestRule.loadNativeLibraryNoBrowserProcess(); 26 mActivityTestRule.loadNativeLibraryNoBrowserProcess();
27 } 27 }
28 28
29 @Test 29 @Test
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 } 188 }
189 189
190 @Test 190 @Test
191 @SmallTest 191 @SmallTest
192 public void testUrlsFragmentsDiffer() { 192 public void testUrlsFragmentsDiffer() {
193 String url = "http://www.example.com/path"; 193 String url = "http://www.example.com/path";
194 Assert.assertFalse(UrlUtilities.urlsFragmentsDiffer(url, url)); 194 Assert.assertFalse(UrlUtilities.urlsFragmentsDiffer(url, url));
195 Assert.assertTrue(UrlUtilities.urlsFragmentsDiffer(url + "#fragment", ur l)); 195 Assert.assertTrue(UrlUtilities.urlsFragmentsDiffer(url + "#fragment", ur l));
196 } 196 }
197 } 197 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698