diff options
author | Kenny Root <kroot@google.com> | 2014-10-31 10:28:04 -0700 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2014-10-31 12:06:09 -0700 |
commit | 8a970637208207955fb6a719bd82902384b3c743 (patch) | |
tree | e0dd7091dc44e6eb096b0bf15879ff38403c411e /tests/CoreTests | |
parent | c8dce8966b84203befb87a24a9d2d8ee87a39f7b (diff) | |
download | frameworks_base-8a970637208207955fb6a719bd82902384b3c743.zip frameworks_base-8a970637208207955fb6a719bd82902384b3c743.tar.gz frameworks_base-8a970637208207955fb6a719bd82902384b3c743.tar.bz2 |
Track change to Conscrypt
Change way in which an outside caller can get the preferred SSLContext.
Bug: 17136008
Change-Id: Ide578664bcb605304322bfddd2e640a63042fa09
Diffstat (limited to 'tests/CoreTests')
-rw-r--r-- | tests/CoreTests/android/core/SSLSocketTest.java | 4 |
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."); |