Home
last modified time | relevance | path

Searched refs:gzip (Results 1 – 5 of 5) sorted by relevance

/libcore/ojluni/src/test/java/util/zip/
DCloseInflaterDeflaterTest.java122 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/
DGZIPInputStreamTest.java92 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()
DGZIPOutputStreamTest.java40 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/
Dgen_smoke_tests.py23 import gzip
88 with gzip.open(filename, mode='rt') as log_file:
/libcore/luni/src/test/java/libcore/java/net/
DURLConnectionTest.java1387 .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 {