HostActivity.HostedTest
public interface HostActivity.HostedTest
ExoHostedTest |
A |
Interface for tests that run inside of a HostActivity.
Summary
Public methods |
|
|---|---|
abstract boolean |
blockUntilStopped(long timeoutMs)Called on the main thread to block until the test has stopped or |
abstract boolean |
Called on the main thread to force stop the test (if it is not stopped already). |
abstract void |
Called on the test thread after the test has finished and been stopped. |
abstract void |
onStart(Called on the main thread when the test is started. |
Public methods
blockUntilStopped
abstract boolean blockUntilStopped(long timeoutMs)
Called on the main thread to block until the test has stopped or forceStop is called.
| Parameters | |
|---|---|
long timeoutMs |
The maximum time to block in milliseconds. |
| Returns | |
|---|---|
boolean |
Whether the test has stopped successful. |
forceStop
abstract boolean forceStop()
Called on the main thread to force stop the test (if it is not stopped already).
| Returns | |
|---|---|
boolean |
Whether the test was forced stopped. |
onFinished
abstract void onFinished()
Called on the test thread after the test has finished and been stopped.
Implementations may use this method to assert that test criteria were met.
onStart
abstract void onStart(
HostActivity host,
Surface surface,
FrameLayout overlayFrameLayout
)
Called on the main thread when the test is started.
The test will not be started until the HostActivity has been resumed and its Surface has been created.
| Parameters | |
|---|---|
HostActivity host |
The |
Surface surface |
The |
FrameLayout overlayFrameLayout |
A |