summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Johannes Gallmann <gallmann@google.com> 2022-12-07 10:40:03 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2022-12-07 10:40:03 +0000
commit37f5bdc26f3b4ae80c12ce5ad55b0faf9c3eabd7 (patch)
tree731482cc6a73d3e75e4aabb811bb1edb3d2a9ce5
parent72a8a3dc1ae4ee6ad4dfc4fe552717b2db8030c3 (diff)
parente16f54e26b6fc8218acd8aea072d717db43fdaf0 (diff)
Merge "Fix AnimationLib Test not running in presubmit" into tm-qpr-dev am: 18b4a499d8 am: e16f54e26b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20609552 Change-Id: Iec0f68b78140f8017718bee0a729054e11948021 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--packages/SystemUI/animation/Android.bp20
-rw-r--r--packages/SystemUI/animation/TEST_MAPPING7
-rw-r--r--packages/SystemUI/tests/src/com/android/systemui/animation/InterpolatorsAndroidXTest.kt (renamed from packages/SystemUI/animation/tests/com/android/systemui/animation/InterpolatorsAndroidXTest.kt)3
3 files changed, 2 insertions, 28 deletions
diff --git a/packages/SystemUI/animation/Android.bp b/packages/SystemUI/animation/Android.bp
index 17ad55f403fb..8acc2f8adcf9 100644
--- a/packages/SystemUI/animation/Android.bp
+++ b/packages/SystemUI/animation/Android.bp
@@ -44,23 +44,3 @@ android_library {
manifest: "AndroidManifest.xml",
kotlincflags: ["-Xjvm-default=all"],
}
-
-android_test {
- name: "SystemUIAnimationLibTests",
-
- static_libs: [
- "SystemUIAnimationLib",
- "androidx.test.ext.junit",
- "androidx.test.rules",
- "testables",
- ],
- libs: [
- "android.test.base",
- ],
- srcs: [
- "**/*.java",
- "**/*.kt",
- ],
- kotlincflags: ["-Xjvm-default=all"],
- test_suites: ["general-tests"],
-}
diff --git a/packages/SystemUI/animation/TEST_MAPPING b/packages/SystemUI/animation/TEST_MAPPING
deleted file mode 100644
index 3dc8510bbf24..000000000000
--- a/packages/SystemUI/animation/TEST_MAPPING
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "presubmit": [
- {
- "name": "SystemUIAnimationLibTests"
- }
- ]
-}
diff --git a/packages/SystemUI/animation/tests/com/android/systemui/animation/InterpolatorsAndroidXTest.kt b/packages/SystemUI/tests/src/com/android/systemui/animation/InterpolatorsAndroidXTest.kt
index 389eed015820..2c680be97e95 100644
--- a/packages/SystemUI/animation/tests/com/android/systemui/animation/InterpolatorsAndroidXTest.kt
+++ b/packages/SystemUI/tests/src/com/android/systemui/animation/InterpolatorsAndroidXTest.kt
@@ -17,6 +17,7 @@
package com.android.systemui.animation
import androidx.test.filters.SmallTest
+import com.android.systemui.SysuiTestCase
import java.lang.reflect.Modifier
import junit.framework.Assert.assertEquals
import org.junit.Test
@@ -25,7 +26,7 @@ import org.junit.runners.JUnit4
@SmallTest
@RunWith(JUnit4::class)
-class InterpolatorsAndroidXTest {
+class InterpolatorsAndroidXTest : SysuiTestCase() {
@Test
fun testInterpolatorsAndInterpolatorsAndroidXPublicMethodsAreEqual() {