RustBinaryTest

public class RustBinaryTest
extends RustTestBase implements IConfigurationReceiver, IDeviceTest, ITestCollector

java.lang.Object
   ↳ com.android.tradefed.testtype.rust.RustTestBase
     ↳ com.android.tradefed.testtype.rust.RustBinaryTest


一种在给定设备上运行 Rust 二进制文件的测试。

摘要

公共构造函数

RustBinaryTest()

公共方法

ITestDevice getDevice()

获取被测设备。

String getTestModule()
void run(TestInformation testInfo, ITestInvocationListener listener)

void setCollectTestsOnly(boolean shouldCollectTest)

启用或停用测试收集模式

void setDevice(ITestDevice device)

注入被测设备。

void setModuleName(String name)

公共构造函数

RustBinaryTest

public RustBinaryTest ()

公共方法

getDevice

public ITestDevice getDevice ()

获取被测设备。

返回
ITestDevice ITestDevice

getTestModule

public String getTestModule ()

返回
String

run

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

参数
testInfo TestInformation

listener ITestInvocationListener

抛出
DeviceNotAvailableException

setCollectTestsOnly

public void setCollectTestsOnly (boolean shouldCollectTest)

启用或停用测试收集模式

setDevice

public void setDevice (ITestDevice device)

注入被测设备。

参数
device ITestDevice:要使用的 ITestDevice

setModuleName

public void setModuleName (String name)

参数
name String