add brotli tests
This commit is contained in:
parent
2220fb116c
commit
2b75243c2d
|
@ -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;
|
||||
}
|
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue