NativePocCrashAsserter

public class NativePocCrashAsserter
extends Object implements NativePocAsserter

java.lang.Object
com.android.sts.common.NativePocCrashAsserter


Bản tóm tắt

Phương thức công khai

static NativePocAsserter assertNoCrash ()

Trả về một NativePocAsserter để đảm bảo rằng Poc không gặp sự cố bảo mật.

static NativePocAsserter assertNoCrash ( TombstoneUtils.Config config)

Trả về một NativePocAsserter để đảm bảo rằng không có sự cố bảo mật nào được phát hiện theo TombstoneUtils.Config đã cho

static NativePocAsserter assertNoCrashIn (String... patterns)

Trả về một 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.

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

Phương thức công khai

khẳng địnhKhông có sự cố

public static NativePocAsserter assertNoCrash ()

Trả về một NativePocAsserter để đảm bảo rằng Poc không gặp sự cố bảo mật.

trả lại
NativePocAsserter

khẳng địnhKhông có sự cố

public static NativePocAsserter assertNoCrash (TombstoneUtils.Config config)

Trả về một NativePocAsserter để đảm bảo rằng không có sự cố bảo mật nào được phát hiện theo TombstoneUtils.Config đã cho

Thông số
config TombstoneUtils.Config

trả lại
NativePocAsserter

khẳng địnhNoCrashIn

public static NativePocAsserter assertNoCrashIn (String... patterns)

Trả về một 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.

Thông số
patterns String

trả lại
NativePocAsserter

withAutoCloseable

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

trả lại
AutoCloseable

ném
DeviceNotAvailableException