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

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/WarmupManagerTest.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; 5 package org.chromium.chrome.browser;
6 6
7 import static org.chromium.base.test.util.Restriction.RESTRICTION_TYPE_LOW_END_D EVICE; 7 import static org.chromium.base.test.util.Restriction.RESTRICTION_TYPE_LOW_END_D EVICE;
8 import static org.chromium.base.test.util.Restriction.RESTRICTION_TYPE_NON_LOW_E ND_DEVICE; 8 import static org.chromium.base.test.util.Restriction.RESTRICTION_TYPE_NON_LOW_E ND_DEVICE;
9 9
10 import android.content.Context; 10 import android.content.Context;
11 import android.support.test.filters.SmallTest;
11 import android.test.UiThreadTest; 12 import android.test.UiThreadTest;
12 import android.test.suitebuilder.annotation.SmallTest;
13 13
14 import org.chromium.base.ThreadUtils; 14 import org.chromium.base.ThreadUtils;
15 import org.chromium.base.test.util.Restriction; 15 import org.chromium.base.test.util.Restriction;
16 import org.chromium.chrome.R; 16 import org.chromium.chrome.R;
17 import org.chromium.content.browser.test.NativeLibraryTestBase; 17 import org.chromium.content.browser.test.NativeLibraryTestBase;
18 import org.chromium.content.browser.test.util.Criteria; 18 import org.chromium.content.browser.test.util.Criteria;
19 import org.chromium.content.browser.test.util.CriteriaHelper; 19 import org.chromium.content.browser.test.util.CriteriaHelper;
20 import org.chromium.content_public.browser.WebContents; 20 import org.chromium.content_public.browser.WebContents;
21 import org.chromium.content_public.browser.WebContentsObserver; 21 import org.chromium.content_public.browser.WebContentsObserver;
22 22
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 @SmallTest 126 @SmallTest
127 @UiThreadTest 127 @UiThreadTest
128 public void testInflateLayout() throws Exception { 128 public void testInflateLayout() throws Exception {
129 int layoutId = R.layout.custom_tabs_control_container; 129 int layoutId = R.layout.custom_tabs_control_container;
130 int toolbarId = R.layout.custom_tabs_toolbar; 130 int toolbarId = R.layout.custom_tabs_toolbar;
131 Context context = getInstrumentation().getTargetContext(); 131 Context context = getInstrumentation().getTargetContext();
132 mWarmupManager.initializeViewHierarchy(context, layoutId, toolbarId); 132 mWarmupManager.initializeViewHierarchy(context, layoutId, toolbarId);
133 assertTrue(mWarmupManager.hasViewHierarchyWithToolbar(layoutId)); 133 assertTrue(mWarmupManager.hasViewHierarchyWithToolbar(layoutId));
134 } 134 }
135 } 135 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698