NativePoc
public abstract class NativePoc
extends Object
java.lang.Object | |
↳ | com.android.sts.common.NativePoc |
设置并运行本地 PoC,断言退出条件
概括
嵌套类 | |
---|---|
interface | NativePoc.AfterFunction Lambda 构造在 PoC 完成执行之后但在断言和清理之前运行。 |
class | NativePoc.Builder
|
常量 | |
---|---|
int | BUF_SIZE |
long | DEFAULT_POC_TIMEOUT_SECONDS |
String | RESOURCE_ROOT |
String | TMP_PATH
|
公共方法 | |
---|---|
static NativePoc.Builder | builder () |
void | run (BaseHostJUnit4Test test) 使用给定的参数和断言执行 PoC。 |
常量
BUF_SIZE
static final int BUF_SIZE
常数值:65536 (0x00010000)
默认_POC_TIMEOUT_SECONDS
static final long DEFAULT_POC_TIMEOUT_SECONDS
常量值:60 (0x000000000000003c)
资源根目录
static final String RESOURCE_ROOT
常数值:“/”
TMP_路径
static final String TMP_PATH
常量值:“/data/local/tmp/”
公共方法
跑
public void run (BaseHostJUnit4Test test)
使用给定的参数和断言执行 PoC。
参数 | |
---|---|
test | BaseHostJUnit4Test :正在运行的 BaseHostJUnit4Test 实例。如果从 STS 测试调用,通常使用“this”调用。 |
投掷 | |
---|---|
Exception |
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-11-18。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]