Home | History | Annotate | Download | only in shadows
      1 package com.xtremelabs.robolectric.shadows;
      2 
      3 import android.webkit.SslErrorHandler;
      4 
      5 import com.xtremelabs.robolectric.internal.Implementation;
      6 import com.xtremelabs.robolectric.internal.Implements;
      7 
      8 @Implements(SslErrorHandler.class)
      9 public class ShadowSslErrorHandler extends ShadowHandler {
     10 
     11 	private boolean cancelCalled = false;
     12 	private boolean proceedCalled = false;
     13 
     14     @Implementation
     15     public void cancel() {
     16     	cancelCalled = true;
     17     }
     18 
     19     public boolean wasCancelCalled() {
     20     	return cancelCalled;
     21     }
     22 
     23     @Implementation
     24     public void proceed() {
     25     	proceedCalled = true;
     26     }
     27 
     28     public boolean wasProceedCalled() {
     29     	return proceedCalled;
     30     }
     31 }
     32