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

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/tabmodel/MultiInstanceMigrationTest.java

Issue 2583933003: Replace deprecated Android java test annotations (Closed)
Patch Set: Rebase again :( Created 3 years, 12 months 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.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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698