Home
last modified time | relevance | path

Searched refs:accounts (Results 1 – 25 of 103) sorted by relevance

12345

/external/chromium_org/google_apis/gaia/
Dgaia_auth_util_unittest.cc112 std::vector<std::string> accounts; in TEST() local
113 accounts = ParseListAccountsData(""); in TEST()
114 ASSERT_EQ(0u, accounts.size()); in TEST()
116 accounts = ParseListAccountsData("1"); in TEST()
117 ASSERT_EQ(0u, accounts.size()); in TEST()
119 accounts = ParseListAccountsData("[]"); in TEST()
120 ASSERT_EQ(0u, accounts.size()); in TEST()
122 accounts = ParseListAccountsData("[\"foo\", \"bar\"]"); in TEST()
123 ASSERT_EQ(0u, accounts.size()); in TEST()
125 accounts = ParseListAccountsData("[\"foo\", []]"); in TEST()
[all …]
Dgaia_auth_util.cc89 base::ListValue* accounts; in ParseListAccountsData() local
90 if (!list->GetList(1, &accounts) || accounts == NULL) in ParseListAccountsData()
95 for (size_t i = 0; i < accounts->GetSize(); ++i) { in ParseListAccountsData()
97 if (accounts->GetList(i, &account) && account != NULL) { in ParseListAccountsData()
/external/chromium_org/chrome/browser/ui/autofill/
Daccount_chooser_model_unittest.cc156 std::vector<std::string> accounts; in TEST_F() local
157 accounts.push_back("john.doe@gmail.com"); in TEST_F()
158 model()->SetWalletAccounts(accounts, 0U); in TEST_F()
165 EXPECT_EQ(ASCIIToUTF16(accounts[0]), model()->GetActiveWalletAccountName()); in TEST_F()
198 std::vector<std::string> accounts; in TEST_F() local
199 accounts.push_back("john.doe@gmail.com"); in TEST_F()
200 accounts.push_back("jane.smith@gmail.com"); in TEST_F()
201 model()->SetWalletAccounts(accounts, 0U); in TEST_F()
209 EXPECT_EQ(ASCIIToUTF16(accounts[0]), model()->GetActiveWalletAccountName()); in TEST_F()
210 model()->SetWalletAccounts(accounts, 1U); in TEST_F()
[all …]
Daccount_chooser_model.cc69 const std::vector<std::string>& accounts, in SetWalletAccounts() argument
71 wallet_accounts_ = accounts; in SetWalletAccounts()
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/signin/
DOAuth2TokenServiceTest.java7 import android.accounts.Account;
38 String[] accounts = OAuth2TokenService.getAccounts(mContext); in testGetAccountsNoAccountsRegistered() local
39 assertEquals("There should be no accounts registered", 0, accounts.length); in testGetAccountsNoAccountsRegistered()
49 String[] accounts = OAuth2TokenService.getAccounts(mContext); in testGetAccountsOneAccountRegistered() local
50 assertEquals("There should be one registered account", 1, accounts.length); in testGetAccountsOneAccountRegistered()
51 assertEquals("The account should be " + account1, account1.name, accounts[0]); in testGetAccountsOneAccountRegistered()
64 String[] accounts = OAuth2TokenService.getAccounts(mContext); in testGetAccountsTwoAccountsRegistered() local
65 assertEquals("There should be one registered account", 2, accounts.length); in testGetAccountsTwoAccountsRegistered()
67 Arrays.asList(accounts).contains(account1.name)); in testGetAccountsTwoAccountsRegistered()
69 Arrays.asList(accounts).contains(account2.name)); in testGetAccountsTwoAccountsRegistered()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowAccountManager.java3 import android.accounts.Account;
4 import android.accounts.AccountManager;
5 import android.accounts.AccountManagerCallback;
6 import android.accounts.AccountManagerFuture;
7 import android.accounts.AuthenticatorException;
8 import android.accounts.OperationCanceledException;
37 private Account[] accounts; field in ShadowAccountManager
176 return accounts;
180 if (accounts != null) {
181 for (Account account : accounts) {
[all …]
/external/chromium_org/sync/android/java/src/org/chromium/sync/signin/
DAccountManagerDelegate.java7 import android.accounts.Account;
8 import android.accounts.AccountManagerCallback;
9 import android.accounts.AccountManagerFuture;
10 import android.accounts.AuthenticatorDescription;
11 import android.accounts.AuthenticatorException;
12 import android.accounts.OperationCanceledException;
DSystemAccountManagerDelegate.java7 import android.accounts.Account;
8 import android.accounts.AccountManager;
9 import android.accounts.AccountManagerCallback;
10 import android.accounts.AccountManagerFuture;
11 import android.accounts.AuthenticatorDescription;
12 import android.accounts.AuthenticatorException;
13 import android.accounts.OperationCanceledException;
DAccountManagerHelper.java8 import android.accounts.Account;
9 import android.accounts.AccountManager;
10 import android.accounts.AccountManagerFuture;
11 import android.accounts.AuthenticatorDescription;
12 import android.accounts.AuthenticatorException;
13 import android.accounts.OperationCanceledException;
111 Account[] accounts = mAccountManager.getAccountsByType(GOOGLE_ACCOUNT_TYPE); in getGoogleAccountNames() local
112 for (Account account : accounts) { in getGoogleAccountNames()
130 Account[] accounts = mAccountManager.getAccountsByType(GOOGLE_ACCOUNT_TYPE); in getAccountFromName() local
131 for (Account account : accounts) { in getAccountFromName()
/external/chromium_org/chrome/browser/chromeos/policy/
Ddevice_local_account.cc94 const std::vector<DeviceLocalAccount>& accounts) { in SetDeviceLocalAccounts() argument
96 for (std::vector<DeviceLocalAccount>::const_iterator it = accounts.begin(); in SetDeviceLocalAccounts()
97 it != accounts.end(); ++it) { in SetDeviceLocalAccounts()
118 std::vector<DeviceLocalAccount> accounts; in GetDeviceLocalAccounts() local
123 return accounts; in GetDeviceLocalAccounts()
169 accounts.push_back(DeviceLocalAccount( in GetDeviceLocalAccounts()
172 return accounts; in GetDeviceLocalAccounts()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DAccountManagerTest.java16 import android.accounts.Account;
17 import android.accounts.AccountManager;
18 import android.accounts.AccountManagerFuture;
113 Account[] accounts = accountManager.getAccounts(); in testGetAccounts() local
115 assertArrayEquals(origAccounts, accounts); in testGetAccounts()
124 Account[] accounts = accountManager.getAccountsByType("myType"); in testGetAccountsByType() local
126 assertThat(accounts.length, equalTo(1)); in testGetAccountsByType()
127 assertThat(accounts[0], equalTo(diffAccount)); in testGetAccountsByType()
/external/chromium_org/chrome/browser/signin/
Dmutable_profile_oauth2_token_service_unittest.cc290 std::vector<std::string> accounts = oauth2_service_->GetAccounts(); in TEST_F() local
291 EXPECT_EQ(2u, accounts.size()); in TEST_F()
292 EXPECT_EQ(1, count(accounts.begin(), accounts.end(), "account_id1")); in TEST_F()
293 EXPECT_EQ(1, count(accounts.begin(), accounts.end(), "account_id2")); in TEST_F()
295 accounts = oauth2_service_->GetAccounts(); in TEST_F()
297 EXPECT_EQ(1, count(accounts.begin(), accounts.end(), "account_id1")); in TEST_F()
Dandroid_profile_oauth2_token_service.cc91 std::vector<std::string> accounts; in GetAccounts() local
99 &accounts); in GetAccounts()
100 return accounts; in GetAccounts()
155 jobjectArray accounts, in ValidateAccounts() argument
159 accounts, in ValidateAccounts()
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/infobar/
DAutoLoginAccountDelegate.java7 import android.accounts.Account;
8 import android.accounts.AccountManager;
9 import android.accounts.AccountManagerCallback;
10 import android.accounts.AccountManagerFuture;
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/
DIntentHelper.java7 import android.accounts.Account;
8 import android.accounts.AccountManager;
50 Account[] accounts = AccountManager.get(context).getAccounts(); in sendEmail() local
51 for (Account account : accounts) { in sendEmail()
/external/chromium_org/sync/test/android/javatests/src/org/chromium/sync/test/util/
DMockAccountManager.java7 import android.accounts.Account;
8 import android.accounts.AccountManager;
9 import android.accounts.AccountManagerCallback;
10 import android.accounts.AccountManagerFuture;
11 import android.accounts.AuthenticatorDescription;
12 import android.accounts.AuthenticatorException;
13 import android.accounts.OperationCanceledException;
87 public MockAccountManager(Context context, Context testContext, Account... accounts) { in MockAccountManager() argument
96 if (accounts != null) { in MockAccountManager()
97 for (Account account : accounts) { in MockAccountManager()
[all …]
/external/chromium_org/chrome/renderer/
Dprincipals_extension_bindings.cc80 std::vector<std::string> accounts; in GetManagedAccounts() local
83 &accounts)); in GetManagedAccounts()
88 for (std::vector<std::string>::const_iterator it = accounts.begin(); in GetManagedAccounts()
89 it != accounts.end(); ++it) { in GetManagedAccounts()
/external/chromium_org/remoting/android/java/src/org/chromium/chromoting/
DChromoting.java7 import android.accounts.Account;
8 import android.accounts.AccountManager;
9 import android.accounts.AccountManagerCallback;
10 import android.accounts.AccountManagerFuture;
11 import android.accounts.AuthenticatorException;
12 import android.accounts.OperationCanceledException;
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/signin/
DOAuth2TokenService.java7 import android.accounts.Account;
205 String[] accounts = getAccounts(context); in validateAccounts() local
207 mNativeProfileOAuth2TokenService, accounts, currentlySignedInAccount); in validateAccounts()
270 String[] accounts, String currentlySignedInAccount); in nativeValidateAccounts() argument
/external/chromium_org/chrome/android/testshell/java/src/org/chromium/chrome/testshell/signin/
DAccountsChangedReceiver.java7 import android.accounts.Account;
8 import android.accounts.AccountManager;
/external/chromium/chrome/browser/resources/options/chromeos/
Daccounts_options.js38 options.accounts.UserNameEdit.decorate(userNameEdit);
45 options.accounts.UserList.decorate(userList);
/external/chromium_org/chrome/browser/resources/options/chromeos/
Daccounts_options.js41 options.accounts.UserNameEdit.decorate(userNameEdit);
49 options.accounts.UserList.decorate(userList);
/external/chromium_org/chrome/browser/chromeos/login/
Doauth2_login_manager.cc283 std::vector<std::string> accounts = gaia::ParseListAccountsData(data); in OnListAccountsSuccess() local
286 if (!accounts.empty()) { in OnListAccountsSuccess()
289 for (std::vector<std::string>::const_iterator iter = accounts.begin(); in OnListAccountsSuccess()
290 iter != accounts.end(); ++iter) { in OnListAccountsSuccess()
Dexisting_user_controller_auto_login_unittest.cc84 base::ListValue accounts; in SetUp() local
85 accounts.Append(account.release()); in SetUp()
86 CrosSettings::Get()->Set(kAccountsPrefDeviceLocalAccounts, accounts); in SetUp()
/external/chromium_org/sync/android/java/src/org/chromium/sync/notifier/
DSyncContentResolverDelegate.java8 import android.accounts.Account;

12345