GTestListTestParser

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。

GTestListTestParser(String testRunName, ITestInvocationListener listener, boolean shouldCollectDisabledTest)

為單一事件監聽器建立 GTestListTestParser。

公用方法

void done()

boolean getPrependFileName()
boolean isCancelled()

void processNewLines(String[] lines)

void setPrependFileName(boolean prepend)

欄位

mTests

protected  mTests

公用建構函式

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:是否收集已停用的測試

公用方法

done

public void done ()

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