mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-27 14:12:00 +00:00
add brotli tests
This commit is contained in:
parent
2220fb116c
commit
2b75243c2d
2 changed files with 22 additions and 0 deletions
11
test/libbrotlidec.cpp
Normal file
11
test/libbrotlidec.cpp
Normal 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
11
test/libbrotlienc.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue