ホストGTest
public class HostGTest
extends GTestBase
implements IBuildReceiver
java.lang.オブジェクト | ||
↳ | 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) |
パブリックコンストラクター
ホストGTest
public HostGTest ()
パブリックメソッド
ホストコマンドの実行
public CommandResult executeHostCommand (String cmd, long timeoutMs)
パラメーター | |
---|---|
cmd | String : ホストで実行したいコマンド |
timeoutMs | long : コマンドのタイムアウト (ミリ秒単位) |
戻り値 | |
---|---|
CommandResult | CommandコマンドのCommandResult |
ホストコマンドの実行
public CommandResult executeHostCommand (String cmd)
パラメーター | |
---|---|
cmd | String : ホストで実行したいコマンド |
戻り値 | |
---|---|
CommandResult | CommandコマンドのCommandResult |
ロードフィルター
public String loadFilter (String binaryOnHost)
getフィルターメソッドを定義します。
サブクラスは、独自のフィルターを取得する方法を実装する必要があります。
パラメーター | |
---|---|
binaryOnHost | String : フィルター ファイルのフル パス。 |
戻り値 | |
---|---|
String | フィルター文字列。 |
走る
public void run (TestInformation testInfo, ITestInvocationListener listener)
パラメーター | |
---|---|
testInfo | TestInformation |
listener | ITestInvocationListener |
投げる | |
---|---|
DeviceNotAvailableException |