컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
GTest
public
class
GTest
extends GTestBase
implements
IDeviceTest
지정된 기기에서 네이티브 테스트 패키지를 실행하는 테스트입니다.
요약
보호된 메서드 |
String
|
createFlagFile(String filter)
OS를 방지하기 위해 --gtest_flagfile을 통해 사용할 필터가 포함된 파일을 만듭니다.
인수 크기 제한이 있습니다.
|
void
|
executeCommandByScript(ITestDevice testDevice, String cmd, IShellOutputReceiver resultParser)
임시 스크립트에서 gtest 명령어를 실행하는 도우미 메서드입니다(명령어가
adb에서 직접 실행하기에는 너무 깁니다.
|
String
|
getGTestCmdLine(String fullPath, String flags)
실행할 gtest 명령어를 빌드하는 도우미 메서드입니다.
|
String
|
loadFilter(String binaryOnDevice)
필터 가져오기 메서드를 정의합니다.
|
boolean
|
shouldRunFile(String fullPath)
주어진 파일을 실행해야 하는지 결정하는 도우미 메서드입니다.
|
공개 생성자
공개 메서드
getDevice
public ITestDevice getDevice ()
테스트 대상 기기를 가져옵니다.
isRebootBeforeTestEnabled
public boolean isRebootBeforeTestEnabled ()
기기
public void setDevice (ITestDevice device)
테스트 중인 기기를 삽입합니다.
setNativeTestDevicePath
public void setNativeTestDevicePath (String path)
보호된 메서드
createFlagFile
protected String createFlagFile (String filter)
OS를 방지하기 위해 --gtest_flagfile을 통해 사용할 필터가 포함된 파일을 만듭니다.
인수 크기 제한이 있습니다.
매개변수 |
filter |
String : 필터 문자열입니다. |
반환 값 |
String |
필터가 포함된 파일의 경로입니다. |
runCommandByScript
protected void executeCommandByScript (ITestDevice testDevice,
String cmd,
IShellOutputReceiver resultParser)
임시 스크립트에서 gtest 명령어를 실행하는 도우미 메서드입니다(명령어가
adb에서 직접 실행하기에는 너무 깁니다.
매개변수 |
testDevice |
ITestDevice : 명령어를 실행할 기기입니다. |
cmd |
String : 실행할 명령어 문자열입니다. |
resultParser |
IShellOutputReceiver : 테스트 결과를 읽는 출력 수신기 |
getGTestCmdLine
protected String getGTestCmdLine (String fullPath,
String flags)
실행할 gtest 명령어를 빌드하는 도우미 메서드입니다.
매개변수 |
fullPath |
String : 기기의 gtest 바이너리 절대 파일 시스템 경로입니다. |
flags |
String : gtest 실행 플래그 |
반환 값 |
String |
gtest용으로 실행되는 셸 명령줄 |
로드필터
protected String loadFilter (String binaryOnDevice)
필터 가져오기 메서드를 정의합니다.
하위 클래스는 자체 필터를 가져오는 방법을 구현해야 합니다.
매개변수 |
binaryOnDevice |
String : 필터 파일의 전체 경로입니다. |
반환 값 |
String |
filter 문자열입니다. |
shouldRunFile
protected boolean shouldRunFile (String fullPath)
주어진 파일을 실행해야 하는지 결정하는 도우미 메서드입니다.
매개변수 |
fullPath |
String : 문제가 되는 파일의 전체 경로 |
반환 값 |
boolean |
true를 반환합니다. |
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2024-08-29(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-08-29(UTC)"],[],[]]