GTestListTestParser

public class GTestListTestParser
extends MultiLineReceiver

java.lang.Object
   ↳ com.android.ddmlib.MultiLineReceiver
     ↳ com.android.tradefed.testtype.GTestListTestParser


Un parser dei risultati per la modalità dry run di gtest con il parametro "--gtest_list_tests".

Riepilogo

Campi

protected mTests

Costruttori pubblici

GTestListTestParser(String testRunName, ITestInvocationListener listener)

Crea GTestListTestParser per un singolo listener.

GTestListTestParser(String testRunName, ITestInvocationListener listener, boolean shouldCollectDisabledTest)

Crea GTestListTestParser per un singolo listener.

Metodi pubblici

void done()

Termina il processo.

boolean getPrependFileName()
boolean isCancelled()

void processNewLines(String[] lines)

Chiamato quando il processo remoto riceve nuove righe.

void setPrependFileName(boolean prepend)

Campi

mTests

protected  mTests

Costruttori pubblici

GTestListTestParser

public GTestListTestParser (String testRunName, 
                ITestInvocationListener listener)

Crea GTestListTestParser per un singolo listener.

Parametri
testRunName String: il nome dell'esecuzione di test da fornire a ITestLifeCycleReceiver.testRunStarted(String, int)

listener ITestInvocationListener: informato dei risultati dei test durante l'esecuzione

GTestListTestParser

public GTestListTestParser (String testRunName, 
                ITestInvocationListener listener, 
                boolean shouldCollectDisabledTest)

Crea GTestListTestParser per un singolo listener.

Parametri
testRunName String: il nome dell'esecuzione di test da fornire a ITestLifeCycleReceiver.testRunStarted(String, int)

listener ITestInvocationListener: informato dei risultati dei test durante l'esecuzione

shouldCollectDisabledTest boolean: raccogliere o meno i test disattivati

Metodi pubblici

done

public void done ()

Termina il processo. Viene chiamato dopo che le ultime righe sono state elaborate da processNewLines(String[]).

getPrependFileName

public boolean getPrependFileName ()

Ritorni
boolean

isCancelled

public boolean isCancelled ()

Ritorni
boolean

processNewLines

public void processNewLines (String[] lines)

Chiamato quando il processo remoto riceve nuove righe.

È garantito che le linee siano complete quando vengono fornite a questo metodo.

Parametri
lines String: l'array contenente le nuove righe.

setPrependFileName

public void setPrependFileName (boolean prepend)

Parametri
prepend boolean