NativePocMallocDebugAsserter

public class NativePocMallocDebugAsserter
extends Object implements NativePocAsserter

java.lang.Object
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

자동 닫기 가능

public AutoCloseable withAutoCloseable (NativePoc nativePoc, 
                ITestDevice device)

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

매개변수
nativePoc NativePoc

device ITestDevice

보고
AutoCloseable

던지기
DeviceNotAvailableException
TimeoutException
ProcessUtil.KillException