Asterisk - The Open Source Telephony Project
21.4.1
|
Abstract Jitterbuffer Tests. More...
#include "asterisk.h"
#include "asterisk/utils.h"
#include "asterisk/module.h"
#include "asterisk/test.h"
#include "asterisk/abstract_jb.h"
#include "asterisk/frame.h"
#include "asterisk/format_cache.h"
Go to the source code of this file.
Macros | |
#define | DEFAULT_CONFIG_FLAGS 0 |
#define | DEFAULT_CONFIG_RESYNC_THRESHOLD (DEFAULT_FRAME_MS) * 2 |
#define | DEFAULT_CONFIG_SIZE (DEFAULT_FRAME_MS) * 10 |
#define | DEFAULT_CONFIG_TARGET_EXTRA -1 |
#define | DEFAULT_FRAME_MS 160 |
#define | INT_TEST(actual, expected) |
#define | LONG_INT_TEST(actual, expected) |
#define | MAKE_DEFAULT_CONFIG(conf, impl) |
#define | OBTAIN_JITTERBUFFER_IMPL(impl, ast_jb_type, literal_name) |
#define | STRING_TEST(actual, expected) |
#define | STRINGIFY_TESTNAME(test_name) TEST_NAME2(test_name) |
#define | test_create_nominal(type_name, literal_type_name) |
#define | TEST_NAME(type_name, specifier) type_name ## _ ## specifier |
#define | TEST_NAME2(test_name) #test_name |
#define | test_put(type_name, literal_type_name) |
#define | test_put_first(type_name, literal_type_name) |
#define | test_put_out_of_order(type_name, literal_type_name, synch_limit) |
#define | test_put_overflow(type_name, literal_type_name, overflow_limit) |
#define | UINT_TEST(actual, expected) |
#define | VERIFY_FRAME(actual, expected) |
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static struct ast_frame * | create_test_frame (long timestamp, int seqno) |
static void | dispose_jitterbuffer (struct ast_jb *jb) |
static int | load_module (void) |
test_create_nominal (test_put_first(AST_JB_ADAPTIVE, test_put_first("adaptive") | |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Abstract JitterBuffer API Tests" , .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_jb | default_jb |
Abstract Jitterbuffer Tests.
Tests the abstract jitter buffer API. This tests both adaptive and fixed jitter buffers. Functions defined in abstract_jb that are not part of the abstract jitter buffer API are not tested by this unit test.
Definition in file test_abstract_jb.c.
#define INT_TEST | ( | actual, | |
expected | |||
) |
Definition at line 109 of file test_abstract_jb.c.
#define LONG_INT_TEST | ( | actual, | |
expected | |||
) |
Definition at line 100 of file test_abstract_jb.c.
#define STRING_TEST | ( | actual, | |
expected | |||
) |
Definition at line 127 of file test_abstract_jb.c.
#define UINT_TEST | ( | actual, | |
expected | |||
) |
Definition at line 118 of file test_abstract_jb.c.
|
static |
Definition at line 173 of file test_abstract_jb.c.