diff options
author | Brian Carlstrom <bdc@google.com> | 2010-07-28 23:37:09 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2010-07-28 23:49:30 -0700 |
commit | 5e8a587d49f014fdd42403f51bbe877855e4a6b3 (patch) | |
tree | a8a1b468531dbd0ee796f86ae1a48c8d4e168fac /tests | |
parent | aae052324fb1d3add554158974c5a6ee609739b3 (diff) | |
download | frameworks_base-5e8a587d49f014fdd42403f51bbe877855e4a6b3.zip frameworks_base-5e8a587d49f014fdd42403f51bbe877855e4a6b3.tar.gz frameworks_base-5e8a587d49f014fdd42403f51bbe877855e4a6b3.tar.bz2 |
Tracking merge of dalvik-dev to master
Change-Id: Id4c19401ad0aa238219aaf5d9a20d2889d0a4b18
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CoreTests/android/core/SSLPerformanceTest.java | 12 | ||||
-rw-r--r-- | tests/CoreTests/android/core/SSLSocketTest.java | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/tests/CoreTests/android/core/SSLPerformanceTest.java b/tests/CoreTests/android/core/SSLPerformanceTest.java index e2bd9c5..fd87e89 100644 --- a/tests/CoreTests/android/core/SSLPerformanceTest.java +++ b/tests/CoreTests/android/core/SSLPerformanceTest.java @@ -19,8 +19,8 @@ package android.core; import android.test.AndroidTestCase; import android.os.Debug; import org.apache.harmony.xnet.provider.jsse.FileClientSessionCache; +import org.apache.harmony.xnet.provider.jsse.OpenSSLContextImpl; import org.apache.harmony.xnet.provider.jsse.SSLClientSessionCache; -import org.apache.harmony.xnet.provider.jsse.SSLContextImpl; import org.apache.http.conn.scheme.SchemeRegistry; import org.apache.http.conn.scheme.Scheme; import org.apache.http.conn.ClientConnectionManager; @@ -189,14 +189,14 @@ public class SSLPerformanceTest extends AndroidTestCase { public void testEngineInit() throws IOException, KeyManagementException { Stopwatch stopwatch = new Stopwatch(); - new SSLContextImpl().engineInit(null, null, null); + new OpenSSLContextImpl().engineInit(null, null, null); stopwatch.stop(); } public void testWebRequestWithoutCache() throws IOException, KeyManagementException { - SSLContextImpl sslContext = new SSLContextImpl(); + OpenSSLContextImpl sslContext = new OpenSSLContextImpl(); sslContext.engineInit(null, null, null); Stopwatch stopwatch = new Stopwatch(); @@ -210,7 +210,7 @@ public class SSLPerformanceTest extends AndroidTestCase { KeyManagementException { deleteDirectory(); - SSLContextImpl sslContext = new SSLContextImpl(); + OpenSSLContextImpl sslContext = new OpenSSLContextImpl(); sslContext.engineInit(null, null, null, FileClientSessionCache.usingDirectory(getCacheDirectory()), null); @@ -234,7 +234,7 @@ public class SSLPerformanceTest extends AndroidTestCase { KeyManagementException { deleteDirectory(); - SSLContextImpl sslContext = new SSLContextImpl(); + OpenSSLContextImpl sslContext = new OpenSSLContextImpl(); sslContext.engineInit(null, null, null); // Make sure www.google.com is in the cache. @@ -247,7 +247,7 @@ public class SSLPerformanceTest extends AndroidTestCase { stopwatch.stop(); } - private void getVerisignDotCom(SSLContextImpl sslContext) + private void getVerisignDotCom(OpenSSLContextImpl sslContext) throws IOException { SchemeRegistry schemeRegistry = new SchemeRegistry(); schemeRegistry.register(new Scheme("https", diff --git a/tests/CoreTests/android/core/SSLSocketTest.java b/tests/CoreTests/android/core/SSLSocketTest.java index 088fa8c..021df80 100644 --- a/tests/CoreTests/android/core/SSLSocketTest.java +++ b/tests/CoreTests/android/core/SSLSocketTest.java @@ -19,9 +19,9 @@ package android.core; import junit.framework.TestCase; import org.apache.commons.codec.binary.Base64; -import org.apache.harmony.xnet.provider.jsse.SSLContextImpl; -import org.apache.harmony.xnet.provider.jsse.SSLClientSessionCache; import org.apache.harmony.xnet.provider.jsse.FileClientSessionCache; +import org.apache.harmony.xnet.provider.jsse.OpenSSLContextImpl; +import org.apache.harmony.xnet.provider.jsse.SSLClientSessionCache; import java.io.ByteArrayInputStream; import java.io.DataInputStream; @@ -907,7 +907,7 @@ public class SSLSocketTest extends TestCase { */ public void testClientSessionCaching() throws IOException, KeyManagementException { - SSLContextImpl context = new SSLContextImpl(); + OpenSSLContextImpl context = new OpenSSLContextImpl(); // Cache size = 2. FakeClientSessionCache fakeCache = new FakeClientSessionCache(); @@ -997,7 +997,7 @@ public class SSLSocketTest extends TestCase { public void testFileBasedClientSessionCache() throws IOException, KeyManagementException { - SSLContextImpl context = new SSLContextImpl(); + OpenSSLContextImpl context = new OpenSSLContextImpl(); String tmpDir = System.getProperty("java.io.tmpdir"); if (tmpDir == null) { fail("Please set 'java.io.tmpdir' system property."); |