NativePocMallocDebugAsserter

public class NativePocMallocDebugAsserter
extends Object implements NativePocAsserter

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


Ringkasan

Metode publik

static NativePocAsserter assertNoMallocDebugErrorOnPoc(String options)

Menampilkan NativePocAsserter yang melampirkan debug libc malloc ke PoC dan memeriksa error debug malloc saat poc berjalan.

static NativePocAsserter assertNoMallocDebugErrorOnService(String options, String service)

Menampilkan NativePocAsserter yang melampirkan debug libc malloc ke layanan sebelum menjalankan PoC dan memeriksa error debug malloc di layanan tersebut saat poc berjalan.

AutoCloseable withAutoCloseable(NativePoc nativePoc, ITestDevice device)

Dipanggil sebelum PoC berjalan, menampilkan AutoCloseable yang ditutup setelah PoC selesai

Metode publik

assertNoMallocDebugErrorOnPoc

public static NativePocAsserter assertNoMallocDebugErrorOnPoc (String options)

Menampilkan NativePocAsserter yang melampirkan debug libc malloc ke PoC dan memeriksa error debug malloc saat poc berjalan.

Parameter
options String

Hasil
NativePocAsserter

assertNoMallocDebugErrorOnService

public static NativePocAsserter assertNoMallocDebugErrorOnService (String options, 
                String service)

Menampilkan NativePocAsserter yang melampirkan debug libc malloc ke layanan sebelum menjalankan PoC dan memeriksa error debug malloc di layanan tersebut saat poc berjalan.

Parameter
options String

service String

Hasil
NativePocAsserter

withAutoCloseable

public AutoCloseable withAutoCloseable (NativePoc nativePoc, 
                ITestDevice device)

Dipanggil sebelum PoC berjalan, menampilkan AutoCloseable yang ditutup setelah PoC selesai

Parameter
nativePoc NativePoc

device ITestDevice

Hasil
AutoCloseable

Menampilkan
DeviceNotAvailableException
TimeoutException
ProcessUtil.KillException