| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
Core Codec API Unit Tests. More...
#include "asterisk.h"#include "asterisk/test.h"#include "asterisk/module.h"#include "asterisk/codec.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 (codec_get) | |
| AST_TEST_DEFINE (codec_get_id) | |
| AST_TEST_DEFINE (codec_get_unknown) | |
| AST_TEST_DEFINE (codec_get_unregistered) | |
| AST_TEST_DEFINE (codec_register) | |
| AST_TEST_DEFINE (codec_register_audio_no_sample_rate) | |
| AST_TEST_DEFINE (codec_register_twice) | |
| AST_TEST_DEFINE (codec_register_unknown) | |
| 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 = "Core codec 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 | 
| static struct ast_codec | audio_get | 
| static struct ast_codec | audio_get_id | 
| static struct ast_codec | audio_get_unknown | 
| static struct ast_codec | audio_without_rate | 
| static struct ast_codec | doubly | 
| static struct ast_codec | known_unknown | 
| static struct ast_codec | unknown | 
Core Codec API Unit Tests.
Definition in file test_core_codec.c.
| 
 | static | 
Definition at line 367 of file test_core_codec.c.
| 
 | static | 
Definition at line 367 of file test_core_codec.c.
| struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) | 
Definition at line 367 of file test_core_codec.c.
| AST_TEST_DEFINE | ( | codec_get | ) | 
Definition at line 200 of file test_core_codec.c.
References ao2_cleanup, ast_codec_get(), ast_codec_register, AST_MEDIA_TYPE_AUDIO, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, audio_get, ast_codec::name, NULL, RAII_VAR, ast_codec::sample_rate, TEST_EXECUTE, TEST_INIT, and ast_codec::type.
| AST_TEST_DEFINE | ( | codec_get_id | ) | 
Definition at line 304 of file test_core_codec.c.
References ao2_cleanup, ast_codec_get(), ast_codec_get_by_id(), ast_codec_register, AST_MEDIA_TYPE_AUDIO, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, audio_get_id, NULL, RAII_VAR, TEST_EXECUTE, and TEST_INIT.
| AST_TEST_DEFINE | ( | codec_get_unknown | ) | 
Definition at line 265 of file test_core_codec.c.
References ao2_cleanup, ast_codec_get(), ast_codec_register, AST_MEDIA_TYPE_UNKNOWN, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, audio_get_unknown, ast_codec::name, NULL, RAII_VAR, ast_codec::sample_rate, TEST_EXECUTE, TEST_INIT, and ast_codec::type.
| AST_TEST_DEFINE | ( | codec_get_unregistered | ) | 
Definition at line 239 of file test_core_codec.c.
References ao2_cleanup, ast_codec_get(), AST_MEDIA_TYPE_AUDIO, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, test::name, NULL, RAII_VAR, TEST_EXECUTE, and TEST_INIT.
| AST_TEST_DEFINE | ( | codec_register | ) | 
Definition at line 107 of file test_core_codec.c.
References ast_codec_register, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, known_unknown, TEST_EXECUTE, and TEST_INIT.
| AST_TEST_DEFINE | ( | codec_register_audio_no_sample_rate | ) | 
Definition at line 178 of file test_core_codec.c.
References ast_codec_register, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, audio_without_rate, TEST_EXECUTE, and TEST_INIT.
| AST_TEST_DEFINE | ( | codec_register_twice | ) | 
Definition at line 129 of file test_core_codec.c.
References ast_codec_register, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, doubly, TEST_EXECUTE, and TEST_INIT.
| AST_TEST_DEFINE | ( | codec_register_unknown | ) | 
Definition at line 156 of file test_core_codec.c.
References ast_codec_register, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, TEST_EXECUTE, TEST_INIT, and unknown.
| 
 | static | 
Definition at line 354 of file test_core_codec.c.
References AST_MODULE_LOAD_SUCCESS, and AST_TEST_REGISTER.
| 
 | static | 
Definition at line 341 of file test_core_codec.c.
References AST_TEST_UNREGISTER.
| 
 | static | 
Definition at line 367 of file test_core_codec.c.
| 
 | static | 
Definition at line 367 of file test_core_codec.c.
| 
 | static | 
Definition at line 77 of file test_core_codec.c.
Referenced by AST_TEST_DEFINE().
| 
 | static | 
Definition at line 97 of file test_core_codec.c.
Referenced by AST_TEST_DEFINE().
| 
 | static | 
Definition at line 87 of file test_core_codec.c.
Referenced by AST_TEST_DEFINE().
| 
 | static | 
Definition at line 68 of file test_core_codec.c.
Referenced by AST_TEST_DEFINE().
| 
 | static | 
Definition at line 48 of file test_core_codec.c.
Referenced by AST_TEST_DEFINE().
| 
 | static | 
Definition at line 38 of file test_core_codec.c.
Referenced by AST_TEST_DEFINE().
| 
 | static | 
Definition at line 58 of file test_core_codec.c.
Referenced by ast_callerid_merge(), AST_TEST_DEFINE(), and odbc_log().