summaryrefslogtreecommitdiffstats
path: root/benchmarks/src/benchmarks/regression/SSLSocketBenchmark.java
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/src/benchmarks/regression/SSLSocketBenchmark.java')
-rw-r--r--benchmarks/src/benchmarks/regression/SSLSocketBenchmark.java16
1 files changed, 1 insertions, 15 deletions
diff --git a/benchmarks/src/benchmarks/regression/SSLSocketBenchmark.java b/benchmarks/src/benchmarks/regression/SSLSocketBenchmark.java
index fd72a79..5be890e 100644
--- a/benchmarks/src/benchmarks/regression/SSLSocketBenchmark.java
+++ b/benchmarks/src/benchmarks/regression/SSLSocketBenchmark.java
@@ -69,24 +69,10 @@ public class SSLSocketBenchmark extends SimpleBenchmark {
}
}
- @Param private Implementation implementation;
-
- public enum Implementation { OPENSSL, HARMONY };
-
private SocketFactory sf;
@Override protected void setUp() throws Exception {
- SSLContext sslContext;
- switch (implementation) {
- case OPENSSL:
- sslContext = SSLContext.getInstance("SSL", "AndroidOpenSSL");
- break;
- case HARMONY:
- sslContext = SSLContext.getInstance("SSL", "HarmonyJSSE");
- break;
- default:
- throw new RuntimeException(implementation.toString());
- }
+ SSLContext sslContext = SSLContext.getInstance("SSL");
sslContext.init(null, null, null);
this.sf = sslContext.getSocketFactory();
}