AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Functions | Variables
alexaClientSDK::codecUtils::test Namespace Reference

Test cases for CodecUtils. More...

Functions

 TEST (Base64InternalCodecTest, test_base64EncodeEmpty)
 
 TEST (Base64InternalCodecTest, test_base64EncodeAppend)
 
 TEST (Base64InternalCodecTest, test_base64EncodeTestStr)
 
 TEST (Base64InternalCodecTest, test_base64DecodeEmpty)
 
 TEST (Base64InternalCodecTest, test_base64DecodeAppend)
 
 TEST (Base64InternalCodecTest, test_base64DecodeTestStr)
 
 TEST (Base64InternalCodecTest, test_base64DecodeAppendWhitespace)
 
 TEST (Base64InternalCodecTest, test_base64DecodeError)
 
 TEST (Base64InternalCodecTest, test_base64DecodeErrorBadTail)
 
 TEST (Base64InternalCodecTest, test_base64DecodeErrorDataAfterEnd)
 
 TEST (Base64InternalCodecTest, test_base64DecodeErrorEarlyEnd)
 
 TEST (HexCodecTest, test_hexDecode)
 
 TEST (HexCodecTest, test_hexDecodeAFLowerCase)
 
 TEST (HexCodecTest, test_hexDecodeAFUpperCase)
 
 TEST (HexCodecTest, test_hexDecodeAFMixedCase)
 
 TEST (HexCodecTest, test_hexDecodeTestStringUpperCase)
 
 TEST (HexCodecTest, test_hexDecodeTestStringLowerCase)
 
 TEST (HexCodecTest, test_hexDecodeAppend)
 
 TEST (HexCodecTest, test_hexDecodeBadSize)
 
 TEST (HexCodecTest, test_hexDecodeBadChar)
 
 TEST (HexCodecTest, test_hexEncode)
 
 TEST (HexCodecTest, test_hexEncodeAppend)
 
 TEST (HexCodecTest, test_hexEncodeAF)
 
 TEST (HexCodecTest, test_hexEncodeTestString)
 
 TEST (HexCodecTest, test_hexDecodeWithWhitespace)
 

Variables

static const std::string TEST_STR {"A quick brown fox jumps over the lazy dog."}
 
static const std::string TEST_STR_B64 {"QSBxdWljayBicm93biBmb3gganVtcHMgb3ZlciB0aGUgbGF6eSBkb2cu"}
 
const std::string HEX_STR = "0123456789"
 
const Bytes HEX_STR_BINARY {0x01, 0x23, 0x45, 0x67, 0x89}
 
const Bytes HEX_STR_BINARY2 {0x01, 0x23, 0x45, 0x67, 0x89, 0x01, 0x23, 0x45, 0x67, 0x89}
 
static const std::string TEST_STR {"A quick brown fox jumps over the lazy dog."}
 
static const std::string TEST_STR_HEX_U
 
static const std::string TEST_STR_HEX_L
 

Detailed Description

Test cases for CodecUtils.

See also
CodecUtils

Function Documentation

◆ TEST() [1/25]

alexaClientSDK::codecUtils::test::TEST ( Base64InternalCodecTest  ,
test_base64EncodeEmpty   
)

◆ TEST() [2/25]

alexaClientSDK::codecUtils::test::TEST ( Base64InternalCodecTest  ,
test_base64EncodeAppend   
)

◆ TEST() [3/25]

alexaClientSDK::codecUtils::test::TEST ( HexCodecTest  ,
test_hexDecode   
)

◆ TEST() [4/25]

alexaClientSDK::codecUtils::test::TEST ( Base64InternalCodecTest  ,
test_base64EncodeTestStr   
)

◆ TEST() [5/25]

alexaClientSDK::codecUtils::test::TEST ( HexCodecTest  ,
test_hexDecodeAFLowerCase   
)

◆ TEST() [6/25]

alexaClientSDK::codecUtils::test::TEST ( Base64InternalCodecTest  ,
test_base64DecodeEmpty   
)

◆ TEST() [7/25]

alexaClientSDK::codecUtils::test::TEST ( HexCodecTest  ,
test_hexDecodeAFUpperCase   
)

◆ TEST() [8/25]

alexaClientSDK::codecUtils::test::TEST ( Base64InternalCodecTest  ,
test_base64DecodeAppend   
)

◆ TEST() [9/25]

