NativePocMallocDebugAsserter
public class NativePocMallocDebugAsserter
extends Object
implements NativePocAsserter
java.lang.Object |
↳ | com.android.sts.common.NativePocMallocDebugAsserter |
概括
公共方法
assertNoMallocDebugErrorOnPoc
public static NativePocAsserter assertNoMallocDebugErrorOnPoc (String options)
返回一个 NativePocAsserter,它将 libc malloc 调试附加到 PoC,并在 poc 运行时检查任何 malloc 调试错误。
assertNoMallocDebugErrorOnService
public static NativePocAsserter assertNoMallocDebugErrorOnService (String options,
String service)
返回一个 NativePocAsserter,它在运行 PoC 之前将 libc malloc 调试附加到服务,并在 poc 运行时检查该服务上的任何 malloc 调试错误。
参数 |
---|
options | String |
service | String |
可自动关闭
public AutoCloseable withAutoCloseable (NativePoc nativePoc,
ITestDevice device)
在 PoC 运行之前调用,返回一个在 PoC 完成后关闭的 AutoCloseable
参数 |
---|
nativePoc | NativePoc |
device | ITestDevice |