From 8185d389a3d30ded099913ec3943e8b915f75c1d Mon Sep 17 00:00:00 2001 From: Geoffrey Pitsch Date: Fri, 19 May 2017 18:41:32 -0400 Subject: [PATCH] Add SmallTest for presubmit Test: N/A Change-Id: I93ca5c7f794b2e5bbc8632cf3688d3eff541c669 --- .../server/notification/NotificationManagerServiceTest.java | 2 ++ .../tests/src/android/testing/TestableLooperTest.java | 2 ++ .../tests/src/android/testing/TestableResourcesTest.java | 4 +++- .../src/android/testing/TestableSettingsProviderTest.java | 2 ++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/services/tests/notification/src/com/android/server/notification/NotificationManagerServiceTest.java b/services/tests/notification/src/com/android/server/notification/NotificationManagerServiceTest.java index 9afb2d2b210cd..5c40a2c664390 100644 --- a/services/tests/notification/src/com/android/server/notification/NotificationManagerServiceTest.java +++ b/services/tests/notification/src/com/android/server/notification/NotificationManagerServiceTest.java @@ -55,6 +55,7 @@ import android.os.UserHandle; import android.provider.Settings.Secure; import android.service.notification.NotificationListenerService; import android.service.notification.StatusBarNotification; +import android.test.suitebuilder.annotation.SmallTest; import android.testing.AndroidTestingRunner; import android.testing.TestableLooper; import android.testing.TestableLooper.RunWithLooper; @@ -73,6 +74,7 @@ import org.mockito.MockitoAnnotations; import com.android.server.lights.Light; import com.android.server.lights.LightsManager; +@SmallTest @RunWith(AndroidTestingRunner.class) @RunWithLooper public class NotificationManagerServiceTest extends NotificationTestCase { diff --git a/tests/testables/tests/src/android/testing/TestableLooperTest.java b/tests/testables/tests/src/android/testing/TestableLooperTest.java index 12f1d0a5f4149..13e72bad1dc3d 100644 --- a/tests/testables/tests/src/android/testing/TestableLooperTest.java +++ b/tests/testables/tests/src/android/testing/TestableLooperTest.java @@ -31,9 +31,11 @@ import org.junit.runner.RunWith; import android.os.Handler; import android.os.Looper; import android.os.Message; +import android.test.suitebuilder.annotation.SmallTest; import android.testing.TestableLooper.MessageHandler; import android.testing.TestableLooper.RunWithLooper; +@SmallTest @RunWith(AndroidTestingRunner.class) @RunWithLooper public class TestableLooperTest { diff --git a/tests/testables/tests/src/android/testing/TestableResourcesTest.java b/tests/testables/tests/src/android/testing/TestableResourcesTest.java index 9a1c0a943ed93..dc7cf9554ba51 100644 --- a/tests/testables/tests/src/android/testing/TestableResourcesTest.java +++ b/tests/testables/tests/src/android/testing/TestableResourcesTest.java @@ -22,6 +22,7 @@ import static org.junit.Assert.fail; import android.content.res.Resources; import android.support.test.InstrumentationRegistry; +import android.test.suitebuilder.annotation.SmallTest; import com.android.testables.R; @@ -29,6 +30,7 @@ import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; +@SmallTest @RunWith(AndroidTestingRunner.class) public class TestableResourcesTest { @@ -90,4 +92,4 @@ public class TestableResourcesTest { assertNull(mContext.getString(existentId)); } -} \ No newline at end of file +} diff --git a/tests/testables/tests/src/android/testing/TestableSettingsProviderTest.java b/tests/testables/tests/src/android/testing/TestableSettingsProviderTest.java index 0e2cc576270ea..ac61debd8dc93 100644 --- a/tests/testables/tests/src/android/testing/TestableSettingsProviderTest.java +++ b/tests/testables/tests/src/android/testing/TestableSettingsProviderTest.java @@ -20,6 +20,7 @@ import android.provider.Settings.Global; import android.provider.Settings.Secure; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; +import android.test.suitebuilder.annotation.SmallTest; import org.junit.Before; import org.junit.Rule; import org.junit.Test; @@ -27,6 +28,7 @@ import org.junit.runner.RunWith; import static org.junit.Assert.*; +@SmallTest @RunWith(AndroidJUnit4.class) public class TestableSettingsProviderTest {