/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | BuildTestsZipUtilsTest.java | 43 File testDir = FileUtil.createTempDir("test-dir-build-tests"); in testGetApkFile_notFound() local 45 buildInfo.setTestsDir(testDir, "1"); in testGetApkFile_notFound() 56 FileUtil.recursiveDelete(testDir); in testGetApkFile_notFound() 64 File testDir = FileUtil.createTempDir("test-dir-build-tests"); in testGetApkFile_fromTestDir() local 66 buildInfo.setTestsDir(testDir, "1"); in testGetApkFile_fromTestDir() 67 File apkDir = new File(testDir, "TestApk"); in testGetApkFile_fromTestDir() 82 FileUtil.recursiveDelete(testDir); in testGetApkFile_fromTestDir() 93 File testDir = FileUtil.createTempDir("test-dir-build-tests"); in testGetApkFile_fromTestDir_testCase() local 95 buildInfo.setTestsDir(testDir, "1"); in testGetApkFile_fromTestDir_testCase() 96 File testcasedir = new File(testDir, "testcases"); in testGetApkFile_fromTestDir_testCase() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | AllTestAppsInstallSetupTest.java | 77 File testDir = FileUtil.createTempDir("TestAppSetupTest"); in testSetup() local 79 FileUtil.createTempFile("fakeApk", ".apk", testDir); in testSetup() 80 FileUtil.createTempFile("fakeApk2", ".apk", testDir); in testSetup() 81 FileUtil.createTempFile("notAnApk", ".txt", testDir); in testSetup() 82 File subTestDir = FileUtil.createTempDir("SubTestAppSetupTest", testDir); in testSetup() 85 EasyMock.expect(mMockBuildInfo.getTestsDir()).andReturn(testDir); in testSetup() 92 FileUtil.recursiveDelete(testDir); in testSetup() 97 File testDir = FileUtil.createTempDir("TestAppSetupForceQueryableTest"); in testSetupForceQueryable() local 99 FileUtil.createTempFile("fakeApk", ".apk", testDir); in testSetupForceQueryable() 101 EasyMock.expect(mMockBuildInfo.getTestsDir()).andReturn(testDir); in testSetupForceQueryable() [all …]
|
D | InstallAllTestZipAppsSetupTest.java | 90 File testDir = FileUtil.createTempDir("TestAppSetupTest"); in setMockUnzipDir() local 92 FileUtil.createTempFile("fakeApk", ".apk", testDir); in setMockUnzipDir() 93 FileUtil.createTempFile("fakeApk2", ".apk", testDir); in setMockUnzipDir() 94 FileUtil.createTempFile("notAnApk", ".txt", testDir); in setMockUnzipDir() 95 File subTestDir = FileUtil.createTempDir("SubTestAppSetupTest", testDir); in setMockUnzipDir() 97 mMockUnzipDir = testDir; in setMockUnzipDir()
|
D | InstallApkSetupTest.java | 48 private File testDir = null; field in InstallApkSetupTest 61 testDir = FileUtil.createTempDir("TestApkDir"); in setUp() 62 testFile = FileUtil.createTempFile("File", ".apk", testDir); in setUp() 68 FileUtil.recursiveDelete(testDir); in tearDown()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/python/ |
D | PythonBinaryHostTest.java | 184 File testDir = mTestInfo.executionFiles().get(FilesKey.HOST_TESTS_DIRECTORY); in run() local 185 if (testDir == null || !testDir.exists()) { in run() 186 testDir = mTestInfo.executionFiles().get(FilesKey.TESTS_DIRECTORY); in run() 188 if (testDir != null && testDir.exists()) { in run() 189 File libDir = new File(testDir, "lib"); in run() 195 File lib64Dir = new File(testDir, "lib64"); in run()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/build/ |
D | LocalDeviceBuildProviderTest.java | 182 File testDir = buildInfo.getTestsDir(); in testSetTestsDir_givenTestDir() local 183 assertEquals(mTestDir, testDir); in testSetTestsDir_givenTestDir() 184 File extractedTestFile = new File(testDir, testFile.getName()); in testSetTestsDir_givenTestDir() 192 File testDir = FileUtil.createTempDir("test_dir", mBuildDir); in testSetTestsDir_givenTestDirPattern() local 193 mLocalDeviceBuildProvider.setTestDirPattern(testDir.getName()); in testSetTestsDir_givenTestDirPattern() 195 assertEquals(testDir, buildInfo.getTestsDir()); in testSetTestsDir_givenTestDirPattern()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | PushFilePreparer.java | 214 File testDir = deviceBuild.getTestsDir(); in resolveRelativeFilePath() local 221 if (testDir != null) { in resolveRelativeFilePath() 222 scanDirs.add(testDir); in resolveRelativeFilePath() 227 if (testDir != null) { in resolveRelativeFilePath() 308 if (src == null && testDir != null) { in resolveRelativeFilePath() 313 src = buildInfo.stageRemoteFile(fileName, testDir); in resolveRelativeFilePath()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | NativeDeviceTest.java | 280 File testDir = FileUtil.createTempDir("pushDirTest"); in testPushDir_childFile() local 281 FileUtil.createTempFile("test1", ".txt", testDir); in testPushDir_childFile() 282 assertTrue(mTestDevice.pushDir(testDir, "")); in testPushDir_childFile() 283 FileUtil.recursiveDelete(testDir); in testPushDir_childFile() 300 File testDir = FileUtil.createTempDir("pushDirTest"); in testPushDir_childDir() local 301 File subDir = FileUtil.createTempDir("testSubDir", testDir); in testPushDir_childDir() 303 assertTrue(mTestDevice.pushDir(testDir, "")); in testPushDir_childDir() 304 FileUtil.recursiveDelete(testDir); in testPushDir_childDir() 310 File testDir = FileUtil.createTempDir("pushDirTest"); in testPushDir_childDir_filtered() local 313 File subDir = FileUtil.createTempDir("testSubDir", testDir); in testPushDir_childDir_filtered() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/ |
D | StatsdGenericPostProcessorTest.java | 55 @Rule public TemporaryFolder testDir = new TemporaryFolder(); field in StatsdGenericPostProcessorTest 88 mAppStartupReportFile = testDir.newFile(APP_STARTUP_FILENAME); in setUp() 93 mAppCrashReportFile = testDir.newFile(APP_CRASH_FILENAME); in setUp() 98 mBadReportFile = testDir.newFile(BAD_REPORT_FILENAME); in setUp() 287 File testMetricFile = testDir.newFile(testFilename); in testParsingLogic()
|
D | StatsdEventMetricPostProcessorTest.java | 57 @Rule public TemporaryFolder testDir = new TemporaryFolder(); field in StatsdEventMetricPostProcessorTest 84 File reportFile = testDir.newFile(reportFilename); in setUp()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | IsolatedHostTest.java | 209 File testDir = mBuildInfo.getFile(BuildInfoFileKey.TESTDIR_IMAGE); in compileClassPath() local 211 if (!testDir.exists()) { in compileClassPath() 238 File f = FileUtil.findFile(testDir, jar); in compileClassPath() 364 File testDir = deviceBuildInfo.getTestsDir(); in getJarFile() local 365 jarFile = searchJarFile(testDir, jarName); in getJarFile()
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | BaseDeviceMetricCollector.java | 490 File testDir = deviceBuild.getTestsDir(); in resolveRelativeFilePath() local 498 if (testDir != null) { in resolveRelativeFilePath() 499 scanDirs.add(testDir); in resolveRelativeFilePath() 504 if (testDir != null) { in resolveRelativeFilePath()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/remote/ |
D | GcsRemoteFileResolverTest.java | 87 File testDir = FileUtil.createTempDir("test-resolve-dir"); in testResolve_unzip() local 88 File zipFile = ZipUtil.createZip(testDir); in testResolve_unzip() 102 FileUtil.recursiveDelete(testDir); in testResolve_unzip()
|
/tools/tradefederation/core/src/com/android/tradefed/build/ |
D | LocalDeviceBuildProvider.java | 294 void setTestDir(File testDir) { in setTestDir() argument 295 this.mTestDir = testDir; in setTestDir()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | HostGTestTest.java | 310 String testDir = mTestsDir.getAbsolutePath(); in testBeforeCmdError() local 311 Path errorScriptPath = Paths.get(testDir, "bad_cmd"); in testBeforeCmdError()
|