add brotli tests

This commit is contained in:
alexey.lysiuk 2021-08-01 13:27:39 +03:00
parent 2220fb116c
commit 2b75243c2d
2 changed files with 22 additions and 0 deletions

11
test/libbrotlidec.cpp Normal file
View file

@ -0,0 +1,11 @@
#include <brotli/decode.h>
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;
}

11
test/libbrotlienc.cpp Normal file
View file

@ -0,0 +1,11 @@
#include <brotli/encode.h>
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;
}