![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
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< InProcessSDS > | createSDS (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< CapabilityConfiguration > | createTestCapabilityConfigurationPtr (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" |
std::unique_ptr< avsCommon::utils::sds::InProcessSDS > alexaClientSDK::avsCommon::avs::test::createSDS | ( | int | size | ) |
A utility function to create an SDS.
size | The desired size of the data segment of the SDS. |
CapabilityConfiguration alexaClientSDK::avsCommon::avs::test::createTestCapabilityConfiguration | ( | bool | differentSupportedList = false | ) |
std::shared_ptr<CapabilityConfiguration> alexaClientSDK::avsCommon::avs::test::createTestCapabilityConfigurationPtr | ( | bool | differentSupportedList = false | ) |
std::vector< uint8_t > alexaClientSDK::avsCommon::avs::test::createTestPattern | ( | int | size | ) |
A utility function to create a random pattern.
size | The size of the random pattern desired. |
|
static |
Validate that the given string is a valid json.
json | The stringified json. |
|
static |
name
value for testing.
|
static |
name
value for testing.
|
static |
nameSpace
value for testing.
|
static |
nameSpace
value for testing.
alexaClientSDK::avsCommon::avs::test::TEST | ( | AVSDirectiveTest | , |
test_parseWithoutOptionalAttributes | |||
) |
alexaClientSDK::avsCommon::avs::test::TEST | ( | CaptionFormatAvsTest | , |
test_parseWebvttCaptionTypeFromString | |||
) |
Tests parsing of the avs-compliant text "WEBVTT" to CaptionFormat::WEBVTT.
alexaClientSDK::avsCommon::avs::test::TEST | ( | AVSContextTest | , |
test_setterAndGetters | |||
) |
alexaClientSDK::avsCommon::avs::test::TEST | ( | CaptionFormatAvsTest | , |
test_parseUnkownCaptionTypeFromString | |||
) |
Tests parsing of an unknown text "FOO" to CaptionFormat::UNKNOWN.
alexaClientSDK::avsCommon::avs::test::TEST | ( | EventBuilderTest | , |
test_buildEventWithoutOptionalFields | |||
) |
alexaClientSDK::avsCommon::avs::test::TEST | ( | CaptionFormatAvsTest | , |
test_parseUnkownCaptionTypeFromUnknownString | |||
) |
Tests parsing of the empty string to CaptionFormat::UNKNOWN.
alexaClientSDK::avsCommon::avs::test::TEST | ( | AVSContextTest | , |
test_toJsonWithEmptyContext | |||
) |
alexaClientSDK::avsCommon::avs::test::TEST | ( | EventBuilderTest | , |
test_buildEventWithEndpoint | |||
) |
alexaClientSDK::avsCommon::avs::test::TEST | ( | AVSContextTest | , |
test_toJsonWithPropertyInstance | |||
) |
Test that AVSContext will include all fields including instance.
alexaClientSDK::avsCommon::avs::test::TEST | ( | AVSDirectiveTest | , |
test_parseWithEndpointAndInstance | |||
) |
alexaClientSDK::avsCommon::avs::test::TEST | ( | EventBuilderTest | , |
test_buildEventWithContext | |||
) |
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.
alexaClientSDK::avsCommon::avs::test::TEST | ( | AVSDirectiveTest | , |
test_parseWithCorrelationTokens | |||
) |
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": { } }
alexaClientSDK::avsCommon::avs::test::TEST | ( | AVSDirectiveTest | , |
test_parseWithPayloadVersion | |||
) |
alexaClientSDK::avsCommon::avs::test::TEST | ( | AVSDirectiveTest | , |
test_parseWithEndpointCookie | |||
) |
alexaClientSDK::avsCommon::avs::test::TEST | ( | AVSDirectiveTest | , |
test_getAttachementReaderCallIfAttachementManagerIsNullptr | |||
) |
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | EditableMessageRequestTest | , |
test_setJsonContent | |||
) |
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | NamespaceAndNameTest | , |
test_defaultConstructor | |||
) |
Invoke default constructor. Expect nameSpace
and name
properties are both empty strings.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentUtilsTest | , |
test_readCompleteBuffer | |||
) |
Test read until end of buffer
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | EditableMessageRequestTest | , |
test_setAttachmentReaders | |||
) |
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilityResourcesTest | , |
test_addFriendlyNameWithEmptyAssetId | |||
) |
Test if the addFriendlyNameWithAssetId method checks for an empty asset Id.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | HandlerAndPolicyTest | , |
test_defaultConstructor | |||
) |
Invoke default constructor. Expect nameSpace
and name
properties are both empty strings.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | NamespaceAndNameTest | , |
test_constructorWithValues | |||
) |
Invoke constructor with member values. Expect properties match those provided to the constructor.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilityResourcesTest | , |
test_addFriendlyNameWithDuplicateAssetId | |||
) |
Test if the addFriendlyNameWithAssetId method checks for duplicate asset Ids.
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.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | HandlerAndPolicyTest | , |
test_constructorWithValues | |||
) |
Invoke constructor with member values. Expect properties match those provided to the constructor.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | EditableMessageRequestTest | , |
test_setAttachmentReadersFails | |||
) |
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentUtilsTest | , |
test_emptyBuffer | |||
) |
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilityResourcesTest | , |
test_addFriendlyNameWithEmptyText | |||
) |
Test if the addFriendlyNameWithText method checks for an empty name.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentTest | , |
test_getAttachmentId | |||
) |
Verify the ID is correctly stored and accessed from an Attachment.
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.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentTest | , |
test_attachmentCreateBlockingReader | |||
) |
Verify that an Attachment can create a blocking reader in various scenarios.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | EditableMessageRequestTest | , |
test_setMessageRequestResolveFunction | |||
) |
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilityResourcesTest | , |
test_addFriendlyNameWithInvalidText | |||
) |
Test if the addFriendlyNameWithText method checks for a very large friendly name.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilityConfigurationTest | , |
test_constructorUsingMap | |||
) |
Test the constructor.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentTest | , |
test_attachmentCreateNonBlockingReader | |||
) |
Verify that an Attachment can create a non-blocking reader in various scenarios.
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.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentTest | , |
test_attachmentCreateWriter | |||
) |
Verify that an Attachment can create a writer in various scenarios.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilityResourcesTest | , |
test_addFriendlyNameWithEmptyLocale | |||
) |
Test if the addFriendlyNameWithText method checks for an empty locale.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilityConfigurationTest | , |
test_constructor | |||
) |
Test the constructor.
Check type, version, interface and instance.
Check Properties.
Check additional configurations.
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.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | MessageRequestTest | , |
test_copyConstructor | |||
) |
Test copy constructor.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentWriterTest | , |
test_attachmentWriterWithInvalidSDS | |||
) |
Test writing to an invalid SDS.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentManagerTest | , |
test_attachmentManagerGenerateAttachmentId | |||
) |
Test that the AttachmentManager's generate attachment id function works as expected.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilityResourcesTest | , |
test_toJsonWithValidInput | |||
) |
Test if the CapabilityResources returns a valid json.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentTest | , |
test_createAttachmentWithSDS | |||
) |
Test creating an Attachment with an existing SDS.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentWriterTest | , |
test_attachmentWriterOnClosedWriter | |||
) |
Test writing to a closed writer.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | MessageRequestTest | , |
test_extraHeaders | |||
) |
Test functionality of adding extra headers
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilityConfigurationTest | , |
test_equalityOperator | |||
) |
Test the operator ==.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentTest | , |
test_attachmentCreateMultipleWriters | |||
) |
Verify an Attachment can't create multiple writers.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentWriterTest | , |
test_attachmentWriterWriteSinglePass | |||
) |
Test writing a single pass of data.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentManagerTest | , |
test_attachmentManagerSetTimeout | |||
) |
Test that the AttachmentManager's set timeout function works as expected.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilityConfigurationTest | , |
test_inEqualityOperator | |||
) |
Test the operator !=.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | MessageRequestTest | , |
test_eventHeaders | |||
) |
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentWriterTest | , |
test_attachmentWriterAndReadInOnePass | |||
) |
Test a one-pass write and read with both wrapper classes.
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
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentManagerTest | , |
test_attachmentManagerCreateWriterThenReader | |||
) |
Test that the AttachmentManager's create* functions work in this particular order.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | MessageRequestTest | , |
test_partialEventHeaders | |||
) |
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentManagerTest | , |
test_attachmentManagerCreateReaderThenWriter | |||
) |
Test that the AttachmentManager's create* functions work in this particular order.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | MessageRequestTest | , |
test_incorrectlyFormattedEventHeaders | |||
) |
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentReaderTest | , |
test_attachmentReaderWithInvalidSDS | |||
) |
Test reading an invalid SDS.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentWriterTest | , |
test_attachmentReaderAndWriterMultipleReads | |||
) |
Test multiple partial reads of complete data, where the writer is closed.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | MessageRequestTest | , |
test_emptyEventHeaders | |||
) |
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentReaderTest | , |
test_attachmentReaderWithBadSeekPosition | |||
) |
Test reading an SDS with a bad seek position.
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
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentManagerTest | , |
test_attachmentManagerCreateReader | |||
) |
Test that the AttachmentManager's create reader function works as expected.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilitySemanticsTest | , |
test_actions_emptyAction | |||
) |
Test that ActionsToDirectiveMapping::addAction() checks for an empty action.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentWriterTest | , |
test_attachmentWriterAndReaderMultipleReadsOfUnfinishedData | |||
) |
Test multiple partial reads of complete data, where the writer remains open.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | MessageRequestTest | , |
test_isResolved | |||
) |
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentReaderTest | , |
test_attachmentReaderReadInOnePass | |||
) |
Test a one-pass write and read.
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.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilitySemanticsTest | , |
test_actions_emptyDirectiveName | |||
) |
Test that ActionsToDirectiveMapping::setDirective() checks for an empty name.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | MessageRequestTest | , |
test_resolveRequestFails | |||
) |
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentReaderTest | , |
test_attachmentReaderPartialRead | |||
) |
Test a partial read.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | MessageRequestTest | , |
test_resolveRequest | |||
) |
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilitySemanticsTest | , |
test_actions_duplicateAction | |||
) |
Test that ActionsToDirectiveMapping::addAction() skips duplicate actions.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentReaderTest | , |
test_attachmentReaderPartialReadWithSeek | |||
) |
Test a partial read with a seek.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilitySemanticsTest | , |
test_actions_noActions | |||
) |
Test that ActionsToDirectiveMapping without actions is invalid.
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.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilitySemanticsTest | , |
test_actions_noDirective | |||
) |
Test that ActionsToDirectiveMapping without a directive is invalid.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentReaderTest | , |
test_attachmentReaderMultipleReads | |||
) |
Test multiple partial reads of complete data, where the writer closes.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilitySemanticsTest | , |
test_statesValue_emptyState | |||
) |
Test that StatesToValueMapping::addState() checks for an empty state.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentReaderTest | , |
test_attachmentReaderMultipleReadsOfUnfinishedData | |||
) |
Test multiple partial reads of complete data, where the writer remains open.
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.
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.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilitySemanticsTest | , |
test_statesValue_duplicateState | |||
) |
Test that StatesToValueMapping::addState() skips duplicate states.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentManagerTest | , |
test_attachmentManagerCreateMultipleWriters | |||
) |
Verify an AttachmentManager can't create multiple writers.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilitySemanticsTest | , |
test_statesValue_noStates | |||
) |
Test that StatesToValueMapping without states is invalid.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentManagerTest | , |
test_attachmentManagerCreateMultipleReaders | |||
) |
Verify an AttachmentManager can't create multiple readers.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilitySemanticsTest | , |
test_statesValue_noValue | |||
) |
Test that StatesToValueMapping without a value is invalid.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | AttachmentManagerTest | , |
test_attachmentWriterAndReaderInOnePass | |||
) |
Test a one-pass write and read with both Attachment wrapper classes.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilitySemanticsTest | , |
test_statesRange_emptyState | |||
) |
Test that StatesToRangeMapping::addState() checks for an empty state.
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.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilitySemanticsTest | , |
test_statesRange_duplicateState | |||
) |
Test that StatesToRangeMapping::addState() skips duplicate states.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilitySemanticsTest | , |
test_statesRange_noStates | |||
) |
Test that StatesToRangeMapping without states is invalid.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilitySemanticsTest | , |
test_statesRange_noRange | |||
) |
Test that StatesToRangeMapping without a range is invalid.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilitySemanticsTest | , |
test_statesRange_invertedRange | |||
) |
Test that StatesToRangeMapping with min > max is invalid.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilitySemanticsTest | , |
test_semantics_noMappings | |||
) |
Test that CapabilitySemantics without mappings is invalid.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilitySemanticsTest | , |
test_semantics_invalidActionsDirectiveMapping | |||
) |
Test that CapabilitySemantics with an invalid ActionsToDirectiveMapping is invalid.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilitySemanticsTest | , |
test_semantics_invalidStatesValueMapping | |||
) |
Test that CapabilitySemantics with an invalid StatesToValueMapping is invalid.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilitySemanticsTest | , |
test_semantics_invalidStatesRangeMapping | |||
) |
Test that CapabilitySemantics with an invalid StatesToRangeMapping is invalid.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilitySemanticsTest | , |
test_validateJson_semanticsMultipleActionMappings | |||
) |
Test the JSON result of an ActionsToDirectiveMapping with multiple actions.
alexaClientSDK::avsCommon::avs::test::TEST_F | ( | CapabilitySemanticsTest | , |
test_validateJson_semanticsComplete | |||
) |
Test the JSON result of a CapabilitySemantics with all mapping types.
void alexaClientSDK::avsCommon::avs::test::validateJson | ( | const std::string & | providedJson, |
const std::string & | expectedJson | ||
) |
Expects the provided JSON strings to be equal.
|
static |
Accepted action IDs.
|
static |
Accepted action IDs.
|
static |
Accepted action IDs.
|
static |
Accepted action IDs.
|
static |
The air conditioner friendly name string.
|
static |
Timeout for how long attachment reader loop can run while it is checking for certain status from read call.
|
static |
Time to wait between each read call in reader loop.
|
static |
A capability state.
|
static |
A capability tag.
|
static |
Sample directive names.
|
static |
Sample directive names.
|
static |
Sample directive names.
|
static |
Sample directive names.
|
static |
The expected friendly names json.
|
static |
The expected friendly names json with a single value.
|
static |
The fan friendly name string.
|
static |
Incorrectly formatted test event.
|
static |
Invalid test event.
|
static |
Empty JSON object.
|
static |
Sample 'semantics' object with 'actionMappings' and 'stateMappings'.
|
static |
Sample 'semantics' object with multiple ActionsToDirectiveMappings with multiple actions.
|
static |
Partially valid test event.
|
static |
|
static |
Accepted state IDs.
|
static |
Accepted state IDs.
|
static |
A test AttachmentId string.
|
static |
A third test AttachmentId string.
|
static |
A second test AttachmentId string.
|
static |
Test values for CapabilityConfiguration
.
|
static |
A second test ContextId string.
|
static |
A test ContentId string.
|
static |
A test ContextId string.
|
static |
Empty string used for testing.
|
static |
Test values for CapabilityConfiguration
.
|
static |
Test values for CapabilityConfiguration
.
|
static |
The test locale string.
|
static |
Test values for CapabilityConfiguration
.
|
static |
Test event name header value.
|
static |
Test event namespace header value.
|
static |
Test values for CapabilityConfiguration
.
|
static |
Test values for CapabilityConfiguration
.
|
static |
Test values for CapabilityConfiguration
.
|
static |
Test values for CapabilityConfiguration
.
|
static |
A test seek position which is bad.
|
static |
A test buffer size.
|
static |
A test buffer read size.
|
static |
A test buffer write size.
|
static |
A test seek position, defined in terms of above variables.
|
static |
Test values for CapabilityConfiguration
.
|
static |
Test values for CapabilityConfiguration
.
|
static |
Test values for CapabilityConfiguration
.
|
static |
A test negative timeout.
|
static |
A test timeout.
|
static |
A test zero timeout.
|
static |
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