Use reflection to increase Security version on Android
The SSLSocketFactory test was using Android-specific calls to test whether the cache is cleared when a new Provider is installed. This method does not exist on the RI, so in order to run this test on the RI the call to Security#increaseVersion must use reflection. Test: vogar --mode host --classpath out/host/common/obj/JAVA_LIBRARIES/core-tests-support-hostdex_intermediates/classes.jack --classpath out/host/common/obj/JAVA_LIBRARIES/core-tests-hostdex_intermediates/classes.jack libcore/luni/src/test/java/libcore/javax/net/ssl/SSLSocketFactoryTest.java Change-Id: I54f7d17a716142816e9fd726626e92e36d1e8608
Loading
Please sign in to comment