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

Classes

class  AttachmentManagerTest
 
class  AttachmentReaderTest
 
class  AttachmentTest
 
class  AttachmentUtilsTest
 
class  AttachmentWriterTest
 
class  CapabilityConfigurationTest
 
class  CapabilityResourcesTest
 
class  CapabilitySemanticsTest
 
class  EditableMessageRequestTest
 
class  HandlerAndPolicyTest
 
class  MessageRequestTest
 
class  MockAttachmentReader
 
class  MockMessageRequestObserver
 
class  NamespaceAndNameTest
 NamespaceAndNameTest. More...
 
class  TestDirectiveHandler
 Minimal DirectiveHandlerInterface implementation so we can generate instance pointers. More...
 

Functions

 TEST_F (AttachmentManagerTest, test_attachmentManagerGenerateAttachmentId)
 
 TEST_F (AttachmentManagerTest, test_attachmentManagerSetTimeout)
 
 TEST_F (AttachmentManagerTest, test_attachmentManagerCreateWriterThenReader)
 
 TEST_F (AttachmentManagerTest, test_attachmentManagerCreateReaderThenWriter)
 
 TEST_F (AttachmentManagerTest, test_attachmentManagerCreateReader)
 
 TEST_F (AttachmentManagerTest, test_attachmentManagerReadAttachmentWithoutWriter)
 
 TEST_F (AttachmentManagerTest, test_attachmentManagerTestCreateReadersThenWriters)
 
 TEST_F (AttachmentManagerTest, test_attachmentManagerTestCreateWritersThenReaders)
 
 TEST_F (AttachmentManagerTest, test_attachmentManagerCreateMultipleWriters)
 
 TEST_F (AttachmentManagerTest, test_attachmentManagerCreateMultipleReaders)
 
 TEST_F (AttachmentManagerTest, test_attachmentWriterAndReaderInOnePass)
 
 TEST_F (AttachmentReaderTest, test_attachmentReaderWithInvalidSDS)
 
 TEST_F (AttachmentReaderTest, test_attachmentReaderWithBadSeekPosition)
 
 TEST_F (AttachmentReaderTest, test_attachmentReaderReadInOnePass)
 
 TEST_F (AttachmentReaderTest, test_attachmentReaderPartialRead)
 
 TEST_F (AttachmentReaderTest, test_attachmentReaderPartialReadWithSeek)
 
 TEST_F (AttachmentReaderTest, test_attachmentReaderMultipleReads)
 
 TEST_F (AttachmentReaderTest, test_attachmentReaderMultipleReadsOfUnfinishedData)
 
 TEST_F (AttachmentReaderTest, test_overrunResultsInError)
 
 TEST_F (AttachmentReaderTest, test_overrunResultsInReaderReset)
 
 TEST_F (AttachmentTest, test_getAttachmentId)
 
 TEST_F (AttachmentTest, test_attachmentCreateBlockingReader)
 
 TEST_F (AttachmentTest, test_attachmentCreateNonBlockingReader)
 
 TEST_F (AttachmentTest, test_attachmentCreateWriter)
 
 TEST_F (AttachmentTest, test_createAttachmentWithSDS)
 
 TEST_F (AttachmentTest, test_attachmentCreateMultipleWriters)
 
 TEST_F (AttachmentUtilsTest, test_readCompleteBuffer)
 
 TEST_F (AttachmentUtilsTest, test_emptyBuffer)
 
 TEST_F (AttachmentWriterTest, test_attachmentWriterWithInvalidSDS)
 
 TEST_F (AttachmentWriterTest, test_attachmentWriterOnClosedWriter)
 
 TEST_F (AttachmentWriterTest, test_attachmentWriterWriteSinglePass)
 
 TEST_F (AttachmentWriterTest, test_attachmentWriterAndReadInOnePass)
 
 TEST_F (AttachmentWriterTest, test_attachmentReaderAndWriterMultipleReads)
 
 TEST_F (AttachmentWriterTest, test_attachmentWriterAndReaderMultipleReadsOfUnfinishedData)
 
std::unique_ptr< InProcessSDScreateSDS (int desiredSize)
 
std::vector< uint8_t > createTestPattern (int patternSize)
 
 TEST (AVSContextTest, test_setterAndGetters)
 
 TEST (AVSContextTest, test_toJsonWithEmptyContext)
 
 TEST (AVSContextTest, test_toJsonWithPropertyInstance)
 Test that AVSContext will include all fields including instance. More...
 
 TEST (AVSContextTest, test_toJsonWithoutPropertyInstance)
 Test that AVSContext will not include an instance field if the state does not have an instance identifier. More...
 
 TEST (AVSDirectiveTest, test_parseWithoutOptionalAttributes)
 
 TEST (AVSDirectiveTest, test_parseWithEndpointAndInstance)
 
 TEST (AVSDirectiveTest, test_parseWithCorrelationTokens)
 
 TEST (AVSDirectiveTest, test_parseWithPayloadVersion)
 
 TEST (AVSDirectiveTest, test_parseWithEndpointCookie)
 
 TEST (AVSDirectiveTest, test_getAttachementReaderCallIfAttachementManagerIsNullptr)
 
CapabilityConfiguration createTestCapabilityConfiguration (bool differentSupportedList=false)
 
std::shared_ptr< CapabilityConfigurationcreateTestCapabilityConfigurationPtr (bool differentSupportedList=false)
 
 TEST_F (CapabilityConfigurationTest, test_constructorUsingMap)
 Test the constructor. More...
 
 TEST_F (CapabilityConfigurationTest, test_constructor)
 Test the constructor. More...
 
 TEST_F (CapabilityConfigurationTest, test_equalityOperator)
 Test the operator ==. More...
 
 TEST_F (CapabilityConfigurationTest, test_inEqualityOperator)
 Test the operator !=. More...
 
 TEST_F (CapabilityConfigurationTest, test_structHashFunction)
 Test if the hash function works as expected. More...
 
 TEST_F (CapabilityConfigurationTest, test_pointerHashFunction)
 Test if the hash function works as expected with pointers. More...
 
 TEST_F (CapabilityResourcesTest, test_addFriendlyNameWithEmptyAssetId)
 
 TEST_F (CapabilityResourcesTest, test_addFriendlyNameWithDuplicateAssetId)
 
 TEST_F (CapabilityResourcesTest, test_addFriendlyNameWithEmptyText)
 
 TEST_F (CapabilityResourcesTest, test_addFriendlyNameWithInvalidText)
 
 TEST_F (CapabilityResourcesTest, test_addFriendlyNameWithEmptyLocale)
 
 TEST_F (CapabilityResourcesTest, test_addFriendlyNameWithDuplicateText)
 
 TEST_F (CapabilityResourcesTest, test_toJsonWithValidInput)
 
