org.robolectric.shadows.ShadowNativeAllocationRegistry 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.
package org.robolectric.shadows;
import static android.os.Build.VERSION_CODES.N;
import libcore.util.NativeAllocationRegistry;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
@Implements(value = NativeAllocationRegistry.class, minSdk = N, isInAndroidSdk = false, looseSignatures = true)
public class ShadowNativeAllocationRegistry {
@Implementation
protected Runnable registerNativeAllocation(Object referent, Object allocator) {
return () -> {};
}
@Implementation
protected Runnable registerNativeAllocation(Object referent, long nativePtr) {
return () -> {};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy