NativePoc
  public
  
  
  abstract
  class
  NativePoc
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | com.android.sts.common.NativePoc | 
Setup and run a native PoC, asserting exit conditions
Summary
| Nested classes | |
|---|---|
| 
        
        
        
        
        interface | NativePoc.AfterFunctionLambda construct to run after PoC finished executing but before assertion and cleanup. | 
| 
        
        
        
        
        class | NativePoc.Builder
 | 
| Constants | |
|---|---|
| int | BUF_SIZE
 | 
| long | DEFAULT_POC_TIMEOUT_SECONDS
 | 
| String | RESOURCE_ROOT
 | 
| String | TMP_PATH
 | 
| Public methods | |
|---|---|
| 
        
        
        static
        
        
        NativePoc.Builder | 
      builder()
       | 
| 
        
        
        
        
        
        void | 
      run(BaseHostJUnit4Test test)
      Execute the PoC with the given parameters and assertions. | 
Constants
BUF_SIZE
static final int BUF_SIZE
Constant Value: 65536 (0x00010000)
DEFAULT_POC_TIMEOUT_SECONDS
static final long DEFAULT_POC_TIMEOUT_SECONDS
Constant Value: 60 (0x000000000000003c)
RESOURCE_ROOT
static final String RESOURCE_ROOT
Constant Value: "/"
TMP_PATH
static final String TMP_PATH
Constant Value: "/data/local/tmp/"
Public methods
run
public void run (BaseHostJUnit4Test test)
Execute the PoC with the given parameters and assertions.
| Parameters | |
|---|---|
| test | BaseHostJUnit4Test: the instance of BaseHostJUnit4Test this is running in. Usually called with "this"
     if called from an STS test. | 
| Throws | |
|---|---|
| Exception | |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-11-18 UTC.
