/tools/tradefederation/core/javatests/com/android/tradefed/device/ |
D | AndroidDebugBridgeWrapperTest.java | 59 res.setStdout("Android Debug Bridge version 1.0.36\nRevision 0e7324e9095a-android\n"); in testAdbVersionParsing() 71 res.setStdout( in testAdbVersionParsing_altFormat() 86 res.setStdout(""); in testAdbVersionParse_runFail() 98 res.setStdout("Android Debug Bridge version 1.0.36\n"); in testAdbVersionParsing_partial() 110 res.setStdout("This is probably not the right output\n"); in testAdbVersionParsing_parseFail()
|
D | FastbootHelperTest.java | 164 fakeRes.setStdout(""); in testGetDevice_fail() 178 fakeRes.setStdout(expectedStdout); in testExecuteCommand() 209 fakeRes.setStdout("04035EEB0B01F01C fastboot\n" + "HT99PP800024 fastbootd\n"); in testGetBootloaderAndFastbootdDevices()
|
D | TestDeviceTest.java | 239 res.setStdout((String) injectedResult); in executeShellV2Command() 265 res.setStdout((String) injectedResult); in executeShellV2Command() 383 adbResult.setStdout("restarting adbd as non root"); in testDisableAdbRoot_unroot() 402 adbResult.setStdout("restarting adbd as root"); in setEnableAdbRootExpectations() 438 adbBadResult.setStdout(""); in testEnableAdbRoot_rootRetry() 441 adbResult.setStdout("restarting adbd as root"); in testEnableAdbRoot_rootRetry() 479 fastbootResult.setStdout(""); in testGetProductType_fastboot() 505 fastbootResult.setStdout(""); in testGetProductType_fastbootNonalpha() 531 fastbootResult.setStdout(""); in testGetProductType_fastbootFail() 1280 successResult.setStdout(""); in testExecuteFastbootCommand_recovery() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | NativeCodeCoverageFlusherTest.java | 74 result.setStdout("1000000000\n"); in testClearCoverageMeasurements_rmCommandCalled() 113 result.setStdout("1000000000\n"); in testFlushCoverageAllProcesses_flushAllCommandCalled() 136 result.setStdout("1000000000\n"); in testFlushCoverageSpecificProcesses_flushSpecificCommandCalled() 156 result.setStdout("0000000000\n"); in testFlushNotHandled_flushNotCalled() 195 result.setStdout(""); in testFlushStatusReadEmpty_flushNotCalled() 213 resultNotHandled.setStdout("8000000000000000\n"); in testFlushOnlySigCgt_flushSpecificProcesses() 217 resultHandled.setStdout("1000000000\n"); in testFlushOnlySigCgt_flushSpecificProcesses() 221 resultEmpty.setStdout("\n"); in testFlushOnlySigCgt_flushSpecificProcesses()
|
D | TargetFileUtilsTest.java | 83 commandResult.setStdout("path1\npath2\npath3\n"); in testFindFile() 103 commandResult.setStdout("path1\npath2\npath3\n"); in testFindFile_w_cmd_result_fail() 117 commandResult.setStdout(""); in testFindFile_w_empty_line_stdout()
|
D | FuseUtilTest.java | 52 haveFuseZipInstalledResult.setStdout("/abc/def/fuse-zip"); in testCanMountZip() 69 noFuseZipInstalledResult.setStdout(""); in testCanMountZip_unsupported()
|
/tools/tradefederation/core/javatests/com/android/tradefed/suite/checker/ |
D | FilesystemRootCheckerTest.java | 48 defaultResult.setStdout(""); in setup() 65 findNoRootResult.setStdout(findNoRoot); in testNoRootFiles() 87 findRootFileResult.setStdout(findRootFile); in testRootFile() 108 findRootDirectoryResult.setStdout(findRootDirectory); in testRootDirectory() 128 findRootFileResult.setStdout(findRootFile); in testModuleStartWithRootFile()
|
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | FeatureFlagTargetPreparerTest.java | 73 mCommandResult.setStdout("namespace/f=v\n"); in testSetUpAndTearDown_oneFlagFile_newAndUpdatedFlags() 95 mCommandResult.setStdout("namespace/f=\n"); in testSetUpAndTearDown_oneFlagFile_nullValueFlagInDeviceConfig() 115 mCommandResult.setStdout("namespace/f=v\n"); in testSetUpAndTearDown_oneFlagFile_nullValueFlagInFile() 238 mCommandResult.setStdout("namespace/f1=v1\n"); in testSetUpAndTearDown_additionalFlagValues() 261 mCommandResult.setStdout("namespace/f1=v1\n"); in testSetUp_withoutRebootBetweenFiles() 294 mCommandResult.setStdout(""); in testSetUp_ignoreInvalid() 313 mCommandResult.setStdout("namespace/flag=value\n"); in testSetUp_ignoreUnchanged() 344 listCommandResult1.setStdout(DEFAULT_CONFIG); in setFlagFilesAndDeviceConfigLists() 346 listCommandResult2.setStdout(listCommandResult2Stdout); in setFlagFilesAndDeviceConfigLists()
|
D | DisableSELinuxTargetPreparerTest.java | 65 result.setStdout(PERMISSIVE); in testSetUpSuccess_permissive() 77 result.setStdout(ENFORCED); in testSetUpSuccess_enforced_rootBefore() 95 result.setStdout(ENFORCED); in testSetUpSuccess_enforced_notRootBefore() 118 result.setStdout(ENFORCED); in testSetUp_rootFail() 136 result.setStdout(ENFORCED); in testSetUp_disableSELinuxFail()
|
D | FastbootDeviceFlasherTest.java | 168 fastbootResult.setStdout(""); in testGetImageVersion() 184 fastbootResult.setStdout(""); in testGetCurrentSlot_fastboot() 226 fastbootInValidResult.setStdout(""); in testRetryGetVersionCommand() 232 fastbootValidResult.setStdout(""); in testRetryGetVersionCommand() 331 fastbootOutput.setStdout(""); in testWipeCache_exists() 381 fastbootOutput.setStdout(""); in testWipeCache_not_exists() 404 fastbootOutput.setStdout(""); in testWipeCache_not_exists_error() 422 result.setStdout(""); in doTestFlashWithWipe() 833 res.setStdout(""); in testHandleFastbootResult() 845 res.setStdout(""); in testHandleFastbootResult_fastbootFailed() [all …]
|
D | RunCommandTargetPreparerTest.java | 88 res.setStdout(""); in testSetUp() 109 res.setStdout(""); in testSetUp_withTimeout() 162 res.setStdout(""); in testTeardown_withTimeout() 377 res.setStdout(""); in testCmd_withTestUserToken_propertyNotSet() 398 res.setStdout(""); in testCmd_withTestUserToken()
|
D | PythonVirtualenvPreparerTest.java | 130 result.setStdout("bash: virtualenv: command not found"); in testStartVirtualenv_throwTSE_whenVirtualenvNotFound() 150 result.setStdout("virtualenv 16.7.10 from /path/to/site-packages/virtualenv/__init__.py"); in testStartVirtualenv_throwTSE_whenVirtualenvIsTooOld()
|
D | DynamicSystemPreparerTest.java | 155 res.setStdout(""); in testSetUp_imageDir() 175 res.setStdout(""); in testSetUp_imageZip() 261 res.setStdout(""); in testImageSetup()
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/mobly/ |
D | MoblyBinaryHostTestTest.java | 142 res.setStdout("==========> FooTest <==========\ntest_foo"); in testRun_withPythonBinariesOption() 183 res.setStdout("==========> FooTest <==========\ntest_foo"); in testRun_withParFileNameOption() 229 res.setStdout("==========> FooTest <==========\ntest_foo"); in testRun_withStdLogOption() 257 res.setStdout("==========> FooTest <==========\ntest_foo"); in testRun_testResultIsMissing() 279 result.setStdout( in testRun_shouldActivateVenvAndCleanUp_whenVenvIsSet() 289 res.setStdout("==========> FooTest <==========\ntest_foo"); in testRun_shouldActivateVenvAndCleanUp_whenVenvIsSet() 301 result.setStdout( in testRun_shouldActivateVenvAndCleanUp_whenVenvIsSet() 325 res.setStdout("==========> FooTest <==========\ntest_foo"); in testRun_shouldNotActivateVenv_whenVenvIsNotSet() 353 res.setStdout("==========> FooTest <==========\ntest_foo"); in testRun_exitSuccess_withTestResultFileComplete() 382 res.setStdout("==========> FooTest <==========\ntest_foo"); in testRun_exitSuccess_withTestResultFileIncomplete() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/ |
D | GoogleBenchmarkResultParserTest.java | 100 cmd_result.setStdout(readInFile(GBENCH_OUTPUT_FILE_1)); in testParseSimpleFile() 156 cmd_result.setStdout(readInFile(GBENCH_OUTPUT_FILE_2)); in testParseSimpleFile_twoTests() 182 cmd_result.setStdout(readInFile(GBENCH_OUTPUT_FILE_3)); in testParse_contextError() 197 cmd_result.setStdout(readInFile(GBENCH_OUTPUT_FILE_4)); in testParse_noBenchmarkResults() 214 cmd_result.setStdout(readInFile(GBENCH_OUTPUT_FILE_7)); in testParse_benchmarkError() 254 cmd_result.setStdout(readInFile(GBENCH_OUTPUT_FILE_5)); in testParseSimpleFile_withWarning() 281 cmd_result.setStdout(readInFile(GBENCH_OUTPUT_FILE_6)); in testParse_ignore() 313 cmd_result.setStdout(readInFile(GBENCH_OUTPUT_FILE_8)); in testParse_aborted() 335 cmd_result.setStdout("Random text."); in testParse_timedout()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/connection/ |
D | AdbTcpConnectionTest.java | 70 adbResult.setStdout("connected to"); in testAdbConnect() 73 adbResultConfirmation.setStdout("already connected to localhost:1234"); in testAdbConnect() 95 adbResult.setStdout("cannot connect"); in testAdbConnect_fails() 122 adbResult.setStdout("connected to"); in testAdbConnect_fails_confirmation()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/metric/ |
D | PerfettoPullerMetricCollectorTest.java | 108 cr.setStdout("abc:efg"); in testProcessingFlow() 148 cr.setStdout("abc:efg"); in testProcessingFlowWithFileSizeMetric() 188 cr.setStdout("abc:efg"); in testCompressedProcessingFlow() 226 cr.setStdout("abc:efg"); in testScriptFailureStatus() 265 cr.setStdout("abc:efg"); in testBinaryArgs() 301 cr.setStdout("sometext"); in testTraceProcessorArgsDefaults() 353 cr.setStdout("abc:efg"); in testTraceProcessorAdditionalArgs() 390 cr.setStdout("sometext"); in testTraceProcessorRunTimeAndStatus_success() 440 cr.setStdout("sometext"); in testTraceProcessorRunTimeAndStatus_failure()
|
D | AtraceCollectorTest.java | 357 commandResult.setStdout("stdout"); in testExecutesPostProcessPar() 402 commandResult.setStdout("stdout"); in testExecutesPostProcessParDifferentFormat() 443 commandResult.setStdout("stdout"); in testExecutesPostProcessParNoStderr() 573 commandResult.setStdout("line1\nt:" + mDummyMetricPng.getAbsolutePath()); in testProcessesMetricOutput() 607 commandResult.setStdout("text\nt:" + mDummyMetricPng.getAbsolutePath()); in testProcessesMetricOutputWithMalformedRegex() 636 commandResult.setStdout("text\nt:/file/not/found.txt"); in testProcessesMetricOutputWithFileNotFound() 664 commandResult.setStdout( in testProcessesMetricOutputTwoKeys()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/cloud/ |
D | HostOrchestratorUtilTest.java | 129 cvdCommandRes.setStdout("some output"); in testPullCvdHostLogs_Oxygenation_Success() 163 cvdCommandRes.setStdout("some output"); in testPullCvdHostLogs_Oxygenation_CurlFailed() 247 cvdCommandRes.setStdout(mHOUtil.getUnsupportedHoResponse()); in testPullCvdHostLogs_Oxygenation_404() 280 cvdRes.setStdout(LIST_CVD_RES); in testPowerwashGce() 282 powerwashRes.setStdout(""); in testPowerwashGce() 398 cvdRes.setStdout("output"); in testPowerwashGce_ListCvdFailed() 446 cvdRes.setStdout(mHOUtil.getUnsupportedHoResponse()); in testPowerwashGce_ListCvd404() 494 cvdRes.setStdout(LIST_CVD_BADRES); in testPowerwashGce_NoCvdOutput()
|
D | OxygenClientTest.java | 184 res.setStdout(""); in testLease() 240 res.setStdout(""); in testLeaseWithoutBuildId() 284 res.setStdout(""); in testLeaseMultipleDevice() 413 res.setStdout(""); in testLeaseWithBootImageAndBootArtifact() 475 res.setStdout(""); in testLeaseWithBootloader() 535 res.setStdout(""); in testLeaseWithHostPackage()
|
D | GceManagerTest.java | 574 cmd.setStdout("output err"); in testStartGce_timeout() 681 cmd.setStdout("output"); in testStartGce() 722 cmd.setStdout("output"); in testStartGce_failed() 781 cmd.setStdout("output"); in testStartGce_bootFail() 881 cmd.setStdout("output"); in testShutdownGce() 908 cmd.setStdout("output"); in testShutdownGce_noWait() 924 res.setStdout("bugreport success!\nOK:/bugreports/bugreport.zip\n"); in testGetSshBugreport() 979 res.setStdout("bugreport success!\nOK:/bugreports/bugreport.zip\n"); in testGetNestedSshBugreport() 1057 res.setStdout("bugreport failed!\n"); in testGetSshBugreport_Fail() 1134 cmd.setStdout("output"); in testStartGce_timeoutAndClean()
|
/tools/tradefederation/core/javatests/com/android/tradefed/cluster/ |
D | ClusterDeviceMonitorTest.java | 193 prodcertstatusMockResult.setStdout(prodcertstatusOutput); in testGetAdditionalHostInfo() 200 krbstatusMockResult.setStdout(krbstatusOutput); in testGetAdditionalHostInfo() 229 prodcertstatusMockResult.setStdout(prodcertstatusOutput); in testGetAdditionalHostInfo_commandFailed() 237 krbstatusMockResult.setStdout(krbstatusOutput); in testGetAdditionalHostInfo_commandFailed()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/contentprovider/ |
D | ContentProviderHandlerTest.java | 99 res.setStdout("LEGACY_STORAGE: allow"); in testSetUp_install() 146 result.setStdout(""); in testDeleteFile_fail() 165 result.setStdout("[ERROR] Unsupported operation: delete"); in testError() 445 result.setStdout(""); in mockSuccess()
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | CommandResult.java | 76 public void setStdout(String stdout) { in setStdout() method in CommandResult
|
/tools/tradefederation/core/javatests/com/android/tradefed/observatory/ |
D | TestDiscoveryInvokerTest.java | 156 res.setStdout(successStdout); in testSuccessTestDependencyDiscovery() 283 res.setStdout(successStdout); in testTestDependencyDiscovery_NoConfigNameInArgs() 353 res.setStdout(successStdout); in testTestMappingDependencyDiscovery()
|