summaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/dialer/calllog/CallLogListItemHelperTest.java
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2014-07-15 12:40:28 -0700
committerTyler Gunn <tgunn@google.com>2014-07-15 12:44:01 -0700
commit5619f2ed87cb207352c0ff5578348baeb69ee202 (patch)
treea794e13d436109711c0ba759eafa6d65fe258fa8 /tests/src/com/android/dialer/calllog/CallLogListItemHelperTest.java
parent57750bca2f46ed9f6da4be0dea3959a0d9f49c01 (diff)
downloadandroid_packages_apps_Dialer-5619f2ed87cb207352c0ff5578348baeb69ee202.tar.gz
android_packages_apps_Dialer-5619f2ed87cb207352c0ff5578348baeb69ee202.tar.bz2
android_packages_apps_Dialer-5619f2ed87cb207352c0ff5578348baeb69ee202.zip
Various call log / call details video call changes.
Requires cl/501841. Call log: 1. Add video call affordance. 2. Add accessibility text for calls, video call afforance. 3. Fixed unit test Call details: 1. Showing video icon when a call had video. 2. Changing call headings to indicate they were video calls. Bug: 16013879 Bug: 16013344 Bug: 16013684 Change-Id: I53b5bf9b0b1a63f9d119318d59f690d310cca7c8
Diffstat (limited to 'tests/src/com/android/dialer/calllog/CallLogListItemHelperTest.java')
-rw-r--r--tests/src/com/android/dialer/calllog/CallLogListItemHelperTest.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/src/com/android/dialer/calllog/CallLogListItemHelperTest.java b/tests/src/com/android/dialer/calllog/CallLogListItemHelperTest.java
index 8fbda1596..4c9d92cfc 100644
--- a/tests/src/com/android/dialer/calllog/CallLogListItemHelperTest.java
+++ b/tests/src/com/android/dialer/calllog/CallLogListItemHelperTest.java
@@ -327,6 +327,21 @@ public class CallLogListItemHelperTest extends AndroidTestCase {
.contains(this.mResources.getString(R.string.description_num_calls, 2)));
}
+ /**
+ * Test getCallDescription method used to get the accessibility description for calls.
+ * Test that the "Video call." message is present if the call had video capability.
+ */
+ public void testGetCallDescription_Video() {
+ PhoneCallDetails details = new PhoneCallDetails(TEST_NUMBER, Calls.PRESENTATION_ALLOWED,
+ TEST_FORMATTED_NUMBER,
+ TEST_COUNTRY_ISO, TEST_GEOCODE,
+ new int[]{Calls.INCOMING_TYPE, Calls.INCOMING_TYPE}, TEST_DATE, TEST_DURATION,
+ null, Calls.FEATURES_VIDEO, null);
+ CharSequence description = mHelper.getCallDescription(details);
+ assertTrue(description.toString()
+ .contains(this.mResources.getString(R.string.description_video_call, 2)));
+ }
+
/** Asserts that the primary action view does not have a call intent. */
private void assertNoCallIntent() {
Object intentProvider = (IntentProvider)mViews.primaryActionView.getTag();