Searched refs:gzip (Results 1 – 5 of 5) sorted by relevance
/libcore/ojluni/src/test/java/util/zip/ |
D | CloseInflaterDeflaterTest.java | 122 GZIPOutputStream gzip = new GZIPOutputStream(outStream); in testGZip() local 123 gzip.write(inputBytes, 0, INPUT_LENGTH); in testGZip() 127 gzip.close(); in testGZip() 129 gzip.finish(); in testGZip() 133 assertThrows(NullPointerException.class , () -> gzip.write(inputBytes, 0, INPUT_LENGTH)); in testGZip()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | GZIPInputStreamTest.java | 92 assertTrue(Arrays.equals(data, gunzip(GZIPOutputStreamTest.gzip(data)))); in testLongMessage() 98 byte[] gzipped = GZIPOutputStreamTest.gzip(data); in testSkip() 195 GZIPInputStream gzip = null; in testMultipleMembersWithCustomBufferSize() local 197 gzip = new GZIPInputStream(fis, memberSizes[0]); in testMultipleMembersWithCustomBufferSize() 198 byte[] unzipped = Streams.readFully(gzip); in testMultipleMembersWithCustomBufferSize() 201 IoUtils.closeQuietly(gzip); in testMultipleMembersWithCustomBufferSize()
|
D | GZIPOutputStreamTest.java | 40 byte[] data = gzip(("Hello World").getBytes("UTF-8")); in testShortMessage() 48 assertTrue(Arrays.equals(data, GZIPInputStreamTest.gunzip(gzip(data)))); in testLongMessage() 51 public static byte[] gzip(byte[] bytes) throws IOException { in gzip() method in GZIPOutputStreamTest
|
/libcore/tools/testmapping/ |
D | gen_smoke_tests.py | 23 import gzip 88 with gzip.open(filename, mode='rt') as log_file:
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | URLConnectionTest.java | 1387 .setBody(gzip("ABCABCABC".getBytes("UTF-8"))) in disconnectAfterOnlyResponseCodeCausesNoCloseGuardWarning() 1520 .setBody(gzip("ABCABCABC".getBytes("UTF-8"))) in gzipEncodingEnabledByDefault() 1534 byte[] bodyBytes = gzip("ABCDEFGHIJKLMNOPQRSTUVWXYZ".getBytes("UTF-8")); in clientConfiguredGzipContentEncoding() 1583 transferKind.setBody(responseOne, gzip("one (gzipped)".getBytes("UTF-8")), 5); in testClientConfiguredGzipContentEncodingAndConnectionReuse() 3301 public byte[] gzip(byte[] bytes) throws IOException {
|