NativePocAsserter
  public
  
  
  
  interface
  NativePocAsserter
  
  
  
| com.android.sts.common.NativePocAsserter | 
斷言器與 NativePoc.asserter() 搭配使用的介面。
摘要
| 公用方法 | |
|---|---|
| 
        
        default
        
        
        
        void | 
      checkCmdResult(CommandResult result)
      在 PoC 完成後呼叫 | 
| 
        
        default
        
        
        
        AutoCloseable | 
      withAutoCloseable(NativePoc nativePoc, ITestDevice device)
      在 PoC 執行前呼叫,會傳回在 PoC 完成後關閉的 AutoCloseable | 
公用方法
checkCmdResult
public void checkCmdResult (CommandResult result)
在 PoC 完成後呼叫
| 參數 | |
|---|---|
| result | CommandResult | 
withAutoCloseable
public AutoCloseable withAutoCloseable (NativePoc nativePoc, ITestDevice device)
在 PoC 執行前呼叫,會傳回在 PoC 完成後關閉的 AutoCloseable
| 參數 | |
|---|---|
| nativePoc | NativePoc | 
| device | ITestDevice | 
| 傳回 | |
|---|---|
| AutoCloseable | |
| 擲回 | |
|---|---|
| Exception | |
