| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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.signin; | 5 package org.chromium.chrome.browser.signin; |
| 6 | 6 |
| 7 import android.accounts.Account; | 7 import android.accounts.Account; |
| 8 import android.content.Context; | 8 import android.content.Context; |
| 9 import android.test.UiThreadTest; | 9 import android.test.UiThreadTest; |
| 10 import android.test.suitebuilder.annotation.MediumTest; | 10 import android.test.suitebuilder.annotation.MediumTest; |
| 11 | 11 |
| 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.profiles.Profile; | 15 import org.chromium.chrome.browser.profiles.Profile; |
| 16 import org.chromium.chrome.test.util.ApplicationData; | 16 import org.chromium.chrome.test.util.ApplicationData; |
| 17 import org.chromium.components.sync.signin.AccountManagerHelper; |
| 18 import org.chromium.components.sync.signin.ChromeSigninController; |
| 19 import org.chromium.components.sync.test.util.AccountHolder; |
| 20 import org.chromium.components.sync.test.util.MockAccountManager; |
| 17 import org.chromium.content.browser.test.NativeLibraryTestBase; | 21 import org.chromium.content.browser.test.NativeLibraryTestBase; |
| 18 import org.chromium.sync.signin.AccountManagerHelper; | |
| 19 import org.chromium.sync.signin.ChromeSigninController; | |
| 20 import org.chromium.sync.test.util.AccountHolder; | |
| 21 import org.chromium.sync.test.util.MockAccountManager; | |
| 22 | 22 |
| 23 import java.util.concurrent.Callable; | 23 import java.util.concurrent.Callable; |
| 24 | 24 |
| 25 /** | 25 /** |
| 26 * Integration test for the OAuth2TokenService. | 26 * Integration test for the OAuth2TokenService. |
| 27 * | 27 * |
| 28 * These tests initialize the native part of the service. | 28 * These tests initialize the native part of the service. |
| 29 */ | 29 */ |
| 30 public class OAuth2TokenServiceIntegrationTest extends NativeLibraryTestBase { | 30 public class OAuth2TokenServiceIntegrationTest extends NativeLibraryTestBase { |
| 31 | 31 |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 | 466 |
| 467 public int getLoadedCallCount() { | 467 public int getLoadedCallCount() { |
| 468 return mLoadedCallCount; | 468 return mLoadedCallCount; |
| 469 } | 469 } |
| 470 | 470 |
| 471 public Account getLastAccount() { | 471 public Account getLastAccount() { |
| 472 return mLastAccount; | 472 return mLastAccount; |
| 473 } | 473 } |
| 474 } | 474 } |
| 475 } | 475 } |
| OLD | NEW |