CrosLsNexusPreparer
public
class
CrosLsNexusPreparer
extends BaseTargetPreparer
implements
ITargetCleaner,
ITestLoggerReceiver
| java.lang.Object | ||
| ↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
| ↳ | com.android.tradefed.targetprep.CrosLsNexusPreparer | |
A preparer that starts and stops the LSNexus service for a ChromeOS device.
The service is started before test execution and stopped after completion.
Summary
Public constructors | |
|---|---|
CrosLsNexusPreparer()
|
|
Public methods | |
|---|---|
void
|
setTestLogger(ITestLogger testLogger)
Injects the |
void
|
setUp(TestInformation testInfo)
Perform the target setup for testing. |
void
|
tearDown(TestInformation testInfo, Throwable e)
Perform the target cleanup/teardown after testing. |
Protected methods | |
|---|---|
IRunUtil
|
getRunUtil()
|
Public constructors
CrosLsNexusPreparer
public CrosLsNexusPreparer ()
Public methods
setTestLogger
public void setTestLogger (ITestLogger testLogger)
Injects the ITestLogger instance
| Parameters | |
|---|---|
testLogger |
ITestLogger |
setUp
public void setUp (TestInformation testInfo)
Perform the target setup for testing.
| Parameters | |
|---|---|
testInfo |
TestInformation: The TestInformation of the invocation. |
| Throws | |
|---|---|
BuildError |
|
DeviceNotAvailableException |
|
TargetSetupError |
|
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
Perform the target cleanup/teardown after testing.
| Parameters | |
|---|---|
testInfo |
TestInformation: The TestInformation of the invocation. |
e |
Throwable: if the invocation ended with an exception, this will be the exception that was
caught at the Invocation level. Otherwise, will be null. |
| Throws | |
|---|---|
DeviceNotAvailableException |
|