From 7753b65fb379b5d6a87702ee7e2f8fb1098ebca2 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Tue, 20 Oct 2015 13:09:26 -0700 Subject: Update InCallUI tests * Update all tests with @SmallTest, @MediumTest or @LargeTest annotation to ensure coverage by continuous test infrastructure Change-Id: If362edd2afbef0b3484ad74f53e7d6339156742e --- InCallUI/tests/src/com/android/incallui/CallerInfoUtilsTest.java | 2 ++ InCallUI/tests/src/com/android/incallui/InCallPresenterTest.java | 2 ++ InCallUI/tests/src/com/android/incallui/ProximitySensorTest.java | 2 ++ 3 files changed, 6 insertions(+) (limited to 'InCallUI') diff --git a/InCallUI/tests/src/com/android/incallui/CallerInfoUtilsTest.java b/InCallUI/tests/src/com/android/incallui/CallerInfoUtilsTest.java index 5baabce1b..de5a0239e 100644 --- a/InCallUI/tests/src/com/android/incallui/CallerInfoUtilsTest.java +++ b/InCallUI/tests/src/com/android/incallui/CallerInfoUtilsTest.java @@ -17,7 +17,9 @@ package com.android.incallui; import android.test.AndroidTestCase; +import android.test.suitebuilder.annotation.SmallTest; +@SmallTest public class CallerInfoUtilsTest extends AndroidTestCase { public void testToLogSafeNumber_email() { assertEquals("xxx@xxx.xxx", CallerInfoUtils.toLogSafePhoneNumber("foo@foo.com")); diff --git a/InCallUI/tests/src/com/android/incallui/InCallPresenterTest.java b/InCallUI/tests/src/com/android/incallui/InCallPresenterTest.java index b5828ea62..ed8d6223c 100644 --- a/InCallUI/tests/src/com/android/incallui/InCallPresenterTest.java +++ b/InCallUI/tests/src/com/android/incallui/InCallPresenterTest.java @@ -25,6 +25,7 @@ import android.content.Intent; import android.telecom.PhoneAccountHandle; import android.telephony.TelephonyManager; import android.test.InstrumentationTestCase; +import android.test.suitebuilder.annotation.MediumTest; import com.android.incallui.InCallPresenter.InCallState; @@ -32,6 +33,7 @@ import org.mockito.Mock; import org.mockito.Mockito; import org.mockito.MockitoAnnotations; +@MediumTest public class InCallPresenterTest extends InstrumentationTestCase { private MockCallListWrapper mCallList; @Mock private InCallActivity mInCallActivity; diff --git a/InCallUI/tests/src/com/android/incallui/ProximitySensorTest.java b/InCallUI/tests/src/com/android/incallui/ProximitySensorTest.java index d7b2f64b6..1c8f34721 100644 --- a/InCallUI/tests/src/com/android/incallui/ProximitySensorTest.java +++ b/InCallUI/tests/src/com/android/incallui/ProximitySensorTest.java @@ -22,6 +22,7 @@ import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import android.test.InstrumentationTestCase; +import android.test.suitebuilder.annotation.MediumTest; import com.android.incallui.InCallPresenter.InCallState; @@ -29,6 +30,7 @@ import org.mockito.Mock; import org.mockito.Mockito; import org.mockito.MockitoAnnotations; +@MediumTest public class ProximitySensorTest extends InstrumentationTestCase { @Mock private AccelerometerListener mAccelerometerListener; private MockCallListWrapper mCallList; -- cgit v1.2.3