|
AWS IoT Device SDK C:
Shadow
AWS IoT Device Shadow library
|
| Return to main page ↑ |
Tests for the user-facing API functions (declared in aws_iot_shadow.h). More...
#include "iot_config.h"#include <string.h>#include "iot_init.h"#include "private/aws_iot_shadow_internal.h"#include "unity_fixture.h"#include "iot_mqtt.h"#include "iot_tests_mqtt_mock.h"Macros | |
| #define | CHECK_MQTT_ERROR_COUNT(expected, actual) TEST_ASSERT_EQUAL( 0, actual ) |
| Whether to check the number of MQTT library errors in the malloc failure tests. More... | |
| #define | TEST_THING_NAME "TestThingName" |
| The Thing Name shared among all the tests. | |
| #define | TEST_THING_NAME_LENGTH ( sizeof( TEST_THING_NAME ) - 1 ) |
| The length of TEST_THING_NAME. | |
Functions | |
| TEST_GROUP (Shadow_Unit_API) | |
| Test group for Shadow API tests. | |
| TEST_SETUP (Shadow_Unit_API) | |
| Test setup for Shadow API tests. | |
| TEST_TEAR_DOWN (Shadow_Unit_API) | |
| Test tear down for Shadow API tests. | |
| TEST_GROUP_RUNNER (Shadow_Unit_API) | |
| Test group runner for Shadow API tests. | |
| void | TEST_Shadow_Unit_API_Init_ (void) |
| Tests the function AwsIotShadow_Init. | |
| void | TEST_Shadow_Unit_API_StringCoverage_ (void) |
| Provides code coverage of the Shadow enum-to-string function, AwsIotShadow_strerror. | |
| void | TEST_Shadow_Unit_API_OperationInvalidParameters_ (void) |
| Tests the behavior of Shadow operation functions with various invalid parameters. | |
| void | TEST_Shadow_Unit_API_DocumentInvalidParameters_ (void) |
| Tests the behavior of Shadow operation functions with an invalid document info parameter. | |
| void | TEST_Shadow_Unit_API_WaitInvalidParameters_ (void) |
| Tests the behavior of AwsIotShadow_Wait with various invalid parameters. | |
| void | TEST_Shadow_Unit_API_DeleteMallocFail_ (void) |
| Tests the behavior of AwsIotShadow_DeleteAsync when memory allocation fails at various points. | |
| void | TEST_Shadow_Unit_API_GetMallocFail_ (void) |
| Tests the behavior of AwsIotShadow_GetAsync when memory allocation fails at various points. | |
| void | TEST_Shadow_Unit_API_UpdateMallocFail_ (void) |
| Tests the behavior of AwsIotShadow_UpdateAsync when memory allocation fails at various points. | |
| void | TEST_Shadow_Unit_API_SetCallbackMallocFail_ (void) |
| Tests the behavior of the Shadow set callback functions when memory allocation fails at various points. | |
Variables | |
| static IotMqttConnection_t | _pMqttConnection = IOT_MQTT_CONNECTION_INITIALIZER |
| The MQTT connection shared among the tests. | |
Tests for the user-facing API functions (declared in aws_iot_shadow.h).
| #define CHECK_MQTT_ERROR_COUNT | ( | expected, | |
| actual | |||
| ) | TEST_ASSERT_EQUAL( 0, actual ) |
Whether to check the number of MQTT library errors in the malloc failure tests.
Should only be checked if malloc overrides are available and not testing for code coverage. In static memory mode, there should be no MQTT library errors.