public class AndroidSandbox extends Sandbox
Sandbox simulating an Android device.
Modifier and Type | Class and Description |
---|---|
static class |
AndroidSandbox.EnvironmentSpec
Provides a mechanism for tests to inject a different AndroidEnvironment.
|
static class |
AndroidSandbox.SdkSandboxClassLoader
Adapter from Sdk to ResourceLoader.
|
classHandler
Constructor and Description |
---|
AndroidSandbox(Sdk runtimeSdk,
Sdk compileSdk,
ResourcesMode resourcesMode,
ApkLoader apkLoader,
AndroidSandbox.EnvironmentSpec environmentSpec,
AndroidSandbox.SdkSandboxClassLoader sdkSandboxClassLoader) |
Modifier and Type | Method and Description |
---|---|
Environment |
getEnvironment() |
Sdk |
getSdk() |
protected ThreadFactory |
mainThreadFactory() |
String |
toString() |
bootstrappedClass, configure, getRobolectricClassLoader, replaceShadowMap, runOnMainThread, runOnMainThread
@Inject public AndroidSandbox(@Named(value="runtimeSdk") Sdk runtimeSdk, @Named(value="compileSdk") Sdk compileSdk, ResourcesMode resourcesMode, ApkLoader apkLoader, AndroidSandbox.EnvironmentSpec environmentSpec, AndroidSandbox.SdkSandboxClassLoader sdkSandboxClassLoader)
protected ThreadFactory mainThreadFactory()
mainThreadFactory
in class Sandbox
public Sdk getSdk()
public Environment getEnvironment()