Rizin
unix-like reverse engineering framework and cli tools
|
Tests Block Header coders. More...
#include "tests.h"
Go to the source code of this file.
Functions | |
static void | code (void) |
static void | test1 (void) |
static void | test2 (void) |
static void | test3 (void) |
int | main (void) |
Variables | |
static uint8_t | buf [LZMA_BLOCK_HEADER_SIZE_MAX] |
static lzma_block | known_options |
static lzma_block | decoded_options |
static lzma_options_lzma | opt_lzma |
static lzma_filter | filters_none [1] |
static lzma_filter | filters_one [2] |
static lzma_filter | filters_four [5] |
static lzma_filter | filters_five [6] |
Tests Block Header coders.
Definition in file test_block_header.c.
|
static |
Definition at line 81 of file test_block_header.c.
References lzma_block::check, lzma_block::compressed_size, decoded_options, expect, lzma_block::filters, filters, free(), lzma_block::header_size, i, lzma_filter::id, known_options, LZMA_FILTERS_MAX, LZMA_OK, LZMA_VLI_UNKNOWN, memcrap, NULL, lzma_filter::options, and lzma_block::uncompressed_size.
Referenced by test2().
int main | ( | void | ) |
|
static |
Definition at line 110 of file test_block_header.c.
References lzma_block::check, lzma_block::compressed_size, expect, lzma_block::filters, filters_five, filters_none, filters_one, known_options, LZMA_CHECK_NONE, LZMA_OK, LZMA_PROG_ERROR, LZMA_VLI_MAX, LZMA_VLI_UNKNOWN, NULL, and lzma_block::uncompressed_size.
Referenced by main().
|
static |
Definition at line 156 of file test_block_header.c.
References lzma_block::check, code(), lzma_block::compressed_size, expect, filters_four, known_options, LZMA_CHECK_CRC32, LZMA_OK, LZMA_VLI_UNKNOWN, and lzma_block::uncompressed_size.
Referenced by main().
|
static |
Definition at line 182 of file test_block_header.c.
References lzma_block::check, decoded_options, expect, lzma_block::filters, filters, filters_one, lzma_block::header_size, known_options, LZMA_CHECK_CRC32, LZMA_DATA_ERROR, LZMA_FILTERS_MAX, LZMA_OK, LZMA_OPTIONS_ERROR, LZMA_PROG_ERROR, LZMA_VLI_UNKNOWN, NULL, and write32le.
Referenced by main().
|
static |
Definition at line 16 of file test_block_header.c.
|
static |
Definition at line 18 of file test_block_header.c.
|
static |
Definition at line 58 of file test_block_header.c.
Referenced by test1().
|
static |
Definition at line 39 of file test_block_header.c.
Referenced by test2().
|
static |
Definition at line 22 of file test_block_header.c.
Referenced by test1().
|
static |
Definition at line 29 of file test_block_header.c.
|
static |
|
static |
Definition at line 20 of file test_block_header.c.
Referenced by coder_init(), main(), and start().