diff options
author | Brian Attwell <brianattwell@google.com> | 2015-05-28 17:19:43 -0700 |
---|---|---|
committer | Brian Attwell <brianattwell@google.com> | 2015-06-02 20:48:51 +0000 |
commit | 95f4fd8bf381ed9319f139febc369ce70dcb022e (patch) | |
tree | d8f2f8c84bc112a6f6455ea00587ccfb65065f13 /tests | |
parent | d67c70c551749929f2fa845279b554132bf992f0 (diff) | |
download | packages_providers_ContactsProvider-95f4fd8bf381ed9319f139febc369ce70dcb022e.zip packages_providers_ContactsProvider-95f4fd8bf381ed9319f139febc369ce70dcb022e.tar.gz packages_providers_ContactsProvider-95f4fd8bf381ed9319f139febc369ce70dcb022e.tar.bz2 |
Decouple ProviderStatus & internal provider state
Bug: 21090207
Change-Id: I7e93e36ad0c0d667ac56983c76acb1b97bd8755c
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/com/android/providers/contacts/ContactsProvider2Test.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/src/com/android/providers/contacts/ContactsProvider2Test.java b/tests/src/com/android/providers/contacts/ContactsProvider2Test.java index 1e1ef04..9e0b7c5 100644 --- a/tests/src/com/android/providers/contacts/ContactsProvider2Test.java +++ b/tests/src/com/android/providers/contacts/ContactsProvider2Test.java @@ -7493,7 +7493,7 @@ public class ContactsProvider2Test extends BaseContactsProvider2Test { } public void testProviderStatusNoContactsNoAccounts() throws Exception { - assertProviderStatus(ProviderStatus.STATUS_NO_ACCOUNTS_NO_CONTACTS); + assertProviderStatus(ProviderStatus.STATUS_EMPTY); } public void testProviderStatusOnlyLocalContacts() throws Exception { @@ -7501,17 +7501,17 @@ public class ContactsProvider2Test extends BaseContactsProvider2Test { assertProviderStatus(ProviderStatus.STATUS_NORMAL); mResolver.delete( ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId), null, null); - assertProviderStatus(ProviderStatus.STATUS_NO_ACCOUNTS_NO_CONTACTS); + assertProviderStatus(ProviderStatus.STATUS_EMPTY); } public void testProviderStatusWithAccounts() throws Exception { - assertProviderStatus(ProviderStatus.STATUS_NO_ACCOUNTS_NO_CONTACTS); + assertProviderStatus(ProviderStatus.STATUS_EMPTY); mActor.setAccounts(new Account[]{TestUtil.ACCOUNT_1}); ((ContactsProvider2)getProvider()).onAccountsUpdated(new Account[]{TestUtil.ACCOUNT_1}); assertProviderStatus(ProviderStatus.STATUS_NORMAL); mActor.setAccounts(new Account[0]); ((ContactsProvider2)getProvider()).onAccountsUpdated(new Account[0]); - assertProviderStatus(ProviderStatus.STATUS_NO_ACCOUNTS_NO_CONTACTS); + assertProviderStatus(ProviderStatus.STATUS_EMPTY); } private void assertProviderStatus(int expectedProviderStatus) { |