NativePocMallocDebugAsserter

public class NativePocMallocDebugAsserter
extends Object implements NativePocAsserter

java.lang.객체
com.android.sts.common.NativePocMallocDebugAsserter


요약

공개 방법

static NativePocAsserter assertNoMallocDebugErrorOnPoc (String options)

libc malloc 디버그를 PoC에 연결하고 poc가 실행되는 동안 모든 malloc 디버그 오류를 확인하는 NativePocAsserter를 반환합니다.

static NativePocAsserter assertNoMallocDebugErrorOnService (String options, String service)

PoC를 실행하기 전에 libc malloc 디버그를 서비스에 연결하고 poc가 실행되는 동안 해당 서비스에서 모든 malloc 디버그 오류를 확인하는 NativePocAsserter를 반환합니다.

AutoCloseable withAutoCloseable ( NativePoc nativePoc, ITestDevice device)

PoC가 실행되기 전에 호출되어 PoC가 완료된 후 닫히는 AutoCloseable을 반환합니다.

공개 방법

assertNoMallocDebugErrorOnPoc

public static NativePocAsserter assertNoMallocDebugErrorOnPoc (String options)

libc malloc 디버그를 PoC에 연결하고 poc가 실행되는 동안 모든 malloc 디버그 오류를 확인하는 NativePocAsserter를 반환합니다.

매개변수
options String

보고
NativePocAsserter

assertNoMallocDebugErrorOnService

public static NativePocAsserter assertNoMallocDebugErrorOnService (String options, 
                String service)

PoC를 실행하기 전에 libc malloc 디버그를 서비스에 연결하고 poc가 실행되는 동안 해당 서비스에서 모든 malloc 디버그 오류를 확인하는 NativePocAsserter를 반환합니다.

매개변수
options String

service String

보고
NativePocAsserter

withAutoCloseable

public AutoCloseable withAutoCloseable (NativePoc nativePoc, 
                ITestDevice device)

PoC가 실행되기 전에 호출되어 PoC가 완료된 후 닫히는 AutoCloseable을 반환합니다.

매개변수
nativePoc NativePoc

device ITestDevice

보고
AutoCloseable

던지기
DeviceNotAvailableException
TimeoutException
ProcessUtil.KillException