All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.robolectric.shadows.ShadowSslErrorHandler Maven / Gradle / Ivy

package org.robolectric.shadows;

import android.webkit.SslErrorHandler;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;

@Implements(SslErrorHandler.class)
public class ShadowSslErrorHandler {

  private boolean cancelCalled = false;
  private boolean proceedCalled = false;

  @Implementation
  protected void cancel() {
    cancelCalled = true;
  }

  public boolean wasCancelCalled() {
    return cancelCalled;
  }

  @Implementation
  protected void proceed() {
    proceedCalled = true;
  }

  public boolean wasProceedCalled() {
    return proceedCalled;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy