NativePocCrashAsserter

public class NativePocCrashAsserter
extends Object implements NativePocAsserter

java.lang.Object
   ↳ com.android.sts.common.NativePocCrashAsserter


概要

パブリック メソッド

static NativePocAsserter assertNoCrash()

Poc にセキュリティ クラッシュがないことを確認する NativePocAsserter を返します。

static NativePocAsserter assertNoCrash(TombstoneUtils.Config config)

指定された TombstoneUtils.Config に従って、セキュリティ クラッシュが検出されないことを確認する NativePocAsserter を返します。

static NativePocAsserter assertNoCrashIn(String... patterns)

一覧表示されたプロセスでセキュリティ クラッシュがないか確認する NativePocAsserter を返します。

AutoCloseable withAutoCloseable(NativePoc nativePoc, ITestDevice device)

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

パブリック メソッド

assertNoCrash

public static NativePocAsserter assertNoCrash ()

Poc にセキュリティ クラッシュがないことを確認する NativePocAsserter を返します。

戻り値
NativePocAsserter

assertNoCrash

public static NativePocAsserter assertNoCrash (TombstoneUtils.Config config)

指定された TombstoneUtils.Config に従って、セキュリティ クラッシュが検出されないことを確認する NativePocAsserter を返します。

パラメータ
config TombstoneUtils.Config

戻り値
NativePocAsserter

assertNoCrashIn

public static NativePocAsserter assertNoCrashIn (String... patterns)

一覧表示されたプロセスでセキュリティ クラッシュがないか確認する NativePocAsserter を返します。

パラメータ
patterns String

戻り値
NativePocAsserter

withAutoCloseable

public AutoCloseable withAutoCloseable (NativePoc nativePoc, 
                ITestDevice device)

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

パラメータ
nativePoc NativePoc

device ITestDevice

戻り値
AutoCloseable

例外
DeviceNotAvailableException