| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |