|
Z-Wave Protocol Controller Reference
|
Helper namespace for the ZPC attribute store tests. More...
Functions | |
| void | zpc_attribute_store_test_helper_init () |
| Initialize the test helper. More... | |
| void | helper_set_command_class_version (zwave_command_class_t command_class_id, const zwave_cc_version_t &version, attribute_store::attribute parent=cpp_endpoint_id_node) |
| Set version for current class. More... | |
| zwave_cc_version_t | helper_get_command_class_version (zwave_command_class_t command_class_id) |
| Get version for current class. More... | |
| attribute_store::attribute | helper_test_and_get_node (attribute_store_type_t node_type, attribute_store::attribute parent=cpp_endpoint_id_node) |
| Get a node and check that it exists. More... | |
| void | helper_test_node_exists (attribute_store_type_t node_type, attribute_store::attribute parent=cpp_endpoint_id_node) |
| Test that a node exists. More... | |
| void | helper_test_node_does_not_exists (attribute_store_type_t node_type, attribute_store::attribute parent=cpp_endpoint_id_node) |
| Test that a node doesn't exists. More... | |
| template<typename T > | |
| attribute_store::attribute | helper_test_attribute_value (attribute_store_type_t node_type, T expected_value, attribute_store::attribute parent=cpp_endpoint_id_node, attribute_store_node_value_state_t state=REPORTED_ATTRIBUTE) |
Variables | |
| attribute_store::attribute | cpp_endpoint_id_node |
Helper namespace for the ZPC attribute store tests.
CPP wrapper of the ZPC attribute store test helper. This is done in a separate file to avoid breaking linkage to existing tests.
| zwave_cc_version_t zpc_attribute_store_test_helper::helper_get_command_class_version | ( | zwave_command_class_t | command_class_id | ) |
Get version for current class.
| command_class_id | Command class id to get version |
| void zpc_attribute_store_test_helper::helper_set_command_class_version | ( | zwave_command_class_t | command_class_id, |
| const zwave_cc_version_t & | version, | ||
| attribute_store::attribute | parent = cpp_endpoint_id_node |
||
| ) |
Set version for current class.
| command_class_id | Command class id to set version |
| version | Command class version to set |
| parent | Parent node of the node to get (default to current endpoint) |
| attribute_store::attribute zpc_attribute_store_test_helper::helper_test_and_get_node | ( | attribute_store_type_t | node_type, |
| attribute_store::attribute | parent = cpp_endpoint_id_node |
||
| ) |
Get a node and check that it exists.
| node_type | Node type to get |
| parent | Parent node of the node to get (default to current endpoint) |
| attribute_store::attribute zpc_attribute_store_test_helper::helper_test_attribute_value | ( | attribute_store_type_t | node_type, |
| T | expected_value, | ||
| attribute_store::attribute | parent = cpp_endpoint_id_node, |
||
| attribute_store_node_value_state_t | state = REPORTED_ATTRIBUTE |
||
| ) |
| void zpc_attribute_store_test_helper::helper_test_node_does_not_exists | ( | attribute_store_type_t | node_type, |
| attribute_store::attribute | parent = cpp_endpoint_id_node |
||
| ) |
Test that a node doesn't exists.
| node_type | Node type to test |
| parent | Parent node of the node to get (default to current endpoint) |
| void zpc_attribute_store_test_helper::helper_test_node_exists | ( | attribute_store_type_t | node_type, |
| attribute_store::attribute | parent = cpp_endpoint_id_node |
||
| ) |
Test that a node exists.
| node_type | Node type to test |
| parent | Parent node of the node to get (default to current endpoint) |
| void zpc_attribute_store_test_helper::zpc_attribute_store_test_helper_init | ( | ) |
Initialize the test helper.
Initialize the Z-Wave network and create the base structure for the tests.
|
extern |