HostGTest
public
class
HostGTest
extends GTestBase
implements
IBuildReceiver
| java.lang.Object | ||
| ↳ | com.android.tradefed.testtype.GTestBase | |
| ↳ | com.android.tradefed.testtype.HostGTest | |
執行原生測試套件的測試。
摘要
公用建構函式 | |
|---|---|
HostGTest()
|
|
公用方法 | |
|---|---|
CommandResult
|
executeHostCommand(String cmd, long timeoutMs)
|
CommandResult
|
executeHostCommand(String cmd)
|
String
|
loadFilter(String binaryOnHost)
定義 get 篩選器方法。 |
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
|
void
|
setBuild(IBuildInfo buildInfo)
|
公用建構函式
HostGTest
public HostGTest ()
公用方法
executeHostCommand
public CommandResult executeHostCommand (String cmd, long timeoutMs)
| 參數 | |
|---|---|
cmd |
String:要在主機上執行的指令 |
timeoutMs |
long:指令逾時時間,以毫秒為單位 |
| 傳回 | |
|---|---|
CommandResult |
指令的 CommandResult |
executeHostCommand
public CommandResult executeHostCommand (String cmd)
| 參數 | |
|---|---|
cmd |
String:要在主機上執行的指令 |
| 傳回 | |
|---|---|
CommandResult |
指令的 CommandResult |
loadFilter
public String loadFilter (String binaryOnHost)
定義 get 篩選器方法。
子類別必須實作如何取得自己的篩選器。
| 參數 | |
|---|---|
binaryOnHost |
String:篩選器檔案的完整路徑。 |
| 傳回 | |
|---|---|
String |
篩選字串。 |
得分
public void run (TestInformation testInfo, ITestInvocationListener listener)
| 參數 | |
|---|---|
testInfo |
TestInformation |
listener |
ITestInvocationListener |
| 擲回 | |
|---|---|
DeviceNotAvailableException |
|