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<TestIdentifier> mTests

Public constructors

GTestListTestParser(String testRunName, ITestRunListener 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

List<TestIdentifier> mTests

Public constructors

GTestListTestParser

GTestListTestParser (String testRunName, 
                ITestRunListener listener)

Creates the GTestListTestParser for a single listener.

Parameters
testRunName String: the test run name to provide to testRunStarted(String, int)
listener ITestRunListener: informed of test results as the tests are executing

Public methods

done

void done ()

getPrependFileName

boolean getPrependFileName ()

Returns
boolean

isCancelled

boolean isCancelled ()

Returns
boolean

processNewLines

void processNewLines (String[] lines)

Parameters
lines String

setPrependFileName

void setPrependFileName (boolean prepend)

Parameters
prepend boolean