diff options
| author | 2019-03-01 14:43:20 -0800 | |
|---|---|---|
| committer | 2019-07-01 22:29:03 +0000 | |
| commit | 3bc264d1a0fb82f54c989ca7724306e5c2d57f4c (patch) | |
| tree | dd303223c1124482f6eef03f716c2e6fac2033c1 | |
| parent | a8ff8b252962337085b14fcb2553dc1f25f4d73b (diff) | |
Migrate BackgroundDexOptServiceIntegrationTests to androidx.test
See go/jetpack-test-android-migration
Partial cherry-pick of commit a86ec10b96244a32931cd2949be0f55ee3ea14c8.
Test: atest BackgroundDexOptServiceIntegrationTests
Change-Id: I15d10a1962210cde7e079590437009f6a5938db2
Merged-In: I32fe3297656eec6060da6c7e24582bcd5315fb16
4 files changed, 5 insertions, 6 deletions
diff --git a/tests/BackgroundDexOptServiceIntegrationTests/Android.bp b/tests/BackgroundDexOptServiceIntegrationTests/Android.bp index 036f84526889..a85d129b013a 100644 --- a/tests/BackgroundDexOptServiceIntegrationTests/Android.bp +++ b/tests/BackgroundDexOptServiceIntegrationTests/Android.bp @@ -17,7 +17,7 @@  android_test {      name: "BackgroundDexOptServiceIntegrationTests",      srcs: ["src/**/*.java"], -    static_libs: ["android-support-test"], +    static_libs: ["androidx.test.rules"],      platform_apis: true,      test_suites: ["device-tests"],      certificate: "platform", diff --git a/tests/BackgroundDexOptServiceIntegrationTests/AndroidManifest.xml b/tests/BackgroundDexOptServiceIntegrationTests/AndroidManifest.xml index afae155f88fe..aec9f77cf922 100644 --- a/tests/BackgroundDexOptServiceIntegrationTests/AndroidManifest.xml +++ b/tests/BackgroundDexOptServiceIntegrationTests/AndroidManifest.xml @@ -34,7 +34,7 @@      </application>      <instrumentation -        android:name="android.support.test.runner.AndroidJUnitRunner" +        android:name="androidx.test.runner.AndroidJUnitRunner"          android:targetPackage="com.android.frameworks.bgdexopttest"          android:label="Integration test for BackgroundDexOptService" />  </manifest> diff --git a/tests/BackgroundDexOptServiceIntegrationTests/AndroidTest.xml b/tests/BackgroundDexOptServiceIntegrationTests/AndroidTest.xml index 9bb1e280b861..a532422a38d3 100644 --- a/tests/BackgroundDexOptServiceIntegrationTests/AndroidTest.xml +++ b/tests/BackgroundDexOptServiceIntegrationTests/AndroidTest.xml @@ -50,6 +50,6 @@      <option name="test-tag" value="BackgroundDexOptServiceIntegrationTests"/>      <test class="com.android.tradefed.testtype.AndroidJUnitTest">          <option name="package" value="com.android.frameworks.bgdexopttest"/> -        <option name="runner" value="android.support.test.runner.AndroidJUnitRunner"/> +        <option name="runner" value="androidx.test.runner.AndroidJUnitRunner"/>      </test>  </configuration> diff --git a/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/BackgroundDexOptServiceIntegrationTests.java b/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/BackgroundDexOptServiceIntegrationTests.java index fd20f4a1fa77..7d826f7172da 100644 --- a/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/BackgroundDexOptServiceIntegrationTests.java +++ b/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/BackgroundDexOptServiceIntegrationTests.java @@ -17,17 +17,16 @@  package com.android.server.pm;  import android.app.AlarmManager; -import android.app.UiAutomation;  import android.content.Context;  import android.os.Environment;  import android.os.ParcelFileDescriptor;  import android.os.SystemProperties;  import android.os.storage.StorageManager; -import android.support.test.InstrumentationRegistry;  import android.util.Log; +import androidx.test.InstrumentationRegistry; +  import org.junit.After; -import org.junit.AfterClass;  import org.junit.Assert;  import org.junit.Before;  import org.junit.BeforeClass;  |