Home
last modified time | relevance | path

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

1234

/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.java112 EasyMock.expectLastCall().times(1); in testStartsAtraceOnSetupNoOptions()
134 EasyMock.expectLastCall().times(1); in testStartsAtraceOnSetupNoCompression()
160 EasyMock.expectLastCall().times(1); in testStartsAtraceOnSetupCategoriesOption()
185 EasyMock.expectLastCall().times(1); in testStartsAtraceOnSetupMultipleCategoriesOption()
235 EasyMock.expectLastCall().times(1); in testStopsAtraceDuringTearDown()
262 EasyMock.expectLastCall().times(1); in testPreserveFileOnDeviceOption()
305 EasyMock.expectLastCall().times(1); in testUploadsLogWithCompression()
329 EasyMock.expectLastCall().times(1); in testUploadsLogWithoutCompression()
366 EasyMock.expectLastCall().times(num_devices); in testMultipleDeviceBehavior()
398 .times(1); in testExecutesPostProcessPar()
[all …]
DRuntimeRestartCollectorTest.java24 import static org.mockito.Mockito.times;
135 verify(mCollector, times(1)) in testStatsdInteractions_singleDevice()
139 verify(mCollector, times(1)).getStatsdMetadata(eq(testDevice)); in testStatsdInteractions_singleDevice()
142 verify(mCollector, times(1)).getEventMetricData(eq(testDevice), eq(CONFIG_ID_1)); in testStatsdInteractions_singleDevice()
143 verify(mCollector, times(1)).removeConfig(eq(testDevice), eq(CONFIG_ID_1)); in testStatsdInteractions_singleDevice()
144 verify(mCollector, times(2)).getStatsdMetadata(eq(testDevice)); in testStatsdInteractions_singleDevice()
171 verify(mCollector, times(1)) in testStatsdInteractions_multiDevice()
175 verify(mCollector, times(1)) in testStatsdInteractions_multiDevice()
179 verify(mCollector, times(1)).getStatsdMetadata(eq(testDevice1)); in testStatsdInteractions_multiDevice()
180 verify(mCollector, times(1)).getStatsdMetadata(eq(testDevice2)); in testStatsdInteractions_multiDevice()
[all …]
DRebootReasonCollectorTest.java25 import static org.mockito.Mockito.times;
85 verify(mCollector, times(1)) in testStatsdInteractions_singleDevice()
89 verify(mCollector, times(1)).getEventMetricData(eq(testDevice), eq(CONFIG_ID_1)); in testStatsdInteractions_singleDevice()
90 verify(mCollector, times(1)).removeConfig(eq(testDevice), eq(CONFIG_ID_1)); in testStatsdInteractions_singleDevice()
167 verify(mCollector, times(1)) in testStatsdInteractions_multiDevice()
171 verify(mCollector, times(1)) in testStatsdInteractions_multiDevice()
175 verify(mCollector, times(1)).getEventMetricData(eq(testDevice1), eq(CONFIG_ID_1)); in testStatsdInteractions_multiDevice()
176 verify(mCollector, times(1)).getEventMetricData(eq(testDevice2), eq(CONFIG_ID_2)); in testStatsdInteractions_multiDevice()
177 verify(mCollector, times(1)).removeConfig(eq(testDevice1), eq(CONFIG_ID_1)); in testStatsdInteractions_multiDevice()
178 verify(mCollector, times(1)).removeConfig(eq(testDevice2), eq(CONFIG_ID_2)); in testStatsdInteractions_multiDevice()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/binary/
DExecutableHostTestTest.java24 import static org.mockito.Mockito.times;
76 verify(mMockListener, times(0)).testRunStarted(any(), anyInt()); in testRunHostExecutable_noBinaries()
87 verify(mMockListener, Mockito.times(1)).testRunStarted(eq("test"), eq(0)); in testRunHostExecutable_doesNotExists()
88 verify(mMockListener, Mockito.times(1)) in testRunHostExecutable_doesNotExists()
90 verify(mMockListener, Mockito.times(1)) in testRunHostExecutable_doesNotExists()
108 verify(mMockListener, Mockito.times(1)).testRunStarted(eq(tmpBinary.getName()), eq(1)); in testRunHostExecutable()
109 verify(mMockListener, Mockito.times(0)).testRunFailed(any()); in testRunHostExecutable()
110 verify(mMockListener, Mockito.times(0)).testFailed(any(), any()); in testRunHostExecutable()
111 verify(mMockListener, Mockito.times(1)) in testRunHostExecutable()
138 verify(mMockListener, Mockito.times(1)).testRunStarted(eq(tmpBinary.getName()), eq(1)); in testRunHostExecutable_dnae()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DAoaTargetPreparerTest.java23 import static org.mockito.Mockito.times;
76 verify(mUsb, times(1)).getAoaDevice(any(), eq(Duration.ofSeconds(1L))); in testSetUp()
77 verify(mPreparer, times(1)).execute(eq(mDevice), eq("wake")); in testSetUp()
78 verify(mTestDevice, times(1)).waitForDeviceOnline(); in testSetUp()
106 verify(mPreparer, times(1)).execute(eq(mDevice), eq("wake")); in testSetUp_skipDeviceCheck()
114 verify(mDevice, times(1)).click(eq(new Point(1, 23))); in testClick()
122 verify(mDevice, times(1)).longClick(eq(new Point(23, 4))); in testLongClick()
130 verify(mDevice, times(1)).scroll(eq(new Point(3, 45)), eq(new Point(6, 78))); in testScroll()
138 verify(mDevice, times(1)).fling(eq(new Point(45, 6)), eq(new Point(78, 9))); in testFling()
146 verify(mDevice, times(1)).drag(eq(new Point(5, 67)), eq(new Point(8, 90))); in testDrag()
[all …]
DInstallApexModuleTargetPreparerTest.java22 import static org.mockito.Mockito.times;
174 EasyMock.expectLastCall().times(1); in testSetupSuccess_removeExistingStagedApexSuccess()
176 EasyMock.expectLastCall().times(1); in testSetupSuccess_removeExistingStagedApexSuccess()
178 EasyMock.expectLastCall().times(1); in testSetupSuccess_removeExistingStagedApexSuccess()
217 EasyMock.expectLastCall().times(1); in testSetupSuccess_getActivatedPackageSuccess()
219 EasyMock.expectLastCall().times(1); in testSetupSuccess_getActivatedPackageSuccess()
221 EasyMock.expectLastCall().times(1); in testSetupSuccess_getActivatedPackageSuccess()
243 EasyMock.expectLastCall().times(1); in testSetupFail_getActivatedPackageFail()
245 EasyMock.expectLastCall().times(1); in testSetupFail_getActivatedPackageFail()
247 EasyMock.expectLastCall().times(1); in testSetupFail_getActivatedPackageFail()
[all …]
DSwitchUserTargetPreparerTest.java22 import static org.mockito.Mockito.times;
66 verify(mMockDevice, times(1)).switchUser(11); in testSetUpRunAsPrimary_ifAlreadyInPrimary_switchToPrimary()
80 verify(mMockDevice, times(1)).switchUser(0); in testSetUpRunAsSystem_ifAlreadyInSystem_switchToSystem()
94 verify(mMockDevice, times(1)).switchUser(10); in testSetUpRunAsPrimary_ifNotInPrimary_switchToPrimary()
108 verify(mMockDevice, times(1)).switchUser(USER_SYSTEM); in testSetUpRunAsSystem_ifNotInSystem_switchToSystem()
120 verify(mMockDevice, times(1)).switchUser(0); in testTearDown_ifStartedInSecondary_switchesBackToSecondary()
124 verify(mMockDevice, times(1)).switchUser(10); in testTearDown_ifStartedInSecondary_switchesBackToSecondary()
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()
DUserCleanerTest.java22 import static org.mockito.Mockito.times;
57 verify(mMockDevice, times(1)).switchUser(0); in testRemoveUsers()
60 verify(mMockDevice, times(1)).removeUser(eq(1)); in testRemoveUsers()
61 verify(mMockDevice, times(1)).removeUser(eq(2)); in testRemoveUsers()
62 verify(mMockDevice, times(1)).removeUser(eq(3)); in testRemoveUsers()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/
DTestsPoolPollerTest.java119 Mockito.verify(mListener, Mockito.times(numTests)) in testPollingRun()
121 Mockito.verify(mListener, Mockito.times(numTests)) in testPollingRun()
150 Mockito.verify(mListener, Mockito.times(numTests)) in testRun_runtimeException()
152 Mockito.verify(mListener, Mockito.times(numTests)) in testRun_runtimeException()
181 Mockito.verify(mListener, Mockito.times(numTests)) in testRun_deviceUnresponsive()
183 Mockito.verify(mListener, Mockito.times(numTests)) in testRun_deviceUnresponsive()
220 Mockito.verify(mListener, Mockito.times(0)) in testRun_dnae()
222 Mockito.verify(mListener, Mockito.times(0)) in testRun_dnae()
260 Mockito.verify(mListener, Mockito.times(1)) in testRun_dnae_reportNotExecuted()
263 Mockito.verify(mListener, Mockito.times(1)) in testRun_dnae_reportNotExecuted()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/suite/checker/
DDeviceSettingCheckerTest.java60 .times(2); in testSettingsUnchanged()
63 .times(2); in testSettingsUnchanged()
66 .times(2); in testSettingsUnchanged()
86 .times(2); in testSettingsChanged()
89 .times(2); in testSettingsChanged()
114 .times(2); in testIgnoredSettings()
117 .times(2); in testIgnoredSettings()
141 .times(2); in testSettingsMissedPostExecution()
144 .times(2); in testSettingsMissedPostExecution()
166 .times(2); in testSettingsNewPostExecution()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/sandbox/
DParentSandboxInvocationExecutionTest.java23 import static org.mockito.Mockito.times;
94 verify(mMockFactory, times(0)).createConfigurationFromArgs(Mockito.any()); in testDefaultSkipSetup_tearDown()
95 verify(mMockDevice, times(0)).getIDevice(); in testDefaultSkipSetup_tearDown()
114 verify(mMockFactory, times(1)).createConfigurationFromArgs(Mockito.any()); in testParentConfig()
115 verify(mMockPreparer, times(1)).setUp(Mockito.any(), Mockito.any()); in testParentConfig()
116 verify(mMockPreparer, times(1)).tearDown(Mockito.any(), Mockito.any(), Mockito.any()); in testParentConfig()
117 verify(mMockDevice, times(0)).getIDevice(); in testParentConfig()
140 verify(mMockFactory, times(1)).createConfigurationFromArgs(Mockito.any()); in testParentConfig_errorStage()
141 verify(mMockPreparer, times(1)).setUp(Mockito.any(), Mockito.any()); in testParentConfig_errorStage()
142 verify(mMockPreparer, times(1)).tearDown(Mockito.any(), Mockito.any(), Mockito.any()); in testParentConfig_errorStage()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/retry/
DRetryReschedulerTest.java18 import static org.mockito.Mockito.times;
118 EasyMock.expectLastCall().times(1); in testReschedule_onlyPassTests()
163 EasyMock.expectLastCall().times(1); in testReschedule_carryShardCount()
201 EasyMock.expectLastCall().times(1); in testReschedule_someFailedTests()
240 EasyMock.expectLastCall().times(1); in testReschedule_someAssumptionFailures()
279 EasyMock.expectLastCall().times(1); in testReschedule_mixedFailedAssumptionFailures()
324 EasyMock.expectLastCall().times(1); in testReschedule_excludeFilters()
367 EasyMock.expectLastCall().times(1); in testReschedule_excludeFilters_abi()
405 EasyMock.expectLastCall().times(1); in testReschedule_parameterized_nofail()
427 verify(mSuite, times(1)).setExcludeFilter(excludeRun0_0); in testReschedule_parameterized_nofail()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DPythonUnitTestResultParserTest.java475 expectLastCall().times(1); in testCaptureMultilineTraceback()
477 expectLastCall().times(1); in testCaptureMultilineTraceback()
479 expectLastCall().times(1); in testCaptureMultilineTraceback()
519 expectLastCall().times(1); in setRunListenerChecks()
521 expectLastCall().times(1); in setRunListenerChecks()
566 expectLastCall().times(1); in setTestIdChecks()
569 expectLastCall().times(1); in setTestIdChecks()
574 expectLastCall().times(1); in setTestIdChecks()
576 expectLastCall().times(1); in setTestIdChecks()
584 expectLastCall().times(1); in setTestIdChecks()
[all …]
DVersionedTfLauncherTest.java152 EasyMock.expect(mMockBuildInfo.getBuildId()).andReturn("FAKEID").times(2); in testRun_singleDevice()
156 EasyMock.expect(mMockTestDevice.getIDevice()).andReturn(mMockIDevice).times(2); in testRun_singleDevice()
157 EasyMock.expect(mMockTestDevice.getSerialNumber()).andReturn(FAKE_SERIAL).times(1); in testRun_singleDevice()
160 EasyMock.expectLastCall().times(3); in testRun_singleDevice()
216 EasyMock.expect(mMockBuildInfo.getBuildId()).andReturn("FAKEID").times(2); in testRun_nullDevice()
219 EasyMock.expect(mMockTestDevice.getIDevice()).andReturn(mMockIDevice).times(1); in testRun_nullDevice()
222 EasyMock.expectLastCall().times(3); in testRun_nullDevice()
275 EasyMock.expect(mMockBuildInfo.getBuildId()).andReturn("FAKEID").times(2); in testRun_DeviceNoPreSetup()
279 EasyMock.expect(mMockTestDevice.getIDevice()).andReturn(new StubDevice("serial1")).times(2); in testRun_DeviceNoPreSetup()
284 EasyMock.expectLastCall().times(3); in testRun_DeviceNoPreSetup()
[all …]
DTfTestLauncherTest.java126 EasyMock.expect(mMockBuildInfo.getBuildBranch()).andReturn(BUILD_BRANCH).times(3); in testRun()
127 EasyMock.expect(mMockBuildInfo.getBuildFlavor()).andReturn(BUILD_FLAVOR).times(2); in testRun()
130 EasyMock.expect(mMockBuildInfo.getBuildId()).andReturn(BUILD_ID).times(3); in testRun()
135 EasyMock.expectLastCall().times(3); in testRun()
185 EasyMock.expect(mMockBuildInfo.getBuildBranch()).andReturn(BUILD_BRANCH).times(1); in testTestTmpDirClean_failExtraFile()
208 EasyMock.expect(mMockBuildInfo.getBuildBranch()).andReturn(BUILD_BRANCH).times(1); in testTestTmpDirClean_failMultipleFiles()
230 EasyMock.expect(mMockBuildInfo.getBuildBranch()).andReturn(BUILD_BRANCH).times(2); in testRunCoverage()
231 EasyMock.expect(mMockBuildInfo.getBuildFlavor()).andReturn(BUILD_FLAVOR).times(2); in testRunCoverage()
232 EasyMock.expect(mMockBuildInfo.getBuildId()).andReturn(BUILD_ID).times(2); in testRunCoverage()
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()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/statsd/
DConfigUtilTest.java25 import static org.mockito.Mockito.times;
82 verify(mTestDevice, times(1)).pushFile(any(File.class), anyString()); in testPushDeviceConfig()
83 verify(mTestDevice, times(1)).executeShellV2Command(matches(STATS_CONFIG_UPDATE_MATCHER)); in testPushDeviceConfig()
84 verify(mTestDevice, times(1)).deleteFile(matches(REMOTE_PATH_MATCHER)); in testPushDeviceConfig()
125 verify(mTestDevice, times(1)).pushFile(eq(mConfigFile), anyString()); in testPushBinaryDeviceConfig()
126 verify(mTestDevice, times(1)).executeShellV2Command(matches(STATS_CONFIG_UPDATE_MATCHER)); in testPushBinaryDeviceConfig()
127 verify(mTestDevice, times(1)).deleteFile(matches(REMOTE_PATH_MATCHER)); in testPushBinaryDeviceConfig()
152 verify(mTestDevice, times(1)) in testRemoveDeviceConfig()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DTestInvocationTest.java362 EasyMock.expect(mMockDevice.getLogcat()).andReturn(EMPTY_STREAM_SOURCE).times(2); in testInvoke_buildFailed()
364 EasyMock.expectLastCall().times(2); in testInvoke_buildFailed()
386 EasyMock.expect(mMockDevice.getLogcat()).andReturn(EMPTY_STREAM_SOURCE).times(2); in testInvoke_noBuild()
388 EasyMock.expectLastCall().times(2); in testInvoke_noBuild()
415 EasyMock.expectLastCall().times(1); in testInvoke_noBuildRetry()
422 EasyMock.expect(mMockDevice.getLogcat()).andReturn(EMPTY_STREAM_SOURCE).times(2); in testInvoke_noBuildRetry()
424 EasyMock.expectLastCall().times(2); in testInvoke_noBuildRetry()
586 EasyMock.expect(mMockDevice.getLogcat()).andReturn(EMPTY_STREAM_SOURCE).times(3); in testInvoke_resume()
588 EasyMock.expectLastCall().times(3); in testInvoke_resume()
638 EasyMock.expectLastCall().times(4); in testInvoke_resume()
[all …]
DTestInvocationMultiTest.java155 .times(2); in testRunBuildProvider_oneMiss()
163 EasyMock.expectLastCall().times(2); in testRunBuildProvider_oneMiss()
168 EasyMock.expectLastCall().times(2); in testRunBuildProvider_oneMiss()
235 .times(2); in testRunBuildProvider_oneThrow()
243 EasyMock.expectLastCall().times(2); in testRunBuildProvider_oneThrow()
248 EasyMock.expectLastCall().times(2); in testRunBuildProvider_oneThrow()
315 .times(2); in testRunBuildProvider_cleanUpThrow()
323 EasyMock.expectLastCall().times(2); in testRunBuildProvider_cleanUpThrow()
328 EasyMock.expectLastCall().times(2); in testRunBuildProvider_cleanUpThrow()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DUserUtilTest.java35 import static org.mockito.Mockito.times;
48 verify(device, times(1)).switchUser(UserUtil.USER_SYSTEM); in testSwitchToUserSystemSuccess()
63 verify(device, times(1)).switchUser(UserUtil.USER_SYSTEM); in testSwitchToUserSystemFail()
87 verify(device, times(1)).switchUser(10); in testSwitchToSecondaryUserExists()
102 verify(device, times(1)).switchUser(12); in testSwitchToSecondaryUserWithInvalid()
113 verify(device, times(1)).switchUser(10); in testSwitchToPrimaryUserNonSystem()
DSubprocessTestResultsParserTest.java94 EasyMock.expectLastCall().times(4); in testParse_randomEvents()
99 EasyMock.expectLastCall().times(4); in testParse_randomEvents()
102 EasyMock.expectLastCall().times(1); in testParse_randomEvents()
133 EasyMock.expectLastCall().times(4); in testParse_invalidEventOrder()
138 EasyMock.expectLastCall().times(3); in testParse_invalidEventOrder()
140 EasyMock.expectLastCall().times(1); in testParse_invalidEventOrder()
143 EasyMock.expectLastCall().times(1); in testParse_invalidEventOrder()
173 EasyMock.expectLastCall().times(1); in testParse_testNotStarted()
208 EasyMock.expectLastCall().times(1); in testParse_noTimeStamp()
280 EasyMock.expectLastCall().times(1); in testParser_receiveFromSocket()
/tools/tradefederation/contrib/tests/src/com/android/regression/tests/
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/device/recovery/
DUsbResetMultiDeviceRecoveryTest.java22 import static org.mockito.Mockito.times;
116 verify(mUsb.getDevice(SERIAL), times(1)).reset(); in testRecover_unavailable()
117 verify(mDevice, times(1)).reboot(); in testRecover_unavailable()
144 verify(mUsb.getDevice(SERIAL), times(1)).reset(); in testRecover_fastboot_unallocated()
145 verify(mDevice, times(1)).reboot(); in testRecover_fastboot_unallocated()
156 verify(mUsb.getDevice(SERIAL), times(1)).reset(); in testRecover_notManaged()

1234