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)
フィルタ取得メソッドを定義します。 |
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)
取得フィルタ メソッドを定義します。
サブクラスは、独自のフィルタを取得する方法を実装する必要があります。
| パラメータ | |
|---|---|
binaryOnHost |
String: フィルタ ファイルのフルパス。 |
| 戻り値 | |
|---|---|
String |
フィルタ文字列。 |
ホームラン
public void run (TestInformation testInfo, ITestInvocationListener listener)
| パラメータ | |
|---|---|
testInfo |
TestInformation |
listener |
ITestInvocationListener |
| 例外 | |
|---|---|
DeviceNotAvailableException |
|