コレクションでコンテンツを整理 必要に応じて、コンテンツの保存と分類を行います。

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