NativePocCrashAsserter

public class NativePocCrashAsserter
extends Object implements NativePocAsserter

java.lang.Object
com.android.sts.common.NativePocCrashAsserter


Résumé

Méthodes publiques

static NativePocAsserter assertNoCrash ()

Renvoie un NativePocAsserter qui garantit que le Poc ne subit pas de crash de sécurité.

static NativePocAsserter assertNoCrash ( TombstoneUtils.Config config)

Renvoie un NativePocAsserter qui garantit qu'aucun crash de sécurité n'est détecté selon le TombstoneUtils.Config donné.

static NativePocAsserter assertNoCrashIn (String... patterns)

Renvoie un NativePocAsserter qui vérifie les processus répertoriés pour détecter tout crash de sécurité.

AutoCloseable withAutoCloseable ( NativePoc nativePoc, ITestDevice device)

Appelé avant l'exécution d'un PoC, renvoie un AutoCloseable qui se ferme une fois le PoC terminé

Méthodes publiques

assertNoCrash

public static NativePocAsserter assertNoCrash ()

Renvoie un NativePocAsserter qui garantit que le Poc ne subit pas de crash de sécurité.

Retour
NativePocAsserter

assertNoCrash

public static NativePocAsserter assertNoCrash (TombstoneUtils.Config config)

Renvoie un NativePocAsserter qui garantit qu'aucun crash de sécurité n'est détecté selon le TombstoneUtils.Config donné.

Paramètres
config TombstoneUtils.Config

Retour
NativePocAsserter

assertNoCrashIn

public static NativePocAsserter assertNoCrashIn (String... patterns)

Renvoie un NativePocAsserter qui vérifie les processus répertoriés pour détecter tout crash de sécurité.

Paramètres
patterns String

Retour
NativePocAsserter

avecAutoCloseable

public AutoCloseable withAutoCloseable (NativePoc nativePoc, 
                ITestDevice device)

Appelé avant l'exécution d'un PoC, renvoie un AutoCloseable qui se ferme une fois le PoC terminé

Paramètres
nativePoc NativePoc

device ITestDevice

Retour
AutoCloseable

Jetés
DeviceNotAvailableException