Home
last modified time | relevance | path

Searched refs:mTestInfo (Results 1 – 25 of 74) sorted by relevance

123

/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DDeviceSetupTest.java51 private TestInformation mTestInfo; field in DeviceSetupTest
73 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
92 mDeviceSetup.setUp(mTestInfo); in testSetup()
116 mDeviceSetup.setUp(mTestInfo); in testSetup_airplane_mode_on()
130 mDeviceSetup.setUp(mTestInfo); in testSetup_airplane_mode_off()
143 mDeviceSetup.setUp(mTestInfo); in testSetup_data_on()
156 mDeviceSetup.setUp(mTestInfo); in testSetup_data_off()
168 mDeviceSetup.setUp(mTestInfo); in testSetup_cell_on()
180 mDeviceSetup.setUp(mTestInfo); in testSetup_cell_off()
192 mDeviceSetup.setUp(mTestInfo); in testSetup_cell_auto_setting_on()
[all …]
DRootTargetPreparerTest.java40 private TestInformation mTestInfo; field in RootTargetPreparerTest
52 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
60 mRootTargetPreparer.setUp(mTestInfo); in testSetUpSuccess_rootBefore()
61 mRootTargetPreparer.tearDown(mTestInfo, null); in testSetUpSuccess_rootBefore()
72 mRootTargetPreparer.setUp(mTestInfo); in testSetUpSuccess_notRootBefore()
73 mRootTargetPreparer.tearDown(mTestInfo, null); in testSetUpSuccess_notRootBefore()
84 mRootTargetPreparer.setUp(mTestInfo); in testSetUpFail()
97 mRootTargetPreparer.setUp(mTestInfo); in testSetUpSuccess_rootBefore_forceUnroot()
98 mRootTargetPreparer.tearDown(mTestInfo, null); in testSetUpSuccess_rootBefore_forceUnroot()
110 mRootTargetPreparer.setUp(mTestInfo); in testSetUpSuccess_notRootBefore_forceUnroot()
[all …]
DPushFilePreparerTest.java57 private TestInformation mTestInfo; field in PushFilePreparerTest
68 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
75 mPreparer.setUp(mTestInfo); in testNoop()
85 mTestInfo.getContext().addDeviceBuildInfo("device", new BuildInfo()); in testLocalNoExist()
87 mPreparer.setUp(mTestInfo); in testLocalNoExist()
105 mTestInfo.getContext().addDeviceBuildInfo("device", new BuildInfo()); in testRemoteNoExist()
107 mPreparer.setUp(mTestInfo); in testRemoteNoExist()
133 mTestInfo.getContext().addDeviceBuildInfo("device", info); in testPushFile_RemoteIsDir()
135 mPreparer.setUp(mTestInfo); in testPushFile_RemoteIsDir()
164 mTestInfo.getContext().addDeviceBuildInfo("device", info); in testPushFile_duplicateKey()
[all …]
DRunHostScriptTargetPreparerTest.java63 private TestInformation mTestInfo; field in RunHostScriptTargetPreparerTest
88 when(mTestInfo.getDevice().getSerialNumber()).thenReturn(DEVICE_SERIAL); in setUp()
89 when(mTestInfo.executionFiles().get(any(FilesKey.class))).thenReturn(null); in setUp()
114 mPreparer.setUp(mTestInfo); in testSetUp()
127 mPreparer.setUp(mTestInfo); in testSetUp_workingDir()
135 when(mTestInfo.getDependencyFile(any(), anyBoolean())).thenReturn(mScriptFile); in testSetUp_findFile()
137 mPreparer.setUp(mTestInfo); in testSetUp_findFile()
144 mPreparer.setUp(mTestInfo); in testSetUp_fileNotFound()
152 mPreparer.setUp(mTestInfo); in testSetUp_executionError()
161 when(mTestInfo.executionFiles().get(eq(FilesKey.ADB_BINARY))).thenReturn(adbBinary); in testSetUp_pathVariable()
[all …]
DStopServicesSetupTest.java36 private TestInformation mTestInfo = null; field in StopServicesSetupTest
48 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
58 mPreparer.setUp(mTestInfo); in testNoop()
69 mPreparer.setUp(mTestInfo); in testNoStopFramework()
85 mPreparer.setUp(mTestInfo); in testStopServices()
100 mPreparer.tearDown(mTestInfo, null); in testTearDown()
DDisableSELinuxTargetPreparerTest.java39 private TestInformation mTestInfo; field in DisableSELinuxTargetPreparerTest
53 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
64 mDisableSELinuxTargetPreparer.setUp(mTestInfo); in testSetUpSuccess_permissive()
65 mDisableSELinuxTargetPreparer.tearDown(mTestInfo, null); in testSetUpSuccess_permissive()
84 mDisableSELinuxTargetPreparer.setUp(mTestInfo); in testSetUpSuccess_enforced_rootBefore()
85 mDisableSELinuxTargetPreparer.tearDown(mTestInfo, null); in testSetUpSuccess_enforced_rootBefore()
107 mDisableSELinuxTargetPreparer.setUp(mTestInfo); in testSetUpSuccess_enforced_notRootBefore()
108 mDisableSELinuxTargetPreparer.tearDown(mTestInfo, null); in testSetUpSuccess_enforced_notRootBefore()
122 mDisableSELinuxTargetPreparer.setUp(mTestInfo); in testSetUp_rootFail()
142 mDisableSELinuxTargetPreparer.setUp(mTestInfo); in testSetUp_disableSELinuxFail()
DDeviceStringPusherTest.java40 private TestInformation mTestInfo; field in DeviceStringPusherTest
50 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
63 mDeviceStringPusher.setUp(mTestInfo); in testFail()
76 mDeviceStringPusher.setUp(mTestInfo); in testDoesntExist()
77 mDeviceStringPusher.tearDown(mTestInfo, null); in testDoesntExist()
93 mDeviceStringPusher.setUp(mTestInfo); in testAlreadyExists()
94 mDeviceStringPusher.tearDown(mTestInfo, null); in testAlreadyExists()
DRunHostCommandTargetPreparerTest.java58 private TestInformation mTestInfo; field in RunHostCommandTargetPreparerTest
77 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
90 mPreparer.setUp(mTestInfo); in testSetUp()
105 mPreparer.setUp(mTestInfo); in testSetUp_withWorkDir()
119 mPreparer.setUp(mTestInfo); in testSetUp_withErrors()
132 mPreparer.tearDown(mTestInfo, null); in testTearDown()
145 mPreparer.tearDown(mTestInfo, null); in testTearDown_withError()
158 mPreparer.setUp(mTestInfo); in testBgCommand()
DRunCommandTargetPreparerTest.java52 private TestInformation mTestInfo; field in RunCommandTargetPreparerTest
62 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
79 mPreparer.setUp(mTestInfo); in testSetUp()
104 mPreparer.setUp(mTestInfo); in testSetUp_withTimeout()
136 mPreparer.tearDown(mTestInfo, null); in testTearDown()
161 mPreparer.setUp(mTestInfo); in testBgCmd()
163 mPreparer.tearDown(mTestInfo, null); in testBgCmd()
DDeviceFlashPreparerTest.java64 private TestInformation mTestInfo; field in DeviceFlashPreparerTest
114 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
131 mDeviceFlashPreparer.setUp(mTestInfo); in testSetup()
166 mTestInfo in testSetUp_nonDevice()
169 mDeviceFlashPreparer.setUp(mTestInfo); in testSetUp_nonDevice()
184 mDeviceFlashPreparer.setUp(mTestInfo); in testSetUp_noRamdisk()
220 mDeviceFlashPreparer.setUp(mTestInfo); in testSetup_buildError()
251 mDeviceFlashPreparer.setUp(mTestInfo); in testSetup_flashException()
272 mDeviceFlashPreparer.setUp(mTestInfo); in testSetup_flashSkipped()
294 mDeviceFlashPreparer.setUp(mTestInfo); in testSetup_flashRamdisk()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/suite/
DSuiteApkInstallerTest.java52 private TestInformation mTestInfo; field in SuiteApkInstallerTest
64 mTestInfo = in setUp()
83 File res = mPreparer.getLocalPathForFilename(mTestInfo, apk.getName()); in testGetLocalPathForFilename_withVariable()
96 mTestInfo.executionFiles().put(FilesKey.TARGET_TESTS_DIRECTORY, varDir); in testGetTestsDir_notDir()
98 mTestInfo.executionFiles().put(FilesKey.TESTS_DIRECTORY, tmpDir); in testGetTestsDir_notDir()
101 File res = mPreparer.getLocalPathForFilename(mTestInfo, apkFile.getName()); in testGetTestsDir_notDir()
117 mTestInfo.executionFiles().put(tmpApk.getName(), tmpApk); in testGetLocalPathForFileName()
119 File apk = mPreparer.getLocalPathForFilename(mTestInfo, tmpApk.getName()); in testGetLocalPathForFileName()
134 mPreparer.getLocalPathForFilename(mTestInfo, "no_exist"); in testGetLocalPathForFileName_noFound()
153 mTestInfo.executionFiles().put(FilesKey.TESTS_DIRECTORY, tmpDir); in testGetLocalPathForFileName_testsDir()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DModuleMergerTest.java43 private TestInformation mTestInfo; field in ModuleMergerTest
50 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
71 Collection<IRemoteTest> res1 = suite1.split(2, mTestInfo); in testPartOfSameSuite_notSplittedYet2()
83 Collection<IRemoteTest> res1 = suite1.split(2, mTestInfo); in testPartOfSameSuite_sameSuite()
96 Collection<IRemoteTest> res1 = suite1.split(2, mTestInfo); in testPartOfSameSuite_notSameSuite()
98 Collection<IRemoteTest> res2 = suite2.split(2, mTestInfo); in testPartOfSameSuite_notSameSuite()
127 Collection<IRemoteTest> res1 = suite1.split(2, mTestInfo); in testMergeSplittedITestSuite_notSplittedYet2()
144 Collection<IRemoteTest> res1 = suite1.split(2, mTestInfo); in testMergeSplittedITestSuite_splittedSuiteFromDifferentModules()
146 Collection<IRemoteTest> res2 = suite2.split(2, mTestInfo); in testMergeSplittedITestSuite_splittedSuiteFromDifferentModules()
163 Collection<IRemoteTest> res1 = suite1.split(2, mTestInfo); in testMergeSplittedITestSuite()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DDeviceSuite.java47 private TestInformation mTestInfo; field in DeviceSuite
59 mTestInfo = testInformation; in setTestInformation()
63 ((IDeviceTest) r).setDevice(mTestInfo.getDevice()); in setTestInformation()
66 ((IBuildReceiver) r).setBuild(mTestInfo.getBuildInfo()); in setTestInformation()
69 ((ITestInformationReceiver) r).setTestInformation(mTestInfo); in setTestInformation()
76 return mTestInfo; in getTestInformation()
141 ((IDeviceTest) testObj).setDevice(mTestInfo.getDevice()); in injectValues()
144 ((IBuildReceiver) testObj).setBuild(mTestInfo.getBuildInfo()); in injectValues()
147 ((ITestInformationReceiver) testObj).setTestInformation(mTestInfo); in injectValues()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/adb/
DAdbStopServerPreparerTest.java50 private TestInformation mTestInfo; field in AdbStopServerPreparerTest
88 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
115 mPreparer.setUp(mTestInfo); in testSetup_tearDown()
116 mPreparer.tearDown(mTestInfo, null); in testSetup_tearDown()
143 mPreparer.setUp(mTestInfo); in testSetup_fail_tearDown()
148 mPreparer.tearDown(mTestInfo, null); in testSetup_fail_tearDown()
173 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in testNoAdb()
174 mPreparer.setUp(mTestInfo); in testNoAdb()
212 mPreparer.setUp(mTestInfo); in testAdbFromEnv()
213 mPreparer.tearDown(mTestInfo, null); in testAdbFromEnv()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DNativeStressTestTest.java45 private TestInformation mTestInfo; field in NativeStressTestTest
70 mTestInfo = TestInformation.newBuilder().build(); in setUp()
78 mNativeTest.run(mTestInfo, mMockListener); in testRun_missingIterations()
94 mNativeTest.run(mTestInfo, mMockListener); in testRun()
112 mNativeTest.run(mTestInfo, mMockListener); in testRun_twoRuns()
128 mNativeTest.run(mTestInfo, mMockListener); in testRun_deviceNotAvailable()
DArtRunTestTest.java62 private TestInformation mTestInfo; field in ArtRunTestTest
95 mTestInfo = TestInformation.newBuilder().build(); in setUp()
96 mTestInfo.executionFiles().put(FilesKey.TARGET_TESTS_DIRECTORY, mTmpTargetTestsDir); in setUp()
125 mArtRunTest.run(mTestInfo, mMockInvocationListener); in testRun_noDevice()
142 mArtRunTest.run(mTestInfo, mMockInvocationListener); in testRunSingleTest_unsetRunTestNameOption()
158 mArtRunTest.run(mTestInfo, mMockInvocationListener); in testRunSingleTest_unsetClasspathOption()
196 mArtRunTest.run(mTestInfo, mMockInvocationListener); in testRunSingleTest()
235 mArtRunTest.run(mTestInfo, mMockInvocationListener); in testRunSingleTest_unexpectedOutput()
DGTestFuncTest.java40 private TestInformation mTestInfo; field in GTestFuncTest
57 mTestInfo = TestInformation.newBuilder().build(); in setUp()
94 mGTest.run(mTestInfo, mMockListener); in testRun()
130 mGTest.run(mTestInfo, mMockListener); in testRun_testCrash()
167 mGTest.run(mTestInfo, mMockListener); in testRun_deviceReboot()
188 mGTest.run(mTestInfo, mMockListener); in testRun_timeout()
DUsbResetTestTest.java46 private TestInformation mTestInfo; field in UsbResetTestTest
56 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
76 mTest.run(mTestInfo, null); in testReset()
89 mTest.run(mTestInfo, null); in testReset_recovery()
101 mTest.run(mTestInfo, null); in testReset_noDevice()
DDeviceTestCaseTest.java103 private TestInformation mTestInfo; field in DeviceTestCaseTest
107 mTestInfo = TestInformation.newBuilder().build(); in setUp()
128 test.run(mTestInfo, listener); in testRun_suite()
150 test.run(mTestInfo, listener); in testRun_includeFilter()
170 test.run(mTestInfo, listener); in testRun_excludeFilter()
193 test.run(mTestInfo, listener); in testRun_includeAnnotationFiltering()
213 test.run(mTestInfo, listener); in testRun_checkAnnotation()
241 test.run(mTestInfo, listener); in testRun_excludeAnnotationFiltering()
261 test.run(mTestInfo, listener); in testRun_singleTest()
282 test.run(mTestInfo, listener); in testRun_deviceNotAvail()
[all …]
DHostTestTest.java93 private TestInformation mTestInfo; field in HostTestTest
599 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
622 mHostTest.run(mTestInfo, mListener); in testRun_testcase()
648 mHostTest.run(mTestInfo, mListener); in testRun_MetricTestCase()
673 mHostTest.run(mTestInfo, mListener); in testRun_LogMetricTestCase()
709 mHostTest.run(mTestInfo, mListener); in testRun_MetricTestCase_withOption()
728 mHostTest.run(mTestInfo, mListener); in testRun_testSuite()
747 mHostTest.run(mTestInfo, mListener); in testRun_junit3TestSuite_dynamicOptions()
766 mHostTest.run(mTestInfo, mListener); in testRun_testHierarchySuite()
783 mHostTest.run(mTestInfo, mListener); in testRun_testMethod()
[all …]
DJarHostTestTest.java69 private TestInformation mTestInfo; field in JarHostTestTest
84 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
85 mTestInfo.executionFiles().put(FilesKey.TESTS_DIRECTORY, mTestDir); in setUp()
145 mTest.setTestInformation(mTestInfo); in testSplit_withJar()
148 List<IRemoteTest> tests = new ArrayList<>(mTest.split(5, mTestInfo)); in testSplit_withJar()
227 mTest.setTestInformation(mTestInfo); in testSplit_countWithFilter()
276 mTest.run(mTestInfo, mListener); in testCountTestFails()
310 mTest.run(mTestInfo, mListener); in testJarHostMetrics()
325 mTest.setTestInformation(mTestInfo); in testRunWithJar()
340 mTest.run(mTestInfo, mListener); in testRunWithJar()
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/
DLongevityHostRunner.java66 private TestInformation mTestInfo; field in LongevityHostRunner
93 mTestInfo = testInformation; in setTestInformation()
98 return mTestInfo; in getTestInformation()
174 ((IDeviceTest) child).setDevice(mTestInfo.getDevice()); in run()
180 ((IBuildReceiver) child).setBuild(mTestInfo.getBuildInfo()); in run()
183 ((IInvocationContextReceiver) child).setInvocationContext(mTestInfo.getContext()); in run()
186 ((ITestInformationReceiver) child).setTestInformation(mTestInfo); in run()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/app/
DNoApkTestSkipperTest.java46 private TestInformation mTestInfo; field in NoApkTestSkipperTest
57 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
63 mSkipper.setUp(mTestInfo); in testApksPresent()
74 mSkipper.setUp(mTestInfo); in testNoApkPresent()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/binary/
DExecutableHostTestTest.java65 private TestInformation mTestInfo; field in ExecutableHostTestTest
81 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
86 mExecutableTest.run(mTestInfo, mMockListener); in testRunHostExecutable_noBinaries()
96 mTestInfo.getContext().addDeviceBuildInfo("device", new BuildInfo()); in testRunHostExecutable_doesNotExists()
97 mExecutableTest.run(mTestInfo, mMockListener); in testRunHostExecutable_doesNotExists()
122 mExecutableTest.run(mTestInfo, mMockListener); in testRunHostExecutable()
156 mExecutableTest.run(mTestInfo, mMockListener); in testRunHostExecutable_relativePath()
188 mExecutableTest.run(mTestInfo, mMockListener); in testRunHostExecutable_dnae()
217 mTestInfo.getContext().addDeviceBuildInfo("device", info); in testRunHostExecutable_search()
230 mExecutableTest.run(mTestInfo, mMockListener); in testRunHostExecutable_search()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/host/
DCoverageMeasurementForwarderTest.java78 private TestInformation mTestInfo; field in CoverageMeasurementForwarderTest
93 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
139 mForwarder.run(mTestInfo, mMockListener); in testForwardSingleJavaArtifact()
149 mForwarder.run(mTestInfo, mMockListener); in testForwardMultipleJavaArtifacts()
164 mForwarder.run(mTestInfo, mMockListener); in testNoSuchJavaArtifact()
177 mForwarder.run(mTestInfo, mMockListener); in testForwardSingleNativeArtifact()
188 mForwarder.run(mTestInfo, mMockListener); in testForwardMultipleNativeArtifacts()
204 mForwarder.run(mTestInfo, mMockListener); in testNoSuchNativeArtifact()

123