diff options
author | Steve Block <steveblock@google.com> | 2010-09-13 15:50:12 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2010-09-13 15:51:11 +0100 |
commit | 34c68912be678ad50a70c1bfa54a91444e993df5 (patch) | |
tree | e34191b689c076974871fd5e4dd163a3fb64bf4a /tests/DumpRenderTree2/src/com/android/dumprendertree2/FileFilter.java | |
parent | 7438b53487cb21f261eac4396aba0dbaa16ee015 (diff) | |
download | frameworks_base-34c68912be678ad50a70c1bfa54a91444e993df5.zip frameworks_base-34c68912be678ad50a70c1bfa54a91444e993df5.tar.gz frameworks_base-34c68912be678ad50a70c1bfa54a91444e993df5.tar.bz2 |
Remove the last remnants in DumpRenderTree2 of the absolute path to the tests
This is no longer required.
Change-Id: I27db10e8c723162b319d9a714b086f508db706e0
Diffstat (limited to 'tests/DumpRenderTree2/src/com/android/dumprendertree2/FileFilter.java')
-rw-r--r-- | tests/DumpRenderTree2/src/com/android/dumprendertree2/FileFilter.java | 40 |
1 files changed, 2 insertions, 38 deletions
diff --git a/tests/DumpRenderTree2/src/com/android/dumprendertree2/FileFilter.java b/tests/DumpRenderTree2/src/com/android/dumprendertree2/FileFilter.java index 4ab76e3..9bbf64a 100644 --- a/tests/DumpRenderTree2/src/com/android/dumprendertree2/FileFilter.java +++ b/tests/DumpRenderTree2/src/com/android/dumprendertree2/FileFilter.java @@ -56,12 +56,7 @@ public class FileFilter { private final Set<String> mFailList = new HashSet<String>(); private final Set<String> mSlowList = new HashSet<String>(); - private final String mRootDirPath; - - public FileFilter(String rootDirPath) { - /** It may or may not contain a trailing slash */ - this.mRootDirPath = rootDirPath; - + public FileFilter() { loadTestExpectations(); } @@ -287,37 +282,6 @@ public class FileFilter { } /** - * Return the path to the file relative to the tests root dir - * - * @param filePath - * @return - * the path relative to the tests root dir - */ - public String getRelativePath(String filePath) { - File rootDir = new File(mRootDirPath); - return filePath.replaceFirst(rootDir.getPath() + File.separator, ""); - } - - /** - * Return the path to the file relative to the tests root dir - * - * @param filePath - * @return - * the path relative to the tests root dir - */ - public String getRelativePath(File file) { - return getRelativePath(file.getAbsolutePath()); - } - - public File getAbsoluteFile(String relativePath) { - return new File(mRootDirPath, relativePath); - } - - public String getAboslutePath(String relativePath) { - return getAbsoluteFile(relativePath).getAbsolutePath(); - } - - /** * If the path contains extension (e.g .foo at the end of the file) then it changes * this (.foo) into newEnding (so it has to contain the dot if we want to preserve it). * @@ -336,4 +300,4 @@ public class FileFilter { return relativePath.substring(0, dotPos) + newEnding; } -}
\ No newline at end of file +} |