Home | History | Annotate | Download | only in shadows
      1 package com.xtremelabs.robolectric.shadows;
      2 
      3 import com.xtremelabs.robolectric.internal.Implementation;
      4 import com.xtremelabs.robolectric.internal.Implements;
      5 
      6 import org.apache.http.conn.ssl.SSLSocketFactory;
      7 
      8 import android.net.SSLCertificateSocketFactory;
      9 import android.net.SSLSessionCache;
     10 
     11 @Implements(SSLCertificateSocketFactory.class)
     12 public class ShadowSSLCertificateSocketFactory {
     13 
     14     // TODO: Support more features when necessary
     15     @Implementation
     16     public static SSLSocketFactory getHttpSocketFactory(
     17             int handshakeTimeoutMillis,
     18             SSLSessionCache cache) {
     19         return SSLSocketFactory.getSocketFactory();
     20     }
     21 }