HostGTest
public
class
HostGTest
extends GTestBase
implements
IBuildReceiver
java.lang.Object | ||
↳ | com.android.tradefed.testtype.GTestBase | |
↳ | com.android.tradefed.testtype.HostGTest |
Test qui exécute un package de test natif.
Résumé
Constructeurs publics | |
---|---|
HostGTest()
|
Méthodes publiques | |
---|---|
CommandResult
|
executeHostCommand(String cmd, long timeoutMs)
|
CommandResult
|
executeHostCommand(String cmd)
|
String
|
loadFilter(String binaryOnHost)
Définissez la méthode de filtrage get. |
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
|
void
|
setBuild(IBuildInfo buildInfo)
|
Constructeurs publics
HostGTest
public HostGTest ()
Méthodes publiques
executeHostCommand
public CommandResult executeHostCommand (String cmd, long timeoutMs)
Paramètres | |
---|---|
cmd |
String : commande à exécuter sur l'hôte |
timeoutMs |
long : délai d'expiration de la commande en millisecondes |
Renvoie | |
---|---|
CommandResult |
CommandResult de la commande |
executeHostCommand
public CommandResult executeHostCommand (String cmd)
Paramètres | |
---|---|
cmd |
String : commande à exécuter sur l'hôte |
Renvoie | |
---|---|
CommandResult |
CommandResult de la commande |
loadFilter
public String loadFilter (String binaryOnHost)
Définissez la méthode de filtrage get.
La sous-classe doit implémenter la méthode permettant d'obtenir son propre filtre.
Paramètres | |
---|---|
binaryOnHost |
String : chemin d'accès complet du fichier de filtre. |
Renvoie | |
---|---|
String |
chaîne de filtre. |
Exécuter
public void run (TestInformation testInfo, ITestInvocationListener listener)
Paramètres | |
---|---|
testInfo |
TestInformation |
listener |
ITestInvocationListener |
Génère | |
---|---|
DeviceNotAvailableException |