void validateJson (const std::string &providedJson, const std::string &expectedJson)
 
 TEST_F (CapabilitySemanticsTest, test_actions_emptyAction)
 
 TEST_F (CapabilitySemanticsTest, test_actions_emptyDirectiveName)
 
 TEST_F (CapabilitySemanticsTest, test_actions_duplicateAction)
 
 TEST_F (CapabilitySemanticsTest, test_actions_noActions)
 
 TEST_F (CapabilitySemanticsTest, test_actions_noDirective)
 
 TEST_F (CapabilitySemanticsTest, test_statesValue_emptyState)
 
 TEST_F (CapabilitySemanticsTest, test_statesValue_duplicateState)
 
 TEST_F (CapabilitySemanticsTest, test_statesValue_noStates)
 
 TEST_F (CapabilitySemanticsTest, test_statesValue_noValue)
 
 TEST_F (CapabilitySemanticsTest, test_statesRange_emptyState)
 
 TEST_F (CapabilitySemanticsTest, test_statesRange_duplicateState)
 
 TEST_F (CapabilitySemanticsTest, test_statesRange_noStates)
 
 TEST_F (CapabilitySemanticsTest, test_statesRange_noRange)
 
 TEST_F (CapabilitySemanticsTest, test_statesRange_invertedRange)
 
 TEST_F (CapabilitySemanticsTest, test_semantics_noMappings)
 
 TEST_F (CapabilitySemanticsTest, test_semantics_invalidActionsDirectiveMapping)
 
 TEST_F (CapabilitySemanticsTest, test_semantics_invalidStatesValueMapping)
 
 TEST_F (CapabilitySemanticsTest, test_semantics_invalidStatesRangeMapping)
 
 TEST_F (CapabilitySemanticsTest, test_validateJson_semanticsMultipleActionMappings)
 
 TEST_F (CapabilitySemanticsTest, test_validateJson_semanticsComplete)
 
 TEST_F (EditableMessageRequestTest, test_setJsonContent)
 
 TEST_F (EditableMessageRequestTest, test_setAttachmentReaders)
 
 TEST_F (EditableMessageRequestTest, test_setAttachmentReadersFails)
 
 TEST_F (EditableMessageRequestTest, test_setMessageRequestResolveFunction)
 
static bool isValidJson (const std::string &json)
 
 TEST (EventBuilderTest, test_buildEventWithoutOptionalFields)
 
 TEST (EventBuilderTest, test_buildEventWithEndpoint)
 
 TEST (EventBuilderTest, test_buildEventWithContext)
 
 TEST (EventBuilderTest, test_buildFullEventShouldHaveCorrectHierarchy)
 
 TEST_F (HandlerAndPolicyTest, test_defaultConstructor)
 
 TEST_F (HandlerAndPolicyTest, test_constructorWithValues)
 
 TEST_F (HandlerAndPolicyTest, test_operatorBool)
 
 TEST_F (HandlerAndPolicyTest, test_operatorEqualandNotEqual)
 
 TEST_F (MessageRequestTest, test_copyConstructor)
 Test copy constructor. More...
 
 TEST_F (MessageRequestTest, test_extraHeaders)
 
 TEST_F (MessageRequestTest, test_eventHeaders)
 
 TEST_F (MessageRequestTest, test_partialEventHeaders)
 
 TEST_F (MessageRequestTest, test_incorrectlyFormattedEventHeaders)
 
 TEST_F (MessageRequestTest, test_emptyEventHeaders)
 
 TEST_F (MessageRequestTest, test_isResolved)
 
 TEST_F (MessageRequestTest, test_resolveRequestFails)
 
 TEST_F (MessageRequestTest, test_resolveRequest)
 
static const std::string NAMESPACE_SPEECH_RECOGNIZER ("SpeechRecognizer")
 nameSpace value for testing. More...
 
static const std::string NAME_RECOGNIZE ("Recognize")
 name value for testing. More...
 
static const std::string NAMESPACE_SPEAKER ("Speaker")
 nameSpace value for testing. More...
 
static const std::string NAME_SET_VOLUME ("SetVolume")
 name value for testing. More...
 
 TEST_F (NamespaceAndNameTest, test_defaultConstructor)
 
 TEST_F (NamespaceAndNameTest, test_constructorWithValues)
 
 TEST_F (NamespaceAndNameTest, test_inUnorderedMap)
 
 TEST (CaptionFormatAvsTest, test_parseWebvttCaptionTypeFromString)
 
 TEST (CaptionFormatAvsTest, test_parseUnkownCaptionTypeFromString)
 
 TEST (CaptionFormatAvsTest, test_parseUnkownCaptionTypeFromUnknownString)
 

Variables

static const std::string TEST_EMPTY_STRING = ""
 Empty string used for testing. More...
 
static const std::string TEST_CONTEXT_ID_STRING = "testContextId"
 A test ContextId string. More...
 
static const std::string TEST_CONTENT_ID_STRING = "testContentId"
 A test ContentId string. More...
 
static const std::string TEST_CONTENT_ID_ALTERNATE_STRING = "testContentId2"
 A second test ContextId string. More...
 
static const std::chrono::minutes TIMEOUT_REGULAR = std::chrono::minutes(60)
 A test timeout. More...
 
static const std::chrono::minutes TIMEOUT_ZERO = std::chrono::minutes(0)
 A test zero timeout. More...
 
static const std::chrono::minutes TIMEOUT_NEGATIVE = std::chrono::minutes(-1)
 A test negative timeout. More...
 
static const int TEST_SDS_SEEK_POSITION = TEST_SDS_BUFFER_SIZE_IN_BYTES - (TEST_SDS_PARTIAL_READ_AMOUNT_IN_BYTES + 10)
 A test seek position, defined in terms of above variables. More...
 
