NativePocAsserter
public
interface
NativePocAsserter
com.android.sts.common.NativePocAsserter |
Interface for an asserter to use with NativePoc.asserter()
.
Summary
Public methods | |
---|---|
default
void
|
checkCmdResult(CommandResult result)
Called after the PoC finishes |
default
AutoCloseable
|
withAutoCloseable(NativePoc nativePoc, ITestDevice device)
Called before a PoC runs, returns an AutoCloseable that closes after the PoC finishes |
Public methods
checkCmdResult
public void checkCmdResult (CommandResult result)
Called after the PoC finishes
Parameters | |
---|---|
result |
CommandResult |
withAutoCloseable
public AutoCloseable withAutoCloseable (NativePoc nativePoc, ITestDevice device)
Called before a PoC runs, returns an AutoCloseable that closes after the PoC finishes
Parameters | |
---|---|
nativePoc |
NativePoc |
device |
ITestDevice |
Returns | |
---|---|
AutoCloseable |
Throws | |
---|---|
Exception |