CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
|
This file contains the definitions of the functions that comprise the CDI Utility Functions API. More...
#include "cdi_utility_api.h"
#include "cdi_logger_api.h"
#include <assert.h>
#include <stddef.h>
#include "cdi_test_unit_api.h"
Data Structures | |
struct | RunTestParams |
Enum/name/function keys. More... | |
Typedefs | |
typedef CdiReturnStatus(* | RunTestAPI) (void) |
Type used as a pointer to function that runs a unit test. | |
Functions | |
CdiReturnStatus | TestUnitAll (void) |
External declarations. | |
CdiReturnStatus | TestUnitAvmApi (void) |
External declarations. | |
CdiReturnStatus | TestUnitSgl (void) |
External declarations. | |
CdiReturnStatus | TestUnitTimeout (void) |
External declarations. | |
CdiReturnStatus | TestUnitTDigest (void) |
External declarations. | |
CdiReturnStatus | TestUnitRxReorderPackets (void) |
External declarations. | |
CdiReturnStatus | TestUnitRxReorderPayloads (void) |
External declarations. | |
CdiReturnStatus | TestUnitList (void) |
External declarations. | |
CdiReturnStatus | TestUnitLogger (void) |
External declarations. | |
static bool | RunTest (CdiTestUnitName test_key) |
Log a pass/fail status message. | |
const CdiEnumStringKey * | CdiTestUnitGetKeyArray (void) |
Get key array, only used internally by the CDI-SDK. | |
bool | CdiTestUnitRun (CdiTestUnitName test_name) |
Variables | |
static const RunTestParams | tests [] |
Enum/string keys for CdiTestUnitRun. | |
static CdiEnumStringKey | test_unit_name_key_array [sizeof(tests)/sizeof(tests[0])] = { 0 } |
Enum/string keys for CdiConnectionStatus. | |
This file contains the definitions of the functions that comprise the CDI Utility Functions API.
const CdiEnumStringKey * CdiTestUnitGetKeyArray | ( | void | ) |
Get key array, only used internally by the CDI-SDK.
bool CdiTestUnitRun | ( | CdiTestUnitName | test_name | ) |
Function used to convert a string to a matching enum value.
test_name | Enum from CdiTestUnitName which indicates which unit test to run. |
|
static |
Log a pass/fail status message.
test_key | Key identifying a test. |
|
extern |
External declarations.
Runs all of the defined CdiCoreGather() test cases. Testing stops on the first failed case.
|
extern |
External declarations.
External declarations.
|
extern |
External declarations.
External declarations.
|
static |
Enum/string keys for CdiTestUnitRun.