NativePocCrashAsserter
public class NativePocCrashAsserter
extends Object
implements NativePocAsserter
java.lang.Object |
↳ | com.android.sts.common.NativePocCrashAsserter |
Bản tóm tắt
Phương pháp công khai
khẳng địnhNoCrash
public static NativePocAsserter assertNoCrash ()
Trả về NativePocAsserter để đảm bảo Poc không gặp sự cố bảo mật.
khẳng địnhNoCrash
public static NativePocAsserter assertNoCrash (TombstoneUtils.Config config)
Trả về một NativePocAsserter để đảm bảo không phát hiện thấy sự cố bảo mật nào đối với TombstoneUtils.Config đã cho
Thông số |
---|
config | TombstoneUtils.Config |
khẳng địnhNoCrashIn
public static NativePocAsserter assertNoCrashIn (String... patterns)
Trả về NativePocAsserter để kiểm tra các quy trình được liệt kê xem có bất kỳ sự cố bảo mật nào không.
withAutoClosable
public AutoCloseable withAutoCloseable (NativePoc nativePoc,
ITestDevice device)
Được gọi trước khi PoC chạy, trả về AutoCloseable đóng sau khi PoC kết thúc
Thông số |
---|
nativePoc | NativePoc |
device | ITestDevice |
Ném |
---|
DeviceNotAvailableException | |