OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:AccountHolder
(Results
1 - 5
of
5
) sorted by null
/external/chromium_org/sync/test/android/javatests/src/org/chromium/sync/test/util/
AccountHolder.java
16
public class
AccountHolder
{
28
private
AccountHolder
(Account account, String password, Map<String, String> authTokens,
91
return that != null && that instanceof
AccountHolder
&& mAccount
92
.equals(((
AccountHolder
) that).getAccount());
99
public
AccountHolder
withPassword(String password) {
103
public
AccountHolder
withAuthTokens(Map<String, String> authTokens) {
107
public
AccountHolder
withAuthToken(String authTokenType, String authToken) {
111
public
AccountHolder
withHasBeenAccepted(String authTokenType, boolean hasBeenAccepted) {
115
public
AccountHolder
withAlwaysAccept(boolean alwaysAccept) {
177
public
AccountHolder
build()
[
all
...]
MockAccountManager.java
54
* and provide an array of
AccountHolder
objects.
63
* an
AccountHolder
you have built with hasBeenAccepted("yourAuthTokenType", true).
66
*
AccountHolder
} builder method alwaysAccept(true).
81
private final Set<
AccountHolder
> mAccounts;
96
mAccounts = new HashSet<
AccountHolder
>();
100
mAccounts.add(
AccountHolder
.create().account(account).alwaysAccept(true).build());
126
for (
AccountHolder
ah : mAccounts) {
135
AccountHolder
accountHolder
=
136
AccountHolder
.create().account(account).password(password).build()
[
all
...]
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/signin/
OAuth2TokenServiceTest.java
14
import org.chromium.sync.test.util.
AccountHolder
;
46
AccountHolder
accountHolder1 =
AccountHolder
.create().account(account1).build();
61
AccountHolder
accountHolder1 =
AccountHolder
.create().account(account1).build();
64
AccountHolder
accountHolder2 =
AccountHolder
.create().account(account2).build();
100
AccountHolder
accountHolder
=
101
AccountHolder
.create(
[
all
...]
OAuth2TokenServiceIntegrationTest.java
18
import org.chromium.sync.test.util.
AccountHolder
;
34
private static final
AccountHolder
TEST_ACCOUNT_HOLDER_1 =
35
AccountHolder
.create().account(TEST_ACCOUNT1).alwaysAccept(true).build();
36
private static final
AccountHolder
TEST_ACCOUNT_HOLDER_2 =
37
AccountHolder
.create().account(TEST_ACCOUNT2).alwaysAccept(true).build();
/external/chromium_org/chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/sync/
SyncTestUtil.java
25
import org.chromium.sync.test.util.
AccountHolder
;
294
AccountHolder
.Builder
accountHolder
=
295
AccountHolder
.create().account(account).password(password);
299
accountHolder
.hasBeenAccepted(authTokenType, true);
302
accountManager.addAccountHolderExplicitly(
accountHolder
.build());
313
AccountHolder
.Builder
accountHolder
=
314
AccountHolder
.create().account(account).password(password).alwaysAccept(true);
315
accountManager.addAccountHolderExplicitly(
accountHolder
.build())
[
all
...]
Completed in 1021 milliseconds