/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 | 78 File testDir = FileUtil.createTempDir("TestAppSetupTest"); in testSetup() local 80 FileUtil.createTempFile("fakeApk", ".apk", testDir); in testSetup() 81 FileUtil.createTempFile("fakeApk2", ".apk", testDir); in testSetup() 82 FileUtil.createTempFile("notAnApk", ".txt", testDir); in testSetup() 83 File subTestDir = FileUtil.createTempDir("SubTestAppSetupTest", testDir); in testSetup() 86 EasyMock.expect(mMockBuildInfo.getTestsDir()).andReturn(testDir); in testSetup() 93 FileUtil.recursiveDelete(testDir); in testSetup()
|
D | InstallAllTestZipAppsSetupTest.java | 89 File testDir = FileUtil.createTempDir("TestAppSetupTest"); in setMockUnzipDir() local 91 FileUtil.createTempFile("fakeApk", ".apk", testDir); in setMockUnzipDir() 92 FileUtil.createTempFile("fakeApk2", ".apk", testDir); in setMockUnzipDir() 93 FileUtil.createTempFile("notAnApk", ".txt", testDir); in setMockUnzipDir() 94 File subTestDir = FileUtil.createTempDir("SubTestAppSetupTest", testDir); in setMockUnzipDir() 96 mMockUnzipDir = testDir; in setMockUnzipDir()
|
D | InstallApkSetupTest.java | 47 private File testDir = null; field in InstallApkSetupTest 59 testDir = FileUtil.createTempDir("TestApkDir"); in setUp() 60 testFile = FileUtil.createTempFile("File", ".apk", testDir); in setUp() 66 FileUtil.recursiveDelete(testDir); in tearDown()
|
/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/src/com/android/tradefed/targetprep/suite/ |
D | SuiteApkInstaller.java | 79 File testDir = deviceBuildInfo.getTestsDir(); in getApkFromBuildTestsDir() local 80 if (testDir != null && testDir.isDirectory()) { in getApkFromBuildTestsDir() 81 return FileUtil.findFile(testDir, apkFileName); in getApkFromBuildTestsDir()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | PushFilePreparer.java | 163 File testDir = deviceBuild.getTestsDir(); in resolveRelativeFilePath() local 170 if (testDir != null) { in resolveRelativeFilePath() 171 scanDirs.add(testDir); in resolveRelativeFilePath() 176 if (testDir != null) { in resolveRelativeFilePath()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | JarHostTestTest.java | 71 public HostTestable(File testDir) { in HostTestable() argument 72 mTestDir = testDir; in HostTestable() 237 public HostTestLoader(File testDir, File jar) { in HostTestLoader() argument 238 super(testDir); in HostTestLoader()
|
D | HostGTestTest.java | 308 String testDir = mTestsDir.getAbsolutePath(); in testBeforeCmdError() local 309 Path errorScriptPath = Paths.get(testDir, "bad_cmd"); in testBeforeCmdError()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | NativeDeviceTest.java | 278 File testDir = FileUtil.createTempDir("pushDirTest"); in testPushDir_childFile() local 279 FileUtil.createTempFile("test1", ".txt", testDir); in testPushDir_childFile() 280 assertTrue(mTestDevice.pushDir(testDir, "")); in testPushDir_childFile() 281 FileUtil.recursiveDelete(testDir); in testPushDir_childFile() 298 File testDir = FileUtil.createTempDir("pushDirTest"); in testPushDir_childDir() local 299 File subDir = FileUtil.createTempDir("testSubDir", testDir); in testPushDir_childDir() 301 assertTrue(mTestDevice.pushDir(testDir, "")); in testPushDir_childDir() 302 FileUtil.recursiveDelete(testDir); in testPushDir_childDir() 308 File testDir = FileUtil.createTempDir("pushDirTest"); in testPushDir_childDir_filtered() local 311 File subDir = FileUtil.createTempDir("testSubDir", testDir); in testPushDir_childDir_filtered() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/build/ |
D | LocalDeviceBuildProvider.java | 290 void setTestDir(File testDir) { in setTestDir() argument 291 this.mTestDir = testDir; in setTestDir()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | HostTest.java | 1183 File testDir = deviceBuildInfo.getTestsDir(); in getJarFile() local 1184 jarFile = searchJarFile(testDir, jarName); in getJarFile()
|