GTestListTestParser
public
class
GTestListTestParser
extends MultiLineReceiver
java.lang.Object | ||
↳ | com.android.ddmlib.MultiLineReceiver | |
↳ | com.android.tradefed.testtype.GTestListTestParser |
A result parser for gtest dry run mode with "--gtest_list_tests" parameter.
Summary
Fields | |
---|---|
protected
|
mTests
|
Public constructors | |
---|---|
GTestListTestParser(String testRunName, ITestInvocationListener listener)
Creates the GTestListTestParser for a single listener. |
|
GTestListTestParser(String testRunName, ITestInvocationListener listener, boolean shouldCollectDisabledTest)
Creates the GTestListTestParser for a single listener. |
Public methods | |
---|---|
void
|
done()
|
boolean
|
getPrependFileName()
|
boolean
|
isCancelled()
|
void
|
processNewLines(String[] lines)
|
void
|
setPrependFileName(boolean prepend)
|
Fields
mTests
protectedmTests
Public constructors
GTestListTestParser
public GTestListTestParser (String testRunName, ITestInvocationListener listener)
Creates the GTestListTestParser for a single listener.
Parameters | |
---|---|
testRunName |
String : the test run name to provide to ITestLifeCycleReceiver.testRunStarted(String, int) |
listener |
ITestInvocationListener : informed of test results as the tests are executing |
GTestListTestParser
public GTestListTestParser (String testRunName, ITestInvocationListener listener, boolean shouldCollectDisabledTest)
Creates the GTestListTestParser for a single listener.
Parameters | |
---|---|
testRunName |
String : the test run name to provide to ITestLifeCycleReceiver.testRunStarted(String, int) |
listener |
ITestInvocationListener : informed of test results as the tests are executing |
shouldCollectDisabledTest |
boolean : collect disabled tests or not |
Public methods
done
public void done ()
getPrependFileName
public boolean getPrependFileName ()
Returns | |
---|---|
boolean |
isCancelled
public boolean isCancelled ()
Returns | |
---|---|
boolean |
processNewLines
public void processNewLines (String[] lines)
Parameters | |
---|---|
lines |
String |
setPrependFileName
public void setPrependFileName (boolean prepend)
Parameters | |
---|---|
prepend |
boolean |