Package org.robolectric.shadows
Class ShadowWebViewDatabase
java.lang.Object
org.robolectric.shadows.ShadowWebViewDatabase
@Implements(value=android.webkit.WebViewDatabase.class, callThroughByDefault=false) public class ShadowWebViewDatabase extends Object
-
Constructor Summary
Constructors Constructor Description ShadowWebViewDatabase()
-
Method Summary
Modifier and Type Method Description protected static WebViewDatabase
getInstance(Context ignored)
void
resetClearFormData()
ResetswasClearFormDataCalled()
, setting it back to false.void
resetDatabase()
Resets theWebViewDatabase
instance to clear any state between tests.boolean
wasClearFormDataCalled()
Returnstrue
ifWebViewDatabase.clearFormData()
was called.
-
Constructor Details
-
ShadowWebViewDatabase
public ShadowWebViewDatabase()
-
-
Method Details
-
getInstance
-
resetDatabase
public void resetDatabase()Resets theWebViewDatabase
instance to clear any state between tests. -
wasClearFormDataCalled
public boolean wasClearFormDataCalled()Returnstrue
ifWebViewDatabase.clearFormData()
was called. -
resetClearFormData
public void resetClearFormData()ResetswasClearFormDataCalled()
, setting it back to false.
-