BSL v1.0.0 - 16.g9d98179
AMMOS Bundle Protocol Security Library (BSL)
Loading...
Searching...
No Matches
test_MockBPA_Codecs.c File Reference
#include <inttypes.h>
#include <unity.h>
#include <BPSecLib_Private.h>
#include <mock_bpa/log.h>
#include <mock_bpa/agent.h>
#include <mock_bpa/decode.h>
#include <mock_bpa/encode.h>
#include "bsl_test_utils.h"
+ Include dependency graph for test_MockBPA_Codecs.c:

Functions

static void printencoded (const uint8_t *pEncoded, size_t nLen)
 
void suiteSetUp (void)
 
int suiteTearDown (int failures)
 
void setUp (void)
 
void tearDown (void)
 
void test_BSL_TestUtils_DecodeBase16_valid (const char *text, const char *expect, size_t expect_len)
 
void test_DecodeBase16 (const char *text)
 
 TEST_CASE (BSL_BUNDLECRCTYPE_16, "89070001820282030482028201028202820000821903e81903e9004204D2")
 
void test_bsl_mock_encode_canonical (uint64_t crc_type, const char *expecthex)
 
void test_bsl_mock_encode_bundle (void)
 
void test_qcbor_decode_without_head (void)
 
void test_qcbor_decode_only_head (void)
 
void test_qcbor_decode_with_head (void)
 
void test_bsl_loopback_eid (const char *hexdata)
 
void test_bsl_loopback_bundle (const char *hexdata)
 

Variables

static BSL_LibCtx_t bsl
 
static UsefulBuf buf
 Output storage safely cleaned up.
 
static QCBOREncodeContext encoder
 Encoder shared among tests.
 

Function Documentation

◆ printencoded()

static void printencoded ( const uint8_t *  pEncoded,
size_t  nLen 
)
static

◆ setUp()

void setUp ( void  )

◆ suiteSetUp()

◆ suiteTearDown()

int suiteTearDown ( int  failures)

◆ tearDown()

void tearDown ( void  )

◆ test_bsl_loopback_bundle()

◆ test_bsl_loopback_eid()

◆ test_bsl_mock_encode_bundle()

◆ test_bsl_mock_encode_canonical()

◆ test_BSL_TestUtils_DecodeBase16_valid()

◆ TEST_CASE()

◆ test_DecodeBase16()

void test_DecodeBase16 ( const char *  text)

◆ test_qcbor_decode_only_head()

◆ test_qcbor_decode_with_head()

◆ test_qcbor_decode_without_head()

Variable Documentation

◆ bsl

BSL_LibCtx_t bsl
static

Referenced by setUp(), and tearDown().

◆ buf

◆ encoder