OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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.util; | 5 package org.chromium.chrome.browser.util; |
6 | 6 |
7 import android.accounts.Account; | 7 import android.accounts.Account; |
8 import android.accounts.AuthenticatorDescription; | 8 import android.accounts.AuthenticatorDescription; |
9 import android.content.Context; | 9 import android.content.Context; |
10 import android.content.Intent; | 10 import android.content.Intent; |
11 import android.content.pm.ResolveInfo; | 11 import android.content.pm.ResolveInfo; |
12 import android.speech.RecognizerIntent; | 12 import android.speech.RecognizerIntent; |
13 import android.test.InstrumentationTestCase; | 13 import android.test.InstrumentationTestCase; |
14 import android.test.mock.MockContext; | 14 import android.test.mock.MockContext; |
15 import android.test.mock.MockPackageManager; | 15 import android.test.mock.MockPackageManager; |
16 import android.test.suitebuilder.annotation.SmallTest; | 16 import android.test.suitebuilder.annotation.SmallTest; |
17 | 17 |
18 import org.chromium.base.ThreadUtils; | 18 import org.chromium.base.ThreadUtils; |
19 import org.chromium.base.test.util.AdvancedMockContext; | 19 import org.chromium.base.test.util.AdvancedMockContext; |
20 import org.chromium.base.test.util.Feature; | 20 import org.chromium.base.test.util.Feature; |
21 import org.chromium.sync.signin.AccountManagerHelper; | 21 import org.chromium.components.sync.signin.AccountManagerHelper; |
22 import org.chromium.sync.test.util.MockAccountManager; | 22 import org.chromium.components.sync.test.util.MockAccountManager; |
23 | 23 |
24 import java.util.ArrayList; | 24 import java.util.ArrayList; |
25 import java.util.List; | 25 import java.util.List; |
26 import java.util.concurrent.Callable; | 26 import java.util.concurrent.Callable; |
27 | 27 |
28 /** | 28 /** |
29 * Unit Test for FeatureUtilities. | 29 * Unit Test for FeatureUtilities. |
30 */ | 30 */ |
31 public class FeatureUtilitiesTest extends InstrumentationTestCase { | 31 public class FeatureUtilitiesTest extends InstrumentationTestCase { |
32 | 32 |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 mAccountTestingContext); | 243 mAccountTestingContext); |
244 | 244 |
245 assertFalse(hasAccounts); | 245 assertFalse(hasAccounts); |
246 | 246 |
247 boolean hasAuthenticator = FeatureUtilities.hasGoogleAccountAuthenticato
r( | 247 boolean hasAuthenticator = FeatureUtilities.hasGoogleAccountAuthenticato
r( |
248 mAccountTestingContext); | 248 mAccountTestingContext); |
249 | 249 |
250 assertFalse(hasAuthenticator); | 250 assertFalse(hasAuthenticator); |
251 } | 251 } |
252 } | 252 } |
OLD | NEW |