ExoHostedTestpublic static interface HostActivity.HostedTest
HostActivity.| Modifier and Type | Method | Description |
|---|---|---|
boolean |
blockUntilStopped(long timeoutMs) |
Called on the main thread to block until the test has stopped or
forceStop() is
called. |
boolean |
forceStop() |
Called on the main thread to force stop the test (if it is not stopped already).
|
void |
onFinished() |
Called on the test thread after the test has finished and been stopped.
|
void |
onStart(HostActivity host,
Surface surface,
FrameLayout overlayFrameLayout) |
Called on the main thread when the test is started.
|
void onStart(HostActivity host, Surface surface, FrameLayout overlayFrameLayout)
The test will not be started until the HostActivity has been resumed and its
Surface has been created.
host - The HostActivity in which the test is being run.surface - The Surface.overlayFrameLayout - A FrameLayout that is on top of the surface.boolean blockUntilStopped(long timeoutMs)
forceStop() is
called.timeoutMs - The maximum time to block in milliseconds.boolean forceStop()
void onFinished()
Implementations may use this method to assert that test criteria were met.