GTestList测试解析器
public class GTestListTestParser
extends MultiLineReceiver
java.lang.Object | ||
↳ | com.android.ddmlib.MultiLineReceiver | |
↳ | com.android.tradefed.testtype.GTestListTestParser |
带有“--gtest_list_tests”参数的 gtest 空运行模式的结果解析器。
概括
字段 | |
---|---|
protected | mTests
|
公共构造函数 | |
---|---|
GTestListTestParser (String testRunName, ITestInvocationListener listener) 为单个侦听器创建 GTestListTestParser。 |
公共方法 | |
---|---|
void | done () |
boolean | getPrependFileName () |
boolean | isCancelled () |
void | processNewLines (String[] lines) |
void | setPrependFileName (boolean prepend) |
字段
测试
protectedmTests
公共构造函数
GTestList测试解析器
public GTestListTestParser (String testRunName, ITestInvocationListener listener)
为单个侦听器创建 GTestListTestParser。
参数 | |
---|---|
testRunName | String :提供给ITestLifeCycleReceiver.testRunStarted(String, int) 的测试运行名称 |
listener | ITestInvocationListener :在测试执行时通知测试结果 |
公共方法
完毕
public void done ()
获取前置文件名
public boolean getPrependFileName ()
退货 | |
---|---|
boolean |
取消
public boolean isCancelled ()
退货 | |
---|---|
boolean |
处理换行
public void processNewLines (String[] lines)
参数 | |
---|---|
lines | String |
设置前置文件名
public void setPrependFileName (boolean prepend)
参数 | |
---|---|
prepend | boolean |