libamxd
6.4.1
Data Model Manager
|
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <fcntl.h>
#include <unistd.h>
#include <signal.h>
#include <cmocka.h>
#include <sys/signalfd.h>
#include <string.h>
#include <amxc/amxc.h>
#include <amxp/amxp_signal.h>
#include <amxp/amxp_slot.h>
#include <amxp/amxp_timer.h>
#include <amxd/amxd_common.h>
#include <amxd/amxd_dm.h>
#include <amxd/amxd_object.h>
#include <amxd/amxd_object_event.h>
#include <amxd/amxd_transaction.h>
#include "test_amxd_object_event.h"
#include <amxc/amxc_macros.h>
Go to the source code of this file.
Functions | |
static void | test_event_handler (UNUSED const char *const sig_name, UNUSED const amxc_var_t *const data, void *const priv) |
static void | test_build_dm (void) |
static int | read_sig_alarm (void) |
int | test_object_event_setup (UNUSED void **state) |
int | test_object_event_teardown (UNUSED void **state) |
void | test_can_start_and_stop_periodic_inform (UNUSED void **state) |
void | test_only_one_periodic_inform_per_object (UNUSED void **state) |
void | test_timer_stops_when_object_is_destroyed (UNUSED void **state) |
void | test_events_are_not_duplicated (UNUSED void **state) |
void | test_can_allocate_event_data (UNUSED void **state) |
void | test_allocate_event_data_fails_when_event_not_found (UNUSED void **state) |
void | test_can_send_event (UNUSED void **state) |
void | test_can_change_event_definition (UNUSED void **state) |
void | test_can_remove_event_definition (UNUSED void **state) |
void | test_event_changed_is_send (UNUSED void **state) |
Variables | |
static amxd_dm_t | dm |
static int | sfd |
static sigset_t | mask |
|
static |
Definition at line 133 of file test_amxd_object_event.c.
void test_allocate_event_data_fails_when_event_not_found | ( | UNUSED void ** | state | ) |
Definition at line 329 of file test_amxd_object_event.c.
|
static |
Definition at line 95 of file test_amxd_object_event.c.
void test_can_allocate_event_data | ( | UNUSED void ** | state | ) |
Definition at line 311 of file test_amxd_object_event.c.
void test_can_change_event_definition | ( | UNUSED void ** | state | ) |
Definition at line 367 of file test_amxd_object_event.c.
void test_can_remove_event_definition | ( | UNUSED void ** | state | ) |
Definition at line 380 of file test_amxd_object_event.c.
void test_can_send_event | ( | UNUSED void ** | state | ) |
Definition at line 347 of file test_amxd_object_event.c.
void test_can_start_and_stop_periodic_inform | ( | UNUSED void ** | state | ) |
Definition at line 175 of file test_amxd_object_event.c.
void test_event_changed_is_send | ( | UNUSED void ** | state | ) |
Definition at line 390 of file test_amxd_object_event.c.
|
static |
Definition at line 87 of file test_amxd_object_event.c.
void test_events_are_not_duplicated | ( | UNUSED void ** | state | ) |
Definition at line 277 of file test_amxd_object_event.c.
int test_object_event_setup | ( | UNUSED void ** | state | ) |
Definition at line 153 of file test_amxd_object_event.c.
int test_object_event_teardown | ( | UNUSED void ** | state | ) |
Definition at line 168 of file test_amxd_object_event.c.
void test_only_one_periodic_inform_per_object | ( | UNUSED void ** | state | ) |
Definition at line 226 of file test_amxd_object_event.c.
void test_timer_stops_when_object_is_destroyed | ( | UNUSED void ** | state | ) |
Definition at line 254 of file test_amxd_object_event.c.
|
static |
Definition at line 83 of file test_amxd_object_event.c.
|
static |
Definition at line 85 of file test_amxd_object_event.c.
|
static |
Definition at line 84 of file test_amxd_object_event.c.