static const int TEST_SDS_BAD_SEEK_POSITION = TEST_SDS_BUFFER_SIZE_IN_BYTES + 1
 A test seek position which is bad. More...
 
static const int ATTACHMENT_READ_LOOP_TIMEOUT_MS = 5 * 1000
 Timeout for how long attachment reader loop can run while it is checking for certain status from read call. More...
 
static const int ATTACHMENT_READ_LOOP_WAIT_BETWEEN_READS_MS = 20
 Time to wait between each read call in reader loop. More...
 
static const std::string sampleBuffer = "example buffer"
 
static const std::string TEST_ATTACHMENT_ID_STRING_ONE = "testAttachmentId_1"
 A test AttachmentId string. More...
 
static const std::string TEST_ATTACHMENT_ID_STRING_TWO = "testAttachmentId_2"
 A second test AttachmentId string. More...
 
static const std::string TEST_ATTACHMENT_ID_STRING_THREE = "testAttachmentId_3"
 A third test AttachmentId string. More...
 
static const int TEST_SDS_BUFFER_SIZE_IN_BYTES = 400
 A test buffer size. More...
 
static const int TEST_SDS_PARTIAL_WRITE_AMOUNT_IN_BYTES = 150
 A test buffer write size. More...
 
static const int TEST_SDS_PARTIAL_READ_AMOUNT_IN_BYTES = 150
 A test buffer read size. More...
 
static const CapabilityTag CAPABILITY_TAG {"Namespace", "Name", "EndpointId"}
 A capability tag. More...
 
static const CapabilityState CAPABILITY_STATE {R"("Value")"}
 A capability state. More...
 
static std::string TEST_LOCALE = "en-US"
 The test locale string. More...
 
static std::string FAN_FRIENDLY_NAME = "fan"
 The fan friendly name string. More...
 
static std::string AIR_CONDITIONER_FRIENDLY_NAME = "air conditioner"
 The air conditioner friendly name string. More...
 
static std::string expectedFriendlyNamesJson
 The expected friendly names json. More...
 
static std::string expectedSimpleFriendlyNameJson
 The expected friendly names json with a single value. More...
 
static std::string JSON_SEMANTICS_MULTIPLE_ACTIONS
 
static std::string JSON_SEMANTICS_COMPLETE
 
static std::string JSON_EMPTY_OBJECT = "{}"
 Empty JSON object. More...
 
static const std::string VALID_TEST_EVENT
 Valid test event. More...
 
static const std::string PARTIALLY_VALID_TEST_EVENT
 Partially valid test event. More...
 
static const std::string INCORRECTLY_FORMATTED_TEST_EVENT
 Incorrectly formatted test event. More...
 
static const std::string INVALID_TEST_EVENT
 Invalid test event. More...
 
static const std::string TEST_NAMESPACE = "test_namespace"
 Test event namespace header value. More...
 
static const std::string TEST_NAME = "test_name"
 Test event name header value. More...
 
static const std::string TEST_TYPE = "type"
 
static const std::string TEST_NAME = "interface"
 
static const std::string TEST_VERSION = "version"
 
static const std::string TEST_INSTANCE = "instance"
 
static const std::string TEST_CONFIGURATIONS = "configurations"
 
static const std::string TEST_KEY = "key"
 
static const std::string TEST_VALUE = "value"
 
static const bool TEST_PROACTIVELY_REPORTED = true
 
static const bool TEST_RETRIEVABLE = true
 
static const std::string TEST_PROPERTY_1 = "property1"
 
static const std::string TEST_PROPERTY_2 = "property2"
 
static std::string ACTION_OPEN = "Alexa.Actions.Open"
 
static std::string ACTION_CLOSE = "Alexa.Actions.Close"
 
static std::string ACTION_RAISE = "Alexa.Actions.Raise"
 
static std::string ACTION_LOWER = "Alexa.Actions.Lower"
 
static std::string STATE_OPEN = "Alexa.States.Open"
 
static std::string STATE_CLOSED = "Alexa.States.Closed"
 
static std::string DIRECTIVE_TURNOFF = "TurnOff"
 
static std::string DIRECTIVE_SETMODE = "SetMode"
 
static std::string DIRECTIVE_SETRANGE = "SetRangeValue"
 
static std::string DIRECTIVE_ADJUSTRANGE = "AdjustRangeValue"
 

Function Documentation

◆ createSDS()

std::unique_ptr< avsCommon::utils::sds::InProcessSDS > alexaClientSDK::avsCommon::avs::test::createSDS ( int  size)

A utility function to create an SDS.

Parameters
sizeThe desired size of the data segment of the SDS.
Returns
An SDS for testing.

◆ createTestCapabilityConfiguration()

CapabilityConfiguration alexaClientSDK::avsCommon::avs::test::createTestCapabilityConfiguration ( bool  differentSupportedList = false)

◆ createTestCapabilityConfigurationPtr()

std::shared_ptr<CapabilityConfiguration> alexaClientSDK::avsCommon::avs::test::createTestCapabilityConfigurationPtr ( bool  differentSupportedList = false)

◆ createTestPattern()

std::vector< uint8_t > alexaClientSDK::avsCommon::avs::test::createTestPattern ( int  size)

A utility function to create a random pattern.

Parameters
sizeThe size of the random pattern desired.
Returns
A vector containing a random pattern of data.

◆ isValidJson()

static bool alexaClientSDK::avsCommon::avs::test::isValidJson ( const std::string &  json)
static

Validate that the given string is a valid json.

Parameters
jsonThe stringified json.
Returns
Whether the parameter is a valid json.

◆ NAME_RECOGNIZE()

static const std::string alexaClientSDK::avsCommon::avs::test::NAME_RECOGNIZE ( "Recognize"  )
static

name value for testing.

◆ NAME_SET_VOLUME()

static const std::string alexaClientSDK::avsCommon::avs::test::NAME_SET_VOLUME ( "SetVolume"  )
static

name value for testing.

◆ NAMESPACE_SPEAKER()

static const std::string alexaClientSDK::avsCommon::avs::test::NAMESPACE_SPEAKER ( "Speaker"  )
static

nameSpace value for testing.

◆ NAMESPACE_SPEECH_RECOGNIZER()

