| 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.tabmodel; | 5 package org.chromium.chrome.browser.tabmodel; |
| 6 | 6 |
| 7 import android.content.Context; | 7 import android.content.Context; |
| 8 import android.support.test.filters.MediumTest; |
| 8 import android.test.InstrumentationTestCase; | 9 import android.test.InstrumentationTestCase; |
| 9 import android.test.suitebuilder.annotation.MediumTest; | |
| 10 | 10 |
| 11 import org.chromium.base.ContextUtils; | 11 import org.chromium.base.ContextUtils; |
| 12 import org.chromium.base.ThreadUtils; | 12 import org.chromium.base.ThreadUtils; |
| 13 import org.chromium.base.test.util.AdvancedMockContext; | 13 import org.chromium.base.test.util.AdvancedMockContext; |
| 14 import org.chromium.base.test.util.Feature; | 14 import org.chromium.base.test.util.Feature; |
| 15 import org.chromium.chrome.browser.TabState; | 15 import org.chromium.chrome.browser.TabState; |
| 16 import org.chromium.chrome.test.util.ApplicationData; | 16 import org.chromium.chrome.test.util.ApplicationData; |
| 17 import org.chromium.chrome.test.util.browser.tabmodel.MockTabModelSelector; | 17 import org.chromium.chrome.test.util.browser.tabmodel.MockTabModelSelector; |
| 18 | 18 |
| 19 import java.io.File; | 19 import java.io.File; |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 Integer.toString(TabModelSelectorImpl.CUSTOM_TABS_SELECTOR_I
NDEX)); | 332 Integer.toString(TabModelSelectorImpl.CUSTOM_TABS_SELECTOR_I
NDEX)); |
| 333 if (!stateDirs[numDirsToCreate - 1].exists()) { | 333 if (!stateDirs[numDirsToCreate - 1].exists()) { |
| 334 assertTrue("Could not create custom tab state dir", | 334 assertTrue("Could not create custom tab state dir", |
| 335 stateDirs[numDirsToCreate - 1].mkdir()); | 335 stateDirs[numDirsToCreate - 1].mkdir()); |
| 336 } | 336 } |
| 337 } | 337 } |
| 338 | 338 |
| 339 return stateDirs; | 339 return stateDirs; |
| 340 } | 340 } |
| 341 } | 341 } |
| OLD | NEW |