Searched refs:mCommandResult (Results 1 – 5 of 5) sorted by relevance
74 private CommandResult mCommandResult; field in KernelTargetTestTest96 mCommandResult = new CommandResult(CommandStatus.SUCCESS); in test_exitCodeSkip()97 mCommandResult.setExitCode(32); in test_exitCodeSkip()100 mKernelTargetTest.checkCommandResult(mCommandResult, mListener, testDescription); in test_exitCodeSkip()111 mCommandResult = new CommandResult(CommandStatus.SUCCESS); in test_mismatchedExitCodeSkip()112 mCommandResult.setExitCode(20); in test_mismatchedExitCodeSkip()115 mKernelTargetTest.checkCommandResult(mCommandResult, mListener, testDescription); in test_mismatchedExitCodeSkip()125 mCommandResult = new CommandResult(CommandStatus.SUCCESS); in test_noExitCodeSkip()126 mCommandResult.setExitCode(32); in test_noExitCodeSkip()129 mKernelTargetTest.checkCommandResult(mCommandResult, mListener, testDescription); in test_noExitCodeSkip()[all …]
71 @Mock CommandResult mCommandResult; field in DeviceActionTargetPreparerTest86 .thenReturn(mCommandResult); in setUp()87 when(mCommandResult.getStderr()).thenReturn(""); in setUp()88 when(mCommandResult.getStdout()).thenReturn(""); in setUp()89 when(mCommandResult.getStatus()).thenReturn(CommandStatus.SUCCESS); in setUp()90 when(mCommandResult.getExitCode()).thenReturn(0); in setUp()201 when(mCommandResult.getExitCode()).thenReturn(1); in setUp_executeFailureThrowExecutionException()214 doThrow(new IOException()).when(mockDeviceActionUtil).generateLogFile(mCommandResult); in setUp_saveLogErrorThrowInfraException()226 when(mCommandResult.getExitCode()).thenReturn(1); in setUp_saveLogErrorAndExectionFailureThrowExecutionException()227 doThrow(new IOException()).when(mockDeviceActionUtil).generateLogFile(mCommandResult); in setUp_saveLogErrorAndExectionFailureThrowExecutionException()
58 private CommandResult mCommandResult; field in FeatureFlagTargetPreparerTest65 mCommandResult = new CommandResult(CommandStatus.SUCCESS); in setUp()66 when(mDevice.executeShellV2Command(anyString())).thenReturn(mCommandResult); in setUp()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()
48 @Mock CommandResult mCommandResult; field in DeviceActionUtilTest61 when(mMockRuntil.runTimedCmd(anyLong(), any())).thenReturn(mCommandResult); in setUp()
830 private final CommandResult mCommandResult; field in RunUtil.RunnableResult878 mCommandResult = newCommandResult(); in RunnableResult()894 return mCommandResult; in getResult()994 mCommandResult.setExitCode(rc); in run()998 mCommandResult.setStdout(FileUtil.readStringFromFile(stdoutFile)); in run()1004 mCommandResult.setStdout("redirected to " + stdoutDest); in run()1007 mCommandResult.setStderr(FileUtil.readStringFromFile(stderrFile)); in run()1013 mCommandResult.setStderr("redirected to " + stderrDest); in run()