summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTony Mak <tonymak@google.com>2016-02-11 21:21:30 +0000
committerTony Mak <tonymak@google.com>2016-02-12 10:14:48 +0000
commit679c717fca664c0703e9ea3a58239d30f1cadea1 (patch)
treea7c737c52f55603dbf0f091ed7b311cd13689c96 /tests
parent49df92e2f4ab4e86cfcec9e58851755b26d10b50 (diff)
Use DATA.CONTACT_ID when lookup SIP call
It is actually a naming mistake in framework, the column store contact id of normal query is _id, but that of sip query is contact_id. It is an old issue and we can't do much in the framework side. So, we need to use the correct projection when it is a SIP call. Bug:27143980 Bug:27141566 (cherry picked from commit 328f75ff518bf7d8863c6cf4446e26636e05b297) Change-Id: I0551c308072892ef13c8cb14ea4a4ab37ffa6f83
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/dialer/calllog/ContactInfoHelperTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/src/com/android/dialer/calllog/ContactInfoHelperTest.java b/tests/src/com/android/dialer/calllog/ContactInfoHelperTest.java
index 588a27fcf..0e032c15f 100644
--- a/tests/src/com/android/dialer/calllog/ContactInfoHelperTest.java
+++ b/tests/src/com/android/dialer/calllog/ContactInfoHelperTest.java
@@ -58,7 +58,7 @@ public class ContactInfoHelperTest extends AndroidTestCase {
}
public void testLookupContactFromUri_NullUri() {
- Assert.assertNull(mContactInfoHelper.lookupContactFromUri(null));
+ Assert.assertNull(mContactInfoHelper.lookupContactFromUri(null, false));
}
public void testLookupContactFromUri_NoResults() {
@@ -66,7 +66,7 @@ public class ContactInfoHelperTest extends AndroidTestCase {
PhoneQuery.PHONE_LOOKUP_PROJECTION);
Assert.assertEquals(ContactInfo.EMPTY, mContactInfoHelper.lookupContactFromUri(
- PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI));
+ PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI, false));
mContext.verify();
}
@@ -77,7 +77,7 @@ public class ContactInfoHelperTest extends AndroidTestCase {
PhoneQuery.DISPLAY_NAME_ALTERNATIVE_PROJECTION);
ContactInfo contactInfo = mContactInfoHelper.lookupContactFromUri(
- PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI);
+ PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI, false);
Assert.assertEquals(TEST_DISPLAY_NAME, contactInfo.name);
Assert.assertNull(contactInfo.nameAlternative);
mContext.verify();
@@ -90,7 +90,7 @@ public class ContactInfoHelperTest extends AndroidTestCase {
PhoneQuery.DISPLAY_NAME_ALTERNATIVE_PROJECTION, TEST_DISPLAY_NAME_ALTERNATIVE_ROW);
ContactInfo contactInfo = mContactInfoHelper.lookupContactFromUri(
- PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI);
+ PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI, false);
Assert.assertEquals(TEST_DISPLAY_NAME, contactInfo.name);
Assert.assertEquals(TEST_DISPLAY_NAME_ALTERNATIVE, contactInfo.nameAlternative);
mContext.verify();