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 debug בשירות הזה בזמן הרצת ה-PoC.

AutoCloseable withAutoCloseable(NativePoc nativePoc, ITestDevice device)

הפונקציה הזו נקראת לפני הפעלת ה-PoC, והיא מחזירה אובייקט AutoCloseable שנסגר אחרי סיום ה-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 debug בשירות הזה בזמן הרצת ה-PoC.

פרמטרים
options String

service String

החזרות
NativePocAsserter

withAutoCloseable

public AutoCloseable withAutoCloseable (NativePoc nativePoc, 
                ITestDevice device)

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

פרמטרים
nativePoc NativePoc

device ITestDevice

החזרות
AutoCloseable

זריקות
DeviceNotAvailableException
TimeoutException
ProcessUtil.KillException