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 |