|
static const CdiSgList * | MakeAncillaryDataPayload (int which) |
|
static const char * | WordBits (uint32_t word_) |
|
static bool | CheckPayloadErrors (const struct AncillaryDataPayloadErrors *errors_ptr, int expected_checksum_errors, int expected_parity_errors, int line_number) |
|
static bool | CheckEqualObjects (const void *obj1_ptr, const void *obj2_ptr, size_t n, int max_lines) |
|
static bool | TestGetBaselineUnitSize () |
| Test for CdiAvmGetBaselineUnitSize.
|
|
static bool | TestValidateBaselineVersion () |
| Test for CdiAvmValidateBaselineVersionString.
|
|
static bool | TestRegisterBaselineProfile () |
| Test for CdiAvmRegisterBaselineProfile.
|
|
static bool | TestParseAncillaryDataPayloadHeader () |
| Test ParseAncillaryDataPayloadHeader.
|
|
static bool | TestParseAncillaryDataPacketHeader () |
| Test ParseAncillaryDataPacketHeader.
|
|
static bool | ReferenceParity8 (uint8_t value) |
| Parity8 reference implementation.
|
|
static bool | TestParityBits (void) |
| Test the parity-bit checking logic.
|
|
static bool | TestParseAncillaryDataPacket (void) |
| Test parsing full ancillary data packets.
|
|
static bool | TestPacketChecksum (void) |
| Test the checksum calculating logic.
|
|
static bool | TestWriteAncillaryDataPayloadHeader (void) |
| Test function.
|
|
static struct AncillaryDataPacket | MakePacket (bool c, uint16_t ln, uint16_t ho, bool s, uint8_t ssrc, uint16_t did, uint16_t sdid, uint8_t dc) |
| Helper for some test functions.
|
|
static bool | TestWriteAncillaryDataPacketHeader (void) |
| Test WriteAncillaryDataPacketHeader.
|
|
static bool | TestWriteAncillaryDataPacket (void) |
| Test WriteAncillaryDataPacket.
|
|
static bool | TestGetAncPayloadSize (void) |
| Test CdiAvmGetAncillaryDataPayloadSize.
|
|
const CdiAvmAncillaryDataPacket * | GenerateAncDataPacket (int packet_num) |
| Helper for Packetize/Unpacketize tests.
|
|
static bool | CheckEqualAncPackets (const CdiAvmAncillaryDataPacket *p1, const CdiAvmAncillaryDataPacket *p2) |
| Helper for Packetize and Unpacketize tests.
|
|
static const CdiAvmAncillaryDataPacket * | PacketizeAncCb (void *user_data_ptr) |
| Callback used by TestPacketizeAnc. Generates four different ANC packets.
|
|
static void | UnpacketizeAncCb (void *user_data_ptr, CdiFieldKind field_kind, const CdiAvmAncillaryDataPacket *packet_ptr, bool has_parity_error, bool has_checksum_error) |
| Callback used by TestUnpacketizeAncillaryData. Compares decoded with expected packets.
|
|
static void | UnpacketizeAncCb2 (void *user_data_ptr, CdiFieldKind field_kind, const CdiAvmAncillaryDataPacket *packet_ptr, bool has_parity_error, bool has_checksum_error) |
| Callback used by TestAncillaryDataPayloadChunks. Copies data to a buffer.
|
|
static int | ComputeRequiredBufferSize (const struct GenPacketControl *control) |
| Helper for serialize/deserialize test.
|
|
static bool | TestAncillaryInternalToExternalCopying (void) |
| Test the copy functions between public and internal AncillaryDataPacket structs.
|
|
static bool | TestPacketizeAncillaryData (void) |
| Test CdiAvmPacketizeAncillaryData.
|
|
static bool | TestUnpacketizeAncillaryData (void) |
| Test CdiAvmUnpacketizeAncillaryData.
|
|
static bool | TestAncillaryDataPayloadChunks (void) |
| Test packet_offset and packet_size.
|
|
CdiReturnStatus | TestUnitAvmApi (void) |
| External declarations.
|
|
This file contains unit tests for the AVM API.