static const std::string alexaClientSDK::avsCommon::avs::test::NAMESPACE_SPEECH_RECOGNIZER ( "SpeechRecognizer"  )
static

nameSpace value for testing.

◆ TEST() [1/17]

alexaClientSDK::avsCommon::avs::test::TEST ( AVSDirectiveTest  ,
test_parseWithoutOptionalAttributes   
)

◆ TEST() [2/17]

alexaClientSDK::avsCommon::avs::test::TEST ( CaptionFormatAvsTest  ,
test_parseWebvttCaptionTypeFromString   
)

Tests parsing of the avs-compliant text "WEBVTT" to CaptionFormat::WEBVTT.

◆ TEST() [3/17]

alexaClientSDK::avsCommon::avs::test::TEST ( AVSContextTest  ,
test_setterAndGetters   
)

◆ TEST() [4/17]

alexaClientSDK::avsCommon::avs::test::TEST ( CaptionFormatAvsTest  ,
test_parseUnkownCaptionTypeFromString   
)

Tests parsing of an unknown text "FOO" to CaptionFormat::UNKNOWN.

◆ TEST() [5/17]

alexaClientSDK::avsCommon::avs::test::TEST ( EventBuilderTest  ,
test_buildEventWithoutOptionalFields   
)

◆ TEST() [6/17]

alexaClientSDK::avsCommon::avs::test::TEST ( CaptionFormatAvsTest  ,
test_parseUnkownCaptionTypeFromUnknownString   
)

Tests parsing of the empty string to CaptionFormat::UNKNOWN.

◆ TEST() [7/17]

alexaClientSDK::avsCommon::avs::test::TEST ( AVSContextTest  ,
test_toJsonWithEmptyContext   
)

◆ TEST() [8/17]

alexaClientSDK::avsCommon::avs::test::TEST ( EventBuilderTest  ,
test_buildEventWithEndpoint   
)

◆ TEST() [9/17]

alexaClientSDK::avsCommon::avs::test::TEST ( AVSContextTest  ,
test_toJsonWithPropertyInstance   
)

Test that AVSContext will include all fields including instance.

◆ TEST() [10/17]

alexaClientSDK::avsCommon::avs::test::TEST ( AVSDirectiveTest  ,
test_parseWithEndpointAndInstance   
)

◆ TEST() [11/17]

alexaClientSDK::avsCommon::avs::test::TEST ( EventBuilderTest  ,
test_buildEventWithContext   
)

◆ TEST() [12/17]

alexaClientSDK::avsCommon::avs::test::TEST ( AVSContextTest  ,
test_toJsonWithoutPropertyInstance   
)

Test that AVSContext will not include an instance field if the state does not have an instance identifier.

◆ TEST() [13/17]

alexaClientSDK::avsCommon::avs::test::TEST ( AVSDirectiveTest  ,
test_parseWithCorrelationTokens   
)

◆ TEST() [14/17]

alexaClientSDK::avsCommon::avs::test::TEST ( EventBuilderTest  ,
test_buildFullEventShouldHaveCorrectHierarchy   
)

Test used to check that the event should have the following hierarchy. { "event": { "header": { ... } "payload": { ... } "endpoint": { ... } }, "context": { } }

◆ TEST() [15/17]

alexaClientSDK::avsCommon::avs::test::TEST ( AVSDirectiveTest  ,
test_parseWithPayloadVersion   
)

◆ TEST() [16/17]

alexaClientSDK::avsCommon::avs::test::TEST ( AVSDirectiveTest  ,
test_parseWithEndpointCookie   
)

◆ TEST() [17/17]

alexaClientSDK::avsCommon::avs::test::TEST ( AVSDirectiveTest  ,
test_getAttachementReaderCallIfAttachementManagerIsNullptr   
)

