NativePocCrashAsserter
public
class
NativePocCrashAsserter
extends Object
implements
NativePocAsserter
java.lang.Object | |
↳ | com.android.sts.common.NativePocCrashAsserter |
Summary
Public methods | |
---|---|
static
NativePocAsserter
|
assertNoCrash()
Returns a NativePocAsserter that makes sure the Poc does not have a security crash. |
static
NativePocAsserter
|
assertNoCrash(TombstoneUtils.Config config)
Returns a NativePocAsserter that makes sure there is no security crash detected accoridng to the given TombstoneUtils.Config |
static
NativePocAsserter
|
assertNoCrashIn(String... patterns)
Returns a NativePocAsserter that checks the listed processes for any security crashes. |
AutoCloseable
|
withAutoCloseable(NativePoc nativePoc, ITestDevice device)
Called before a PoC runs, returns an AutoCloseable that closes after the PoC finishes |
Public methods
assertNoCrash
public static NativePocAsserter assertNoCrash ()
Returns a NativePocAsserter that makes sure the Poc does not have a security crash.
Returns | |
---|---|
NativePocAsserter |
assertNoCrash
public static NativePocAsserter assertNoCrash (TombstoneUtils.Config config)
Returns a NativePocAsserter that makes sure there is no security crash detected accoridng to the given TombstoneUtils.Config
Parameters | |
---|---|
config |
TombstoneUtils.Config |
Returns | |
---|---|
NativePocAsserter |
assertNoCrashIn
public static NativePocAsserter assertNoCrashIn (String... patterns)
Returns a NativePocAsserter that checks the listed processes for any security crashes.
Parameters | |
---|---|
patterns |
String |
Returns | |
---|---|
NativePocAsserter |
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 | |
---|---|
DeviceNotAvailableException |