NativePocCrashAsserter

public class NativePocCrashAsserter
extends Object implements NativePocAsserter

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


摘要

公用方法

static NativePocAsserter assertNoCrash()

傳回 NativePocAsserter,確保 PoC 不會發生安全性當機情形。

static NativePocAsserter assertNoCrash(TombstoneUtils.Config config)

傳回 NativePocAsserter,確保系統根據指定的 TombstoneUtils.Config 偵測到安全性當機情形

static NativePocAsserter assertNoCrashIn(String... patterns)

傳回 NativePocAsserter,用於檢查所列程序是否有任何安全性當機情形。

AutoCloseable withAutoCloseable(NativePoc nativePoc, ITestDevice device)

在 PoC 執行前呼叫,會傳回在 PoC 完成後關閉的 AutoCloseable

公用方法

assertNoCrash

public static NativePocAsserter assertNoCrash ()

傳回 NativePocAsserter,確保 PoC 不會發生安全性當機情形。

傳回
NativePocAsserter

assertNoCrash

public static NativePocAsserter assertNoCrash (TombstoneUtils.Config config)

傳回 NativePocAsserter,確保系統根據指定的 TombstoneUtils.Config 偵測到沒有安全性當機

參數
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