HostGTest

public class HostGTest
extends GTestBase implements IBuildReceiver

java.lang.Object
com.android.tradefed.testtype.GTestBase
com.android.tradefed.testtype.HostGTest


Un 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 get filter.

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 dans l'hôte

timeoutMs long : timeout de la commande en millisecondes

Retour
CommandResult le CommandResult de la commande

executeHostCommand

public CommandResult executeHostCommand (String cmd)

Paramètres
cmd String : commande à exécuter dans l'hôte

Retour
CommandResult le CommandResult de la commande

chargerFiltre

public String loadFilter (String binaryOnHost)

Définissez la méthode get filter.

La sous-classe doit implémenter comment obtenir son propre filtre.

Paramètres
binaryOnHost String : le chemin complet du fichier de filtre.

Retour
String chaîne de filtre.

courir

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

Paramètres
testInfo TestInformation

listener ITestInvocationListener

Lance
DeviceNotAvailableException

setBuild

public void setBuild (IBuildInfo buildInfo)

Paramètres
buildInfo IBuildInfo