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 <amxp/amxp_slot.h>
#include <amxd/amxd_dm.h>
#include <amxd/amxd_object.h>
#include <amxd/amxd_parameter.h>
#include <amxd/amxd_transaction.h>
#include <amxo/amxo.h>
#include <amxo/amxo_hooks.h>
#include "test_events.h"
#include <amxc/amxc_macros.h>
Go to the source code of this file.
Data Structures | |
struct | _expected_events |
Typedefs | |
typedef struct _expected_events | expected_events_t |
Functions | |
static void | _print_event (const char *const sig_name, const amxc_var_t *const data, void *const priv) |
static void | _check_event (const char *const sig_name, const amxc_var_t *const data, UNUSED void *const priv) |
static void | _instance_added (const char *const sig_name, const amxc_var_t *const data, UNUSED void *const priv) |
static void | _object_changed (const char *const sig_name, const amxc_var_t *const data, UNUSED void *const priv) |
void | test_event_subscription (UNUSED void **state) |
void | test_event_subscription_in_object_def (UNUSED void **state) |
void | test_event_subscription_filter (UNUSED void **state) |
void | test_subscription_warns_if_function_not_resolved (UNUSED void **state) |
void | test_populate_section_generates_events (UNUSED void **state) |
void | test_events_are_in_correct_order (UNUSED void **state) |
Variables | |
static uint32_t | event_counter = 0 |
static uint32_t | instance_add_counter = 0 |
static uint32_t | object_changed_counter = 0 |
static amxc_var_t | events |
typedef struct _expected_events expected_events_t |
|
static |
Definition at line 106 of file test_events.c.
|
static |
Definition at line 118 of file test_events.c.
|
static |
Definition at line 127 of file test_events.c.
|
static |
Definition at line 94 of file test_events.c.
void test_event_subscription | ( | UNUSED void ** | state | ) |
Definition at line 136 of file test_events.c.
void test_event_subscription_filter | ( | UNUSED void ** | state | ) |
Definition at line 241 of file test_events.c.
void test_event_subscription_in_object_def | ( | UNUSED void ** | state | ) |
Definition at line 185 of file test_events.c.
void test_events_are_in_correct_order | ( | UNUSED void ** | state | ) |
Definition at line 385 of file test_events.c.
void test_populate_section_generates_events | ( | UNUSED void ** | state | ) |
Definition at line 320 of file test_events.c.
void test_subscription_warns_if_function_not_resolved | ( | UNUSED void ** | state | ) |
Definition at line 299 of file test_events.c.
|
static |
Definition at line 89 of file test_events.c.
|
static |
Definition at line 92 of file test_events.c.
|
static |
Definition at line 90 of file test_events.c.
|
static |
Definition at line 91 of file test_events.c.