Move to android.support.test as CTS instrumentation runner.
Also do the following related cleanup - Remove references to deprecated BrokenTest and KnownFailure - Switch CTS tests to build against SDK and not private android.test.runner where possible Bug: 12924356 Change-Id: If6151b836456eec4838f8d7d6e11c9834c007fca
This commit is contained in:
@@ -21,7 +21,7 @@ LOCAL_MODULE_TAGS := optional
|
||||
# and when built explicitly put it in the data partition
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS)
|
||||
|
||||
LOCAL_JAVA_LIBRARIES := android.test.runner voip-common conscrypt
|
||||
LOCAL_JAVA_LIBRARIES := voip-common conscrypt
|
||||
|
||||
LOCAL_JNI_SHARED_LIBRARIES := libnativedns_jni
|
||||
|
||||
@@ -33,7 +33,7 @@ LOCAL_PACKAGE_NAME := CtsNetTestCases
|
||||
LOCAL_STATIC_JAVA_LIBRARIES := ctstestserver ctsdeviceutil ctstestrunner \
|
||||
core-tests-support
|
||||
|
||||
# uncomment when dalvik.annotation.Test* are removed or part of SDK
|
||||
# uncomment when b/13249961 is fixed
|
||||
#LOCAL_SDK_VERSION := current
|
||||
|
||||
include $(BUILD_CTS_PACKAGE)
|
||||
|
||||
@@ -32,9 +32,12 @@
|
||||
<uses-library android:name="android.test.runner" />
|
||||
</application>
|
||||
|
||||
<instrumentation android:name="android.test.InstrumentationCtsTestRunner"
|
||||
<instrumentation android:name="android.support.test.runner.AndroidJUnitRunner"
|
||||
android:targetPackage="com.android.cts.net"
|
||||
android:label="CTS tests of android.net"/>
|
||||
android:label="CTS tests of android.net">
|
||||
<meta-data android:name="listener"
|
||||
android:value="com.android.cts.runner.CtsTestRunListener" />
|
||||
</instrumentation>
|
||||
|
||||
</manifest>
|
||||
|
||||
|
||||
@@ -26,8 +26,6 @@ import javax.net.ssl.SSLPeerUnverifiedException;
|
||||
import android.net.SSLCertificateSocketFactory;
|
||||
import android.test.AndroidTestCase;
|
||||
|
||||
import dalvik.annotation.BrokenTest;
|
||||
|
||||
import libcore.javax.net.ssl.SSLDefaultConfigurationAsserts;
|
||||
|
||||
public class SSLCertificateSocketFactoryTest extends AndroidTestCase {
|
||||
|
||||
Reference in New Issue
Block a user