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 List<TestDescription> mTests

Public constructors

GTestListTestParser(String testRunName, ITestInvocationListener listener)

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

protected List<TestDescription> mTests

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

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