NativePocMallocDebugAsserter

public class NativePocMallocDebugAsserter
extends Object implements NativePocAsserter

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


Summary

Public methods

static NativePocAsserter assertNoMallocDebugErrorOnPoc(String options)

Returns a NativePocAsserter that attaches libc malloc debug to the PoC and checks for any malloc debug error while the poc runs.

static NativePocAsserter assertNoMallocDebugErrorOnService(String options, String service)

Returns a NativePocAsserter that attaches libc malloc debug to a service before running the PoC and checks for any malloc debug error on that service while the poc runs.

AutoCloseable withAutoCloseable(NativePoc nativePoc, ITestDevice device)

Called before a PoC runs, returns an AutoCloseable that closes after the PoC finishes

Public methods

assertNoMallocDebugErrorOnPoc

public static NativePocAsserter assertNoMallocDebugErrorOnPoc (String options)

Returns a NativePocAsserter that attaches libc malloc debug to the PoC and checks for any malloc debug error while the poc runs.

Parameters
options String

Returns
NativePocAsserter

assertNoMallocDebugErrorOnService

public static NativePocAsserter assertNoMallocDebugErrorOnService (String options, 
                String service)

Returns a NativePocAsserter that attaches libc malloc debug to a service before running the PoC and checks for any malloc debug error on that service while the poc runs.

Parameters
options String

service String

Returns
NativePocAsserter

withAutoCloseable

public AutoCloseable withAutoCloseable (NativePoc nativePoc, 
                ITestDevice device)

Called before a PoC runs, returns an AutoCloseable that closes after the PoC finishes

Parameters
nativePoc NativePoc

device ITestDevice

Returns
AutoCloseable

Throws
DeviceNotAvailableException
TimeoutException
ProcessUtil.KillException