Home
last modified time | relevance | path

Searched refs:times (Results 1 – 25 of 57) sorted by relevance

123

/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DBaseDeviceMetricCollectorTest.java20 import static org.mockito.Mockito.times;
83 Mockito.verify(mMockListener, times(1)).invocationStarted(Mockito.any()); in testInitAndForwarding()
84 Mockito.verify(mMockListener, times(1)).testRunStarted("testRun", 1); in testInitAndForwarding()
85 Mockito.verify(mMockListener, times(1)).testStarted(Mockito.eq(test), Mockito.anyLong()); in testInitAndForwarding()
86 Mockito.verify(mMockListener, times(1)) in testInitAndForwarding()
88 Mockito.verify(mMockListener, times(1)).testFailed(test, "trace"); in testInitAndForwarding()
89 Mockito.verify(mMockListener, times(1)).testAssumptionFailure(test, "trace"); in testInitAndForwarding()
90 Mockito.verify(mMockListener, times(1)).testIgnored(test); in testInitAndForwarding()
91 Mockito.verify(mMockListener, times(1)) in testInitAndForwarding()
96 Mockito.verify(mMockListener, times(1)).testRunFailed("test run failed"); in testInitAndForwarding()
[all …]
DAtraceCollectorTest.java106 EasyMock.expectLastCall().times(1); in testStartsAtraceOnSetupNoOptions()
128 EasyMock.expectLastCall().times(1); in testStartsAtraceOnSetupNoCompression()
154 EasyMock.expectLastCall().times(1); in testStartsAtraceOnSetupCategoriesOption()
179 EasyMock.expectLastCall().times(1); in testStartsAtraceOnSetupMultipleCategoriesOption()
229 EasyMock.expectLastCall().times(1); in testStopsAtraceDuringTearDown()
235 .times(1); in testStopsAtraceDuringTearDown()
258 EasyMock.expectLastCall().times(1); in testPreserveFileOnDeviceOption()
301 EasyMock.expectLastCall().times(1); in testUploadsLogWithCompression()
325 EasyMock.expectLastCall().times(1); in testUploadsLogWithoutCompression()
362 EasyMock.expectLastCall().times(num_devices); in testMultipleDeviceBehavior()
[all …]
DTraceCmdCollectorTest.java91 EasyMock.expectLastCall().times(1); in testStartsAtraceAndTraceCmdOptions()
99 EasyMock.expectLastCall().times(1); in testStartsAtraceAndTraceCmdOptions()
123 EasyMock.expectLastCall().times(1); in testStartsAtraceAndTraceCmdFails()
158 EasyMock.expectLastCall().times(1); in testStopsTraceCmdDuringTearDown()
185 EasyMock.expectLastCall().times(1); in testUploadslogWithRawKernelBuffer()
DDumpHeapCollectorTest.java22 import static org.mockito.Mockito.times;
131 verify(mListener, times(2)) in testCollect_success()
166 verify(mListener, times(0)) in testCollectSuccess_thresholdTooHigh()
191 verify(mListener, times(0)) in testCollectNoError_processNotFound()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/
DTestsPoolPollerTest.java108 Mockito.verify(mListener, Mockito.times(numTests)) in testPollingRun()
110 Mockito.verify(mListener, Mockito.times(numTests)) in testPollingRun()
139 Mockito.verify(mListener, Mockito.times(numTests)) in testRun_runtimeException()
141 Mockito.verify(mListener, Mockito.times(numTests)) in testRun_runtimeException()
170 Mockito.verify(mListener, Mockito.times(numTests)) in testRun_deviceUnresponsive()
172 Mockito.verify(mListener, Mockito.times(numTests)) in testRun_deviceUnresponsive()
208 Mockito.verify(mListener, Mockito.times(0)) in testRun_dnae()
210 Mockito.verify(mListener, Mockito.times(0)) in testRun_dnae()
243 Mockito.verify(mListener, Mockito.times(numTests)) in testRun_dnae_NotLastDevice()
245 Mockito.verify(mListener, Mockito.times(numTests)).testStarted(Mockito.any()); in testRun_dnae_NotLastDevice()
[all …]
DShardHelperTest.java129 Mockito.verify(mRescheduler, Mockito.times(3)) in testSplitWithShardCount()
155 Mockito.verify(mRescheduler, Mockito.times(5)) in testSplit_noShardCount()
189 Mockito.verify(mRescheduler, Mockito.times(5)) in testSplitWithShardCount_notEnoughTest()
232 Mockito.verify(mRescheduler, Mockito.times(3)) in testCloneStatusChecker()
279 Mockito.verify(mRescheduler, Mockito.times(3)) in testCloneMetricCollector()
347 Mockito.verify(mRescheduler, Mockito.times(2)) in testClone_withKeystore()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DPythonUnitTestRunnerTest.java179 .times(1); in getMockRunUtil()
185 EasyMock.expectLastCall().times(1); in setMockListenerExpectTestPass()
187 EasyMock.expectLastCall().times(1); in setMockListenerExpectTestPass()
191 EasyMock.expectLastCall().times(1); in setMockListenerExpectTestPass()
196 EasyMock.expectLastCall().times(1); in setMockListenerExpectTestPass()
199 EasyMock.expectLastCall().times(1); in setMockListenerExpectTestPass()
203 EasyMock.expectLastCall().times(1); in setMockListenerExpectTestPass()
DVersionedTfLauncherTest.java143 EasyMock.expect(mMockBuildInfo.getBuildId()).andReturn("FAKEID").times(2); in testRun_singleDevice()
146 EasyMock.expect(mMockTestDevice.getIDevice()).andReturn(mMockIDevice).times(2); in testRun_singleDevice()
147 EasyMock.expect(mMockTestDevice.getSerialNumber()).andReturn(FAKE_SERIAL).times(1); in testRun_singleDevice()
150 EasyMock.expectLastCall().times(3); in testRun_singleDevice()
200 EasyMock.expect(mMockBuildInfo.getBuildId()).andReturn("FAKEID").times(2); in testRun_nullDevice()
202 EasyMock.expect(mMockTestDevice.getIDevice()).andReturn(mMockIDevice).times(1); in testRun_nullDevice()
205 EasyMock.expectLastCall().times(3); in testRun_nullDevice()
252 EasyMock.expect(mMockBuildInfo.getBuildId()).andReturn("FAKEID").times(2); in testRun_DeviceNoPreSetup()
255 EasyMock.expect(mMockTestDevice.getIDevice()).andReturn(new StubDevice("serial1")).times(2); in testRun_DeviceNoPreSetup()
260 EasyMock.expectLastCall().times(3); in testRun_DeviceNoPreSetup()
[all …]
DTfTestLauncherTest.java117 EasyMock.expect(mMockBuildInfo.getBuildBranch()).andReturn(BUILD_BRANCH).times(2); in testRun()
118 EasyMock.expect(mMockBuildInfo.getBuildFlavor()).andReturn(BUILD_FLAVOR).times(2); in testRun()
121 EasyMock.expect(mMockBuildInfo.getBuildId()).andReturn(BUILD_ID).times(3); in testRun()
124 EasyMock.expectLastCall().times(3); in testRun()
215 EasyMock.expect(mMockBuildInfo.getBuildBranch()).andReturn(BUILD_BRANCH).times(2); in testRunCoverage()
216 EasyMock.expect(mMockBuildInfo.getBuildFlavor()).andReturn(BUILD_FLAVOR).times(2); in testRunCoverage()
217 EasyMock.expect(mMockBuildInfo.getBuildId()).andReturn(BUILD_ID).times(2); in testRunCoverage()
DAndroidJUnitTestTest.java203 .times(2); in testRun_includeFile()
228 .times(2); in testRun_excludeFile()
254 EasyMock.<String>anyObject())).andReturn(Boolean.TRUE).times(2); in testRun_testFileAndFilters()
257 .times(4); in testRun_testFileAndFilters()
322 .times(2); in testRun_setTestFileOptions()
325 .times(4); in testRun_setTestFileOptions()
DInstrumentationSerialTestTest.java134 EasyMock.expectLastCall().times(expectedAttempts); in testRun_runFailure()
136 EasyMock.expectLastCall().times(expectedAttempts); in testRun_runFailure()
138 EasyMock.expectLastCall().times(expectedAttempts - 1); in testRun_runFailure()
DGoogleBenchmarkTestTest.java102 .andReturn("").times(2); in testRun()
129 EasyMock.expectLastCall().times(2); in testRun()
184 .andReturn("").times(2); in testRun_withModuleName()
211 EasyMock.expectLastCall().times(2); in testRun_withModuleName()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/metricregression/
DMetricsTest.java21 import static org.mockito.Mockito.times;
91 verify(mMetrics, times(2)).error(anyString()); in testValidate()
122 verify(mMetrics, times(1)).warn("Run metric \"metric2\" only in before-patch run."); in testCrossValidate()
123 verify(mMetrics, times(1)).warn("Run metric \"metric5\" only in after-patch run."); in testCrossValidate()
124 verify(mMetrics, times(1)) in testCrossValidate()
129 verify(mMetrics, times(1)) in testCrossValidate()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DAppSetupTest.java21 import static org.mockito.Mockito.times;
172 Mockito.verify(mMockAaptParser, times(1)).getPackageName(); in testSetup_noPackageName()
226 EasyMock.expect(mMockDevice.getApiLevel()).andReturn(21).times(2); in testSetup_checkMinSdk_apiLow()
233 Mockito.verify(mMockAaptParser, times(2)).getSdkVersion(); in testSetup_checkMinSdk_apiLow()
266 Mockito.verify(mMockAaptParser, times(2)).getPackageName(); in testSetup_checkMinSdk_apiOk()
267 Mockito.verify(mMockAaptParser, times(1)).getSdkVersion(); in testSetup_checkMinSdk_apiOk()
316 EasyMock.expect(mMockDevice.getUninstallablePackageNames()).andReturn(res).times(2); in testSetup_uninstallAll()
317 EasyMock.expect(mMockDevice.uninstallPackage("com.fake1")).andReturn(null).times(2); in testSetup_uninstallAll()
334 EasyMock.expect(mMockDevice.getUninstallablePackageNames()).andReturn(res).times(4); in testSetup_uninstallAll_fails()
335 EasyMock.expect(mMockDevice.uninstallPackage("com.fake1")).andReturn("error").times(3); in testSetup_uninstallAll_fails()
DSdkAvdPreparerTest.java121 .andReturn("").times(3); in testSetUp()
123 EasyMock.expectLastCall().times(3); in testSetUp()
149 .andReturn("").times(3); in testSetUp_noAvdName()
151 EasyMock.expectLastCall().times(3); in testSetUp_noAvdName()
153 EasyMock.expect(mMockIDevice.getAvdName()).andReturn("").times(2); in testSetUp_noAvdName()
DInstallApkSetupTest.java78 EasyMock.eq(true))).andReturn(null).times(2); in testSetup()
115 testFile.getAbsolutePath())).times(1); in testInstallFailureNoThrow()
133 testFile.getAbsolutePath())).times(1); in testInstallFailureThrow()
DRunCommandTargetPreparerTest.java70 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn("SERIAL").times(2); in testSetUp()
90 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn("SERIAL").times(2); in testSetUp_withTimeout()
132 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn("SERIAL").times(1); in testTearDown()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DShardMasterResultForwarderTest.java20 import static org.mockito.Mockito.times;
171 Mockito.verify(mMockLogSaver, times(1)) in testForward_Sharded()
173 Mockito.verify(mMockLogListener, times(1)).invocationStarted(Mockito.eq(main)); in testForward_Sharded()
174 Mockito.verify(mMockLogListener, times(1)) in testForward_Sharded()
177 Mockito.verify(mMockLogListener, times(1)) in testForward_Sharded()
179 Mockito.verify(mMockLogListener, times(1)).invocationEnded(500L); in testForward_Sharded()
DTestInvocationMultiTest.java145 .times(2); in testRunBuildProvider_oneMiss()
147 EasyMock.expect(mMockConfig.getLogOutput()).andReturn(mMockLogger).times(4); in testRunBuildProvider_oneMiss()
200 .times(2); in testRunBuildProvider_oneThrow()
208 EasyMock.expectLastCall().times(2); in testRunBuildProvider_oneThrow()
213 EasyMock.expectLastCall().times(2); in testRunBuildProvider_oneThrow()
278 .times(2); in testRunBuildProvider_cleanUpThrow()
286 EasyMock.expectLastCall().times(2); in testRunBuildProvider_cleanUpThrow()
291 EasyMock.expectLastCall().times(2); in testRunBuildProvider_cleanUpThrow()
DTestInvocationTest.java336 EasyMock.expect(mMockDevice.getLogcat()).andReturn(EMPTY_STREAM_SOURCE).times(2); in testInvoke_buildFailed()
338 EasyMock.expectLastCall().times(2); in testInvoke_buildFailed()
379 EasyMock.expectLastCall().times(1); in testInvoke_noBuildRetry()
530 EasyMock.expect(mMockDevice.getLogcat()).andReturn(EMPTY_STREAM_SOURCE).times(3); in testInvoke_resume()
532 EasyMock.expectLastCall().times(3); in testInvoke_resume()
582 EasyMock.expectLastCall().times(4); in testInvoke_resume()
593 EasyMock.expectLastCall().times(2); in testInvoke_resume()
599 EasyMock.expect(mMockDevice.getLogcat()).andReturn(EMPTY_STREAM_SOURCE).times(3); in testInvoke_resume()
601 EasyMock.expectLastCall().times(3); in testInvoke_resume()
647 EasyMock.expectLastCall().times(3); in testInvoke_resume()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DSubprocessTestResultsParserTest.java91 EasyMock.expectLastCall().times(4); in testParse_randomEvents()
96 EasyMock.expectLastCall().times(4); in testParse_randomEvents()
99 EasyMock.expectLastCall().times(1); in testParse_randomEvents()
130 EasyMock.expectLastCall().times(4); in testParse_invalidEventOrder()
135 EasyMock.expectLastCall().times(3); in testParse_invalidEventOrder()
137 EasyMock.expectLastCall().times(1); in testParse_invalidEventOrder()
140 EasyMock.expectLastCall().times(1); in testParse_invalidEventOrder()
170 EasyMock.expectLastCall().times(1); in testParse_testNotStarted()
205 EasyMock.expectLastCall().times(1); in testParse_noTimeStamp()
277 EasyMock.expectLastCall().times(1); in testParser_receiveFromSocket()
DMetricsXmlParserTest.java23 import static org.mockito.Mockito.times;
110 verify(mMetrics, times(0)).addTestMetric(any(), anyString(), anyString()); in testSimpleParse()
179 verify(mMetrics, times(0)).addRunMetric("metric3", "8.8"); in testParseBlacklist()
180 verify(mMetrics, times(0)).addTestMetric(testId0, "metric1", "1.1"); in testParseBlacklist()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DRemoteAndroidDeviceTest.java101 .andReturn(adbResult).times(RemoteAndroidDevice.MAX_RETRIES); in testAdbConnect_fails()
103 EasyMock.expectLastCall().times(RemoteAndroidDevice.MAX_RETRIES); in testAdbConnect_fails()
119 .andReturn(adbResult).times(RemoteAndroidDevice.MAX_RETRIES * 2); in testAdbConnect_fails_confirmation()
121 EasyMock.expectLastCall().times(RemoteAndroidDevice.MAX_RETRIES); in testAdbConnect_fails_confirmation()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DZFileNotificationTest.java393 Mockito.verify(ext, Mockito.times(0)).entriesWritten(); in notifyOnceEntriesWritten()
396 Mockito.verify(ext, Mockito.times(1)).entriesWritten(); in notifyOnceEntriesWritten()
415 Mockito.verify(ext, Mockito.times(0)).entriesWritten(); in notifyTwiceEntriesWrittenIfCdChanged()
418 Mockito.verify(ext, Mockito.times(2)).entriesWritten(); in notifyTwiceEntriesWrittenIfCdChanged()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandSchedulerTest.java289 EasyMock.expectLastCall().times(2); in testRun_dryRun()
367 private void setExpectedInvokeCalls(int times) throws Throwable { in setExpectedInvokeCalls() argument
371 EasyMock.expectLastCall().times(times); in setExpectedInvokeCalls()
381 private Object waitForExpectedInvokeCalls(final int times) throws Throwable { in waitForExpectedInvokeCalls() argument
388 if (times == mCalls) { in waitForExpectedInvokeCalls()
630 EasyMock.expectLastCall().times(3); in testAddCommandFile_reload()
679 EasyMock.expectLastCall().times(2); in testAddCommandFile_twice()
727 private void setCreateConfigExpectations(String[] args, int times) in setCreateConfigExpectations() argument
734 .times(times); in setCreateConfigExpectations()

123