From c88bdc76bf419808c2e07b69b5b0f2974100ddad Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Fri, 27 Feb 2015 18:13:10 -0800 Subject: Fix some Dialer tests Change-Id: I46188070997ebc9b69f7d9b5a8ba9cb3c221b743 --- tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java | 2 +- tests/src/com/android/dialer/util/TestConstants.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/src/com/android') diff --git a/tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java b/tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java index 7ae2c2293..df4247b8e 100644 --- a/tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java +++ b/tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java @@ -239,7 +239,7 @@ public class PhoneCallDetailsHelperTest extends AndroidTestCase { public void testSetCallDetailsHeader_PayphoneNumber() { setCallDetailsHeaderWithNumber("", Calls.PRESENTATION_PAYPHONE); assertEquals(View.VISIBLE, mNameView.getVisibility()); - assertEquals("Pay phone", mNameView.getText().toString()); + assertEquals("Payphone", mNameView.getText().toString()); } public void testSetCallDetailsHeader_VoicemailNumber() { diff --git a/tests/src/com/android/dialer/util/TestConstants.java b/tests/src/com/android/dialer/util/TestConstants.java index 780626a27..ff4a2faad 100644 --- a/tests/src/com/android/dialer/util/TestConstants.java +++ b/tests/src/com/android/dialer/util/TestConstants.java @@ -1,7 +1,5 @@ package com.android.dialer.util; -import android.content.Intent; - public class TestConstants { - public static final String CALL_INTENT_ACTION = Intent.ACTION_CALL; + public static final String CALL_INTENT_ACTION = PrivilegedCallUtil.CALL_ACTION; } -- cgit v1.2.3