| 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.tabmodel; | 5 package org.chromium.chrome.browser.tabmodel; |
| 6 | 6 |
| 7 import android.test.suitebuilder.annotation.SmallTest; | 7 import android.support.test.filters.SmallTest; |
| 8 | 8 |
| 9 import org.chromium.base.ThreadUtils; | 9 import org.chromium.base.ThreadUtils; |
| 10 import org.chromium.base.test.util.Feature; | 10 import org.chromium.base.test.util.Feature; |
| 11 import org.chromium.base.test.util.RetryOnFailure; | 11 import org.chromium.base.test.util.RetryOnFailure; |
| 12 import org.chromium.chrome.browser.tab.Tab; | 12 import org.chromium.chrome.browser.tab.Tab; |
| 13 import org.chromium.chrome.browser.tabmodel.TabModel.TabLaunchType; | 13 import org.chromium.chrome.browser.tabmodel.TabModel.TabLaunchType; |
| 14 import org.chromium.chrome.test.ChromeTabbedActivityTestBase; | 14 import org.chromium.chrome.test.ChromeTabbedActivityTestBase; |
| 15 import org.chromium.content_public.browser.LoadUrlParams; | 15 import org.chromium.content_public.browser.LoadUrlParams; |
| 16 | 16 |
| 17 /** | 17 /** |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 @Feature({"OffTheRecord"}) | 53 @Feature({"OffTheRecord"}) |
| 54 @RetryOnFailure | 54 @RetryOnFailure |
| 55 public void testCloseAllDuringAddTabDoesNotCrash() { | 55 public void testCloseAllDuringAddTabDoesNotCrash() { |
| 56 createTabOnUiThread(); | 56 createTabOnUiThread(); |
| 57 assertEquals(1, mTabModel.getCount()); | 57 assertEquals(1, mTabModel.getCount()); |
| 58 mTabModel.addObserver(new CloseAllDuringAddTabTabModelObserver()); | 58 mTabModel.addObserver(new CloseAllDuringAddTabTabModelObserver()); |
| 59 createTabOnUiThread(); | 59 createTabOnUiThread(); |
| 60 assertEquals(1, mTabModel.getCount()); | 60 assertEquals(1, mTabModel.getCount()); |
| 61 } | 61 } |
| 62 } | 62 } |
| OLD | NEW |