diff options
author | Dave Santoro <dsantoro@google.com> | 2011-08-04 13:12:43 -0700 |
---|---|---|
committer | Dave Santoro <dsantoro@google.com> | 2011-08-04 13:12:43 -0700 |
commit | cce1c9cf029f40b62955f4b545f94c993daefbd2 (patch) | |
tree | b8589b9395655c7809481653d2ee4b8e18e64fa3 /tests | |
parent | 83aeb09dd56546eca32cc51e638270f8598a0203 (diff) | |
download | packages_providers_ContactsProvider-cce1c9cf029f40b62955f4b545f94c993daefbd2.zip packages_providers_ContactsProvider-cce1c9cf029f40b62955f4b545f94c993daefbd2.tar.gz packages_providers_ContactsProvider-cce1c9cf029f40b62955f4b545f94c993daefbd2.tar.bz2 |
Add support for updating profile raw contacts.
Bug 5122027
Change-Id: I4c0c4dc3b8b9eedbca347929fe16893aa1630005
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/com/android/providers/contacts/ContactsProvider2Test.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/src/com/android/providers/contacts/ContactsProvider2Test.java b/tests/src/com/android/providers/contacts/ContactsProvider2Test.java index 875479b..d9dd358 100644 --- a/tests/src/com/android/providers/contacts/ContactsProvider2Test.java +++ b/tests/src/com/android/providers/contacts/ContactsProvider2Test.java @@ -1945,6 +1945,17 @@ public class ContactsProvider2Test extends BaseContactsProvider2Test { getExpectedProfileDataValues()); } + public void testUpdateProfileRawContact() { + createBasicProfileContact(new ContentValues()); + ContentValues updatedValues = new ContentValues(); + updatedValues.put(RawContacts.SEND_TO_VOICEMAIL, 0); + updatedValues.put(RawContacts.CUSTOM_RINGTONE, "rachmaninoff3"); + updatedValues.put(RawContacts.STARRED, 1); + mResolver.update(Profile.CONTENT_RAW_CONTACTS_URI, updatedValues, null, null); + + assertStoredValues(Profile.CONTENT_RAW_CONTACTS_URI, updatedValues); + } + public void testInsertProfileWithDataSetTriggersAccountCreation() { // Check that we have no profile raw contacts. assertStoredValues(Profile.CONTENT_RAW_CONTACTS_URI, new ContentValues[]{}); |