From a6a9d0f90cd4b573f49ffab3ff8e539b5b3e09ad Mon Sep 17 00:00:00 2001 From: KOUSHIK PANUGANTI Date: Mon, 17 Dec 2018 18:14:55 -0800 Subject: [PATCH] Migrate frameworks/base/core/tests/privacytests to androidx.test See go/jetpack-test-android-migration Test: make checkbuild Change-Id: I286d611dfbc025061fe999e0238775ddd85456de --- core/tests/privacytests/Android.mk | 2 +- core/tests/privacytests/AndroidManifest.xml | 2 +- .../android/privacy/LongitudinalReportingEncoderTest.java | 7 +++---- .../src/android/privacy/RapporEncoderTest.java | 5 +++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/core/tests/privacytests/Android.mk b/core/tests/privacytests/Android.mk index 3c1526b7dc482..7765977c03e88 100644 --- a/core/tests/privacytests/Android.mk +++ b/core/tests/privacytests/Android.mk @@ -8,7 +8,7 @@ LOCAL_MODULE_TAGS := tests LOCAL_SRC_FILES := \ $(call all-java-files-under, src) -LOCAL_STATIC_JAVA_LIBRARIES := junit rappor-tests android-support-test truth-prebuilt +LOCAL_STATIC_JAVA_LIBRARIES := junit rappor-tests androidx.test.rules truth-prebuilt LOCAL_JAVA_LIBRARIES := android.test.runner LOCAL_PACKAGE_NAME := FrameworksPrivacyLibraryTests diff --git a/core/tests/privacytests/AndroidManifest.xml b/core/tests/privacytests/AndroidManifest.xml index a0e52814bdcdd..3c826144aa57c 100644 --- a/core/tests/privacytests/AndroidManifest.xml +++ b/core/tests/privacytests/AndroidManifest.xml @@ -22,7 +22,7 @@ diff --git a/core/tests/privacytests/src/android/privacy/LongitudinalReportingEncoderTest.java b/core/tests/privacytests/src/android/privacy/LongitudinalReportingEncoderTest.java index c88a722c026b3..18928ebd64612 100644 --- a/core/tests/privacytests/src/android/privacy/LongitudinalReportingEncoderTest.java +++ b/core/tests/privacytests/src/android/privacy/LongitudinalReportingEncoderTest.java @@ -17,21 +17,20 @@ package android.privacy; import static com.google.common.truth.Truth.assertThat; + import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import android.privacy.internal.longitudinalreporting.LongitudinalReportingConfig; import android.privacy.internal.longitudinalreporting.LongitudinalReportingEncoder; -import android.support.test.filters.SmallTest; -import android.support.test.runner.AndroidJUnit4; +import androidx.test.filters.SmallTest; +import androidx.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import java.nio.ByteBuffer; -import java.nio.ByteOrder; import java.nio.charset.StandardCharsets; import java.security.MessageDigest; diff --git a/core/tests/privacytests/src/android/privacy/RapporEncoderTest.java b/core/tests/privacytests/src/android/privacy/RapporEncoderTest.java index 71bd8f1c7bf02..4a353505f1da3 100644 --- a/core/tests/privacytests/src/android/privacy/RapporEncoderTest.java +++ b/core/tests/privacytests/src/android/privacy/RapporEncoderTest.java @@ -22,8 +22,9 @@ import static org.junit.Assert.assertTrue; import android.privacy.internal.rappor.RapporConfig; import android.privacy.internal.rappor.RapporEncoder; -import android.support.test.filters.SmallTest; -import android.support.test.runner.AndroidJUnit4; + +import androidx.test.filters.SmallTest; +import androidx.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith;