NativePocCrashAsserter
public class NativePocCrashAsserter
extends Object
implements NativePocAsserter
java.lang.Oggetto |
↳ | com.android.sts.common.NativePocCrashAsserter |
Riepilogo
Metodi pubblici |
---|
static NativePocAsserter | assertNoCrash () Restituisce un NativePocAsserter che assicura che il Poc non abbia un arresto anomalo della sicurezza. |
static NativePocAsserter | assertNoCrash ( TombstoneUtils.Config config) Restituisce un oggetto NativePocAsserter che assicura che non venga rilevato alcun arresto anomalo della sicurezza in base a TombstoneUtils.Config specificato |
static NativePocAsserter | assertNoCrashIn (String... patterns) Restituisce un NativePocAsserter che controlla i processi elencati per eventuali arresti anomali della sicurezza. |
AutoCloseable | withAutoCloseable ( NativePoc nativePoc, ITestDevice device) Chiamato prima dell'esecuzione di un PoC, restituisce un AutoCloseable che si chiude al termine del PoC |
Metodi pubblici
assertNoCrash
public static NativePocAsserter assertNoCrash ()
Restituisce un NativePocAsserter che assicura che il Poc non abbia un arresto anomalo della sicurezza.
assertNoCrash
public static NativePocAsserter assertNoCrash (TombstoneUtils.Config config)
Restituisce un oggetto NativePocAsserter che assicura che non venga rilevato alcun arresto anomalo della sicurezza in base a TombstoneUtils.Config specificato
Parametri |
---|
config | TombstoneUtils.Config |
assertNoCrashIn
public static NativePocAsserter assertNoCrashIn (String... patterns)
Restituisce un NativePocAsserter che controlla i processi elencati per eventuali arresti anomali della sicurezza.
Parametri |
---|
patterns | String |
con chiusura automatica
public AutoCloseable withAutoCloseable (NativePoc nativePoc,
ITestDevice device)
Chiamato prima dell'esecuzione di un PoC, restituisce un AutoCloseable che si chiude al termine del PoC
Parametri |
---|
nativePoc | NativePoc |
device | ITestDevice |
Getta |
---|
DeviceNotAvailableException | |