Asterisk - The Open Source Telephony Project
18.5.0
|
Test Stasis Application API.
More...#include "asterisk.h"
#include "asterisk/module.h"
#include "asterisk/test.h"
#include "asterisk/stasis_app.h"
Go to the source code of this file.
Data Structures | |
struct | app_data |
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
static struct app_data * | app_data_create (void) |
static void | app_data_dtor (void *obj) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
AST_TEST_DEFINE (app_invoke_dne) | |
AST_TEST_DEFINE (app_invoke_one) | |
AST_TEST_DEFINE (app_replaced) | |
static int | load_module (void) |
static void | test_handler (void *data, const char *app_name, struct ast_json *message) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_DEFAULT , .description = "Stasis Core 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, .requires = "res_stasis", } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static const char * | test_category = "/stasis/res/" |
Test Stasis Application API.
Definition in file test_res_stasis.c.
|
static |
Definition at line 201 of file test_res_stasis.c.
|
static |
Definition at line 201 of file test_res_stasis.c.
|
static |
Definition at line 75 of file test_res_stasis.c.
References ao2_alloc, app_data_dtor(), ast_json_array_create(), app_data::messages, and NULL.
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 67 of file test_res_stasis.c.
References ast_json_unref(), app_data::messages, and NULL.
Referenced by app_data_create().
struct ast_module* AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 201 of file test_res_stasis.c.
AST_TEST_DEFINE | ( | app_invoke_dne | ) |
Definition at line 41 of file test_res_stasis.c.
References ast_json_null(), AST_TEST_NOT_RUN, AST_TEST_PASS, sip_to_pjsip::info(), stasis_app_send(), test_category, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | app_invoke_one | ) |
Definition at line 96 of file test_res_stasis.c.
References ao2_cleanup, app_data_create(), app_name(), ast_json_equal(), ast_json_null(), ast_json_pack(), ast_json_ref(), ast_json_unref(), AST_TEST_NOT_RUN, AST_TEST_PASS, sip_to_pjsip::info(), app_data::invocations, app_data::messages, NULL, RAII_VAR, stasis_app_register(), stasis_app_send(), stasis_app_unregister(), test_category, TEST_EXECUTE, test_handler(), and TEST_INIT.
AST_TEST_DEFINE | ( | app_replaced | ) |
Definition at line 131 of file test_res_stasis.c.
References ao2_cleanup, app_data_create(), app_name(), ast_eid_default, ast_eid_to_str(), ast_json_array_get(), ast_json_equal(), ast_json_null(), ast_json_object_del(), ast_json_object_get(), ast_json_pack(), ast_json_ref(), ast_json_unref(), AST_TEST_NOT_RUN, AST_TEST_PASS, sip_to_pjsip::info(), NULL, RAII_VAR, stasis_app_register(), stasis_app_send(), stasis_app_unregister(), test_category, TEST_EXECUTE, test_handler(), and TEST_INIT.
|
static |
Definition at line 188 of file test_res_stasis.c.
References AST_MODFLAG_DEFAULT, AST_MODULE_INFO(), AST_MODULE_LOAD_SUCCESS, AST_MODULE_SUPPORT_CORE, AST_TEST_REGISTER, ASTERISK_GPL_KEY, and unload_module().
|
static |
Definition at line 87 of file test_res_stasis.c.
References ast_assert, ast_json_array_append(), ast_json_copy(), app_data::invocations, and app_data::messages.
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 180 of file test_res_stasis.c.
References AST_TEST_UNREGISTER.
Referenced by load_module().
|
static |
Definition at line 201 of file test_res_stasis.c.
|
static |
Definition at line 201 of file test_res_stasis.c.
|
static |
Definition at line 39 of file test_res_stasis.c.
Referenced by AST_TEST_DEFINE().