Asterisk - The Open Source Telephony Project GIT-master-b023714
|
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 = ASTERISK_GPL_KEY , .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(), and 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, 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, 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, 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_MODULE_LOAD_SUCCESS, and AST_TEST_REGISTER.
|
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(), and AST_TEST_DEFINE().
|
static |
Definition at line 180 of file test_res_stasis.c.
References AST_TEST_UNREGISTER.
|
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(), AST_TEST_DEFINE(), and AST_TEST_DEFINE().