NativePocMallocDebugAsserter

public class NativePocMallocDebugAsserter
extends Object implements NativePocAsserter

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


סיכום

שיטות ציבוריות

static NativePocAsserter assertNoMallocDebugErrorOnPoc (String options)

מחזירה NativePocAsserter שמחבר את libc malloc debug ל-PoC ובודק כל שגיאת malloc debug בזמן שה-poc פועל.

static NativePocAsserter assertNoMallocDebugErrorOnService (String options, String service)

מחזירה NativePocAsserter שמצרף libc malloc debug לשירות לפני הפעלת ה-PoC ובודק כל שגיאת malloc באגים בשירות זה בזמן שה-poc פועל.

AutoCloseable withAutoCloseable ( NativePoc nativePoc, ITestDevice device)

נקרא לפני הפעלת PoC, מחזיר סגירה אוטומטית שנסגרת לאחר שה-PoC מסתיים

שיטות ציבוריות

assertNoMallocDebugErrorOnPoc

public static NativePocAsserter assertNoMallocDebugErrorOnPoc (String options)

מחזירה NativePocAsserter שמחבר את libc malloc debug ל-PoC ובודק כל שגיאת malloc debug בזמן שה-poc פועל.

פרמטרים
options String

החזרות
NativePocAsserter

assertNoMallocDebugErrorOnService

public static NativePocAsserter assertNoMallocDebugErrorOnService (String options, 
                String service)

מחזירה NativePocAsserter שמצרף libc malloc debug לשירות לפני הפעלת ה-PoC ובודק כל שגיאת malloc באגים בשירות זה בזמן שה-poc פועל.

פרמטרים
options String

service String

החזרות
NativePocAsserter

עם סגירה אוטומטית

public AutoCloseable withAutoCloseable (NativePoc nativePoc, 
                ITestDevice device)

נקרא לפני הפעלת PoC, מחזיר סגירה אוטומטית שנסגרת לאחר שה-PoC מסתיים

פרמטרים
nativePoc NativePoc

device ITestDevice

החזרות
AutoCloseable

זורק
DeviceNotAvailableException
TimeoutException
ProcessUtil.KillException