alexaClientSDK::codecUtils::test::TEST ( HexCodecTest  ,
test_hexDecodeAFMixedCase   
)

◆ TEST() [10/25]

alexaClientSDK::codecUtils::test::TEST ( Base64InternalCodecTest  ,
test_base64DecodeTestStr   
)

◆ TEST() [11/25]

alexaClientSDK::codecUtils::test::TEST ( HexCodecTest  ,
test_hexDecodeTestStringUpperCase   
)

◆ TEST() [12/25]

alexaClientSDK::codecUtils::test::TEST ( Base64InternalCodecTest  ,
test_base64DecodeAppendWhitespace   
)

◆ TEST() [13/25]

alexaClientSDK::codecUtils::test::TEST ( Base64InternalCodecTest  ,
test_base64DecodeError   
)

◆ TEST() [14/25]

alexaClientSDK::codecUtils::test::TEST ( HexCodecTest  ,
test_hexDecodeTestStringLowerCase   
)

◆ TEST() [15/25]

alexaClientSDK::codecUtils::test::TEST ( Base64InternalCodecTest  ,
test_base64DecodeErrorBadTail   
)

◆ TEST() [16/25]

alexaClientSDK::codecUtils::test::TEST ( HexCodecTest  ,
test_hexDecodeAppend   
)

◆ TEST() [17/25]

alexaClientSDK::codecUtils::test::TEST ( Base64InternalCodecTest  ,
test_base64DecodeErrorDataAfterEnd   
)

◆ TEST() [18/25]

alexaClientSDK::codecUtils::test::TEST ( HexCodecTest  ,
test_hexDecodeBadSize   
)

◆ TEST() [19/25]

alexaClientSDK::codecUtils::test::TEST ( Base64InternalCodecTest  ,
test_base64DecodeErrorEarlyEnd   
)

◆ TEST() [20/25]

alexaClientSDK::codecUtils::test::TEST ( HexCodecTest  ,
test_hexDecodeBadChar   
)

◆ TEST() [21/25]

alexaClientSDK::codecUtils::test::TEST ( HexCodecTest  ,
test_hexEncode   
)

◆ TEST() [22/25]

alexaClientSDK::codecUtils::test::TEST ( HexCodecTest  ,
test_hexEncodeAppend   
)

◆ TEST() [23/25]

alexaClientSDK::codecUtils::test::TEST ( HexCodecTest  ,
test_hexEncodeAF   
)

◆ TEST() [24/25]

alexaClientSDK::codecUtils::test::TEST ( HexCodecTest  ,
test_hexEncodeTestString   
)

◆ TEST() [25/25]

alexaClientSDK::codecUtils::test::TEST ( HexCodecTest  ,
test_hexDecodeWithWhitespace   
)

Variable Documentation

◆ HEX_STR

const std::string alexaClientSDK::codecUtils::test::HEX_STR = "0123456789"

◆ HEX_STR_BINARY

const Bytes alexaClientSDK::codecUtils::test::HEX_STR_BINARY {0x01, 0x23, 0x45, 0x67, 0x89}

◆ HEX_STR_BINARY2

const Bytes alexaClientSDK::codecUtils::test::HEX_STR_BINARY2 {0x01, 0x23, 0x45, 0x67, 0x89, 0x01, 0x23, 0x45, 0x67, 0x89}

◆ TEST_STR [1/2]

const std::string alexaClientSDK::codecUtils::test::TEST_STR {"A quick brown fox jumps over the lazy dog."}
static

◆ TEST_STR [2/2]

const std::string alexaClientSDK::codecUtils::test::TEST_STR {"A quick brown fox jumps over the lazy dog."}
static

◆ TEST_STR_B64

const std::string alexaClientSDK::codecUtils::test::TEST_STR_B64 {"QSBxdWljayBicm93biBmb3gganVtcHMgb3ZlciB0aGUgbGF6eSBkb2cu"}
static

◆ TEST_STR_HEX_L

const std::string alexaClientSDK::codecUtils::test::TEST_STR_HEX_L
static
Initial value:
{
"4120717569636b2062726f776e20666f78206a756d7073206f76657220746865206c617a7920646f672e"}

◆ TEST_STR_HEX_U

const std::string alexaClientSDK::codecUtils::test::TEST_STR_HEX_U
static
Initial value:
{
"4120717569636B2062726F776E20666F78206A756D7073206F76657220746865206C617A7920646F672E"}

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0