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

自動クローズ可能付き

public AutoCloseable withAutoCloseable (NativePoc nativePoc, 
                ITestDevice device)

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

パラメーター
nativePoc NativePoc

device ITestDevice

戻り値
AutoCloseable

投げる
DeviceNotAvailableException
TimeoutException
ProcessUtil.KillException