Home
last modified time | relevance | path

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

/external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/
DPartiallyCompressingOutputStreamTest.java51 private static long LENGTH1 = ENTRY1.getUncompressedBinaryContent().length;
63 private static long LENGTH2 = ENTRY2.getUncompressedBinaryContent().length;
111 0, ENTRY1.getUncompressedBinaryContent().length, PARAMS1); in testWrite_AllCompressed()
114 stream.write(ENTRY1.getUncompressedBinaryContent()); in testWrite_AllCompressed()
125 byte[] input = fuse(PREAMBLE_BYTES, ENTRY1.getUncompressedBinaryContent()); in testWrite_GapAndCompression()
138 byte[] input = fuse(PREAMBLE_BYTES, ENTRY1.getUncompressedBinaryContent(), GAP1_BYTES); in testWrite_GapAndCompressionAndGap()
155 ENTRY1.getUncompressedBinaryContent(), in testWrite_MixedSequence_Thrash()
157 ENTRY2.getUncompressedBinaryContent()); in testWrite_MixedSequence_Thrash()
DFileByFileV1DeltaApplierTest.java64 private static final byte[] UNCOMPRESSED_OLD_CONTENT = OLD_ENTRY.getUncompressedBinaryContent();
66 private static final byte[] UNCOMPRESSED_NEW_CONTENT = NEW_ENTRY.getUncompressedBinaryContent();
230 newBlobOut.write(NEW_ENTRY.getUncompressedBinaryContent()); in applyDelta()
/external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/
DPartiallyUncompressingPipeTest.java56 Assert.assertArrayEquals(entry.getUncompressedBinaryContent(), outBuffer.toByteArray()); in testWriteAll_Compressed_NoWrapTrue()
69 new ByteArrayInputStream(entry.getUncompressedBinaryContent()), compressBuffer); in testWriteAll_Compressed_NoWrapFalse()
73 Assert.assertArrayEquals(entry.getUncompressedBinaryContent(), outBuffer.toByteArray()); in testWriteAll_Compressed_NoWrapFalse()
92 expected.write(entryA.getUncompressedBinaryContent()); in testWriteAll_Multiple()
100 expected.write(entryB.getUncompressedBinaryContent()); in testWriteAll_Multiple()
/external/archive-patcher/sharedtest/src/main/java/com/google/archivepatcher/shared/
DUnitTestZipEntry.java86 public byte[] getUncompressedBinaryContent() { in getUncompressedBinaryContent() method in UnitTestZipEntry
102 return getUncompressedBinaryContent(); in getCompressedBinaryContent()
109 compressor.compress(new ByteArrayInputStream(getUncompressedBinaryContent()), buffer); in getCompressedBinaryContent()
DUnitTestZipArchive.java163 byte[] uncompressedContent = unitTestEntry.getUncompressedBinaryContent(); in makeTestZip()
179 zipOut.write(unitTestEntry.getUncompressedBinaryContent()); in makeTestZip()
239 testEntry.getUncompressedBinaryContent().length, entry.getCompressedSize()); in checkEntry()
248 testEntry.getUncompressedBinaryContent(), uncompressedData.toByteArray()); in checkEntry()
/external/archive-patcher/explainer/src/test/java/com/google/archivepatcher/explainer/
DPatchExplainerTest.java199 ENTRY_A1_LEVEL_6.getUncompressedBinaryContent(), in testExplainPatch_CompressedBytesChanged_UncompressedChanged()
200 ENTRY_A2_LEVEL_9.getUncompressedBinaryContent()); in testExplainPatch_CompressedBytesChanged_UncompressedChanged()
271 ENTRY_A1_STORED.getUncompressedBinaryContent(), in testExplainPatch_BothEntriesUncompressed_BytesChanged()
272 ENTRY_A2_STORED.getUncompressedBinaryContent()); in testExplainPatch_BothEntriesUncompressed_BytesChanged()
295 ENTRY_A1_LEVEL_9.getUncompressedBinaryContent(), in testExplainPatch_CompressedChangedToUncompressed()
296 ENTRY_A1_STORED.getUncompressedBinaryContent()); in testExplainPatch_CompressedChangedToUncompressed()
318 ENTRY_A1_STORED.getUncompressedBinaryContent(), in testExplainPatch_UncompressedChangedToCompressed()
319 ENTRY_A1_LEVEL_6.getUncompressedBinaryContent()); in testExplainPatch_UncompressedChangedToCompressed()
353 new FakeDeltaGenerator(ENTRY_A1_STORED.getUncompressedBinaryContent(), justNewData); in testExplainPatch_Unsuitable()
/external/archive-patcher/generator/src/test/java/com/google/archivepatcher/generator/
DMinimalZipArchiveTest.java85 expected.getUncompressedBinaryContent().length, actual.getUncompressedSize()); in testListEntries()
88 crc32.update(expected.getUncompressedBinaryContent()); in testListEntries()
DPreDiffExecutorTest.java178 expectedDeltaFriendlyOldFileBytes.write(ENTRY_LEVEL_6.getUncompressedBinaryContent()); in testPrepareForDiffing_OneCompressedEntry_Changed()
194 expectedDeltaFriendlyNewFileBytes.write(ENTRY_LEVEL_9.getUncompressedBinaryContent()); in testPrepareForDiffing_OneCompressedEntry_Changed()
DMinimalZipParserTest.java175 byte[] uncompressedContent = expectedEntry.getUncompressedBinaryContent(); in testParseCentralDirectoryEntry()