| 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; | 5 package org.chromium.chrome.browser; |
| 6 | 6 |
| 7 import android.content.Context; | 7 import android.content.Context; |
| 8 import android.support.test.filters.LargeTest; | 8 import android.support.test.filters.LargeTest; |
| 9 import android.test.MoreAsserts; | 9 import android.test.MoreAsserts; |
| 10 import android.util.SparseArray; | 10 import android.util.SparseArray; |
| 11 import android.util.SparseBooleanArray; | 11 import android.util.SparseBooleanArray; |
| 12 | 12 |
| 13 import org.chromium.base.ThreadUtils; | 13 import org.chromium.base.ThreadUtils; |
| 14 import org.chromium.base.process_launcher.BindingManager; |
| 15 import org.chromium.base.process_launcher.ManagedChildProcessConnection; |
| 14 import org.chromium.base.test.util.DisabledTest; | 16 import org.chromium.base.test.util.DisabledTest; |
| 15 import org.chromium.base.test.util.Feature; | 17 import org.chromium.base.test.util.Feature; |
| 16 import org.chromium.base.test.util.Restriction; | 18 import org.chromium.base.test.util.Restriction; |
| 17 import org.chromium.base.test.util.RetryOnFailure; | 19 import org.chromium.base.test.util.RetryOnFailure; |
| 18 import org.chromium.chrome.browser.compositor.layouts.Layout; | 20 import org.chromium.chrome.browser.compositor.layouts.Layout; |
| 19 import org.chromium.chrome.browser.tab.Tab; | 21 import org.chromium.chrome.browser.tab.Tab; |
| 20 import org.chromium.chrome.browser.tabmodel.TabCreatorManager.TabCreator; | 22 import org.chromium.chrome.browser.tabmodel.TabCreatorManager.TabCreator; |
| 21 import org.chromium.chrome.browser.tabmodel.TabModel.TabLaunchType; | 23 import org.chromium.chrome.browser.tabmodel.TabModel.TabLaunchType; |
| 22 import org.chromium.chrome.browser.tabmodel.TabModel.TabSelectionType; | 24 import org.chromium.chrome.browser.tabmodel.TabModel.TabSelectionType; |
| 23 import org.chromium.chrome.browser.tabmodel.TabModelUtils; | 25 import org.chromium.chrome.browser.tabmodel.TabModelUtils; |
| 24 import org.chromium.chrome.test.ChromeActivityTestCaseBase; | 26 import org.chromium.chrome.test.ChromeActivityTestCaseBase; |
| 25 import org.chromium.chrome.test.util.ChromeRestriction; | 27 import org.chromium.chrome.test.util.ChromeRestriction; |
| 26 import org.chromium.chrome.test.util.ChromeTabUtils; | 28 import org.chromium.chrome.test.util.ChromeTabUtils; |
| 27 import org.chromium.chrome.test.util.PrerenderTestHelper; | 29 import org.chromium.chrome.test.util.PrerenderTestHelper; |
| 28 import org.chromium.content.browser.BindingManager; | |
| 29 import org.chromium.content.browser.ChildProcessLauncher; | 30 import org.chromium.content.browser.ChildProcessLauncher; |
| 30 import org.chromium.content.browser.ManagedChildProcessConnection; | |
| 31 import org.chromium.content.browser.test.ChildProcessAllocatorSettings; | 31 import org.chromium.content.browser.test.ChildProcessAllocatorSettings; |
| 32 import org.chromium.content.browser.test.util.Criteria; | 32 import org.chromium.content.browser.test.util.Criteria; |
| 33 import org.chromium.content.browser.test.util.CriteriaHelper; | 33 import org.chromium.content.browser.test.util.CriteriaHelper; |
| 34 import org.chromium.content_public.browser.LoadUrlParams; | 34 import org.chromium.content_public.browser.LoadUrlParams; |
| 35 import org.chromium.net.test.EmbeddedTestServer; | 35 import org.chromium.net.test.EmbeddedTestServer; |
| 36 import org.chromium.ui.base.DeviceFormFactor; | 36 import org.chromium.ui.base.DeviceFormFactor; |
| 37 import org.chromium.ui.base.PageTransition; | 37 import org.chromium.ui.base.PageTransition; |
| 38 | 38 |
| 39 import java.util.concurrent.Callable; | 39 import java.util.concurrent.Callable; |
| 40 | 40 |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 super.tearDown(); | 642 super.tearDown(); |
| 643 } | 643 } |
| 644 | 644 |
| 645 /** | 645 /** |
| 646 * @return the index of the given tab in the current tab model | 646 * @return the index of the given tab in the current tab model |
| 647 */ | 647 */ |
| 648 private int indexOf(Tab tab) { | 648 private int indexOf(Tab tab) { |
| 649 return getActivity().getCurrentTabModel().indexOf(tab); | 649 return getActivity().getCurrentTabModel().indexOf(tab); |
| 650 } | 650 } |
| 651 } | 651 } |
| OLD | NEW |