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

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchRequestTest.java

Issue 2583933003: Replace deprecated Android java test annotations (Closed)
Patch Set: Rebase again :( Created 3 years, 12 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 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.contextualsearch; 5 package org.chromium.chrome.browser.contextualsearch;
6 6
7 import android.test.suitebuilder.annotation.SmallTest; 7 import android.support.test.filters.SmallTest;
8 8
9 import org.chromium.base.test.util.Feature; 9 import org.chromium.base.test.util.Feature;
10 import org.chromium.base.test.util.RetryOnFailure; 10 import org.chromium.base.test.util.RetryOnFailure;
11 import org.chromium.chrome.test.ChromeTabbedActivityTestBase; 11 import org.chromium.chrome.test.ChromeTabbedActivityTestBase;
12 12
13 /** 13 /**
14 * Class responsible for testing the ContextualSearchRequest. 14 * Class responsible for testing the ContextualSearchRequest.
15 */ 15 */
16 public class ContextualSearchRequestTest extends ChromeTabbedActivityTestBase { 16 public class ContextualSearchRequestTest extends ChromeTabbedActivityTestBase {
17 ContextualSearchRequest mRequest; 17 ContextualSearchRequest mRequest;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 @SmallTest 58 @SmallTest
59 @Feature({"ContextualSearch"}) 59 @Feature({"ContextualSearch"})
60 public void testSetNormalPriority() { 60 public void testSetNormalPriority() {
61 assertTrue(mRequest.isUsingLowPriority()); 61 assertTrue(mRequest.isUsingLowPriority());
62 mRequest.setNormalPriority(); 62 mRequest.setNormalPriority();
63 assertFalse(mRequest.isUsingLowPriority()); 63 assertFalse(mRequest.isUsingLowPriority());
64 assertFalse(mNormalPriorityOnlyRequest.isUsingLowPriority()); 64 assertFalse(mNormalPriorityOnlyRequest.isUsingLowPriority());
65 } 65 }
66 } 66 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698