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 |