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

公共方法

断言没有崩溃

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

参数
nativePoc NativePoc

device ITestDevice

退货
AutoCloseable

投掷
DeviceNotAvailableException