NativePocMallocDebugAsserter

public class NativePocMallocDebugAsserter
extends Object implements NativePocAsserter

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


สรุป

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

static NativePocAsserter assertNoMallocDebugErrorOnPoc (String options)

ส่งคืน NativePocAsserter ที่แนบ libc malloc debug เข้ากับ PoC และตรวจสอบข้อผิดพลาดในการดีบัก malloc ในขณะที่ poc ทำงาน

static NativePocAsserter assertNoMallocDebugErrorOnService (String options, String service)

ส่งคืน NativePocAsserter ที่แนบ libc malloc debug เข้ากับบริการก่อนรัน PoC และตรวจสอบข้อผิดพลาดในการดีบัก malloc บนบริการนั้นในขณะที่ poc ทำงาน

AutoCloseable withAutoCloseable ( NativePoc nativePoc, ITestDevice device)

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

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

assertNoMallocDebugErrorOnPoc

public static NativePocAsserter assertNoMallocDebugErrorOnPoc (String options)

ส่งคืน NativePocAsserter ที่แนบ libc malloc debug เข้ากับ PoC และตรวจสอบข้อผิดพลาดในการดีบัก malloc ในขณะที่ poc ทำงาน

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

การส่งคืน
NativePocAsserter

assertNoMallocDebugErrorOnService.assertNoMallocDebugErrorOnService

public static NativePocAsserter assertNoMallocDebugErrorOnService (String options, 
                String service)

ส่งคืน NativePocAsserter ที่แนบ libc malloc debug เข้ากับบริการก่อนรัน PoC และตรวจสอบข้อผิดพลาดในการดีบัก malloc บนบริการนั้นในขณะที่ poc ทำงาน

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

service String

การส่งคืน
NativePocAsserter

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

public AutoCloseable withAutoCloseable (NativePoc nativePoc, 
                ITestDevice device)

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

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

device ITestDevice

การส่งคืน
AutoCloseable

ขว้าง
DeviceNotAvailableException
TimeoutException
ProcessUtil.KillException