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
Fieldsem | |
|---|---|
protected
|
mTests
|
Publiczne konstruktory | |
|---|---|
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 otrzymuje nowe wiersze. |
void
|
setPrependFileName(boolean prepend)
|
Fieldsem
mTests
protectedmTests
Publiczne konstruktory
GTestListTestParser
public GTestListTestParser (String testRunName,
ITestInvocationListener listener)Tworzy GTestListTestParser dla jednego odbiorcy.
| Parametry | |
|---|---|
testRunName |
String: nazwa testu, która ma zostać przekazana do ITestLifeCycleReceiver.testRunStarted(String, int) |
listener |
ITestInvocationListener: powiadamianie 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 testu, która ma zostać przekazana do ITestLifeCycleReceiver.testRunStarted(String, int) |
listener |
ITestInvocationListener: powiadamianie 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 ()
| Zwroty | |
|---|---|
boolean |
|
isCancelled
public boolean isCancelled ()
| Zwroty | |
|---|---|
boolean |
|
processNewLines
public void processNewLines (String[] lines)
Wywoływana, gdy proces zdalny otrzymuje 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 |