Rizin
unix-like reverse engineering framework and cli tools
|
Tests Stream Header and Stream Footer coders. More...
#include "tests.h"
Go to the source code of this file.
Functions | |
static bool | validate (void) |
static bool | test_header_decoder (lzma_ret expected_ret) |
static void | test_header (void) |
static bool | test_footer_decoder (lzma_ret expected_ret) |
static void | test_footer (void) |
static void | test_encode_invalid (void) |
static void | test_decode_invalid (void) |
int | main (void) |
Variables | |
static lzma_stream_flags | known_flags |
static lzma_stream_flags | decoded_flags |
static uint8_t | buffer [LZMA_STREAM_HEADER_SIZE] |
Tests Stream Header and Stream Footer coders.
Definition in file test_stream_flags.c.
int main | ( | void | ) |
Definition at line 165 of file test_stream_flags.c.
References lzma_stream_flags::backward_size, check, known_flags, LZMA_CHECK_ID_MAX, LZMA_CHECK_NONE, test_decode_invalid(), test_encode_invalid(), test_footer(), and test_header().
|
static |
Definition at line 122 of file test_stream_flags.c.
References lzma_stream_flags::backward_size, lzma_stream_flags::check, expect, known_flags, LZMA_CHECK_NONE, LZMA_DATA_ERROR, LZMA_FORMAT_ERROR, LZMA_OK, LZMA_OPTIONS_ERROR, succeed, test_footer_decoder(), test_header_decoder(), and write32le.
Referenced by main().
|
static |
Definition at line 84 of file test_stream_flags.c.
References lzma_stream_flags::backward_size, lzma_stream_flags::check, expect, known_flags, LZMA_CHECK_ID_MAX, LZMA_CHECK_NONE, LZMA_OK, LZMA_PROG_ERROR, and LZMA_VLI_MAX.
Referenced by main().
|
static |
Definition at line 75 of file test_stream_flags.c.
References expect, known_flags, LZMA_OK, memcrap, succeed, and test_footer_decoder().
Referenced by main().
Definition at line 60 of file test_stream_flags.c.
References decoded_flags, LZMA_OK, memcrap, and validate().
Referenced by test_decode_invalid(), and test_footer().
|
static |
Definition at line 51 of file test_stream_flags.c.
References expect, known_flags, LZMA_OK, memcrap, succeed, and test_header_decoder().
Referenced by main().
Definition at line 33 of file test_stream_flags.c.
References lzma_stream_flags::backward_size, decoded_flags, LZMA_OK, LZMA_VLI_UNKNOWN, memcrap, and validate().
Referenced by test_decode_invalid(), and test_header().
|
static |
Definition at line 22 of file test_stream_flags.c.
References decoded_flags, known_flags, and LZMA_OK.
Referenced by test_footer_decoder(), and test_header_decoder().
|
static |
Definition at line 18 of file test_stream_flags.c.
|
static |
Definition at line 17 of file test_stream_flags.c.
Referenced by test_footer_decoder(), test_header_decoder(), and validate().
|
static |
Definition at line 16 of file test_stream_flags.c.
Referenced by main(), test_decode_invalid(), test_encode_invalid(), test_footer(), test_header(), and validate().