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.parameters; | 5 package org.chromium.chrome.test.util.parameters; |
6 | 6 |
7 import android.app.Instrumentation; | 7 import android.app.Instrumentation; |
8 | 8 |
9 import org.chromium.base.test.util.parameter.BaseParameter; | 9 import org.chromium.base.test.util.parameter.BaseParameter; |
10 import org.chromium.base.test.util.parameter.Parameter; | 10 import org.chromium.base.test.util.parameter.Parameter; |
11 import org.chromium.chrome.test.util.ChromeSigninUtils; | 11 import org.chromium.chrome.test.util.ChromeSigninUtils; |
12 import org.chromium.sync.signin.ChromeSigninController; | 12 import org.chromium.components.sync.signin.ChromeSigninController; |
13 | 13 |
14 /** | 14 /** |
15 * Adds a fake account to app when this parameter is used. | 15 * Adds a fake account to app when this parameter is used. |
16 */ | 16 */ |
17 public class AddFakeAccountToAppParameter extends BaseParameter { | 17 public class AddFakeAccountToAppParameter extends BaseParameter { |
18 /** Adds a fake test account to app to run test as signed into the app. */ | 18 /** Adds a fake test account to app to run test as signed into the app. */ |
19 public static final String PARAMETER_TAG = "add-fake-account-to-app-paramete
r"; | 19 public static final String PARAMETER_TAG = "add-fake-account-to-app-paramete
r"; |
20 | 20 |
21 /** The {@Parameter.Argument#name()} value. */ | 21 /** The {@Parameter.Argument#name()} value. */ |
22 public static final class ARGUMENT { | 22 public static final class ARGUMENT { |
(...skipping 28 matching lines...) Expand all Loading... |
51 | 51 |
52 /** | 52 /** |
53 * Only affects Java tests. | 53 * Only affects Java tests. |
54 * | 54 * |
55 * @return {@code true} if an account is on the app, {@code false} otherwise
. | 55 * @return {@code true} if an account is on the app, {@code false} otherwise
. |
56 */ | 56 */ |
57 public boolean isSignedIn() { | 57 public boolean isSignedIn() { |
58 return mSigninController.isSignedIn(); | 58 return mSigninController.isSignedIn(); |
59 } | 59 } |
60 } | 60 } |
OLD | NEW |