◆ TEST_F() [1/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( EditableMessageRequestTest  ,
test_setJsonContent   
)

◆ TEST_F() [2/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( NamespaceAndNameTest  ,
test_defaultConstructor   
)

Invoke default constructor. Expect nameSpace and name properties are both empty strings.

◆ TEST_F() [3/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentUtilsTest  ,
test_readCompleteBuffer   
)

Test read until end of buffer

◆ TEST_F() [4/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( EditableMessageRequestTest  ,
test_setAttachmentReaders   
)

◆ TEST_F() [5/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilityResourcesTest  ,
test_addFriendlyNameWithEmptyAssetId   
)

Test if the addFriendlyNameWithAssetId method checks for an empty asset Id.

◆ TEST_F() [6/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( HandlerAndPolicyTest  ,
test_defaultConstructor   
)

Invoke default constructor. Expect nameSpace and name properties are both empty strings.

◆ TEST_F() [7/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( NamespaceAndNameTest  ,
test_constructorWithValues   
)

Invoke constructor with member values. Expect properties match those provided to the constructor.

◆ TEST_F() [8/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilityResourcesTest  ,
test_addFriendlyNameWithDuplicateAssetId   
)

Test if the addFriendlyNameWithAssetId method checks for duplicate asset Ids.

◆ TEST_F() [9/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( NamespaceAndNameTest  ,
test_inUnorderedMap   
)

Create an std::unordered_map using NamespaceAndName values as keys. Expect that the keys map to distinct values.

◆ TEST_F() [10/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( HandlerAndPolicyTest  ,
test_constructorWithValues   
)

Invoke constructor with member values. Expect properties match those provided to the constructor.

◆ TEST_F() [11/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( EditableMessageRequestTest  ,
test_setAttachmentReadersFails   
)

◆ TEST_F() [12/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentUtilsTest  ,
test_emptyBuffer   
)

◆ TEST_F() [13/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilityResourcesTest  ,
test_addFriendlyNameWithEmptyText   
)

Test if the addFriendlyNameWithText method checks for an empty name.

◆ TEST_F() [14/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentTest  ,
test_getAttachmentId   
)

Verify the ID is correctly stored and accessed from an Attachment.

◆ TEST_F() [15/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( HandlerAndPolicyTest  ,
test_operatorBool   
)

Create empty and non-empty HandlerAndPolicy instances. Expect that empty instances are interpreted as false and non-empty values are interpreted as true.

◆ TEST_F() [16/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentTest  ,
test_attachmentCreateBlockingReader   
)

Verify that an Attachment can create a blocking reader in various scenarios.

◆ TEST_F() [17/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( EditableMessageRequestTest  ,
test_setMessageRequestResolveFunction   
)

◆ TEST_F() [18/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilityResourcesTest  ,
test_addFriendlyNameWithInvalidText   
)

Test if the addFriendlyNameWithText method checks for a very large friendly name.

◆ TEST_F() [19/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilityConfigurationTest  ,
test_constructorUsingMap   
)

Test the constructor.

◆ TEST_F() [20/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentTest  ,
test_attachmentCreateNonBlockingReader   
)

Verify that an Attachment can create a non-blocking reader in various scenarios.

◆ TEST_F() [21/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( HandlerAndPolicyTest  ,
test_operatorEqualandNotEqual   
)

Create instances with different and identical values. Expect that instances with different values test as not equal and that instances with identical values test as equal.

◆ TEST_F() [22/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentTest  ,
test_attachmentCreateWriter   
)

Verify that an Attachment can create a writer in various scenarios.

◆ TEST_F() [23/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilityResourcesTest  ,
test_addFriendlyNameWithEmptyLocale   
)

Test if the addFriendlyNameWithText method checks for an empty locale.

◆ TEST_F() [24/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilityConfigurationTest  ,
test_constructor   
)

Test the constructor.

Check type, version, interface and instance.

Check Properties.

Check additional configurations.

◆ TEST_F() [25/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilityResourcesTest  ,
test_addFriendlyNameWithDuplicateText   
)

Test if the addFriendlyNameWithText method checks for duplicate entries. It should succeed but skip the duplicate.

◆ TEST_F() [26/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( MessageRequestTest  ,
test_copyConstructor   
)

Test copy constructor.

◆ TEST_F() [27/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentWriterTest  ,
test_attachmentWriterWithInvalidSDS   
)

Test writing to an invalid SDS.

◆ TEST_F() [28/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentManagerTest  ,
test_attachmentManagerGenerateAttachmentId   
)

Test that the AttachmentManager's generate attachment id function works as expected.

◆ TEST_F() [29/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilityResourcesTest  ,
test_toJsonWithValidInput   
)

Test if the CapabilityResources returns a valid json.

◆ TEST_F() [30/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentTest  ,
test_createAttachmentWithSDS   
)

Test creating an Attachment with an existing SDS.

◆ TEST_F() [31/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentWriterTest  ,
test_attachmentWriterOnClosedWriter   
)

Test writing to a closed writer.

◆ TEST_F() [32/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( MessageRequestTest  ,
test_extraHeaders   
)

Test functionality of adding extra headers

◆ TEST_F() [33/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilityConfigurationTest  ,
test_equalityOperator   
)

Test the operator ==.

◆ TEST_F() [34/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentTest  ,
test_attachmentCreateMultipleWriters   
)

Verify an Attachment can't create multiple writers.

◆ TEST_F() [35/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentWriterTest  ,
test_attachmentWriterWriteSinglePass   
)

Test writing a single pass of data.

◆ TEST_F() [36/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentManagerTest  ,
test_attachmentManagerSetTimeout   
)

Test that the AttachmentManager's set timeout function works as expected.

◆ TEST_F() [37/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilityConfigurationTest  ,
test_inEqualityOperator   
)

Test the operator !=.

◆ TEST_F() [38/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( MessageRequestTest  ,
test_eventHeaders   
)

◆ TEST_F() [39/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentWriterTest  ,
test_attachmentWriterAndReadInOnePass   
)

Test a one-pass write and read with both wrapper classes.

◆ TEST_F() [40/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilityConfigurationTest  ,
test_structHashFunction   
)

Test if the hash function works as expected.

use cap1 as a key.

try to find key cap2

◆ TEST_F() [41/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentManagerTest  ,
test_attachmentManagerCreateWriterThenReader   
)

Test that the AttachmentManager's create* functions work in this particular order.

◆ TEST_F() [42/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( MessageRequestTest  ,
test_partialEventHeaders   
)

◆ TEST_F() [43/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentManagerTest  ,
test_attachmentManagerCreateReaderThenWriter   
)

Test that the AttachmentManager's create* functions work in this particular order.

◆ TEST_F() [44/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( MessageRequestTest  ,
test_incorrectlyFormattedEventHeaders   
)

◆ TEST_F() [45/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentReaderTest  ,
test_attachmentReaderWithInvalidSDS   
)

Test reading an invalid SDS.

◆ TEST_F() [46/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentWriterTest  ,
test_attachmentReaderAndWriterMultipleReads   
)

Test multiple partial reads of complete data, where the writer is closed.

◆ TEST_F() [47/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( MessageRequestTest  ,
test_emptyEventHeaders   
)

◆ TEST_F() [48/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentReaderTest  ,
test_attachmentReaderWithBadSeekPosition   
)

Test reading an SDS with a bad seek position.

◆ TEST_F() [49/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilityConfigurationTest  ,
test_pointerHashFunction   
)

Test if the hash function works as expected with pointers.

use cap1 as a key.

try to find key cap2

◆ TEST_F() [50/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentManagerTest  ,
test_attachmentManagerCreateReader   
)

Test that the AttachmentManager's create reader function works as expected.

◆ TEST_F() [51/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilitySemanticsTest  ,
test_actions_emptyAction   
)

Test that ActionsToDirectiveMapping::addAction() checks for an empty action.

◆ TEST_F() [52/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentWriterTest  ,
test_attachmentWriterAndReaderMultipleReadsOfUnfinishedData   
)

Test multiple partial reads of complete data, where the writer remains open.

◆ TEST_F() [53/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( MessageRequestTest  ,
test_isResolved   
)

◆ TEST_F() [54/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentReaderTest  ,
test_attachmentReaderReadInOnePass   
)

Test a one-pass write and read.

◆ TEST_F() [55/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentManagerTest  ,
test_attachmentManagerReadAttachmentWithoutWriter   
)

Test that a reader created from an attachment that doesn't have a writer will wait for the writer.

◆ TEST_F() [56/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilitySemanticsTest  ,
test_actions_emptyDirectiveName   
)

Test that ActionsToDirectiveMapping::setDirective() checks for an empty name.

◆ TEST_F() [57/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( MessageRequestTest  ,
test_resolveRequestFails   
)

◆ TEST_F() [58/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentReaderTest  ,
test_attachmentReaderPartialRead   
)

Test a partial read.

◆ TEST_F() [59/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( MessageRequestTest  ,
test_resolveRequest   
)

◆ TEST_F() [60/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilitySemanticsTest  ,
test_actions_duplicateAction   
)

Test that ActionsToDirectiveMapping::addAction() skips duplicate actions.

◆ TEST_F() [61/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentReaderTest  ,
test_attachmentReaderPartialReadWithSeek   
)

Test a partial read with a seek.

◆ TEST_F() [62/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilitySemanticsTest  ,
test_actions_noActions   
)

Test that ActionsToDirectiveMapping without actions is invalid.

◆ TEST_F() [63/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentManagerTest  ,
test_attachmentManagerTestCreateReadersThenWriters   
)

Test that the AttachmentManager's cleanup logic works as expected, and that it does not impact readers and writers that are returned before the cleanup.

◆ TEST_F() [64/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilitySemanticsTest  ,
test_actions_noDirective   
)

Test that ActionsToDirectiveMapping without a directive is invalid.

◆ TEST_F() [65/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentReaderTest  ,
test_attachmentReaderMultipleReads   
)

Test multiple partial reads of complete data, where the writer closes.

◆ TEST_F() [66/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilitySemanticsTest  ,
test_statesValue_emptyState   
)

Test that StatesToValueMapping::addState() checks for an empty state.

◆ TEST_F() [67/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentReaderTest  ,
test_attachmentReaderMultipleReadsOfUnfinishedData   
)

Test multiple partial reads of complete data, where the writer remains open.

◆ TEST_F() [68/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentManagerTest  ,
test_attachmentManagerTestCreateWritersThenReaders   
)

Test that the AttachmentManager's cleanup logic works as expected, and that it does not impact readers and writers that are returned before the cleanup.

◆ TEST_F() [69/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentReaderTest  ,
test_overrunResultsInError   
)

Test that reading at much slower pace than writing causes reader to eventually receive overrun error.

◆ TEST_F() [70/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilitySemanticsTest  ,
test_statesValue_duplicateState   
)

Test that StatesToValueMapping::addState() skips duplicate states.

◆ TEST_F() [71/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentManagerTest  ,
test_attachmentManagerCreateMultipleWriters   
)

Verify an AttachmentManager can't create multiple writers.

◆ TEST_F() [72/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilitySemanticsTest  ,
test_statesValue_noStates   
)

Test that StatesToValueMapping without states is invalid.

◆ TEST_F() [73/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentManagerTest  ,
test_attachmentManagerCreateMultipleReaders   
)

Verify an AttachmentManager can't create multiple readers.

◆ TEST_F() [74/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilitySemanticsTest  ,
test_statesValue_noValue   
)

Test that StatesToValueMapping without a value is invalid.

◆ TEST_F() [75/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentManagerTest  ,
test_attachmentWriterAndReaderInOnePass   
)

Test a one-pass write and read with both Attachment wrapper classes.

◆ TEST_F() [76/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilitySemanticsTest  ,
test_statesRange_emptyState   
)

Test that StatesToRangeMapping::addState() checks for an empty state.

◆ TEST_F() [77/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( AttachmentReaderTest  ,
test_overrunResultsInReaderReset   
)

Test that reading at much slower pace than writing causes reader cursor position to be reset to writer cursor position.

◆ TEST_F() [78/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilitySemanticsTest  ,
test_statesRange_duplicateState   
)

Test that StatesToRangeMapping::addState() skips duplicate states.

◆ TEST_F() [79/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilitySemanticsTest  ,
test_statesRange_noStates   
)

Test that StatesToRangeMapping without states is invalid.

◆ TEST_F() [80/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilitySemanticsTest  ,
test_statesRange_noRange   
)

Test that StatesToRangeMapping without a range is invalid.

◆ TEST_F() [81/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilitySemanticsTest  ,
test_statesRange_invertedRange   
)

Test that StatesToRangeMapping with min > max is invalid.

◆ TEST_F() [82/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilitySemanticsTest  ,
test_semantics_noMappings   
)

Test that CapabilitySemantics without mappings is invalid.

◆ TEST_F() [83/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilitySemanticsTest  ,
test_semantics_invalidActionsDirectiveMapping   
)

Test that CapabilitySemantics with an invalid ActionsToDirectiveMapping is invalid.

◆ TEST_F() [84/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilitySemanticsTest  ,
test_semantics_invalidStatesValueMapping   
)

Test that CapabilitySemantics with an invalid StatesToValueMapping is invalid.

◆ TEST_F() [85/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilitySemanticsTest  ,
test_semantics_invalidStatesRangeMapping   
)

Test that CapabilitySemantics with an invalid StatesToRangeMapping is invalid.

◆ TEST_F() [86/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilitySemanticsTest  ,
test_validateJson_semanticsMultipleActionMappings   
)

Test the JSON result of an ActionsToDirectiveMapping with multiple actions.

◆ TEST_F() [87/87]

alexaClientSDK::avsCommon::avs::test::TEST_F ( CapabilitySemanticsTest  ,
test_validateJson_semanticsComplete   
)

Test the JSON result of a CapabilitySemantics with all mapping types.

◆ validateJson()

void alexaClientSDK::avsCommon::avs::test::validateJson ( const std::string &  providedJson,
const std::string &  expectedJson 
)

Expects the provided JSON strings to be equal.

Variable Documentation

◆ ACTION_CLOSE

std::string alexaClientSDK::avsCommon::avs::test::ACTION_CLOSE = "Alexa.Actions.Close"
static

Accepted action IDs.

◆ ACTION_LOWER

std::string alexaClientSDK::avsCommon::avs::test::ACTION_LOWER = "Alexa.Actions.Lower"
static

Accepted action IDs.

◆ ACTION_OPEN

std::string alexaClientSDK::avsCommon::avs::test::ACTION_OPEN = "Alexa.Actions.Open"
static

Accepted action IDs.

◆ ACTION_RAISE

std::string alexaClientSDK::avsCommon::avs::test::ACTION_RAISE = "Alexa.Actions.Raise"
static

Accepted action IDs.

◆ AIR_CONDITIONER_FRIENDLY_NAME

std::string alexaClientSDK::avsCommon::avs::test::AIR_CONDITIONER_FRIENDLY_NAME = "air conditioner"
static

The air conditioner friendly name string.

◆ ATTACHMENT_READ_LOOP_TIMEOUT_MS

const int alexaClientSDK::avsCommon::avs::test::ATTACHMENT_READ_LOOP_TIMEOUT_MS = 5 * 1000
static

Timeout for how long attachment reader loop can run while it is checking for certain status from read call.

◆ ATTACHMENT_READ_LOOP_WAIT_BETWEEN_READS_MS

const int alexaClientSDK::avsCommon::avs::test::ATTACHMENT_READ_LOOP_WAIT_BETWEEN_READS_MS = 20
static

Time to wait between each read call in reader loop.

◆ CAPABILITY_STATE

const CapabilityState alexaClientSDK::avsCommon::avs::test::CAPABILITY_STATE {R"("Value")"}
static

A capability state.

◆ CAPABILITY_TAG

const CapabilityTag alexaClientSDK::avsCommon::avs::test::CAPABILITY_TAG {"Namespace", "Name", "EndpointId"}
static

A capability tag.

◆ DIRECTIVE_ADJUSTRANGE

std::string alexaClientSDK::avsCommon::avs::test::DIRECTIVE_ADJUSTRANGE = "AdjustRangeValue"
static

Sample directive names.

◆ DIRECTIVE_SETMODE

std::string alexaClientSDK::avsCommon::avs::test::DIRECTIVE_SETMODE = "SetMode"
static

Sample directive names.

◆ DIRECTIVE_SETRANGE

std::string alexaClientSDK::avsCommon::avs::test::DIRECTIVE_SETRANGE = "SetRangeValue"
static

Sample directive names.

◆ DIRECTIVE_TURNOFF

std::string alexaClientSDK::avsCommon::avs::test::DIRECTIVE_TURNOFF = "TurnOff"
static

Sample directive names.

◆ expectedFriendlyNamesJson

std::string alexaClientSDK::avsCommon::avs::test::expectedFriendlyNamesJson
static
Initial value:
=
R"({)"
R"("friendlyNames":[)"
R"({"@type":"text","value":{"text":"fan","locale":"en-US"}},)"
R"({"@type":"text","value":{"text":"air conditioner","locale":"en-US"}},)"
R"({"@type":"asset","value":{"assetId":"Alexa.Setting.Temperature"}}])"
R"(})"

The expected friendly names json.

◆ expectedSimpleFriendlyNameJson

std::string alexaClientSDK::avsCommon::avs::test::expectedSimpleFriendlyNameJson
static
Initial value:
= R"({)"
R"("friendlyNames":[)"
R"({"@type":"text","value":{"text":"fan","locale":"en-US"}}])"
R"(})"

The expected friendly names json with a single value.

◆ FAN_FRIENDLY_NAME

std::string alexaClientSDK::avsCommon::avs::test::FAN_FRIENDLY_NAME = "fan"
static

The fan friendly name string.

◆ INCORRECTLY_FORMATTED_TEST_EVENT

const std::string alexaClientSDK::avsCommon::avs::test::INCORRECTLY_FORMATTED_TEST_EVENT
static
Initial value:
= R"({
"event": {
"namespace": "test_namespace",
"messageId": "test_messageId",
"dialogRequestId": "test_dialogRequestId",
"payload": {}
}
})"

Incorrectly formatted test event.

◆ INVALID_TEST_EVENT

const std::string alexaClientSDK::avsCommon::avs::test::INVALID_TEST_EVENT
static
Initial value:
= R"({
"event": {
"header": {
"messageId": "test_messageId",
"dialogRequestId": "test_dialogRequestId"
},
"payload": {}
}
})"

Invalid test event.

◆ JSON_EMPTY_OBJECT

std::string alexaClientSDK::avsCommon::avs::test::JSON_EMPTY_OBJECT = "{}"
static

Empty JSON object.

◆ JSON_SEMANTICS_COMPLETE

std::string alexaClientSDK::avsCommon::avs::test::JSON_SEMANTICS_COMPLETE
static

Sample 'semantics' object with 'actionMappings' and 'stateMappings'.

◆ JSON_SEMANTICS_MULTIPLE_ACTIONS

std::string alexaClientSDK::avsCommon::avs::test::JSON_SEMANTICS_MULTIPLE_ACTIONS
static
Initial value:
= R"({
"actionMappings": [
{
"@type": "ActionsToDirective",
"actions": ["Alexa.Actions.Close", "Alexa.Actions.Lower"],
"directive": {
"name": "SetMode",
"payload": {
"mode": "Position.Down"
}
}
},
{
"@type": "ActionsToDirective",
"actions": ["Alexa.Actions.Open", "Alexa.Actions.Raise"],
"directive": {
"name": "SetMode",
"payload": {
"mode": "Position.Up"
}
}
}
]
})"

Sample 'semantics' object with multiple ActionsToDirectiveMappings with multiple actions.

◆ PARTIALLY_VALID_TEST_EVENT

const std::string alexaClientSDK::avsCommon::avs::test::PARTIALLY_VALID_TEST_EVENT
static
Initial value:
= R"({
"event": {
"header": {
"namespace": "test_namespace",
"messageId": "test_messageId",
"dialogRequestId": "test_dialogRequestId"
},
"payload": {}
}
})"

Partially valid test event.

◆ sampleBuffer

const std::string alexaClientSDK::avsCommon::avs::test::sampleBuffer = "example buffer"
static

◆ STATE_CLOSED

std::string alexaClientSDK::avsCommon::avs::test::STATE_CLOSED = "Alexa.States.Closed"
static

Accepted state IDs.

◆ STATE_OPEN

std::string alexaClientSDK::avsCommon::avs::test::STATE_OPEN = "Alexa.States.Open"
static

Accepted state IDs.

◆ TEST_ATTACHMENT_ID_STRING_ONE

const std::string alexaClientSDK::avsCommon::avs::test::TEST_ATTACHMENT_ID_STRING_ONE = "testAttachmentId_1"
static

A test AttachmentId string.

◆ TEST_ATTACHMENT_ID_STRING_THREE

const std::string alexaClientSDK::avsCommon::avs::test::TEST_ATTACHMENT_ID_STRING_THREE = "testAttachmentId_3"
static

A third test AttachmentId string.

◆ TEST_ATTACHMENT_ID_STRING_TWO

const std::string alexaClientSDK::avsCommon::avs::test::TEST_ATTACHMENT_ID_STRING_TWO = "testAttachmentId_2"
static

A second test AttachmentId string.

◆ TEST_CONFIGURATIONS

const std::string alexaClientSDK::avsCommon::avs::test::TEST_CONFIGURATIONS = "configurations"
static

Test values for CapabilityConfiguration.

◆ TEST_CONTENT_ID_ALTERNATE_STRING

const std::string alexaClientSDK::avsCommon::avs::test::TEST_CONTENT_ID_ALTERNATE_STRING = "testContentId2"
static

A second test ContextId string.

◆ TEST_CONTENT_ID_STRING

const std::string alexaClientSDK::avsCommon::avs::test::TEST_CONTENT_ID_STRING = "testContentId"
static

A test ContentId string.

◆ TEST_CONTEXT_ID_STRING

const std::string alexaClientSDK::avsCommon::avs::test::TEST_CONTEXT_ID_STRING = "testContextId"
static

A test ContextId string.

◆ TEST_EMPTY_STRING

const std::string alexaClientSDK::avsCommon::avs::test::TEST_EMPTY_STRING = ""
static

Empty string used for testing.

◆ TEST_INSTANCE

const std::string alexaClientSDK::avsCommon::avs::test::TEST_INSTANCE = "instance"
static

Test values for CapabilityConfiguration.

◆ TEST_KEY

const std::string alexaClientSDK::avsCommon::avs::test::TEST_KEY = "key"
static

Test values for CapabilityConfiguration.

◆ TEST_LOCALE

std::string alexaClientSDK::avsCommon::avs::test::TEST_LOCALE = "en-US"
static

The test locale string.

◆ TEST_NAME [1/2]

const std::string alexaClientSDK::avsCommon::avs::test::TEST_NAME = "interface"
static

Test values for CapabilityConfiguration.

◆ TEST_NAME [2/2]

const std::string alexaClientSDK::avsCommon::avs::test::TEST_NAME = "test_name"
static

Test event name header value.

◆ TEST_NAMESPACE

const std::string alexaClientSDK::avsCommon::avs::test::TEST_NAMESPACE = "test_namespace"
static

Test event namespace header value.

◆ TEST_PROACTIVELY_REPORTED

const bool alexaClientSDK::avsCommon::avs::test::TEST_PROACTIVELY_REPORTED = true
static

Test values for CapabilityConfiguration.

◆ TEST_PROPERTY_1

const std::string alexaClientSDK::avsCommon::avs::test::TEST_PROPERTY_1 = "property1"
static

Test values for CapabilityConfiguration.

◆ TEST_PROPERTY_2

const std::string alexaClientSDK::avsCommon::avs::test::TEST_PROPERTY_2 = "property2"
static

Test values for CapabilityConfiguration.

◆ TEST_RETRIEVABLE

const bool alexaClientSDK::avsCommon::avs::test::TEST_RETRIEVABLE = true
static

Test values for CapabilityConfiguration.

◆ TEST_SDS_BAD_SEEK_POSITION

const int alexaClientSDK::avsCommon::avs::test::TEST_SDS_BAD_SEEK_POSITION = TEST_SDS_BUFFER_SIZE_IN_BYTES + 1
static

A test seek position which is bad.

◆ TEST_SDS_BUFFER_SIZE_IN_BYTES

const int alexaClientSDK::avsCommon::avs::test::TEST_SDS_BUFFER_SIZE_IN_BYTES = 400
static

A test buffer size.

◆ TEST_SDS_PARTIAL_READ_AMOUNT_IN_BYTES

const int alexaClientSDK::avsCommon::avs::test::TEST_SDS_PARTIAL_READ_AMOUNT_IN_BYTES = 150
static

A test buffer read size.

◆ TEST_SDS_PARTIAL_WRITE_AMOUNT_IN_BYTES

const int alexaClientSDK::avsCommon::avs::test::TEST_SDS_PARTIAL_WRITE_AMOUNT_IN_BYTES = 150
static

A test buffer write size.

◆ TEST_SDS_SEEK_POSITION

const int alexaClientSDK::avsCommon::avs::test::TEST_SDS_SEEK_POSITION = TEST_SDS_BUFFER_SIZE_IN_BYTES - (TEST_SDS_PARTIAL_READ_AMOUNT_IN_BYTES + 10)
static

A test seek position, defined in terms of above variables.

◆ TEST_TYPE

const std::string alexaClientSDK::avsCommon::avs::test::TEST_TYPE = "type"
static

Test values for CapabilityConfiguration.

◆ TEST_VALUE

const std::string alexaClientSDK::avsCommon::avs::test::TEST_VALUE = "value"
static

Test values for CapabilityConfiguration.

◆ TEST_VERSION

const std::string alexaClientSDK::avsCommon::avs::test::TEST_VERSION = "version"
static

Test values for CapabilityConfiguration.

◆ TIMEOUT_NEGATIVE

const std::chrono::minutes alexaClientSDK::avsCommon::avs::test::TIMEOUT_NEGATIVE = std::chrono::minutes(-1)
static

A test negative timeout.

◆ TIMEOUT_REGULAR

const std::chrono::minutes alexaClientSDK::avsCommon::avs::test::TIMEOUT_REGULAR = std::chrono::minutes(60)
static

A test timeout.

◆ TIMEOUT_ZERO

const std::chrono::minutes alexaClientSDK::avsCommon::avs::test::TIMEOUT_ZERO = std::chrono::minutes(0)
static

A test zero timeout.

◆ VALID_TEST_EVENT

const std::string alexaClientSDK::avsCommon::avs::test::VALID_TEST_EVENT
static
Initial value:
= R"({
"event": {
"header": {
"namespace": "test_namespace",
"name": "test_name",
"messageId": "test_messageId",
"dialogRequestId": "test_dialogRequestId"
},
"payload": {}
}
})"

Valid test event.

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