| 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.signin; | 5 package org.chromium.chrome.browser.signin; |
| 6 | 6 |
| 7 import android.accounts.Account; | 7 import android.accounts.Account; |
| 8 import android.test.InstrumentationTestCase; | 8 import android.test.InstrumentationTestCase; |
| 9 import android.test.suitebuilder.annotation.SmallTest; | 9 import android.test.suitebuilder.annotation.SmallTest; |
| 10 | 10 |
| 11 import org.chromium.base.test.util.AdvancedMockContext; | 11 import org.chromium.base.test.util.AdvancedMockContext; |
| 12 import org.chromium.base.test.util.DisabledTest; | 12 import org.chromium.base.test.util.DisabledTest; |
| 13 import org.chromium.chrome.test.util.browser.signin.MockChangeEventChecker; | 13 import org.chromium.chrome.test.util.browser.signin.MockChangeEventChecker; |
| 14 import org.chromium.sync.signin.AccountManagerHelper; | 14 import org.chromium.components.sync.signin.AccountManagerHelper; |
| 15 import org.chromium.sync.signin.ChromeSigninController; | 15 import org.chromium.components.sync.signin.ChromeSigninController; |
| 16 import org.chromium.sync.test.util.AccountHolder; | 16 import org.chromium.components.sync.test.util.AccountHolder; |
| 17 import org.chromium.sync.test.util.MockAccountManager; | 17 import org.chromium.components.sync.test.util.MockAccountManager; |
| 18 | 18 |
| 19 /** | 19 /** |
| 20 * Instrumentation tests for {@link SigninHelper}. | 20 * Instrumentation tests for {@link SigninHelper}. |
| 21 */ | 21 */ |
| 22 public class SigninHelperTest extends InstrumentationTestCase { | 22 public class SigninHelperTest extends InstrumentationTestCase { |
| 23 private MockAccountManager mAccountManager; | 23 private MockAccountManager mAccountManager; |
| 24 private AdvancedMockContext mContext; | 24 private AdvancedMockContext mContext; |
| 25 private MockChangeEventChecker mEventChecker; | 25 private MockChangeEventChecker mEventChecker; |
| 26 | 26 |
| 27 @Override | 27 @Override |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 } | 132 } |
| 133 | 133 |
| 134 private String getSignedInAccountName() { | 134 private String getSignedInAccountName() { |
| 135 return ChromeSigninController.get(mContext).getSignedInAccountName(); | 135 return ChromeSigninController.get(mContext).getSignedInAccountName(); |
| 136 } | 136 } |
| 137 | 137 |
| 138 private String getNewSignedInAccountName() { | 138 private String getNewSignedInAccountName() { |
| 139 return SigninHelper.getNewSignedInAccountName(mContext); | 139 return SigninHelper.getNewSignedInAccountName(mContext); |
| 140 } | 140 } |
| 141 } | 141 } |
| OLD | NEW |