
org.robolectric.shadows.ShadowFileIntegrityManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shadows-framework Show documentation
Show all versions of shadows-framework Show documentation
An alternative Android testing framework.
The newest version!
package org.robolectric.shadows;
import static android.os.Build.VERSION_CODES.R;
import android.security.FileIntegrityManager;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.Resetter;
/** Shadow for {@link FileIntegrityManager}. */
@Implements(value = FileIntegrityManager.class, minSdk = R, isInAndroidSdk = false)
public class ShadowFileIntegrityManager {
private static boolean isApkVeritySupported = true;
/** Sets the value of {@link #isApkVeritySupported}. */
public void setIsApkVeritySupported(boolean isApkVeritySupported) {
this.isApkVeritySupported = isApkVeritySupported;
}
/**
* Returns {@code true} by default, or can be changed by {@link
* #setIsApkVeritySupported(boolean)}.
*/
@Implementation
protected boolean isApkVeritySupported() {
return isApkVeritySupported;
}
@Resetter
public static void reset() {
isApkVeritySupported = true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy