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

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegateImplTest.java

Issue 2583933003: Replace deprecated Android java test annotations (Closed)
Patch Set: Rebase again Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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.externalnav; 5 package org.chromium.chrome.browser.externalnav;
6 6
7 import android.content.IntentFilter; 7 import android.content.IntentFilter;
8 import android.content.pm.ActivityInfo; 8 import android.content.pm.ActivityInfo;
9 import android.content.pm.ResolveInfo; 9 import android.content.pm.ResolveInfo;
10 import android.test.suitebuilder.annotation.SmallTest; 10 import android.support.test.filters.SmallTest;
11 11
12 import org.chromium.chrome.browser.ChromeActivity; 12 import org.chromium.chrome.browser.ChromeActivity;
13 import org.chromium.chrome.test.ChromeActivityTestCaseBase; 13 import org.chromium.chrome.test.ChromeActivityTestCaseBase;
14 14
15 import java.util.ArrayList; 15 import java.util.ArrayList;
16 import java.util.Arrays; 16 import java.util.Arrays;
17 import java.util.List; 17 import java.util.List;
18 18
19 /** 19 /**
20 * Instrumentation tests for {@link ExternalNavigationHandler}. 20 * Instrumentation tests for {@link ExternalNavigationHandler}.
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 delegate.isPdfDownload("http://somesampleurldne.com/image.jpg")) ; 124 delegate.isPdfDownload("http://somesampleurldne.com/image.jpg")) ;
125 assertFalse("URL is a text file can be viewed in Chrome", 125 assertFalse("URL is a text file can be viewed in Chrome",
126 delegate.isPdfDownload("http://somesampleurldne.com/copy.txt")); 126 delegate.isPdfDownload("http://somesampleurldne.com/copy.txt"));
127 } 127 }
128 128
129 @Override 129 @Override
130 public void startMainActivity() throws InterruptedException { 130 public void startMainActivity() throws InterruptedException {
131 startMainActivityOnBlankPage(); 131 startMainActivityOnBlankPage();
132 } 132 }
133 } 133 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698