Asterisk - The Open Source Telephony Project
21.4.1
|
Format Capabilities API Unit Tests. More...
#include "asterisk.h"
#include "asterisk/test.h"
#include "asterisk/module.h"
#include "asterisk/codec.h"
#include "asterisk/frame.h"
#include "asterisk/format.h"
#include "asterisk/format_cap.h"
Go to the source code of this file.
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
AST_TEST_DEFINE (format_cap_alloc) | |
AST_TEST_DEFINE (format_cap_append_single) | |
AST_TEST_DEFINE (format_cap_append_multiple) | |
AST_TEST_DEFINE (format_cap_append_all_unknown) | |
AST_TEST_DEFINE (format_cap_append_all_audio) | |
AST_TEST_DEFINE (format_cap_append_duplicate) | |
AST_TEST_DEFINE (format_cap_append_from_cap) | |
AST_TEST_DEFINE (format_cap_append_from_cap_duplicate) | |
AST_TEST_DEFINE (format_cap_set_framing) | |
AST_TEST_DEFINE (format_cap_remove_single) | |
AST_TEST_DEFINE (format_cap_remove_multiple) | |
AST_TEST_DEFINE (format_cap_remove_bytype) | |
AST_TEST_DEFINE (format_cap_remove_all) | |
AST_TEST_DEFINE (format_cap_get_compatible_format) | |
AST_TEST_DEFINE (format_cap_iscompatible_format) | |
AST_TEST_DEFINE (format_cap_get_compatible) | |
AST_TEST_DEFINE (format_cap_iscompatible) | |
AST_TEST_DEFINE (format_cap_get_names) | |
AST_TEST_DEFINE (format_cap_best_by_type) | |
AST_TEST_DEFINE (format_cap_replace_from_cap) | |
static int | load_module (void) |
static int | test_law_clone (const struct ast_format *src, struct ast_format *dst) |
static enum ast_format_cmp_res | test_law_cmp (const struct ast_format *format1, const struct ast_format *format2) |
static void | test_law_destroy (struct ast_format *format) |
static int | test_law_length (unsigned int samples) |
static int | test_law_samples (struct ast_frame *frame) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Format capabilities API test module" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .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 |
static struct ast_codec | test_law |
static struct ast_format_interface | test_law_interface |
Format Capabilities API Unit Tests.
Definition in file test_format_cap.c.
|
static |
Definition at line 1305 of file test_format_cap.c.