diff --git a/codec-http2/pom.xml b/codec-http2/pom.xml index 9f93dc9a66d..0ea2fcd38c6 100644 --- a/codec-http2/pom.xml +++ b/codec-http2/pom.xml @@ -91,6 +91,36 @@ brotli4j true + + com.aayushatharva.brotli4j + native-linux-x86_64 + test + + + com.aayushatharva.brotli4j + native-linux-aarch64 + test + + + com.aayushatharva.brotli4j + native-linux-armv7 + test + + + com.aayushatharva.brotli4j + native-osx-x86_64 + test + + + com.aayushatharva.brotli4j + native-osx-aarch64 + test + + + com.aayushatharva.brotli4j + native-windows-x86_64 + test + com.github.luben zstd-jni diff --git a/codec-http2/src/test/java/io/netty/handler/codec/http2/DataCompressionHttp2Test.java b/codec-http2/src/test/java/io/netty/handler/codec/http2/DataCompressionHttp2Test.java index d2ee38cc2cc..7fd1013b4f0 100644 --- a/codec-http2/src/test/java/io/netty/handler/codec/http2/DataCompressionHttp2Test.java +++ b/codec-http2/src/test/java/io/netty/handler/codec/http2/DataCompressionHttp2Test.java @@ -28,6 +28,7 @@ import io.netty.channel.nio.NioEventLoopGroup; import io.netty.channel.socket.nio.NioServerSocketChannel; import io.netty.channel.socket.nio.NioSocketChannel; +import io.netty.handler.codec.compression.Brotli; import io.netty.handler.codec.http.HttpHeaderNames; import io.netty.handler.codec.http.HttpHeaderValues; import io.netty.handler.codec.http2.Http2TestUtil.Http2Runnable; @@ -36,6 +37,7 @@ import io.netty.util.NetUtil; import io.netty.util.concurrent.Future; import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.Mock; @@ -88,6 +90,11 @@ public class DataCompressionHttp2Test { private Http2ConnectionHandler clientHandler; private ByteArrayOutputStream serverOut; + @BeforeAll + public static void beforeAllTests() throws Throwable { + Brotli.ensureAvailability(); + } + @BeforeEach public void setup() throws InterruptedException, Http2Exception { MockitoAnnotations.initMocks(this); diff --git a/pom.xml b/pom.xml index 9572bad7bf7..cd1f4001860 100644 --- a/pom.xml +++ b/pom.xml @@ -841,6 +841,11 @@ native-linux-aarch64 ${brotli4j.version} + + com.aayushatharva.brotli4j + native-linux-armv7 + ${brotli4j.version} + com.aayushatharva.brotli4j native-osx-x86_64