File tests.h

Header of the unittests of this package.

License:

License BSD-3-Clause

Author

Vincent Berenz

Copyright

Copyright (c) 2019, New York University and Max Planck Gesellschaft.

Date

2019-05-22

Defines

DATA_EXCHANGE_QUEUE_SIZE
namespace shared_memory_test

Enums

enum Actions

Values:

enumerator set_double
enumerator set_int
enumerator set_float
enumerator set_string
enumerator set_vector
enumerator set_eigen_vector
enumerator set_int_double_map
enumerator set_string_double_map
enumerator set_double_array
enumerator set_string_vector_double_map
enumerator set_string_vector_eigen_map
enumerator concurrent_1
enumerator concurrent_2
enumerator locked_condition_variable
enumerator condition_variable
enumerator exchange_manager

Functions

const std::string segment_id ("unit_test_segment")
const std::string segment_cv_id ("unit_test_cv_segment")
const std::string segment_mutex_id ("unit_test_mutex_segment")
const std::string object_id ("unit_test_object")
const std::string cond_var_id ("unit_test_cond_var")
const std::string exchange_manager_segment_id ("em_test_segment")
const std::string exchange_manager_object_id ("em_test_object")
const std::string concurrent_proc1_ready ("concurrent_proc1_ready")
const std::string concurrent_proc2_ready ("concurrent_proc2_ready")
const std::string test_string ("test_string")
const std::string map_string_keys1 ("s1")
const std::string map_string_keys2 ("s2")

Variables

const double test_double = 4.4
const float test_float = 4.4
const int test_int = 3
const double test_array[4] = {1.1, 2.2, 3.3, 4.4}
const unsigned int test_array_size = 4
const int map_int_keys1 = 0
const int map_int_keys2 = 1
const double map_value_1 = 3.3
const double map_value_2 = 4.4
const double concurrent_value_1 = 1.0
const double concurrent_value_2 = 2.0
const double concurrent_stop_value = 3.0
const unsigned int test_map_size = 2
const int nb_to_consume = 100