Home
last modified time | relevance | path

Searched refs:FileFsFile (Results 1 – 9 of 9) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/
DFileFsFileTest.java23 origFileSeparator = FileFsFile.FILE_SEPARATOR; in setUp()
28 FileFsFile.FILE_SEPARATOR = origFileSeparator; in tearDown()
33 final String path = FileFsFile.from("foo", "bar", "baz").getPath(); in from_shouldConstructPath()
39 final String path = FileFsFile.from(null, "", "foo", "bar").getPath(); in from_shouldIgnoreNullOrMissingComponents()
44 final String path = FileFsFile.from(".").getPath(); in from_shouldAllowSingleDotPart()
49 final String path = FileFsFile.from(safe("/some/path")).getPath(); in from_shouldAllowLeadingSlash()
55 final String path = FileFsFile.from(safe("/some/path/./to/here")).getPath(); in from_shouldIgnoreDotParts()
61 …final String path = FileFsFile.from(".").join(safe("some/./path"), ".", safe("to/here")).getPath(); in join_shouldIgnoreDotParts()
67 FileFsFile.FILE_SEPARATOR = "\\"; in from_shouldWorkOnWindows()
69 assertThat(partsOf(FileFsFile.from("\\", "a\\b\\c", "d"))) in from_shouldWorkOnWindows()
[all …]
DDrawableResourceLoaderNoRunnerTest.java81 FileFsFile mockTestFile = mock(FileFsFile.class); in shouldFindDrawableResourcesWorkWithUnixFilePath()
85 FileFsFile mockTestDir = mock(FileFsFile.class); in shouldFindDrawableResourcesWorkWithUnixFilePath()
127 FileFsFile mockTestFile = mock(FileFsFile.class); in shouldFindDrawableResourcesWorkWithWindowsFilePath()
131 FileFsFile mockTestDir = mock(FileFsFile.class); in shouldFindDrawableResourcesWorkWithWindowsFilePath()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/internal/
DBuckManifestFactoryTest.java19 import org.robolectric.res.FileFsFile;
48 .isEqualTo(FileFsFile.from("buck/AndroidManifest.xml")); in identify()
60 .isEqualTo(FileFsFile.from("buck/res2")); in multiple_res_dirs()
62 .isEqualTo(FileFsFile.from("buck/assets2")); in multiple_res_dirs()
67 …new ResourcePath(manifest.getRClass(), FileFsFile.from("buck/res2"), FileFsFile.from("buck/assets2… in multiple_res_dirs()
68 new ResourcePath(manifest.getRClass(), FileFsFile.from("buck/res1"), null), in multiple_res_dirs()
69 new ResourcePath(manifest.getRClass(), null, FileFsFile.from("buck/assets1")) in multiple_res_dirs()
89 .isEqualTo(FileFsFile.from("buck/res2")); in pass_multiple_res_dirs_in_file()
91 .isEqualTo(FileFsFile.from("buck/assets2")); in pass_multiple_res_dirs_in_file()
96 …new ResourcePath(manifest.getRClass(), FileFsFile.from("buck/res2"), FileFsFile.from("buck/assets2… in pass_multiple_res_dirs_in_file()
[all …]
DDefaultManifestFactoryTest.java13 import org.robolectric.res.FileFsFile;
34 .isEqualTo(FileFsFile.from(baseDir + "/gradle/AndroidManifest.xml")); in identify()
36 .isEqualTo(FileFsFile.from(baseDir + "/gradle/res")); in identify()
38 .isEqualTo(FileFsFile.from(baseDir + "/gradle/assets")); in identify()
59 .isEqualTo(FileFsFile.from(baseDir + "/gradle/AndroidManifest.xml")); in identify_withResourceApk()
61 .isEqualTo(FileFsFile.from(baseDir + "/gradle/res")); in identify_withResourceApk()
63 .isEqualTo(FileFsFile.from(baseDir + "/gradle/assets")); in identify_withResourceApk()
65 .isEqualTo(FileFsFile.from(baseDir + "/gradle/resources.ap_")); in identify_withResourceApk()
86 .isEqualTo(FileFsFile.from(baseDir + "/gradle/assets")); in identify_withMissingValues()
88 .isEqualTo(FileFsFile.from(baseDir + "/gradle/resources.ap_")); in identify_withMissingValues()
[all …]
DMavenManifestFactoryTest.java10 import org.robolectric.res.FileFsFile;
28 .isEqualTo(FileFsFile.from(":fakefs:path/to/DifferentManifest.xml")); in identify()
30 .isEqualTo(FileFsFile.from(":fakefs:path/to/res")); in identify()
38 .isEqualTo(FileFsFile.from(":fakefs:path/to/DifferentManifest.xml")); in withDotSlashManifest_identify()
40 .isEqualTo(FileFsFile.from(":fakefs:path/to/res")); in withDotSlashManifest_identify()
48 .isEqualTo(FileFsFile.from(":fakefs:path/to/../DifferentManifest.xml")); in withDotDotSlashManifest_identify()
50 .isEqualTo(FileFsFile.from(":fakefs:path/to/../res")); in withDotDotSlashManifest_identify()
56 return FileFsFile.from(":fakefs:path/to"); in getBaseDir()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DFileFsFile.java13 public class FileFsFile implements FsFile { class
19 FileFsFile(File file) { in FileFsFile() method in FileFsFile
23 FileFsFile(String path) { in FileFsFile() method in FileFsFile
49 return asFsFiles(file.listFiles(pathname -> filter.accept(new FileFsFile(pathname)))); in listFiles()
112 FileFsFile fsFile = (FileFsFile) o; in equals()
156 public static FileFsFile from(String... paths) { in from()
168 return new FileFsFile(file); in from()
DFs.java47 return new FileFsFile(new File(urlString)); in fileFromPath()
54 return new FileFsFile(new File(url.getPath())); in fromURL()
69 return new FileFsFile(file); in newFile()
78 return new FileFsFile(filePath); in newFile()
DResName.java110 final FileFsFile filePathFile = new FileFsFile(new File(filePath)); in qualifyFromFilePath()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowTypefaceTest.java14 import org.robolectric.res.FileFsFile;
25 ((FileFsFile) TestUtil.resourcesBaseDir().join("assets/myFont.ttf")).getFile(); in setup()