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

withAutoCloseable

public AutoCloseable withAutoCloseable (NativePoc nativePoc, 
                ITestDevice device)

PoC の実行前に呼び出され、PoC の完了後に閉じる AutoCloseable を返します。

パラメータ
nativePoc NativePoc

device ITestDevice

戻り値
AutoCloseable

例外
DeviceNotAvailableException
TimeoutException
ProcessUtil.KillException