OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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; | 5 package org.chromium.chrome.browser; |
6 | 6 |
7 import android.content.Context; | 7 import android.content.Context; |
8 import android.net.Uri; | 8 import android.net.Uri; |
9 import android.os.Environment; | 9 import android.os.Environment; |
10 import android.test.suitebuilder.annotation.MediumTest; | 10 import android.test.suitebuilder.annotation.MediumTest; |
11 | 11 |
12 import org.chromium.base.ThreadUtils; | 12 import org.chromium.base.ThreadUtils; |
13 import org.chromium.base.test.util.Feature; | 13 import org.chromium.base.test.util.Feature; |
| 14 import org.chromium.base.test.util.RetryOnFailure; |
14 import org.chromium.base.test.util.TestFileUtil; | 15 import org.chromium.base.test.util.TestFileUtil; |
15 import org.chromium.base.test.util.UrlUtils; | 16 import org.chromium.base.test.util.UrlUtils; |
16 import org.chromium.chrome.test.ChromeActivityTestCaseBase; | 17 import org.chromium.chrome.test.ChromeActivityTestCaseBase; |
17 import org.chromium.chrome.test.TestContentProvider; | 18 import org.chromium.chrome.test.TestContentProvider; |
18 | 19 |
19 import java.io.File; | 20 import java.io.File; |
20 import java.io.IOException; | 21 import java.io.IOException; |
21 import java.io.InputStream; | 22 import java.io.InputStream; |
22 import java.util.concurrent.Callable; | 23 import java.util.concurrent.Callable; |
23 | 24 |
24 | 25 |
25 /** Test suite for different Android URL schemes. */ | 26 /** Test suite for different Android URL schemes. */ |
| 27 @RetryOnFailure |
26 public class UrlSchemeTest extends ChromeActivityTestCaseBase<ChromeActivity> { | 28 public class UrlSchemeTest extends ChromeActivityTestCaseBase<ChromeActivity> { |
27 | 29 |
28 public UrlSchemeTest() { | 30 public UrlSchemeTest() { |
29 super(ChromeActivity.class); | 31 super(ChromeActivity.class); |
30 } | 32 } |
31 | 33 |
32 /** | 34 /** |
33 * Test that resource request count in the content provider works. | 35 * Test that resource request count in the content provider works. |
34 * This is to make sure that attempts to access the content provider | 36 * This is to make sure that attempts to access the content provider |
35 * will be detected. | 37 * will be detected. |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 159 |
158 private String createContentUrl(final String target) { | 160 private String createContentUrl(final String target) { |
159 return TestContentProvider.createContentUrl(target); | 161 return TestContentProvider.createContentUrl(target); |
160 } | 162 } |
161 | 163 |
162 @Override | 164 @Override |
163 public void startMainActivity() throws InterruptedException { | 165 public void startMainActivity() throws InterruptedException { |
164 startMainActivityFromLauncher(); | 166 startMainActivityFromLauncher(); |
165 } | 167 } |
166 } | 168 } |
OLD | NEW |