diff options
author | 2023-12-19 18:14:47 +0000 | |
---|---|---|
committer | 2023-12-19 18:14:47 +0000 | |
commit | e2cb041c92d15d1393cac2cd8c15ea1240441984 (patch) | |
tree | fb454caf5bcdc77c74f6712c2b18400bdcfe9e41 /sax | |
parent | 8124c112df7e873921183d0b20a34e70069fdc54 (diff) |
Update the imports to androidx.test.filters.*
Bug: 316941721
Test: mmma .
Change-Id: I1b502639f2063dab81e5c514385a4c1296b230f0
Diffstat (limited to 'sax')
-rw-r--r-- | sax/tests/saxtests/Android.bp | 5 | ||||
-rw-r--r-- | sax/tests/saxtests/src/android/sax/SafeSaxTest.java | 16 |
2 files changed, 10 insertions, 11 deletions
diff --git a/sax/tests/saxtests/Android.bp b/sax/tests/saxtests/Android.bp index cbd19c36dd73..446ee9394179 100644 --- a/sax/tests/saxtests/Android.bp +++ b/sax/tests/saxtests/Android.bp @@ -15,6 +15,9 @@ android_test { "android.test.runner", "android.test.base", ], - static_libs: ["junit"], + static_libs: [ + "junit", + "androidx.test.rules", + ], platform_apis: true, } diff --git a/sax/tests/saxtests/src/android/sax/SafeSaxTest.java b/sax/tests/saxtests/src/android/sax/SafeSaxTest.java index a68fc9ab2290..2a08f5480825 100644 --- a/sax/tests/saxtests/src/android/sax/SafeSaxTest.java +++ b/sax/tests/saxtests/src/android/sax/SafeSaxTest.java @@ -17,18 +17,16 @@ package android.sax; import android.graphics.Bitmap; -import android.sax.Element; -import android.sax.ElementListener; -import android.sax.EndTextElementListener; -import android.sax.RootElement; -import android.sax.StartElementListener; -import android.sax.TextElementListener; import android.test.AndroidTestCase; -import android.test.suitebuilder.annotation.LargeTest; -import android.test.suitebuilder.annotation.SmallTest; import android.util.Log; import android.util.Xml; + +import androidx.test.filters.LargeTest; +import androidx.test.filters.SmallTest; + +import com.android.frameworks.saxtests.R; import com.android.internal.util.XmlUtils; + import org.xml.sax.Attributes; import org.xml.sax.ContentHandler; import org.xml.sax.SAXException; @@ -40,8 +38,6 @@ import java.io.IOException; import java.io.InputStream; import java.time.Instant; -import com.android.frameworks.saxtests.R; - public class SafeSaxTest extends AndroidTestCase { private static final String TAG = SafeSaxTest.class.getName(); |