| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
#include <aws/compression/compression.h> |
| 7 |
#include <aws/testing/aws_test_harness.h> |
| 8 |
|
| 9 |
AWS_TEST_CASE(library_init, s_test_library_init) |
| 10 |
static int s_test_library_init(struct aws_allocator *allocator, void *ctx) { |
| 11 |
(void)ctx; |
| 12 |
|
| 13 |
aws_compression_library_init(allocator); |
| 14 |
|
| 15 |
|
| 16 |
const char *err_name = aws_error_name(AWS_ERROR_COMPRESSION_UNKNOWN_SYMBOL); |
| 17 |
const char *expected = "AWS_ERROR_COMPRESSION_UNKNOWN_SYMBOL"; |
| 18 |
ASSERT_BIN_ARRAYS_EQUALS(expected, strlen(expected), err_name, strlen(err_name)); |
| 19 |
|
| 20 |
aws_compression_library_clean_up(); |
| 21 |
return AWS_OP_SUCCESS; |
| 22 |
} |