Asterisk - The Open Source Telephony Project GIT-master-b023714
|
#include "asterisk.h"
#include <pthread.h>
#include "asterisk/lock.h"
#include "asterisk/test.h"
#include "asterisk/module.h"
#include "asterisk/res_aeap.h"
#include "asterisk/res_aeap_message.h"
#include "../res/res_aeap/general.h"
#include "../res/res_aeap/transaction.h"
Go to the source code of this file.
Macros | |
#define | AEAP_TRANSACTION_ID "foo" |
#define | CATEGORY "/res/aeap/transaction/" |
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
AST_TEST_DEFINE (transaction_exec) | |
AST_TEST_DEFINE (transaction_exec_timeout) | |
static void * | end_transaction (void *data) |
static enum ast_test_result_state | exec (struct ast_test *test, struct ast_aeap_tsx_params *params) |
static void | handle_timeout (struct ast_aeap *aeap, struct ast_aeap_message *msg, void *obj) |
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 = "Asterisk External Application Protocol Transaction Tests" , .key = ASTERISK_GPL_KEY , .buildopt_sum = AST_BUILDOPT_SUM, .support_level = AST_MODULE_SUPPORT_CORE, .load = load_module, .unload = unload_module, .requires = "res_aeap", } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
#define AEAP_TRANSACTION_ID "foo" |
Definition at line 40 of file test_aeap_transaction.c.
#define CATEGORY "/res/aeap/transaction/" |
Definition at line 38 of file test_aeap_transaction.c.
|
static |
Definition at line 179 of file test_aeap_transaction.c.
|
static |
Definition at line 179 of file test_aeap_transaction.c.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 179 of file test_aeap_transaction.c.
AST_TEST_DEFINE | ( | transaction_exec | ) |
Definition at line 115 of file test_aeap_transaction.c.
References AST_TEST_NOT_RUN, CATEGORY, exec(), TEST_EXECUTE, TEST_INIT, and ast_aeap_tsx_params::timeout.
AST_TEST_DEFINE | ( | transaction_exec_timeout | ) |
Definition at line 136 of file test_aeap_transaction.c.
References AST_TEST_NOT_RUN, CATEGORY, exec(), handle_timeout(), TEST_EXECUTE, TEST_INIT, and ast_aeap_tsx_params::timeout.
|
static |
Definition at line 49 of file test_aeap_transaction.c.
References aeap_transaction_end(), aeap_transaction_user_obj(), and NULL.
Referenced by exec().
|
static |
Definition at line 63 of file test_aeap_transaction.c.
References aeap_transaction_create_and_add(), aeap_transaction_end(), AEAP_TRANSACTION_ID, aeap_transaction_start(), aeap_transactions_create(), ao2_bump, ao2_cleanup, ao2_ref, ast_pthread_create, AST_PTHREADT_NULL, AST_TEST_FAIL, AST_TEST_PASS, ast_test_status_update, end_transaction(), NULL, ast_aeap_tsx_params::obj, aeap_transaction::params, and ast_aeap_tsx_params::wait.
Referenced by AST_TEST_DEFINE(), and AST_TEST_DEFINE().
|
static |
Definition at line 42 of file test_aeap_transaction.c.
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 158 of file test_aeap_transaction.c.
References AST_MODULE_LOAD_SUCCESS, and AST_TEST_REGISTER.
|
static |
Definition at line 166 of file test_aeap_transaction.c.
References AST_TEST_UNREGISTER.
|
static |
Definition at line 179 of file test_aeap_transaction.c.
|
static |
Definition at line 179 of file test_aeap_transaction.c.