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