GTestListTestParser

public class GTestListTestParser
extends MultiLineReceiver

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


Parser wyników dla trybu próbnego gtest z parametrem „--gtest_list_tests”.

Podsumowanie

Pola

protected List<TestDescription> mTests

Konstruktory publiczne

GTestListTestParser(String testRunName, ITestInvocationListener listener)

Tworzy GTestListTestParser dla jednego odbiorcy.

GTestListTestParser(String testRunName, ITestInvocationListener listener, boolean shouldCollectDisabledTest)

Tworzy GTestListTestParser dla jednego odbiorcy.

Metody publiczne

void done()

kończy proces.

boolean getPrependFileName()
boolean isCancelled()

void processNewLines(String[] lines)

Wywoływana, gdy proces zdalny odbiera nowe wiersze.

void setPrependFileName(boolean prepend)

Pola

mTests

protected List<TestDescription> mTests

Konstruktory publiczne

GTestListTestParser

public GTestListTestParser (String testRunName, 
                ITestInvocationListener listener)

Tworzy GTestListTestParser dla jednego odbiorcy.

Parametry
testRunName String: nazwa sesji testowej, która ma zostać przekazana do ITestInvocationListener.testRunStarted(String,int)

listener ITestInvocationListener: otrzymywać informacje o wynikach testów w trakcie ich wykonywania;

GTestListTestParser

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

Tworzy GTestListTestParser dla jednego odbiorcy.

Parametry
testRunName String: nazwa sesji testowej, która ma zostać przekazana do ITestInvocationListener.testRunStarted(String,int)

listener ITestInvocationListener: otrzymywać informacje o wynikach testów w trakcie ich wykonywania;

shouldCollectDisabledTest boolean: czy zbierać wyłączone testy

Metody publiczne

gotowe

public void done ()

kończy proces. Jest wywoływana po przetworzeniu ostatnich wierszy przez funkcję processNewLines(String[]).

getPrependFileName

public boolean getPrependFileName ()

Zwraca
boolean

isCancelled

public boolean isCancelled ()

Zwraca
boolean

processNewLines

public void processNewLines (String[] lines)

Wywoływana, gdy proces zdalny odbiera nowe wiersze.

Gdy wiersze są przekazywane do tej metody, są one kompletne.

Parametry
lines String: tablica zawierająca nowe wiersze.

setPrependFileName

public void setPrependFileName (boolean prepend)

Parametry
prepend boolean