NativePocStatusAsserter

public class NativePocStatusAsserter
extends Object

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


Summary

Public constructors

NativePocStatusAsserter()

Public methods

static NativePocAsserter assertExitCode(int exitCode)

Return a NativePocAsserter that makes sure PoC exited with given code.

static NativePocAsserter assertNotExitCode(int badExitCode)

Return a NativePocAsserter that makes sure PoC did not exit with given code.

static NativePocAsserter assertNotVulnerableExitCode()

Return a NativePocAsserter that makes sure PoC did not exit with code 113.

Public constructors

NativePocStatusAsserter

public NativePocStatusAsserter ()

Public methods

assertExitCode

public static NativePocAsserter assertExitCode (int exitCode)

Return a NativePocAsserter that makes sure PoC exited with given code.

Parameters
exitCode int

Returns
NativePocAsserter

assertNotExitCode

public static NativePocAsserter assertNotExitCode (int badExitCode)

Return a NativePocAsserter that makes sure PoC did not exit with given code.

Parameters
badExitCode int

Returns
NativePocAsserter

assertNotVulnerableExitCode

public static NativePocAsserter assertNotVulnerableExitCode ()

Return a NativePocAsserter that makes sure PoC did not exit with code 113.

Returns
NativePocAsserter