NativePocMallocDebugAsserter

public class NativePocMallocDebugAsserter
extends Object implements NativePocAsserter

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


Zusammenfassung

Öffentliche Methoden

static NativePocAsserter assertNoMallocDebugErrorOnPoc (String options)

Gibt einen NativePocAsserter zurück, der libc malloc debug an den PoC anhängt und auf Malloc-Debug-Fehler prüft, während der PoC ausgeführt wird.

static NativePocAsserter assertNoMallocDebugErrorOnService (String options, String service)

Gibt einen NativePocAsserter zurück, der libc malloc debug an einen Dienst anhängt, bevor der PoC ausgeführt wird, und während der PoC-Ausführung prüft, ob bei diesem Dienst ein Malloc-Debug-Fehler vorliegt.

AutoCloseable withAutoCloseable ( NativePoc nativePoc, ITestDevice device)

Wird vor der Ausführung eines PoC aufgerufen und gibt ein AutoCloseable zurück, das nach Abschluss des PoC geschlossen wird

Öffentliche Methoden

AssertNoMallocDebugErrorOnPoc

public static NativePocAsserter assertNoMallocDebugErrorOnPoc (String options)

Gibt einen NativePocAsserter zurück, der libc malloc debug an den PoC anhängt und auf Malloc-Debug-Fehler prüft, während der PoC ausgeführt wird.

Parameter
options String

Kehrt zurück
NativePocAsserter

AssertNoMallocDebugErrorOnService

public static NativePocAsserter assertNoMallocDebugErrorOnService (String options, 
                String service)

Gibt einen NativePocAsserter zurück, der libc malloc debug an einen Dienst anhängt, bevor der PoC ausgeführt wird, und während der PoC-Ausführung prüft, ob bei diesem Dienst ein Malloc-Debug-Fehler vorliegt.

Parameter
options String

service String

Kehrt zurück
NativePocAsserter

mitAutoCloseable

public AutoCloseable withAutoCloseable (NativePoc nativePoc, 
                ITestDevice device)

Wird vor der Ausführung eines PoC aufgerufen und gibt ein AutoCloseable zurück, das nach Abschluss des PoC geschlossen wird

Parameter
nativePoc NativePoc

device ITestDevice

Kehrt zurück
AutoCloseable

Würfe
DeviceNotAvailableException
TimeoutException
ProcessUtil.KillException