Home
last modified time | relevance | path

Searched refs:getAccounts (Results 1 – 2 of 2) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowAccountManagerTest.java58 assertThat(am.getAccounts()).isNotNull(); in testGetAccounts()
59 assertThat(am.getAccounts().length).isEqualTo(0); in testGetAccounts()
63 assertThat(am.getAccounts()).isNotNull(); in testGetAccounts()
64 assertThat(am.getAccounts().length).isEqualTo(1); in testGetAccounts()
65 assertThat(am.getAccounts()[0]).isSameAs(a1); in testGetAccounts()
69 assertThat(am.getAccounts()).isNotNull(); in testGetAccounts()
70 assertThat(am.getAccounts().length).isEqualTo(2); in testGetAccounts()
71 assertThat(am.getAccounts()[1]).isSameAs(a2); in testGetAccounts()
80 assertThat(am.getAccountsByType(null)).asList().containsAllIn(am.getAccounts()); in getAccountsByType_nullTypeReturnsAllAccounts()
86 assertThat(am.getAccounts().length).isEqualTo(0); in testGetAccountsByType()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowAccountManager.java71 protected Account[] getAccounts() { in getAccounts() method in ShadowAccountManager
78 return getAccounts(); in getAccountsByType()
215 listener.onAccountsUpdated(getAccounts());
306 Account[] accounts = getAccounts();