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 ที่ปิดหลังจาก PoC เสร็จสิ้น

วิธีการสาธารณะ

ยืนยันไม่มีความผิดพลาด

public static NativePocAsserter assertNoCrash ()

ส่งคืน NativePocAsserter ที่ทำให้แน่ใจว่า Poc ไม่มีข้อขัดข้องด้านความปลอดภัย

การส่งคืน
NativePocAsserter

ยืนยันไม่มีความผิดพลาด

public static NativePocAsserter assertNoCrash (TombstoneUtils.Config config)

ส่งคืน NativePocAsserter ที่ทำให้แน่ใจว่าไม่มีการตรวจพบความผิดพลาดด้านความปลอดภัยตาม TombstoneUtils.Config ที่กำหนด

พารามิเตอร์
config TombstoneUtils.Config

การส่งคืน
NativePocAsserter

ยืนยัน NoCrashIn

public static NativePocAsserter assertNoCrashIn (String... patterns)

ส่งคืน NativePocAsserter ซึ่งจะตรวจสอบกระบวนการที่ระบุไว้ว่าระบบรักษาความปลอดภัยล่มหรือไม่

พารามิเตอร์
patterns String

การส่งคืน
NativePocAsserter

ด้วยการปิดอัตโนมัติ

public AutoCloseable withAutoCloseable (NativePoc nativePoc, 
                ITestDevice device)

ถูกเรียกก่อนที่ PoC จะทำงาน จะส่งคืน AutoCloseable ที่ปิดหลังจาก PoC เสร็จสิ้น

พารามิเตอร์
nativePoc NativePoc

device ITestDevice

การส่งคืน
AutoCloseable

ขว้าง
DeviceNotAvailableException