Home
last modified time | relevance | path

Searched refs:ZipTestUtils (Results 1 – 4 of 4) sorted by relevance

/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DZipToolsTest.java103 Files.write(ZipTestUtils.rsrcBytes(mZipFile), zfile); in cloneZipFile()
115 byte[] inFileData = ZipTestUtils.rsrcBytes(name); in assertFileInZip()
156 zf.add("root", new ByteArrayInputStream(ZipTestUtils.rsrcBytes("root"))); in testReadZFile()
160 new ByteArrayInputStream(ZipTestUtils.rsrcBytes("images/lena.png"))); in testReadZFile()
164 new ByteArrayInputStream(ZipTestUtils.rsrcBytes("text-files/rfc2460.txt"))); in testReadZFile()
167 new ByteArrayInputStream(ZipTestUtils.rsrcBytes("text-files/wikipedia.html"))); in testReadZFile()
204 assertSize(new String[] { "root" }, ZipTestUtils.rsrcBytes("root").length, sizes); in testReadZFile()
206 ZipTestUtils.rsrcBytes("images/lena.png").length, sizes); in testReadZFile()
208 ZipTestUtils.rsrcBytes("text-files/rfc2460.txt").length, sizes); in testReadZFile()
210 ZipTestUtils.rsrcBytes("text-files/wikipedia.html").length, sizes); in testReadZFile()
DZFileTest.java101 File zf = ZipTestUtils.cloneRsrc("empty-zip.zip", mTemporaryFolder); in readAlmostEmptyZip()
114 File zf = ZipTestUtils.cloneRsrc("simple-zip.zip", mTemporaryFolder); in readZipWithTwoFilesOneDirectory()
145 File testZip = ZipTestUtils.cloneRsrc("empty-zip.zip", mTemporaryFolder); in readOnlyZipSupport()
158 File testZip = ZipTestUtils.cloneRsrc("v2-signed.apk", mTemporaryFolder); in readOnlyV2SignedApkSupport()
173 File wiki = ZipTestUtils in compressedFilesReadableByJavaZip()
175 File rfc = ZipTestUtils.cloneRsrc("text-files/rfc2460.txt", mTemporaryFolder, "rfc"); in compressedFilesReadableByJavaZip()
176 File lena = ZipTestUtils.cloneRsrc("images/lena.png", mTemporaryFolder, "lena"); in compressedFilesReadableByJavaZip()
925 File jar = ZipTestUtils.cloneRsrc("j7.jar", mTemporaryFolder); in java7JarSupported()
934 File jar = ZipTestUtils.cloneRsrc("j8.jar", mTemporaryFolder); in java8JarSupported()
943 File zip = ZipTestUtils.cloneRsrc("zip-with-utf8-filename.zip", mTemporaryFolder); in utf8NamesSupportedOnReading()
[all …]
DZipMergeTest.java46 File aZip = ZipTestUtils.cloneRsrc("simple-zip.zip", mTemporaryFolder, "a.zip"); in mergeZip()
84 File bZip = ZipTestUtils.cloneRsrc("simple-zip.zip", mTemporaryFolder, "b.zip"); in mergeZip()
96 byte[] wBytes = ZipTestUtils.rsrcBytes("text-files/wikipedia.html"); in mergeZipWithDeferredCrc()
127 byte[] wBytes = ZipTestUtils.rsrcBytes("text-files/wikipedia.html"); in mergeZipKeepsDeflatedAndStored()
128 byte[] lBytes = ZipTestUtils.rsrcBytes("images/lena.png"); in mergeZipKeepsDeflatedAndStored()
175 byte[] wBytes = ZipTestUtils.rsrcBytes("text-files/wikipedia.html"); in mergeZipWithSorting()
176 byte[] lBytes = ZipTestUtils.rsrcBytes("images/lena.png"); in mergeZipWithSorting()
DZipTestUtils.java31 class ZipTestUtils { class