| 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.customtabs; | 5 package org.chromium.chrome.browser.customtabs; |
| 6 | 6 |
| 7 import static android.test.MoreAsserts.assertContentsInAnyOrder; | 7 import static android.test.MoreAsserts.assertContentsInAnyOrder; |
| 8 import static android.test.MoreAsserts.assertEmpty; | 8 import static android.test.MoreAsserts.assertEmpty; |
| 9 | 9 |
| 10 import android.app.Activity; | 10 import android.app.Activity; |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 return TabPersistentStore.getStateFileName("cct_testing0"); | 378 return TabPersistentStore.getStateFileName("cct_testing0"); |
| 379 } | 379 } |
| 380 | 380 |
| 381 @Override | 381 @Override |
| 382 public File getOrCreateStateDirectory() { | 382 public File getOrCreateStateDirectory() { |
| 383 return new File( | 383 return new File( |
| 384 TabPersistentStore.getOrCreateBaseStateDirectory(), "cct
_tests_zor"); | 384 TabPersistentStore.getOrCreateBaseStateDirectory(), "cct
_tests_zor"); |
| 385 } | 385 } |
| 386 | 386 |
| 387 @Override | 387 @Override |
| 388 public void notifyStateLoaded(int tabCountAtStartup) { |
| 389 } |
| 390 |
| 391 @Override |
| 388 public void destroy() { | 392 public void destroy() { |
| 389 } | 393 } |
| 390 | 394 |
| 391 @Override | 395 @Override |
| 392 public void cleanupUnusedFiles(Callback<List<String>> filesToDelete)
{ | 396 public void cleanupUnusedFiles(Callback<List<String>> filesToDelete)
{ |
| 393 } | 397 } |
| 394 | 398 |
| 395 @Override | 399 @Override |
| 396 public void cancelCleanupInProgress() { | 400 public void cancelCleanupInProgress() { |
| 397 } | 401 } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 423 | 427 |
| 424 CustomTabActivity activity = new CustomTabActivity(); | 428 CustomTabActivity activity = new CustomTabActivity(); |
| 425 ApplicationStatus.onStateChangeForTesting(activity, ActivityState.CREATE
D); | 429 ApplicationStatus.onStateChangeForTesting(activity, ActivityState.CREATE
D); |
| 426 TabModelSelectorImpl selector = new TabModelSelectorImpl( | 430 TabModelSelectorImpl selector = new TabModelSelectorImpl( |
| 427 activity, buildTestPersistencePolicy(), false); | 431 activity, buildTestPersistencePolicy(), false); |
| 428 selector.initializeForTesting(normalTabModel, incognitoTabModel); | 432 selector.initializeForTesting(normalTabModel, incognitoTabModel); |
| 429 ApplicationStatus.onStateChangeForTesting(activity, ActivityState.DESTRO
YED); | 433 ApplicationStatus.onStateChangeForTesting(activity, ActivityState.DESTRO
YED); |
| 430 return selector; | 434 return selector; |
| 431 } | 435 } |
| 432 } | 436 } |
| OLD | NEW |