summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBrian Attwell <brianattwell@google.com>2015-05-28 17:19:43 -0700
committerBrian Attwell <brianattwell@google.com>2015-06-02 20:48:51 +0000
commit95f4fd8bf381ed9319f139febc369ce70dcb022e (patch)
treed8f2f8c84bc112a6f6455ea00587ccfb65065f13 /tests
parentd67c70c551749929f2fa845279b554132bf992f0 (diff)
downloadpackages_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.java8
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) {