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.

ritorna
NativePocAsserter

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

ritorna
NativePocAsserter

assertNoCrashIn

public static NativePocAsserter assertNoCrashIn (String... patterns)

Restituisce un NativePocAsserter che controlla i processi elencati per eventuali arresti anomali della sicurezza.

Parametri
patterns String

ritorna
NativePocAsserter

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

ritorna
AutoCloseable

Lancia
DeviceNotAvailableException