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; +}