diff options
author | Yorke Lee <yorkelee@google.com> | 2015-10-20 13:09:26 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-10-20 13:10:36 -0700 |
commit | 7753b65fb379b5d6a87702ee7e2f8fb1098ebca2 (patch) | |
tree | dfed92509f67716bda357ad095839ec43b0555b1 /InCallUI/tests/src | |
parent | 256a0f4490b8a4f4734f7db2c59114a3d4698ce2 (diff) |
Update InCallUI tests
* Update all tests with @SmallTest, @MediumTest or @LargeTest
annotation to ensure coverage by continuous test infrastructure
Change-Id: If362edd2afbef0b3484ad74f53e7d6339156742e
Diffstat (limited to 'InCallUI/tests/src')
3 files changed, 6 insertions, 0 deletions
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; |