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 เสร็จสิ้น

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

ยืนยันNoCrash

public static NativePocAsserter assertNoCrash ()

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

ส่งคืน
NativePocAsserter

ยืนยันNoCrash

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