Searched refs:UnitTestZipArchive (Results 1 – 11 of 11) sorted by relevance
/external/archive-patcher/integrationtest/src/test/java/com/google/archivepatcher/integrationtest/ |
D | FileByFileV1IntegrationTest.java | 19 import com.google.archivepatcher.shared.UnitTestZipArchive; 65 UnitTestZipArchive.makeUnitTestZipEntry("/entry1", 6, "entry 1", null); 67 UnitTestZipArchive.makeUnitTestZipEntry("/entry1", 6, "entry 1", null); 69 UnitTestZipArchive.makeUnitTestZipEntry("/entry2", 6, "entry 2", null); 71 UnitTestZipArchive.makeUnitTestZipEntry("/entry2", 9, "entry 2", null); 73 UnitTestZipArchive.makeUnitTestZipEntry("/entry3", 6, "entry 3A", null); 75 UnitTestZipArchive.makeUnitTestZipEntry("/entry3", 6, "entry 3B", null); 77 UnitTestZipArchive.makeUnitTestZipEntry("/entry4", 0, "entry 4", null); 79 UnitTestZipArchive.makeUnitTestZipEntry("/entry4", 6, "entry 4", null); 81 UnitTestZipArchive.makeUnitTestZipEntry("/entry5", 6, "entry 5", null); [all …]
|
/external/archive-patcher/generator/src/test/java/com/google/archivepatcher/generator/ |
D | PreDiffPlannerTest.java | 22 import com.google.archivepatcher.shared.UnitTestZipArchive; 55 UnitTestZipArchive.makeUnitTestZipEntry("/path A", 6, "entry A", null); 57 UnitTestZipArchive.makeUnitTestZipEntry("/path A", 9, "entry A", null); 59 UnitTestZipArchive.makeUnitTestZipEntry("/path A", 0, "entry A", null); 61 UnitTestZipArchive.makeUnitTestZipEntry("/path B", 6, "entry B", null); 63 UnitTestZipArchive.makeUnitTestZipEntry("/path B", 9, "entry B", null); 87 UnitTestZipArchive.makeUnitTestZipEntry("/uncompressed data same as A", 1, "entry A", null); 89 UnitTestZipArchive.makeUnitTestZipEntry("/same as A level 6", 6, "entry A", null); 91 UnitTestZipArchive.makeUnitTestZipEntry("/same as A level 9", 9, "entry A", null); 93 UnitTestZipArchive.makeUnitTestZipEntry("/same as A stored", 0, "entry A", null); [all …]
|
D | PreDiffExecutorTest.java | 17 import com.google.archivepatcher.shared.UnitTestZipArchive; 42 UnitTestZipArchive.makeUnitTestZipEntry("/for/great/justice", 6, "entry A", null); 44 UnitTestZipArchive.makeUnitTestZipEntry("/for/great/justice", 9, "entry A", null); 123 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));
|
D | MinimalZipParserTest.java | 18 import com.google.archivepatcher.shared.UnitTestZipArchive; 45 unitTestZipArchive = UnitTestZipArchive.makeTestZip(); in setup() 142 UnitTestZipArchive.allEntriesInFileOrder.size(), in testParseEocd() 159 for (UnitTestZipEntry expectedEntry : UnitTestZipArchive.allEntriesInFileOrder) { in testParseCentralDirectoryEntry() 199 for (int x = 0; x < UnitTestZipArchive.allEntriesInFileOrder.size(); x++) { in testParseLocalEntryAndGetCompressedDataOffset() 203 for (int x = 0; x < UnitTestZipArchive.allEntriesInFileOrder.size(); x++) { in testParseLocalEntryAndGetCompressedDataOffset() 204 UnitTestZipEntry expectedEntry = UnitTestZipArchive.allEntriesInFileOrder.get(x); in testParseLocalEntryAndGetCompressedDataOffset()
|
D | FileByFileV1DeltaGeneratorTest.java | 17 import com.google.archivepatcher.shared.UnitTestZipArchive; 44 UnitTestZipArchive.saveTestZip(oldArchive.file); in testGenerateDelta_BaseCase() 45 UnitTestZipArchive.saveTestZip(newArchive.file); in testGenerateDelta_BaseCase()
|
D | MinimalZipArchiveTest.java | 17 import com.google.archivepatcher.shared.UnitTestZipArchive; 44 unitTestZipArchive = UnitTestZipArchive.makeTestZip(); in setup() 78 for (int x = 0; x < UnitTestZipArchive.allEntriesInFileOrder.size(); x++) { in testListEntries() 79 UnitTestZipEntry expected = UnitTestZipArchive.allEntriesInFileOrder.get(x); in testListEntries()
|
D | DefaultDeflateCompressionDivinerTest.java | 22 import com.google.archivepatcher.shared.UnitTestZipArchive; 113 UnitTestZipArchive.saveTestZip(tempFile); in testDivineDeflateParameters_File() 115 Assert.assertEquals(UnitTestZipArchive.allEntriesInFileOrder.size(), results.size()); in testDivineDeflateParameters_File() 117 UnitTestZipEntry expected = UnitTestZipArchive.allEntriesInFileOrder.get(x); in testDivineDeflateParameters_File()
|
/external/archive-patcher/explainer/src/test/java/com/google/archivepatcher/explainer/ |
D | PatchExplainerTest.java | 24 import com.google.archivepatcher.shared.UnitTestZipArchive; 56 UnitTestZipArchive.makeUnitTestZipEntry("/path A", 6, "entry A1", null); 58 UnitTestZipArchive.makeUnitTestZipEntry("/path A", 9, "entry A1", null); 60 UnitTestZipArchive.makeUnitTestZipEntry("/path A", 0, "entry A", null); 62 UnitTestZipArchive.makeUnitTestZipEntry("/path A", 9, "entry A2", null); 64 UnitTestZipArchive.makeUnitTestZipEntry("/path A", 0, "entry A2", null); 66 UnitTestZipArchive.makeUnitTestZipEntry("/path B", 6, "entry B", null); 162 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() [all …]
|
/external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/ |
D | PartiallyUncompressingPipeTest.java | 53 UnitTestZipEntry entry = UnitTestZipArchive.makeUnitTestZipEntry("/foo", 7, "frobozz", null); in testWriteAll_Compressed_NoWrapTrue() 61 UnitTestZipEntry entry = UnitTestZipArchive.makeUnitTestZipEntry("/foo", 6, "frobozz", null); in testWriteAll_Compressed_NoWrapFalse() 80 UnitTestZipArchive.makeUnitTestZipEntry("/bar", 3, "dragon lance", null); in testWriteAll_Multiple() 82 UnitTestZipArchive.makeUnitTestZipEntry("/baz", 8, "kender & hoopak", null); in testWriteAll_Multiple()
|
/external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/ |
D | PartiallyCompressingOutputStreamTest.java | 19 import com.google.archivepatcher.shared.UnitTestZipArchive; 48 UnitTestZipArchive.makeUnitTestZipEntry( 60 UnitTestZipArchive.makeUnitTestZipEntry(
|
/external/archive-patcher/sharedtest/src/main/java/com/google/archivepatcher/shared/ |
D | UnitTestZipArchive.java | 45 public class UnitTestZipArchive { class
|