Home
last modified time | relevance | path

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

/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DGzipInflatingBufferTest.java65 private GzipInflatingBuffer gzipInflatingBuffer; field in GzipInflatingBufferTest
69 gzipInflatingBuffer = new GzipInflatingBuffer(); in setUp()
103 gzipInflatingBuffer.close(); in tearDown()
108 gzipInflatingBuffer.addGzippedBytes(ReadableBuffers.wrap(gzippedData)); in gzipInflateWorks()
111 assertEquals(originalData.length, gzipInflatingBuffer.inflateBytes(b, 0, originalData.length)); in gzipInflateWorks()
112 assertEquals(gzippedData.length, gzipInflatingBuffer.getAndResetBytesConsumed()); in gzipInflateWorks()
119 gzipInflatingBuffer.addGzippedBytes(ReadableBuffers.wrap(gzippedData, 0, initialBytes)); in splitGzipStreamWorks()
122 int n = gzipInflatingBuffer.inflateBytes(b, 0, originalData.length); in splitGzipStreamWorks()
124 assertTrue("gzipInflatingBuffer is not stalled", gzipInflatingBuffer.isStalled()); in splitGzipStreamWorks()
125 assertEquals(initialBytes, gzipInflatingBuffer.getAndResetBytesConsumed()); in splitGzipStreamWorks()
[all …]