libamxb
4.8.2
Bus Agnostic C API
|
#include <stdlib.h>
#include <dlfcn.h>
#include <stdarg.h>
#include <stddef.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_backend_mngr.h"
#include <amxc/amxc_macros.h>
Go to the source code of this file.
Macros | |
#define | ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) |
Functions | |
void * | __real_dlopen (const char *filename, int flag) |
int | __real_dlclose (void *handle) |
void * | __wrap_dlopen (const char *filename, int flag) |
int | __wrap_dlclose (void *handle) |
void * | __wrap_dlsym (void *handle, const char *symbol) |
static amxb_be_info_t * | fake_get_version_info () |
static void * | fake_connect (UNUSED const char *host, UNUSED const char *port, UNUSED const char *path, UNUSED amxp_signal_mngr_t *sigmngr) |
static int | fake_disconnect (void *ctx) |
void * | __wrap_dlopen (UNUSED const char *filename, UNUSED int flag) |
int | __wrap_dlclose (UNUSED void *handle) |
void * | __wrap_dlsym (UNUSED void *handle, const char *symbol) |
void | test_amxb_be_register (UNUSED void **state) |
void | test_amxb_be_unregister (UNUSED void **state) |
void | test_amxb_be_find (UNUSED void **state) |
void | test_amxb_be_load (UNUSED void **state) |
void | test_amxb_be_load_same_multiple_times (UNUSED void **state) |
void | test_amxb_be_load_multiple (UNUSED void **state) |
void | test_amxb_be_remove (UNUSED void **state) |
void | test_amxb_be_remove_all (UNUSED void **state) |
void | test_amxb_be_load_version_checking (UNUSED void **state) |
void | test_amxb_be_get_version (UNUSED void **state) |
void | test_amxb_set_config (UNUSED void **state) |
void | test_amxb_be_get_info (UNUSED void **state) |
Variables | |
static void * | fake_handle = NULL |
static char * | fake_ctx = "fake" |
static int | return_val = 0 |
static uint32_t | min_version_id = 0 |
static uint32_t | max_version_id = 0 |
static bool | has_info = true |
static bool | register_be = true |
static amxb_version_t | sup_min_version [] |
static amxb_version_t | sup_max_version [] |
static amxb_version_t | be_version |
static amxb_be_info_t | be_info |
static amxb_be_funcs_t | dummy_be1 |
static amxb_be_funcs_t | dummy_be2 |
static amxb_be_funcs_t | dummy_be3 |
static amxb_be_funcs_t | dummy_be4 |
static amxb_be_funcs_t | dummy_be5 |
static amxb_be_funcs_t | dummy_be6 |
#define ARRAY_SIZE | ( | arr | ) | (sizeof(arr) / sizeof((arr)[0])) |
Definition at line 78 of file test_amxb_backend_mngr.c.
int __real_dlclose | ( | void * | handle | ) |
void* __real_dlopen | ( | const char * | filename, |
int | flag | ||
) |
int __wrap_dlclose | ( | UNUSED void * | handle | ) |
Definition at line 246 of file test_amxb_backend_mngr.c.
int __wrap_dlclose | ( | void * | handle | ) |
void* __wrap_dlopen | ( | const char * | filename, |
int | flag | ||
) |
void* __wrap_dlopen | ( | UNUSED const char * | filename, |
UNUSED int | flag | ||
) |
Definition at line 229 of file test_amxb_backend_mngr.c.
void* __wrap_dlsym | ( | UNUSED void * | handle, |
const char * | symbol | ||
) |
Definition at line 250 of file test_amxb_backend_mngr.c.
void* __wrap_dlsym | ( | void * | handle, |
const char * | symbol | ||
) |
|
static |
Definition at line 180 of file test_amxb_backend_mngr.c.
|
static |
Definition at line 187 of file test_amxb_backend_mngr.c.
|
static |
Definition at line 165 of file test_amxb_backend_mngr.c.
void test_amxb_be_find | ( | UNUSED void ** | state | ) |
Definition at line 290 of file test_amxb_backend_mngr.c.
void test_amxb_be_get_info | ( | UNUSED void ** | state | ) |
Definition at line 554 of file test_amxb_backend_mngr.c.
void test_amxb_be_get_version | ( | UNUSED void ** | state | ) |
Definition at line 529 of file test_amxb_backend_mngr.c.
void test_amxb_be_load | ( | UNUSED void ** | state | ) |
Definition at line 319 of file test_amxb_backend_mngr.c.
void test_amxb_be_load_multiple | ( | UNUSED void ** | state | ) |
Definition at line 362 of file test_amxb_backend_mngr.c.
void test_amxb_be_load_same_multiple_times | ( | UNUSED void ** | state | ) |
Definition at line 345 of file test_amxb_backend_mngr.c.
void test_amxb_be_load_version_checking | ( | UNUSED void ** | state | ) |
Definition at line 484 of file test_amxb_backend_mngr.c.
void test_amxb_be_register | ( | UNUSED void ** | state | ) |
Definition at line 259 of file test_amxb_backend_mngr.c.
void test_amxb_be_remove | ( | UNUSED void ** | state | ) |
Definition at line 421 of file test_amxb_backend_mngr.c.
void test_amxb_be_remove_all | ( | UNUSED void ** | state | ) |
Definition at line 454 of file test_amxb_backend_mngr.c.
void test_amxb_be_unregister | ( | UNUSED void ** | state | ) |
Definition at line 274 of file test_amxb_backend_mngr.c.
void test_amxb_set_config | ( | UNUSED void ** | state | ) |
Definition at line 542 of file test_amxb_backend_mngr.c.
|
static |
Definition at line 159 of file test_amxb_backend_mngr.c.
|
static |
Definition at line 153 of file test_amxb_backend_mngr.c.
|
static |
Definition at line 192 of file test_amxb_backend_mngr.c.
|
static |
Definition at line 199 of file test_amxb_backend_mngr.c.
|
static |
Definition at line 205 of file test_amxb_backend_mngr.c.
|
static |
Definition at line 211 of file test_amxb_backend_mngr.c.
|
static |
Definition at line 217 of file test_amxb_backend_mngr.c.
|
static |
Definition at line 223 of file test_amxb_backend_mngr.c.
|
static |
Definition at line 88 of file test_amxb_backend_mngr.c.
|
static |
Definition at line 87 of file test_amxb_backend_mngr.c.
|
static |
Definition at line 93 of file test_amxb_backend_mngr.c.
|
static |
Definition at line 92 of file test_amxb_backend_mngr.c.
|
static |
Definition at line 91 of file test_amxb_backend_mngr.c.
|
static |
Definition at line 94 of file test_amxb_backend_mngr.c.
|
static |
Definition at line 89 of file test_amxb_backend_mngr.c.
|
static |
Definition at line 137 of file test_amxb_backend_mngr.c.
|
static |
Definition at line 96 of file test_amxb_backend_mngr.c.