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 运行之前调用,返回一个 AutoCloseable,该 AutoCloseable 在 PoC 完成后关闭

公共方法

断言无崩溃

public static NativePocAsserter assertNoCrash ()

返回一个 NativePocAsserter,确保 Poc 不会发生安全崩溃。

退货
NativePocAsserter

断言无崩溃

public static NativePocAsserter assertNoCrash (TombstoneUtils.Config config)

返回一个 NativePocAsserter,确保根据给定的 TombstoneUtils.Config 没有检测到安全崩溃

参数
config TombstoneUtils.Config

退货
NativePocAsserter

断言没有崩溃

public static NativePocAsserter assertNoCrashIn (String... patterns)

返回一个 NativePocAsserter,用于检查列出的进程是否存在任何安全崩溃。

参数
patterns String

退货
NativePocAsserter

具有自动关闭功能

public AutoCloseable withAutoCloseable (NativePoc nativePoc, 
                ITestDevice device)

在 PoC 运行之前调用,返回一个 AutoCloseable,该 AutoCloseable 在 PoC 完成后关闭

参数
nativePoc NativePoc

device ITestDevice

退货
AutoCloseable

投掷
DeviceNotAvailableException