GTestListTestParser
public
class
GTestListTestParser
extends MultiLineReceiver
| java.lang.Object | ||
| ↳ | com.android.ddmlib.MultiLineReceiver | |
| ↳ | com.android.tradefed.testtype.GTestListTestParser | |
用于在 gtest 试运行模式下使用“--gtest_list_tests”参数的结果解析器。
摘要
字段 | |
|---|---|
protected
|
mTests
|
公共构造函数 | |
|---|---|
GTestListTestParser(String testRunName, ITestInvocationListener listener)
为单个监听器创建 GTestListTestParser。 |
|
GTestListTestParser(String testRunName, ITestInvocationListener listener, boolean shouldCollectDisabledTest)
为单个监听器创建 GTestListTestParser。 |
|
公共方法 | |
|---|---|
void
|
done()
终止进程。 |
boolean
|
getPrependFileName()
|
boolean
|
isCancelled()
|
void
|
processNewLines(String[] lines)
当远程进程接收到新行时调用。 |
void
|
setPrependFileName(boolean prepend)
|
字段
mTests
protectedmTests
公共构造函数
GTestListTestParser
public GTestListTestParser (String testRunName,
ITestInvocationListener listener)为单个监听器创建 GTestListTestParser。
| 参数 | |
|---|---|
testRunName |
String:要提供给 ITestLifeCycleReceiver.testRunStarted(String, int) 的测试运行名称 |
listener |
ITestInvocationListener:在测试执行时获知测试结果 |
GTestListTestParser
public GTestListTestParser (String testRunName,
ITestInvocationListener listener,
boolean shouldCollectDisabledTest)为单个监听器创建 GTestListTestParser。
| 参数 | |
|---|---|
testRunName |
String:要提供给 ITestLifeCycleReceiver.testRunStarted(String, int) 的测试运行名称 |
listener |
ITestInvocationListener:在测试执行时获知测试结果 |
shouldCollectDisabledTest |
boolean:是否收集已停用的测试 |
公共方法
getPrependFileName
public boolean getPrependFileName ()
| 返回 | |
|---|---|
boolean |
|
isCancelled
public boolean isCancelled ()
| 返回 | |
|---|---|
boolean |
|
processNewLines
public void processNewLines (String[] lines)
当远程进程接收到新行时调用。
可以保证,当向此方法提供行时,这些行是完整的。
| 参数 | |
|---|---|
lines |
String:包含新行的数组。 |
setPrependFileName
public void setPrependFileName (boolean prepend)
| 参数 | |
|---|---|
prepend |
boolean |