libamxo
4.3.4
Object Definition Language (ODL) parsing
|
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <inttypes.h>
#include <limits.h>
#include <unistd.h>
#include <fcntl.h>
#include <cmocka.h>
#include <amxc/amxc.h>
#include <amxp/amxp_signal.h>
#include <amxd/amxd_dm.h>
#include <amxd/amxd_object.h>
#include <amxd/amxd_parameter.h>
#include <amxo/amxo.h>
#include <amxo/amxo_hooks.h>
#include "test_hooks.h"
#include <amxc/amxc_macros.h>
Go to the source code of this file.
Functions | |
static void | test_hook_comment (UNUSED amxo_parser_t *parser, const char *comment) |
static void | test_hook_start (UNUSED amxo_parser_t *parser) |
static void | test_hook_end (UNUSED amxo_parser_t *parser) |
static void | test_hook_start_include (UNUSED amxo_parser_t *parser, UNUSED const char *file) |
static void | test_hook_end_include (UNUSED amxo_parser_t *parser, UNUSED const char *file) |
static void | test_hook_start_section (UNUSED amxo_parser_t *parser, UNUSED int section_id) |
static void | test_hook_end_section (UNUSED amxo_parser_t *parser, UNUSED int section_id) |
static void | test_hook_set_config (UNUSED amxo_parser_t *parser, UNUSED const char *option, UNUSED amxc_var_t *value) |
static void | test_hook_create_object (UNUSED amxo_parser_t *parser, UNUSED amxd_object_t *parent, UNUSED const char *name, UNUSED int64_t attr_bitmask, UNUSED amxd_object_type_t type) |
static void | test_hook_add_instance (UNUSED amxo_parser_t *parser, UNUSED amxd_object_t *parent, UNUSED uint32_t index, UNUSED const char *name) |
static void | test_hook_select_object (UNUSED amxo_parser_t *parser, UNUSED amxd_object_t *parent, UNUSED const char *path) |
static void | test_hook_end_object (UNUSED amxo_parser_t *parser, UNUSED amxd_object_t *object) |
static void | test_hook_add_param (UNUSED amxo_parser_t *parser, UNUSED amxd_object_t *object, UNUSED const char *name, UNUSED int64_t attr_bitmask, UNUSED uint32_t type) |
static void | test_hook_set_param (UNUSED amxo_parser_t *parser, UNUSED amxd_object_t *object, UNUSED amxd_param_t *param, UNUSED amxc_var_t *value) |
static void | test_hook_end_param (UNUSED amxo_parser_t *parser, UNUSED amxd_object_t *object, UNUSED amxd_param_t *param) |
static void | test_hook_add_func (UNUSED amxo_parser_t *parser, UNUSED amxd_object_t *object, UNUSED const char *name, UNUSED int64_t attr_bitmask, UNUSED uint32_t type) |
static void | test_hook_end_func (UNUSED amxo_parser_t *parser, UNUSED amxd_object_t *object, UNUSED amxd_function_t *function) |
static void | test_hook_add_func_arg (UNUSED amxo_parser_t *parser, UNUSED amxd_object_t *object, UNUSED amxd_function_t *func, UNUSED const char *name, UNUSED int64_t attr_bitmask, UNUSED uint32_t type, UNUSED amxc_var_t *def_value) |
static void | test_hook_set_counter (UNUSED amxo_parser_t *parser, UNUSED amxd_object_t *parent, const char *name) |
static void | test_hook_add_mib (UNUSED amxo_parser_t *parser, UNUSED amxd_object_t *object, UNUSED const char *mib) |
void | test_hooks_are_called (UNUSED void **state) |
void | test_hooks_empty_hooks (UNUSED void **state) |
void | test_hooks_add_remove_hooks (UNUSED void **state) |
Variables | |
static amxc_aqueue_t | expected_order |
static amxo_hooks_t | test_hooks |
static amxo_hooks_t | test_empty_hooks = { } |
|
static |
Definition at line 199 of file test_hooks.c.
|
static |
Definition at line 211 of file test_hooks.c.
|
static |
Definition at line 154 of file test_hooks.c.
|
static |
Definition at line 226 of file test_hooks.c.
|
static |
Definition at line 181 of file test_hooks.c.
|
static |
Definition at line 84 of file test_hooks.c.
|
static |
Definition at line 143 of file test_hooks.c.
|
static |
Definition at line 95 of file test_hooks.c.
|
static |
Definition at line 206 of file test_hooks.c.
|
static |
Definition at line 110 of file test_hooks.c.
|
static |
Definition at line 173 of file test_hooks.c.
|
static |
Definition at line 194 of file test_hooks.c.
|
static |
Definition at line 126 of file test_hooks.c.
|
static |
Definition at line 164 of file test_hooks.c.
|
static |
Definition at line 134 of file test_hooks.c.
|
static |
Definition at line 220 of file test_hooks.c.
|
static |
Definition at line 188 of file test_hooks.c.
|
static |
Definition at line 88 of file test_hooks.c.
|
static |
Definition at line 102 of file test_hooks.c.
|
static |
Definition at line 118 of file test_hooks.c.
void test_hooks_add_remove_hooks | ( | UNUSED void ** | state | ) |
Definition at line 362 of file test_hooks.c.
void test_hooks_are_called | ( | UNUSED void ** | state | ) |
Definition at line 260 of file test_hooks.c.
void test_hooks_empty_hooks | ( | UNUSED void ** | state | ) |
Definition at line 347 of file test_hooks.c.
|
static |
Definition at line 82 of file test_hooks.c.
|
static |
Definition at line 258 of file test_hooks.c.
|
static |
Definition at line 235 of file test_hooks.c.