Asterisk - The Open Source Telephony Project GIT-master-a63eec2
|
Test endpoints. More...
#include "asterisk.h"
#include "asterisk/astobj2.h"
#include "asterisk/channel.h"
#include "asterisk/endpoints.h"
#include "asterisk/module.h"
#include "asterisk/stasis_channels.h"
#include "asterisk/stasis_endpoints.h"
#include "asterisk/stasis_test.h"
#include "asterisk/test.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 (cache_clear) | |
AST_TEST_DEFINE (channel_messages) | |
AST_TEST_DEFINE (state_changes) | |
static int | cache_update (struct stasis_message *msg, const void *data) |
Message matcher looking for cache update messages. | |
static int | load_module (void) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_DEFAULT , .description = "Endpoint stasis-related testing" , .key = ASTERISK_GPL_KEY , .buildopt_sum = AST_BUILDOPT_SUM, .support_level = AST_MODULE_SUPPORT_CORE, .load = load_module, .unload = unload_module, .requires = "res_stasis_test", } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static const char * | test_category = "/stasis/endpoints/" |
Test endpoints.
Definition in file test_stasis_endpoints.c.
|
static |
Definition at line 305 of file test_stasis_endpoints.c.
|
static |
Definition at line 305 of file test_stasis_endpoints.c.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 305 of file test_stasis_endpoints.c.
AST_TEST_DEFINE | ( | cache_clear | ) |
Definition at line 126 of file test_stasis_endpoints.c.
References ao2_cleanup, ast_endpoint_create(), ast_endpoint_shutdown(), ast_endpoint_snapshot_type(), ast_endpoint_topic_all_cached(), ast_hangup(), AST_TEST_NOT_RUN, AST_TEST_PASS, cache_update(), NULL, RAII_VAR, ast_endpoint_snapshot::resource, stasis_cache_update_type(), stasis_message_data(), stasis_message_sink_cb(), stasis_message_sink_create(), stasis_message_sink_wait_for(), STASIS_SINK_DEFAULT_WAIT, stasis_subscribe, stasis_unsubscribe(), sub, ast_endpoint_snapshot::tech, test_category, TEST_EXECUTE, TEST_INIT, type, and update().
AST_TEST_DEFINE | ( | channel_messages | ) |
Definition at line 206 of file test_stasis_endpoints.c.
References ao2_cleanup, ast_channel_alloc, ast_channel_snapshot_type(), ast_endpoint_add_channel(), ast_endpoint_create(), ast_endpoint_shutdown(), ast_endpoint_snapshot_type(), ast_endpoint_topic(), ast_hangup(), AST_STATE_DOWN, AST_TEST_NOT_RUN, AST_TEST_PASS, NULL, ast_endpoint_snapshot::num_channels, RAII_VAR, stasis_message_data(), stasis_message_sink_cb(), stasis_message_sink_create(), stasis_message_sink_wait_for_count(), STASIS_SINK_DEFAULT_WAIT, stasis_subscribe, stasis_unsubscribe(), sub, test_category, TEST_EXECUTE, TEST_INIT, and type.
AST_TEST_DEFINE | ( | state_changes | ) |
Definition at line 70 of file test_stasis_endpoints.c.
References ao2_cleanup, ast_endpoint_create(), AST_ENDPOINT_OFFLINE, ast_endpoint_set_max_channels(), ast_endpoint_set_state(), ast_endpoint_shutdown(), ast_endpoint_snapshot_type(), ast_endpoint_topic(), ast_hangup(), AST_TEST_NOT_RUN, AST_TEST_PASS, ast_endpoint_snapshot::max_channels, NULL, RAII_VAR, stasis_message_data(), stasis_message_sink_cb(), stasis_message_sink_create(), stasis_message_sink_wait_for_count(), STASIS_SINK_DEFAULT_WAIT, stasis_subscribe, stasis_unsubscribe(), ast_endpoint_snapshot::state, sub, test_category, TEST_EXECUTE, TEST_INIT, and type.
|
static |
Message matcher looking for cache update messages.
Definition at line 48 of file test_stasis_endpoints.c.
References ast_endpoint_snapshot_type(), name, ast_endpoint_snapshot::resource, stasis_cache_update_type(), stasis_message_data(), and update().
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 292 of file test_stasis_endpoints.c.
References AST_MODULE_LOAD_SUCCESS, and AST_TEST_REGISTER.
|
static |
Definition at line 284 of file test_stasis_endpoints.c.
References AST_TEST_UNREGISTER.
|
static |
Definition at line 305 of file test_stasis_endpoints.c.
|
static |
Definition at line 305 of file test_stasis_endpoints.c.
|
static |
Definition at line 45 of file test_stasis_endpoints.c.
Referenced by AST_TEST_DEFINE(), AST_TEST_DEFINE(), and AST_TEST_DEFINE().