Home
last modified time | relevance | path

Searched refs:makeTestZip (Results 1 – 7 of 7) sorted by relevance

/external/archive-patcher/generator/src/test/java/com/google/archivepatcher/generator/
DPreDiffPlannerTest.java288 byte[] bytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A_LEVEL_6)); in testGeneratePreDiffPlan_OneCompressedEntry_Unchanged()
306 byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A_LEVEL_6)); in testGeneratePreDiffPlan_OneCompressedEntry_LengthsChanged()
307 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A_LEVEL_9)); in testGeneratePreDiffPlan_OneCompressedEntry_LengthsChanged()
333 UnitTestZipArchive.makeTestZip(Collections.singletonList(FIXED_LENGTH_ENTRY_C1_LEVEL_6)); in testGeneratePreDiffPlan_OneCompressedEntry_BytesChanged()
335 UnitTestZipArchive.makeTestZip(Collections.singletonList(FIXED_LENGTH_ENTRY_C2_LEVEL_6)); in testGeneratePreDiffPlan_OneCompressedEntry_BytesChanged()
360 byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A_STORED)); in testGeneratePreDiffPlan_OneUncompressedEntry()
361 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A_STORED)); in testGeneratePreDiffPlan_OneUncompressedEntry()
379 byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A_LEVEL_9)); in testGeneratePreDiffPlan_OneEntry_CompressedToUncompressed()
380 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A_STORED)); in testGeneratePreDiffPlan_OneEntry_CompressedToUncompressed()
402 byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A_STORED)); in testGeneratePreDiffPlan_OneEntry_UncompressedToCompressed()
[all …]
DPreDiffExecutorTest.java123 byte[] bytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_LEVEL_6)); in testPrepareForDiffing_OneCompressedEntry_Unchanged()
145 byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_LEVEL_6)); in testPrepareForDiffing_OneCompressedEntry_Changed()
147 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_LEVEL_9)); in testPrepareForDiffing_OneCompressedEntry_Changed()
209 byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_LEVEL_6));
211 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_LEVEL_9));
DMinimalZipArchiveTest.java44 unitTestZipArchive = UnitTestZipArchive.makeTestZip(); in setup()
DMinimalZipParserTest.java45 unitTestZipArchive = UnitTestZipArchive.makeTestZip(); in setup()
/external/archive-patcher/explainer/src/test/java/com/google/archivepatcher/explainer/
DPatchExplainerTest.java162 byte[] bytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A1_LEVEL_6)); in testExplainPatch_CompressedBytesIdentical()
176 byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A1_LEVEL_6)); in testExplainPatch_CompressedBytesChanged_UncompressedUnchanged()
177 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A1_LEVEL_9)); in testExplainPatch_CompressedBytesChanged_UncompressedUnchanged()
193 byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A1_LEVEL_6)); in testExplainPatch_CompressedBytesChanged_UncompressedChanged()
194 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A2_LEVEL_9)); in testExplainPatch_CompressedBytesChanged_UncompressedChanged()
221 byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A1_LEVEL_6)); in testExplainPatch_CompressedBytesChanged_UncompressedChanged_Limited()
222 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A2_LEVEL_9)); in testExplainPatch_CompressedBytesChanged_UncompressedChanged_Limited()
248 byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A1_STORED)); in testExplainPatch_BothEntriesUncompressed_BytesUnchanged()
249 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A1_STORED)); in testExplainPatch_BothEntriesUncompressed_BytesUnchanged()
265 byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A1_STORED)); in testExplainPatch_BothEntriesUncompressed_BytesChanged()
[all …]
/external/archive-patcher/sharedtest/src/main/java/com/google/archivepatcher/shared/
DUnitTestZipArchive.java134 verifyTestZip(makeTestZip()); in makeTestZip() method
146 public static byte[] makeTestZip() { in makeTestZip() method in UnitTestZipArchive
147 return makeTestZip(allEntriesInFileOrder); in makeTestZip()
155 public static byte[] makeTestZip(List<UnitTestZipEntry> entriesInFileOrder) { in makeTestZip() method in UnitTestZipArchive
216 out.write(makeTestZip()); in saveTestZip()
/external/archive-patcher/integrationtest/src/test/java/com/google/archivepatcher/integrationtest/
DFileByFileV1IntegrationTest.java146 byte[] oldArchiveBytes = UnitTestZipArchive.makeTestZip(Arrays.asList( in testPatchAndApply()
179 byte[] newArchiveBytes = UnitTestZipArchive.makeTestZip(newEntries); in testPatchAndApply()