| 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.customtabs; | 5 package org.chromium.chrome.browser.customtabs; |
| 6 | 6 |
| 7 import static org.chromium.base.test.util.ScalableTimeout.scaleTimeout; | 7 import static org.chromium.base.test.util.ScalableTimeout.scaleTimeout; |
| 8 | 8 |
| 9 import android.app.Activity; | 9 import android.app.Activity; |
| 10 import android.content.Intent; | 10 import android.content.Intent; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 fail(); | 90 fail(); |
| 91 } | 91 } |
| 92 CriteriaHelper.pollUiThread(new Criteria("Deferred startup never complet
ed") { | 92 CriteriaHelper.pollUiThread(new Criteria("Deferred startup never complet
ed") { |
| 93 @Override | 93 @Override |
| 94 public boolean isSatisfied() { | 94 public boolean isSatisfied() { |
| 95 return DeferredStartupHandler.getInstance().isDeferredStartupCom
pleteForApp(); | 95 return DeferredStartupHandler.getInstance().isDeferredStartupCom
pleteForApp(); |
| 96 } | 96 } |
| 97 }, STARTUP_TIMEOUT_MS, CriteriaHelper.DEFAULT_POLLING_INTERVAL); | 97 }, STARTUP_TIMEOUT_MS, CriteriaHelper.DEFAULT_POLLING_INTERVAL); |
| 98 assertNotNull(tab); | 98 assertNotNull(tab); |
| 99 assertNotNull(tab.getView()); | 99 assertNotNull(tab.getView()); |
| 100 assertTrue(tab.isCurrentlyACustomTab()); |
| 100 } | 101 } |
| 101 } | 102 } |
| OLD | NEW |