From 2b75243c2df3779cce52e9bf5d7db8f9090f1731 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 1 Aug 2021 13:27:39 +0300 Subject: [PATCH] add brotli tests --- test/libbrotlidec.cpp | 11 +++++++++++ test/libbrotlienc.cpp | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 test/libbrotlidec.cpp create mode 100644 test/libbrotlienc.cpp diff --git a/test/libbrotlidec.cpp b/test/libbrotlidec.cpp new file mode 100644 index 00000000..2dc35082 --- /dev/null +++ b/test/libbrotlidec.cpp @@ -0,0 +1,11 @@ +#include + +int main() +{ + BrotliDecoderState* decoder = BrotliDecoderCreateInstance(nullptr, nullptr, nullptr); + AEDI_EXPECT(decoder != nullptr); + AEDI_EXPECT(BrotliDecoderSetParameter(decoder, BROTLI_DECODER_PARAM_LARGE_WINDOW, 1) == BROTLI_TRUE); + BrotliDecoderDestroyInstance(decoder); + + return 0; +} diff --git a/test/libbrotlienc.cpp b/test/libbrotlienc.cpp new file mode 100644 index 00000000..80fea7aa --- /dev/null +++ b/test/libbrotlienc.cpp @@ -0,0 +1,11 @@ +#include + +int main() +{ + BrotliEncoderState* encoder = BrotliEncoderCreateInstance(nullptr, nullptr, nullptr); + AEDI_EXPECT(encoder != nullptr); + AEDI_EXPECT(BrotliEncoderSetParameter(encoder, BROTLI_PARAM_LARGE_WINDOW, 1) == BROTLI_TRUE); + BrotliEncoderDestroyInstance(encoder); + + return 0; +}