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.test.util; | 5 package org.chromium.chrome.test.util; |
6 | 6 |
7 import android.test.InstrumentationTestCase; | 7 import android.test.InstrumentationTestCase; |
8 import android.test.suitebuilder.annotation.SmallTest; | 8 import android.test.suitebuilder.annotation.SmallTest; |
9 | 9 |
10 import org.chromium.base.test.util.EnormousTest; | 10 import org.chromium.base.test.util.EnormousTest; |
11 import org.chromium.base.test.util.FlakyTest; | 11 import org.chromium.base.test.util.FlakyTest; |
12 import org.chromium.base.test.util.Restriction; | 12 import org.chromium.base.test.util.Restriction; |
13 import org.chromium.sync.signin.ChromeSigninController; | 13 import org.chromium.components.sync.signin.ChromeSigninController; |
14 | 14 |
15 /** | 15 /** |
16 * Tests for {@link ChromeSigninUtils}. | 16 * Tests for {@link ChromeSigninUtils}. |
17 */ | 17 */ |
18 public class ChromeSigninUtilsTest extends InstrumentationTestCase { | 18 public class ChromeSigninUtilsTest extends InstrumentationTestCase { |
19 private static final String FAKE_ACCOUNT_USERNAME = "test@google.com"; | 19 private static final String FAKE_ACCOUNT_USERNAME = "test@google.com"; |
20 private static final String FAKE_ACCOUNT_PASSWORD = "$3cr3t"; | 20 private static final String FAKE_ACCOUNT_PASSWORD = "$3cr3t"; |
21 private static final String GOOGLE_ACCOUNT_USERNAME = "chromiumforandroid01@
gmail.com"; | 21 private static final String GOOGLE_ACCOUNT_USERNAME = "chromiumforandroid01@
gmail.com"; |
22 private static final String GOOGLE_ACCOUNT_PASSWORD = "chromeforandroid"; | 22 private static final String GOOGLE_ACCOUNT_PASSWORD = "chromeforandroid"; |
23 private static final String GOOGLE_ACCOUNT_TYPE = "mail"; | 23 private static final String GOOGLE_ACCOUNT_TYPE = "mail"; |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 } | 140 } |
141 | 141 |
142 @Override | 142 @Override |
143 protected void tearDown() throws Exception { | 143 protected void tearDown() throws Exception { |
144 mSigninController.setSignedInAccountName(null); | 144 mSigninController.setSignedInAccountName(null); |
145 mSigninUtil.removeAllFakeAccountsFromOs(); | 145 mSigninUtil.removeAllFakeAccountsFromOs(); |
146 mSigninUtil.removeAllGoogleAccountsFromOs(); | 146 mSigninUtil.removeAllGoogleAccountsFromOs(); |
147 super.tearDown(); | 147 super.tearDown(); |
148 } | 148 } |
149 } | 149 } |
OLD | NEW |