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 cancel()15 public void cancel() { 16 cancelCalled = true; 17 } 18 wasCancelCalled()19 public boolean wasCancelCalled() { 20 return cancelCalled; 21 } 22 23 @Implementation proceed()24 public void proceed() { 25 proceedCalled = true; 26 } 27 wasProceedCalled()28 public boolean wasProceedCalled() { 29 return proceedCalled; 30 } 31 } 32