|
Asterisk - The Open Source Telephony Project GIT-master-9647a4f
|
Data Buffer API Unit Tests. More...
#include "asterisk.h"#include "asterisk/module.h"#include "asterisk/test.h"#include "asterisk/data_buffer.h"
Go to the source code of this file.
Data Structures | |
| struct | mock_payload |
Macros | |
| #define | BUFFER_MAX_NOMINAL 10 |
Functions | |
| static void | __reg_module (void) |
| static void | __unreg_module (void) |
| static void | ast_data_buffer_free_wrapper (struct ast_data_buffer *buffer) |
| struct ast_module * | AST_MODULE_SELF_SYM (void) |
| AST_TEST_DEFINE (buffer_create) | |
| AST_TEST_DEFINE (buffer_nominal) | |
| AST_TEST_DEFINE (buffer_put) | |
| AST_TEST_DEFINE (buffer_resize) | |
| static int | load_module (void) |
| static int | unload_module (void) |
Variables | |
| static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Data buffer API test module" , .key = ASTERISK_GPL_KEY , .buildopt_sum = AST_BUILDOPT_SUM, .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEFAULT, .support_level = AST_MODULE_SUPPORT_CORE, } |
| static const struct ast_module_info * | ast_module_info = &__mod_info |
Data Buffer API Unit Tests.
Definition in file test_data_buffer.c.
| #define BUFFER_MAX_NOMINAL 10 |
Definition at line 38 of file test_data_buffer.c.
|
static |
Definition at line 345 of file test_data_buffer.c.
|
static |
Definition at line 345 of file test_data_buffer.c.
|
static |
Definition at line 46 of file test_data_buffer.c.
References ast_data_buffer_free().
Referenced by AST_TEST_DEFINE(), AST_TEST_DEFINE(), AST_TEST_DEFINE(), and AST_TEST_DEFINE().
| struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 345 of file test_data_buffer.c.
| AST_TEST_DEFINE | ( | buffer_create | ) |
Definition at line 55 of file test_data_buffer.c.
References ast_data_buffer_alloc(), ast_data_buffer_count(), ast_data_buffer_free_wrapper(), ast_data_buffer_max(), ast_free_ptr(), AST_TEST_NOT_RUN, AST_TEST_PASS, BUFFER_MAX_NOMINAL, NULL, RAII_VAR, TEST_EXECUTE, and TEST_INIT.
| AST_TEST_DEFINE | ( | buffer_nominal | ) |
Definition at line 217 of file test_data_buffer.c.
References ast_calloc, ast_data_buffer_alloc(), ast_data_buffer_count(), ast_data_buffer_free_wrapper(), ast_data_buffer_get(), ast_data_buffer_put(), ast_data_buffer_remove(), ast_data_buffer_remove_head(), ast_free, ast_free_ptr(), AST_TEST_NOT_RUN, AST_TEST_PASS, BUFFER_MAX_NOMINAL, mock_payload::id, NULL, RAII_VAR, TEST_EXECUTE, and TEST_INIT.
| AST_TEST_DEFINE | ( | buffer_put | ) |
Definition at line 83 of file test_data_buffer.c.
References ast_calloc, ast_data_buffer_alloc(), ast_data_buffer_count(), ast_data_buffer_free_wrapper(), ast_data_buffer_get(), ast_data_buffer_put(), ast_free_ptr(), AST_TEST_NOT_RUN, AST_TEST_PASS, mock_payload::id, NULL, RAII_VAR, TEST_EXECUTE, and TEST_INIT.
| AST_TEST_DEFINE | ( | buffer_resize | ) |
Definition at line 178 of file test_data_buffer.c.
References ast_data_buffer_alloc(), ast_data_buffer_free_wrapper(), ast_data_buffer_max(), ast_data_buffer_resize(), ast_free_ptr(), AST_TEST_NOT_RUN, AST_TEST_PASS, BUFFER_MAX_NOMINAL, NULL, RAII_VAR, TEST_EXECUTE, and TEST_INIT.
|
static |
Definition at line 336 of file test_data_buffer.c.
References AST_MODULE_LOAD_SUCCESS, and AST_TEST_REGISTER.
|
static |
Definition at line 327 of file test_data_buffer.c.
References AST_TEST_UNREGISTER.
|
static |
Definition at line 345 of file test_data_buffer.c.
|
static |
Definition at line 345 of file test_data_buffer.c.