summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-08-03 18:08:39 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-08-03 18:08:39 +0000
commitbcaff37b8912b38dda37fd95e98b7b309421dcbc (patch)
tree49f63664883e932110c532839f440d0b8ad7b6e9
parentfe1d054db0d6222d89e395cbf6520ac8ff7fe496 (diff)
parent27174a97d74b203bd5612d8f74e2a2d45f1bacf0 (diff)
downloadpackages_providers_ContactsProvider-bcaff37b8912b38dda37fd95e98b7b309421dcbc.zip
packages_providers_ContactsProvider-bcaff37b8912b38dda37fd95e98b7b309421dcbc.tar.gz
packages_providers_ContactsProvider-bcaff37b8912b38dda37fd95e98b7b309421dcbc.tar.bz2
am 27174a97: am 8da96d94: am 07b5ddba: Fix CallLogProviderTest.testAddCall
* commit '27174a97d74b203bd5612d8f74e2a2d45f1bacf0': Fix CallLogProviderTest.testAddCall
-rw-r--r--tests/src/com/android/providers/contacts/CallLogProviderTest.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/src/com/android/providers/contacts/CallLogProviderTest.java b/tests/src/com/android/providers/contacts/CallLogProviderTest.java
index 32e0988..189483d 100644
--- a/tests/src/com/android/providers/contacts/CallLogProviderTest.java
+++ b/tests/src/com/android/providers/contacts/CallLogProviderTest.java
@@ -197,9 +197,10 @@ public class CallLogProviderTest extends BaseContactsProvider2Test {
values.put(Calls.NUMBER_PRESENTATION, Calls.PRESENTATION_ALLOWED);
values.put(Calls.DATE, 2000);
values.put(Calls.DURATION, 40);
- values.put(Calls.CACHED_NAME, "1-800-GOOG-411");
- values.put(Calls.CACHED_NUMBER_TYPE, Phone.TYPE_CUSTOM);
- values.put(Calls.CACHED_NUMBER_LABEL, "Directory");
+ // Cached values should not be updated immediately by the framework when inserting the call.
+ values.put(Calls.CACHED_NAME, (String) null);
+ values.put(Calls.CACHED_NUMBER_TYPE, (String) null);
+ values.put(Calls.CACHED_NUMBER_LABEL, (String) null);
values.put(Calls.COUNTRY_ISO, "us");
values.put(Calls.GEOCODED_LOCATION, "usa");
values.put(Calls.PHONE_ACCOUNT_COMPONENT_NAME,