NativePocMallocDebugAsserter

public class NativePocMallocDebugAsserter
extends Object implements NativePocAsserter

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


Bản tóm tắt

Phương pháp công khai

static NativePocAsserter assertNoMallocDebugErrorOnPoc (String options)

Trả về một NativePocAsserter gắn libc malloc debug vào PoC và kiểm tra mọi lỗi gỡ lỗi malloc trong khi poc chạy.

static NativePocAsserter assertNoMallocDebugErrorOnService (String options, String service)

Trả về một NativePocAsserter gắn libc malloc debug vào một dịch vụ trước khi chạy PoC và kiểm tra mọi lỗi gỡ lỗi malloc trên dịch vụ đó trong khi poc chạy.

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 pháp công khai

khẳng địnhNoMallocDebugErrorOnPoc

public static NativePocAsserter assertNoMallocDebugErrorOnPoc (String options)

Trả về một NativePocAsserter gắn libc malloc debug vào PoC và kiểm tra mọi lỗi gỡ lỗi malloc trong khi poc chạy.

Thông số
options String

Trả lại
NativePocAsserter

khẳng địnhNoMallocDebugErrorOnService

public static NativePocAsserter assertNoMallocDebugErrorOnService (String options, 
                String service)

Trả về một NativePocAsserter gắn libc malloc debug vào một dịch vụ trước khi chạy PoC và kiểm tra mọi lỗi gỡ lỗi malloc trên dịch vụ đó trong khi poc chạy.

Thông số
options String

service String

Trả lại
NativePocAsserter

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

Trả lại
AutoCloseable

Ném
DeviceNotAvailableException
TimeoutException
ProcessUtil.KillException