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 完成后关闭 |
公共方法
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 运行之前调用,返回一个 AutoCloseable,该 AutoCloseable 会在 PoC 完成后关闭
| 参数 | |
|---|---|
nativePoc |
NativePoc |
device |
ITestDevice |
| 返回 | |
|---|---|
AutoCloseable |
|
| 抛出 | |
|---|---|
DeviceNotAvailableException |
|