diff options
author | Grace Jia <xiaotonj@google.com> | 2020-08-28 09:03:12 -0700 |
---|---|---|
committer | Grace Jia <xiaotonj@google.com> | 2020-11-02 15:20:22 -0800 |
commit | ce22e63dc9f65b13fb1d5532505b721aa9cba628 (patch) | |
tree | 882cae0de07fdb1b8a1b1559f389e3b832af9bd1 /tests | |
parent | 1dc2110ac22657605369d01049ed09d95abec475 (diff) | |
download | ContactsProvider-ce22e63dc9f65b13fb1d5532505b721aa9cba628.tar.gz |
Add missed information relative field.
Test: atest ContactsProviderTests:CallLogProviderTest
Bug: 144452099
Change-Id: I435c85700bb1bbb8953f680a5e5fe5e9a0515bb6
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/com/android/providers/contacts/CallLogProviderTest.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/src/com/android/providers/contacts/CallLogProviderTest.java b/tests/src/com/android/providers/contacts/CallLogProviderTest.java index 9baf1e41..c9d09635 100644 --- a/tests/src/com/android/providers/contacts/CallLogProviderTest.java +++ b/tests/src/com/android/providers/contacts/CallLogProviderTest.java @@ -16,6 +16,8 @@ package com.android.providers.contacts; +import static android.provider.CallLog.Calls.MISSED_REASON_NOT_MISSED; + import android.telecom.CallerInfo; import com.android.providers.contacts.testutil.CommonDatabaseUtils; import com.android.providers.contacts.util.ContactsPermissions; @@ -60,7 +62,7 @@ public class CallLogProviderTest extends BaseContactsProvider2Test { Voicemails.DIRTY, Voicemails.DELETED}; /** Total number of columns exposed by call_log provider. */ - private static final int NUM_CALLLOG_FIELDS = 35; + private static final int NUM_CALLLOG_FIELDS = 36; private static final int MIN_MATCH = 7; @@ -199,7 +201,7 @@ public class CallLogProviderTest extends BaseContactsProvider2Test { ContactsPermissions.ALLOW_SELF_CALL = true; Uri uri = Calls.addCall(ci, getMockContext(), "1-800-263-7643", Calls.PRESENTATION_ALLOWED, Calls.OUTGOING_TYPE, 0, subscription, 2000, - 40, null); + 40, null, MISSED_REASON_NOT_MISSED); ContactsPermissions.ALLOW_SELF_CALL = false; assertNotNull(uri); assertEquals("0@" + CallLog.AUTHORITY, uri.getAuthority()); @@ -222,6 +224,7 @@ public class CallLogProviderTest extends BaseContactsProvider2Test { // Casting null to Long as there are many forms of "put" which have nullable second // parameters and the compiler needs a hint as to which form is correct. values.put(Calls.DATA_USAGE, (Long) null); + values.put(Calls.MISSED_REASON, 0); assertStoredValues(uri, values); } |