PocPusher

public class PocPusher
extends TestWatcher

java.lang.Object
   ↳ org.junit.rules.TestWatcher
     ↳ com.android.sts.common.PocPusher


Utilities to help push a native PoC executable to the device

Summary

Fields

public boolean appendBitness

public boolean bitness32

public boolean bitness64

public boolean cleanup

Public constructors

PocPusher()

Public methods

PocPusher appendBitness(boolean append)
PocPusher bothBitness()
PocPusher cleanup(boolean cleanup)
PocPusher only32()
PocPusher only64()
void pushFile(String testFile, String remoteFile)
PocPusher setAbi(IAbi abi)
PocPusher setBuild(IBuildInfo buildInfo)
PocPusher setDevice(ITestDevice device)

Protected methods

void finished(Description d)
void starting(Description d)

Fields

appendBitness

public boolean appendBitness

bitness32

public boolean bitness32

bitness64

public boolean bitness64

cleanup

public boolean cleanup

Public constructors

PocPusher

public PocPusher ()

Public methods

appendBitness

public PocPusher appendBitness (boolean append)

Parameters
append boolean

Returns
PocPusher

bothBitness

public PocPusher bothBitness ()

Returns
PocPusher

cleanup

public PocPusher cleanup (boolean cleanup)

Parameters
cleanup boolean

Returns
PocPusher

only32

public PocPusher only32 ()

Returns
PocPusher

only64

public PocPusher only64 ()

Returns
PocPusher

pushFile

public void pushFile (String testFile, 
                String remoteFile)

Parameters
testFile String

remoteFile String

Throws
FileNotFoundException
DeviceNotAvailableException

setAbi

public PocPusher setAbi (IAbi abi)

Parameters
abi IAbi

Returns
PocPusher

setBuild

public PocPusher setBuild (IBuildInfo buildInfo)

Parameters
buildInfo IBuildInfo

Returns
PocPusher

setDevice

public PocPusher setDevice (ITestDevice device)

Parameters
device ITestDevice

Returns
PocPusher

Protected methods

finished

protected void finished (Description d)

Parameters
d Description

starting

protected void starting (Description d)

Parameters
d Description