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