NativePocMallocDebugAsserter

public class NativePocMallocDebugAsserter
extends Object implements NativePocAsserter

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


概括

公共方法

static NativePocAsserter assertNoMallocDebugErrorOnPoc (String options)

返回一個 NativePocAsserter,它將 libc malloc 調試附加到 PoC,並在 poc 運行時檢查任何 malloc 調試錯誤。

static NativePocAsserter assertNoMallocDebugErrorOnService (String options, String service)

返回一個 NativePocAsserter,它在運行 PoC 之前將 libc malloc 調試附加到服務,並在 poc 運行時檢查該服務上的任何 malloc 調試錯誤。

AutoCloseable withAutoCloseable ( NativePoc nativePoc, ITestDevice device)

在 PoC 運行之前調用,返回一個在 PoC 完成後關閉的 AutoCloseable

公共方法

assertNoMallocDebugErrorOnPoc

public static NativePocAsserter assertNoMallocDebugErrorOnPoc (String options)

返回一個 NativePocAsserter,它將 libc malloc 調試附加到 PoC,並在 poc 運行時檢查任何 malloc 調試錯誤。

參數
options String

退貨
NativePocAsserter

assertNoMallocDebugErrorOnService

public static NativePocAsserter assertNoMallocDebugErrorOnService (String options, 
                String service)

返回一個 NativePocAsserter,它在運行 PoC 之前將 libc malloc 調試附加到服務,並在 poc 運行時檢查該服務上的任何 malloc 調試錯誤。

參數
options String

service String

退貨
NativePocAsserter

可自動關閉

public AutoCloseable withAutoCloseable (NativePoc nativePoc, 
                ITestDevice device)

在 PoC 運行之前調用,返回一個在 PoC 完成後關閉的 AutoCloseable

參數
nativePoc NativePoc

device ITestDevice

退貨
AutoCloseable

投擲
DeviceNotAvailableException
TimeoutException
ProcessUtil.KillException