NativePocMallocDebugAsserter
public class NativePocMallocDebugAsserter
extends Object
implements NativePocAsserter
java.lang.Object |
↳ | com.android.sts.common.NativePocMallocDebugAsserter |
概括
公共方法
断言NoMallocDebugErrorOnPoc
public static NativePocAsserter assertNoMallocDebugErrorOnPoc (String options)
返回一个 NativePocAsserter,它将 libc malloc 调试附加到 PoC,并在 poc 运行时检查任何 malloc 调试错误。
断言NoMallocDebugErrorOnService
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 运行之前调用,返回一个 AutoCloseable,该 AutoCloseable 在 PoC 完成后关闭
参数 |
---|
nativePoc | NativePoc |
device | ITestDevice |