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)

領域

測試

protected  mTests

公共構造函數

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