summaryrefslogtreecommitdiffstats
path: root/tests/CoreTests
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2014-11-03 18:34:00 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-11-03 18:34:00 +0000
commitb0cb07348e6320ce51d0e8b88d240ecf834850d1 (patch)
tree801360f7c52f1222f7976cf3bb7097d4535d0d31 /tests/CoreTests
parent5f8099ed181c2ba279c4a747096442389d5f8840 (diff)
parent8a970637208207955fb6a719bd82902384b3c743 (diff)
downloadframeworks_base-b0cb07348e6320ce51d0e8b88d240ecf834850d1.zip
frameworks_base-b0cb07348e6320ce51d0e8b88d240ecf834850d1.tar.gz
frameworks_base-b0cb07348e6320ce51d0e8b88d240ecf834850d1.tar.bz2
Merge "Track change to Conscrypt"
Diffstat (limited to 'tests/CoreTests')
-rw-r--r--tests/CoreTests/android/core/SSLSocketTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/CoreTests/android/core/SSLSocketTest.java b/tests/CoreTests/android/core/SSLSocketTest.java
index b06790b..65062c2 100644
--- a/tests/CoreTests/android/core/SSLSocketTest.java
+++ b/tests/CoreTests/android/core/SSLSocketTest.java
@@ -907,7 +907,7 @@ public class SSLSocketTest extends TestCase {
*/
public void testClientSessionCaching() throws IOException,
KeyManagementException {
- OpenSSLContextImpl context = new OpenSSLContextImpl();
+ OpenSSLContextImpl context = OpenSSLContextImpl.getPreferred();
// Cache size = 2.
FakeClientSessionCache fakeCache = new FakeClientSessionCache();
@@ -1000,7 +1000,7 @@ public class SSLSocketTest extends TestCase {
public void testFileBasedClientSessionCache() throws IOException,
KeyManagementException {
- OpenSSLContextImpl context = new OpenSSLContextImpl();
+ OpenSSLContextImpl context = OpenSSLContextImpl.getPreferred();
String tmpDir = System.getProperty("java.io.tmpdir");
if (tmpDir == null) {
fail("Please set 'java.io.tmpdir' system property.");