libamxb
4.8.2
Bus Agnostic C API
|
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <stddef.h>
#include <string.h>
#include <unistd.h>
#include <setjmp.h>
#include <cmocka.h>
#include <amxc/amxc_variant.h>
#include <amxc/amxc_htable.h>
#include <amxc/amxc_lqueue.h>
#include <amxp/amxp_signal.h>
#include <amxp/amxp_slot.h>
#include <amxd/amxd_dm.h>
#include <amxb/amxb_be.h>
#include <amxb/amxb.h>
#include "test_amxb_ba_subscribe.h"
#include <amxc/amxc_macros.h>
Go to the source code of this file.
Functions | |
int | __wrap_dlclose (void *handle) |
static void | handle_events (void) |
static void * | dummy_connect (const char *host, const char *port, const char *path, UNUSED amxp_signal_mngr_t *sigmngr) |
static int | dummy_disconnect (void *ctx) |
static int | dummy_get_fd (void *ctx) |
static void | dummy_free (void *ctx) |
static int | dummy_read (void *const ctx) |
static int | dummy_describe (void *const ctx, const char *object, UNUSED const char *search_path, UNUSED uint32_t flags, UNUSED uint32_t access, amxc_var_t *values, UNUSED int timeout) |
static int | dummy_subscribe (void *const ctx, UNUSED const char *object) |
static int | dummy_unsubscribe (void *const ctx, UNUSED const char *object) |
int | __wrap_dlclose (UNUSED void *handle) |
static void | dummy_notify_handler (UNUSED const char *const sig_name, UNUSED const amxc_var_t *const data, UNUSED void *const priv) |
static void | dummy_notify_handler2 (UNUSED const char *const sig_name, UNUSED const amxc_var_t *const data, UNUSED void *const priv) |
void | test_amxb_subscribe (UNUSED void **state) |
void | test_amxb_subscribe_invalid_path (UNUSED void **state) |
void | test_amxb_subscribe_should_not_segfault (UNUSED void **state) |
void | test_amxb_unsubscribe (UNUSED void **state) |
void | test_amxb_subscription_new (UNUSED void **state) |
static void | test_wait_done (UNUSED const char *const sig_name, UNUSED const amxc_var_t *const data, void *const priv) |
void | test_amxb_wait_for (UNUSED void **state) |
void | test_amxb_subscription_find (UNUSED void **state) |
Variables | |
static char * | dummy_ctx = "xbus" |
static char | verify_host [64] |
static char | verify_port [64] |
static char | verify_path [64] |
static int | return_val |
static const char * | sub_obj = NULL |
static amxb_be_funcs_t | dummy_be1 |
static amxb_be_funcs_t | dummy_be3 |
static amxb_be_funcs_t | dummy_be4 |
int __wrap_dlclose | ( | UNUSED void * | handle | ) |
Definition at line 188 of file test_amxb_ba_subscribe.c.
int __wrap_dlclose | ( | void * | handle | ) |
|
static |
Definition at line 96 of file test_amxb_ba_subscribe.c.
|
static |
Definition at line 126 of file test_amxb_ba_subscribe.c.
|
static |
Definition at line 107 of file test_amxb_ba_subscribe.c.
|
static |
Definition at line 117 of file test_amxb_ba_subscribe.c.
|
static |
Definition at line 112 of file test_amxb_ba_subscribe.c.
|
static |
Definition at line 192 of file test_amxb_ba_subscribe.c.
|
static |
Definition at line 198 of file test_amxb_ba_subscribe.c.
|
static |
Definition at line 121 of file test_amxb_ba_subscribe.c.
|
static |
Definition at line 149 of file test_amxb_ba_subscribe.c.
|
static |
Definition at line 155 of file test_amxb_ba_subscribe.c.
|
static |
Definition at line 88 of file test_amxb_ba_subscribe.c.
void test_amxb_subscribe | ( | UNUSED void ** | state | ) |
Definition at line 204 of file test_amxb_ba_subscribe.c.
void test_amxb_subscribe_invalid_path | ( | UNUSED void ** | state | ) |
Definition at line 240 of file test_amxb_ba_subscribe.c.
void test_amxb_subscribe_should_not_segfault | ( | UNUSED void ** | state | ) |
Definition at line 262 of file test_amxb_ba_subscribe.c.
void test_amxb_subscription_find | ( | UNUSED void ** | state | ) |
Definition at line 396 of file test_amxb_ba_subscribe.c.
void test_amxb_subscription_new | ( | UNUSED void ** | state | ) |
Definition at line 321 of file test_amxb_ba_subscribe.c.
void test_amxb_unsubscribe | ( | UNUSED void ** | state | ) |
Definition at line 278 of file test_amxb_ba_subscribe.c.
void test_amxb_wait_for | ( | UNUSED void ** | state | ) |
Definition at line 362 of file test_amxb_ba_subscribe.c.
|
static |
Definition at line 355 of file test_amxb_ba_subscribe.c.
|
static |
Definition at line 161 of file test_amxb_ba_subscribe.c.
|
static |
Definition at line 174 of file test_amxb_ba_subscribe.c.
|
static |
Definition at line 180 of file test_amxb_ba_subscribe.c.
|
static |
Definition at line 79 of file test_amxb_ba_subscribe.c.
|
static |
Definition at line 83 of file test_amxb_ba_subscribe.c.
|
static |
Definition at line 84 of file test_amxb_ba_subscribe.c.
|
static |
Definition at line 80 of file test_amxb_ba_subscribe.c.
|
static |
Definition at line 82 of file test_amxb_ba_subscribe.c.
|
static |
Definition at line 81 of file test_amxb_ba_subscribe.c.