Asterisk - The Open Source Telephony Project
18.5.0
|
Test Stasis Channel messages and objects. More...
#include "asterisk.h"
#include "asterisk/astobj2.h"
#include "asterisk/module.h"
#include "asterisk/stasis.h"
#include "asterisk/stasis_message_router.h"
#include "asterisk/test.h"
#include "asterisk/stasis_channels.h"
#include "asterisk/channel.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 (channel_blob_create) | |
AST_TEST_DEFINE (null_blob) | |
AST_TEST_DEFINE (multi_channel_blob_create) | |
AST_TEST_DEFINE (multi_channel_blob_snapshots) | |
AST_TEST_DEFINE (channel_snapshot_json) | |
static int | load_module (void) |
static void | safe_channel_release (struct ast_channel *chan) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = 0 , .description = "Stasis Channel Testing" , .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, .support_level = AST_MODULE_SUPPORT_CORE, .load = load_module, .unload = unload_module } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static const char * | test_category = "/stasis/channels/" |
Test Stasis Channel messages and objects.
Definition in file test_stasis_channels.c.
|
static |
Definition at line 335 of file test_stasis_channels.c.
|
static |
Definition at line 335 of file test_stasis_channels.c.
struct ast_module* AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 335 of file test_stasis_channels.c.
AST_TEST_DEFINE | ( | channel_blob_create | ) |
Definition at line 53 of file test_stasis_channels.c.
References ao2_cleanup, ao2_ref, ast_channel_alloc, ast_channel_blob_create(), ast_channel_lock, ast_channel_unlock, ast_json_pack(), ast_json_unref(), AST_STATE_DOWN, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_channel_blob::blob, sip_to_pjsip::info(), NULL, RAII_VAR, safe_channel_release(), ast_channel_blob::snapshot, stasis_message_data(), stasis_message_type(), stasis_message_type_create(), STASIS_MESSAGE_TYPE_SUCCESS, test_category, TEST_EXECUTE, TEST_INIT, and type.
AST_TEST_DEFINE | ( | null_blob | ) |
Definition at line 108 of file test_stasis_channels.c.
References ao2_cleanup, ast_channel_alloc, ast_channel_blob_create(), ast_channel_lock, ast_channel_unlock, ast_json_null(), ast_json_pack(), ast_json_unref(), AST_STATE_DOWN, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_channel_blob::blob, sip_to_pjsip::info(), NULL, RAII_VAR, safe_channel_release(), ast_channel_blob::snapshot, stasis_message_data(), stasis_message_type(), stasis_message_type_create(), STASIS_MESSAGE_TYPE_SUCCESS, test_category, TEST_EXECUTE, TEST_INIT, and type.
AST_TEST_DEFINE | ( | multi_channel_blob_create | ) |
Definition at line 148 of file test_stasis_channels.c.
References ao2_cleanup, ast_json_pack(), ast_json_unref(), ast_multi_channel_blob_create(), ast_multi_channel_blob_get_json(), AST_TEST_NOT_RUN, AST_TEST_PASS, ast_channel_blob::blob, sip_to_pjsip::info(), NULL, RAII_VAR, test_category, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | multi_channel_blob_snapshots | ) |
Definition at line 176 of file test_stasis_channels.c.
References ao2_cleanup, ao2_container_count(), ao2_find, ao2_ref, ast_channel_alloc, ast_channel_lock, ast_channel_snapshot_create(), ast_channel_unlock, ast_json_pack(), ast_json_unref(), ast_multi_channel_blob_add_channel(), ast_multi_channel_blob_create(), ast_multi_channel_blob_get_channel(), ast_multi_channel_blob_get_channels(), AST_STATE_DOWN, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_channel_snapshot::base, ast_channel_blob::blob, sip_to_pjsip::info(), ast_channel_snapshot_base::name, NULL, OBJ_KEY, RAII_VAR, safe_channel_release(), test_category, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | channel_snapshot_json | ) |
Definition at line 246 of file test_stasis_channels.c.
References ao2_cleanup, ast_channel_alloc, ast_channel_creationtime(), ast_channel_lock, ast_channel_snapshot_create(), ast_channel_snapshot_to_json(), ast_channel_uniqueid(), ast_channel_unlock, ast_json_equal(), ast_json_pack(), ast_json_timeval(), ast_json_unref(), AST_STATE_DOWN, AST_TEST_NOT_RUN, AST_TEST_PASS, sip_to_pjsip::info(), NULL, RAII_VAR, safe_channel_release(), test_category, TEST_EXECUTE, and TEST_INIT.
|
static |
Definition at line 320 of file test_stasis_channels.c.
References AST_MODULE_INFO(), AST_MODULE_LOAD_SUCCESS, AST_MODULE_SUPPORT_CORE, AST_TEST_REGISTER, ASTERISK_GPL_KEY, and unload_module().
|
static |
Definition at line 45 of file test_stasis_channels.c.
References ast_channel_release().
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 309 of file test_stasis_channels.c.
References AST_TEST_UNREGISTER.
Referenced by load_module().
|
static |
Definition at line 335 of file test_stasis_channels.c.
|
static |
Definition at line 335 of file test_stasis_channels.c.
|
static |
Definition at line 43 of file test_stasis_channels.c.
Referenced by AST_TEST_DEFINE().