Assertore NativePocCrash
public class NativePocCrashAsserter
extends Object
implements NativePocAsserter
java.lang.Object |
↳ | com.android.sts.common.NativePocCrashAsserter |
Riepilogo
Metodi pubblici |
---|
static NativePocAsserter | assertNoCrash () Restituisce un NativePocAsserter che garantisce che il Poc non subisca un arresto anomalo della sicurezza. |
static NativePocAsserter | assertNoCrash ( TombstoneUtils.Config config) Restituisce un NativePocAsserter che assicura che non sia stato rilevato alcun arresto anomalo della sicurezza in base al 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 garantisce che il Poc non subisca un arresto anomalo della sicurezza.
assertNoCrash
public static NativePocAsserter assertNoCrash (TombstoneUtils.Config config)
Restituisce un NativePocAsserter che assicura che non sia stato rilevato alcun arresto anomalo della sicurezza in base al 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 |
Lancia |
---|
DeviceNotAvailableException | |