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()

Terminates the process.

boolean getPrependFileName()
boolean isCancelled()

void processNewLines(String[] lines)

Called when new lines are being received by the remote process.

void setPrependFileName(boolean prepend)

Fields

mTests

protected  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

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 ()

Terminates the process. This is called after the last lines have been through processNewLines(String[]).

getPrependFileName

public boolean getPrependFileName ()

Returns
boolean

isCancelled

public boolean isCancelled ()

Returns
boolean

processNewLines

public void processNewLines (String[] lines)

Called when new lines are being received by the remote process.

It is guaranteed that the lines are complete when they are given to this method.

Parameters
lines String: The array containing the new lines.

setPrependFileName

public void setPrependFileName (boolean prepend)

Parameters
prepend boolean