/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/ |
D | BasePostProcessorTest.java | 203 Capture<HashMap<String, Metric>> capture = new Capture<>(); in testRunLevelPostProcessing() local 204 mMockListener.testRunEnded(EasyMock.anyLong(), EasyMock.capture(capture)); in testRunLevelPostProcessing() 210 HashMap<String, Metric> finalMetrics = capture.getValue(); in testRunLevelPostProcessing() 233 Capture<HashMap<String, Metric>> capture = new Capture<>(); in testRunLogsPostProcessing_processRunLogs() local 234 mMockListener.testRunEnded(EasyMock.anyLong(), EasyMock.capture(capture)); in testRunLogsPostProcessing_processRunLogs() 245 HashMap<String, Metric> finalMetrics = capture.getValue(); in testRunLogsPostProcessing_processRunLogs() 270 Capture<HashMap<String, Metric>> capture = new Capture<>(); in testRunLevelPostProcessing_processRunLogsOnly() local 271 mMockListener.testRunEnded(EasyMock.anyLong(), EasyMock.capture(capture)); in testRunLevelPostProcessing_processRunLogsOnly() 299 HashMap<String, Metric> finalMetrics = capture.getValue(); in testRunLevelPostProcessing_processRunLogsOnly() 315 Capture<HashMap<String, Metric>> capture = new Capture<>(); in testPerTestPostProcessing() local [all …]
|
D | AveragePostProcessorTest.java | 57 mMockListener.testRunEnded(EasyMock.eq(15L), EasyMock.capture(captured)); in testAverage_double() 80 mMockListener.testRunEnded(EasyMock.eq(15L), EasyMock.capture(captured)); in testAverage_long()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | FilePullerLogCollectorTest.java | 76 Capture<HashMap<String, Metric>> capture = new Capture<>(); in testSkipStub() local 79 mMockListener.testEnded(EasyMock.eq(test), EasyMock.eq(50L), EasyMock.capture(capture)); in testSkipStub() 85 HashMap<String, Metric> metricCaptured = capture.getValue(); in testSkipStub() 105 Capture<HashMap<String, Metric>> capture = new Capture<>(); in testPullAndLog() local 113 mMockListener.testEnded(EasyMock.eq(test), EasyMock.eq(50L), EasyMock.capture(capture)); in testPullAndLog() 119 HashMap<String, Metric> metricCaptured = capture.getValue(); in testPullAndLog() 141 Capture<HashMap<String, Metric>> capture = new Capture<>(); in testSkipTestCollection() local 143 mMockListener.testEnded(EasyMock.eq(test), EasyMock.eq(50L), EasyMock.capture(capture)); in testSkipTestCollection() 149 HashMap<String, Metric> metricCaptured = capture.getValue(); in testSkipTestCollection() 169 Capture<HashMap<String, Metric>> capture = new Capture<>(); in testPostProcessFiles() local [all …]
|
D | DumpHeapCollectorTest.java | 123 .testLog(dataNameCaptor.capture(), dataTypeCaptor.capture(), inputCaptor.capture()); in testCollect_success() 158 .testLog(dataNameCaptor.capture(), dataTypeCaptor.capture(), inputCaptor.capture()); in testCollectSuccess_thresholdTooHigh() 180 .testLog(dataNameCaptor.capture(), dataTypeCaptor.capture(), inputCaptor.capture()); in testCollectNoError_processNotFound()
|
D | BaseDeviceMetricCollectorTest.java | 349 .testEnded(Mockito.eq(test), Mockito.anyLong(), mCapturedMetrics.capture()); in verifyFiltering() 453 .testEnded(Mockito.eq(test1), Mockito.anyLong(), mCapturedMetrics.capture()); in testActualRunAnnotated_include() 457 .testEnded(Mockito.eq(test2), Mockito.anyLong(), mCapturedMetrics.capture()); in testActualRunAnnotated_include() 462 .testEnded(Mockito.eq(test3), Mockito.anyLong(), mCapturedMetrics.capture()); in testActualRunAnnotated_include() 506 .testEnded(Mockito.eq(test1), Mockito.anyLong(), mCapturedMetrics.capture()); in testActualRunAnnotated_exclude() 510 .testEnded(Mockito.eq(test2), Mockito.anyLong(), mCapturedMetrics.capture()); in testActualRunAnnotated_exclude() 515 .testEnded(Mockito.eq(test3), Mockito.anyLong(), mCapturedMetrics.capture()); in testActualRunAnnotated_exclude() 567 .testEnded(Mockito.eq(test), Mockito.anyLong(), mCapturedMetrics.capture()); in testOnTestEndWithTestDescription()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | GoogleBenchmarkResultParserTest.java | 95 (TestDescription) EasyMock.anyObject(), EasyMock.capture(capture1)); in testParseSimpleFile() 97 (TestDescription) EasyMock.anyObject(), EasyMock.capture(capture2)); in testParseSimpleFile() 99 (TestDescription) EasyMock.anyObject(), EasyMock.capture(capture3)); in testParseSimpleFile() 153 Capture<HashMap<String, Metric>> capture = new Capture<>(); in testParseSimpleFile_twoTests() local 155 (TestDescription) EasyMock.anyObject(), EasyMock.capture(capture)); in testParseSimpleFile_twoTests() 165 HashMap<String, Metric> results = capture.getValue(); in testParseSimpleFile_twoTests() 215 Capture<String> capture = new Capture<>(); in testParse_benchmarkError() local 217 (TestDescription) EasyMock.anyObject(), EasyMock.capture(capture)); in testParse_benchmarkError() 228 capture.getValue()); in testParse_benchmarkError() 255 Capture<HashMap<String, Metric>> capture = new Capture<>(); in testParseSimpleFile_withWarning() local [all …]
|
D | DeviceTestCaseTest.java | 203 Capture<TestDescription> capture = new Capture<>(); in testRun_checkAnnotation() local 204 listener.testStarted(EasyMock.capture(capture)); in testRun_checkAnnotation() 206 EasyMock.capture(capture), EasyMock.<HashMap<String, Metric>>anyObject()); in testRun_checkAnnotation() 207 listener.testStarted(EasyMock.capture(capture)); in testRun_checkAnnotation() 209 EasyMock.capture(capture), EasyMock.<HashMap<String, Metric>>anyObject()); in testRun_checkAnnotation() 216 List<TestDescription> descriptions = capture.getValues(); in testRun_checkAnnotation()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | PushFilePreparerTest.java | 413 Capture<Set<String>> capture = new Capture<>(); in testPush_abiDirectory_noBitness() local 418 EasyMock.capture(capture))) in testPush_abiDirectory_noBitness() 425 Set<String> capValue = capture.getValue(); in testPush_abiDirectory_noBitness() 447 Capture<Set<String>> capture = new Capture<>(); in testPush_abiDirectory_noBitness_withModule() local 455 EasyMock.capture(capture))) in testPush_abiDirectory_noBitness_withModule() 462 Set<String> capValue = capture.getValue(); in testPush_abiDirectory_noBitness_withModule() 485 Capture<Set<String>> capture = new Capture<>(); in testPush_abiDirectory() local 490 EasyMock.capture(capture))) in testPush_abiDirectory() 497 Set<String> capValue = capture.getValue(); in testPush_abiDirectory() 524 Capture<Set<String>> capture = new Capture<>(); in testPush_moduleName_dirs() local [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | JUnitToInvocationResultForwarderTest.java | 118 Capture<TestDescription> capture = new Capture<>(); in testStartTest_annotations() local 119 mListener.testStarted(EasyMock.capture(capture)); in testStartTest_annotations() 125 TestDescription desc = capture.getValue(); in testStartTest_annotations()
|
D | LogcatCrashResultForwarderTest.java | 100 mMockListener.testRunFailed(EasyMock.capture(captured)); in testCaptureTestCrash_oneCrashingLogcat() 145 mMockListener.testRunFailed(EasyMock.capture(captured)); in testCaptureTestCrash_oneCrashingLogcatAfterTestEnded() 193 mMockListener.testRunFailed(EasyMock.capture(captured)); in testCaptureTestCrash_duplicateStack()
|
D | JsonHttpTestResultReporterTest.java | 72 verify(mReporter).postResults(jsonCaptor.capture()); in testSkipFailedRuns_notSet() 88 verify(mReporter).postResults(jsonCaptor.capture()); in testSkipFailedRuns_set()
|
D | SubprocessResultsReporterTest.java | 133 mMockListener.testRunFailed(EasyMock.capture(captured)); in testPrintEvent_printToSocket() 172 mMockListener.testRunFailed(EasyMock.capture(captured)); in testPrintEvent_printToSocket_StructuredFailures() 173 mMockListener.invocationFailed(EasyMock.capture(invocationFailureCaptured)); in testPrintEvent_printToSocket_StructuredFailures()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ddmlib/ |
D | InstrumentationResultProtoParserTest.java | 235 mMockListener.testEnded(EasyMock.eq(td), EasyMock.capture(captureTestMetrics)); in testOneTestSuccessWithMetrics() 273 mMockListener1.testEnded(EasyMock.eq(td), EasyMock.capture(captureListener1Metrics)); in testOneTestSuccessWithMultipleListeners() 278 mMockListener2.testEnded(EasyMock.eq(td), EasyMock.capture(captureListener2Metrics)); in testOneTestSuccessWithMultipleListeners() 316 mMockListener.testRunEnded(EasyMock.eq(27013L), EasyMock.capture(captureRunMetrics)); in testOneRunSuccessWithMetrics() 339 mMockListener.testEnded(EasyMock.eq(td), EasyMock.capture(captureTestMetrics)); in testOneTestAndRunSuccessWithMetrics() 340 mMockListener.testRunEnded(EasyMock.eq(27013L), EasyMock.capture(captureRunMetrics)); in testOneTestAndRunSuccessWithMetrics() 374 mMockListener.testEnded(EasyMock.eq(td1), EasyMock.capture(captureTest1Metrics)); in testMultipleTestSuccessWithMetrics() 376 mMockListener.testEnded(EasyMock.eq(td2), EasyMock.capture(captureTest2Metrics)); in testMultipleTestSuccessWithMetrics() 377 mMockListener.testRunEnded(EasyMock.eq(27013L), EasyMock.capture(captureRunMetrics)); in testMultipleTestSuccessWithMetrics() 413 mMockListener.testEnded(EasyMock.eq(td), EasyMock.capture(captureTestMetrics)); in testOneTestFailure() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/ |
D | ClusterDeviceMonitorTest.java | 93 Capture<ClusterHostEvent> capture = new Capture<>(); in testDispatch() local 94 mHostEventUploader.postEvent(EasyMock.capture(capture)); in testDispatch() 99 ClusterHostEvent hostEvent = capture.getValue(); in testDispatch()
|
D | ClusterCommandSchedulerTest.java | 389 Capture<JSONObject> capture = new Capture<>(); 405 EasyMock.capture(capture))) 412 JSONArray deviceInfos = capture.getValue().getJSONArray("device_infos"); 413 JSONArray clusterIds = capture.getValue().getJSONArray("next_cluster_ids"); 448 Capture<JSONObject> capture = new Capture<>(); 464 EasyMock.capture(capture))) 643 Capture<ClusterCommandEvent> capture = new Capture<>(); 644 mMockEventUploader.postEvent(EasyMock.capture(capture)); 668 ClusterCommandEvent capturedEvent = capture.getValue(); 715 Capture<ClusterCommandEvent> capture = new Capture<>(); [all …]
|
/tools/tradefederation/contrib/src/com/android/wireless/tests/ |
D | WifiStressTest.java | 312 List<List<String>> capture = new ArrayList<>(1); in parseOutputFile() local 313 String key = test.mPatternMap.retrieve(capture, line); in parseOutputFile() 317 test.mTestName, key, capture.toString()); in parseOutputFile() 321 int count = Integer.parseInt(capture.get(0).get(0)); in parseOutputFile() 322 int total = Integer.parseInt(capture.get(0).get(1)); in parseOutputFile() 329 runMetrics.put(key, capture.get(0).get(0)); in parseOutputFile()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/ |
D | GceSshTunnelMonitorTest.java | 112 ArgumentCaptor<String> capture = ArgumentCaptor.forClass(String.class); in testInitGce() local 123 Mockito.anyLong(), Mockito.anyLong(), Mockito.anyInt(), capture.capture()); in testInitGce() 124 List<String> args = capture.getAllValues(); in testInitGce()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/mobly/ |
D | MoblyYamlResultParserTest.java | 152 .testRunStarted(mRunNameCaptor.capture(), mCountCaptor.capture()); in setUpArgumentCaptors() 158 .testStarted(mStartedDescCaptor.capture(), mBeginTimeCaptor.capture()); in setUpArgumentCaptors() 164 .testFailed(mFailedDescCaptor.capture(), mFailureDescriptionCaptor.capture()); in setUpArgumentCaptors() 170 .testEnded(mEndDescCaptor.capture(), mEndTimeCaptor.capture(), any(Map.class)); in setUpArgumentCaptors() 175 .testRunEnded(mElapseTimeCaptor.capture(), any(Map.class)); in setUpArgumentCaptors()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | MediaPlayerStressTest.java | 176 List<List<String>> capture = new ArrayList<>(1); in parseOutputFile() local 177 String key = mPatternMap.retrieve(capture, line); in parseOutputFile() 180 key, capture.toString())); in parseOutputFile() 188 runMetrics.put(key, capture.get(0).get(0)); in parseOutputFile()
|
D | VideoEditingPerformanceTest.java | 220 List<List<String>> capture = new ArrayList<>(1); in parseOutputFile() local 221 String key = mPatternMap.retrieve(capture, line); in parseOutputFile() 224 capture.toString())); in parseOutputFile() 232 runMetrics.put(key, capture.get(0).get(0)); in parseOutputFile()
|
D | CameraLatencyTest.java | 248 List<List<String>> capture = new ArrayList<>(1); in parseOutputFile() local 249 String key = test.mPatternMap.retrieve(capture, line); in parseOutputFile() 252 capture.toString()); in parseOutputFile() 261 runMetrics.put(key, capture.get(0).get(0)); in parseOutputFile()
|
D | CameraStressTest.java | 286 List<List<String>> capture = new ArrayList<>(1); in parseOutputFile() local 287 String pattern = test.mPatternMap.retrieve(capture, line); in parseOutputFile() 291 countExpected = Integer.parseInt(capture.get(0).get(0)); in parseOutputFile() 294 countActual = Integer.parseInt(capture.get(0).get(0)); in parseOutputFile() 315 test.mTestName, key, capture.toString())); in parseOutputFile()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/proto/ |
D | ProtoResultParserTest.java | 149 Capture<LogFile> capture = new Capture<>(); in testEvents() local 162 mMockListener.logAssociation(EasyMock.eq("subprocess-log1"), EasyMock.capture(capture)); in testEvents() 173 mMockListener.invocationFailed(EasyMock.capture(captureInvocFailure)); in testEvents() 226 LogFile capturedFile = capture.getValue(); in testEvents() 262 mMockListener.invocationFailed(EasyMock.capture(captureInvocFailure)); in testEvents_invocationFailure() 303 mMockListener.invocationFailed(EasyMock.capture(captureInvocFailure)); in testEvents_invocationFailure_errorNotSet() 563 Capture<LogFile> capture = new Capture<>(); in testEvents_subprocess() local 574 mMockListener.logAssociation(EasyMock.eq("subprocess-log1"), EasyMock.capture(capture)); in testEvents_subprocess() 633 LogFile capturedFile = capture.getValue(); in testEvents_subprocess()
|
D | StreamProtoResultReporterTest.java | 221 Capture<FailureDescription> capture = new Capture<>(); in testStream_incompleteModule() local 230 mMockListener.testRunFailed(EasyMock.capture(capture)); in testStream_incompleteModule() 249 capture.getValue().getErrorMessage()); in testStream_incompleteModule()
|
/tools/tradefederation/contrib/tests/src/com/android/regression/tests/ |
D | DetectRegressionTest.java | 153 runResultCaptor.capture(), in testRunRegressionDetection() 154 testResultCaptor.capture()); in testRunRegressionDetection()
|