RootSecurityTestCase
public
class
RootSecurityTestCase
extends SecurityTestCase
java.lang.Object | ||||||
↳ | com.android.tradefed.testtype.junit4.BaseHostJUnit4Test | |||||
↳ | com.android.compatibility.common.tradefed.testtype.BusinessLogicHostTestBase | |||||
↳ | com.android.compatibility.common.tradefed.testtype.ExtraBusinessLogicHostTestBase | |||||
↳ | com.android.sts.common.tradefed.testtype.StsExtraBusinessLogicHostTestBase | |||||
↳ | com.android.sts.common.tradefed.testtype.SecurityTestCase | |||||
↳ | com.android.sts.common.tradefed.testtype.RootSecurityTestCase |
需要在设备上拥有 root 权限才能运行的测试类。
为了优化性能,所有需要 root 权限才能运行的测试都应归入同一模块。
摘要
公共构造函数 | |
---|---|
RootSecurityTestCase()
|
公共方法 | |
---|---|
void
|
setUpRoot()
在 SecurityTestCase 的 setUp 之后启用 root 用户 |
公共构造函数
RootSecurityTestCase
public RootSecurityTestCase ()
公共方法
setUpRoot
public void setUpRoot ()
在 SecurityTestCase 的 setUp 之后启用 root
抛出 | |
---|---|
DeviceNotAvailableException |