Migrate frameworks/base/core/tests/featureflagtests to androidx.test
See go/jetpack-test-android-migration Test: make checkbuild Change-Id: I75a79083fa9a8de8967b7c92dd1419069bd39127
This commit is contained in:
@@ -9,7 +9,7 @@ LOCAL_SRC_FILES := \
|
||||
$(call all-java-files-under, src)
|
||||
|
||||
LOCAL_DX_FLAGS := --core-library
|
||||
LOCAL_STATIC_JAVA_LIBRARIES := android-common frameworks-core-util-lib android-support-test
|
||||
LOCAL_STATIC_JAVA_LIBRARIES := android-common frameworks-core-util-lib androidx.test.rules
|
||||
LOCAL_JAVA_LIBRARIES := android.test.runner android.test.base
|
||||
LOCAL_PACKAGE_NAME := FrameworksCoreFeatureFlagTests
|
||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
</application>
|
||||
|
||||
<instrumentation
|
||||
android:name="android.support.test.runner.AndroidJUnitRunner"
|
||||
android:name="androidx.test.runner.AndroidJUnitRunner"
|
||||
android:targetPackage="com.android.frameworks.coretests.featureflagtests"
|
||||
android:label="Frameworks FeatureFlagUtils Tests" />
|
||||
|
||||
|
||||
@@ -24,10 +24,11 @@ import static junit.framework.Assert.assertTrue;
|
||||
import android.content.Context;
|
||||
import android.os.SystemProperties;
|
||||
import android.provider.Settings;
|
||||
import android.support.test.InstrumentationRegistry;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
|
||||
import androidx.test.InstrumentationRegistry;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
Reference in New Issue
Block a user