![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Classes | |
| class | AlexaChannelControllerCapabilityAgentTest |
| class | MockAlexaChannelControllerInterface |
Typedefs | |
| using | EndpointIdentifier = endpoints::EndpointIdentifier |
Functions | |
| static std::chrono::milliseconds | TIMEOUT (1000) |
| Timeout when waiting for futures to be set. More... | |
| static const std::string | TIME_OF_SAMPLE_TEST ("2017-02-03T16:20:50.523Z") |
| Time of sample used for testing. More... | |
| static const EndpointIdentifier | TEST_ENDPOINT_ID ("testEndpointId") |
| The test EndpointId. More... | |
| static const std::string | EVENT ("event") |
| Event key. More... | |
| static const std::string | MESSAGE_ID_TEST ("MessageId_Test") |
| MessageId for testing. More... | |
| static const std::string | DIALOG_REQUEST_ID_TEST ("DialogRequestId_Test") |
| DialogRequestId for testing. More... | |
| static const std::string | CORRELATION_TOKEN_TEST ("CorrelationToken_Test") |
| Correlation token for testing. More... | |
| std::shared_ptr< AVSDirective > | buildAVSDirective (std::string directiveName, std::string payload) |
| TEST_F (AlexaChannelControllerCapabilityAgentTest, test_givenInvalidParameters_create_shouldFail) | |
| Test that create() returns a nullptr if called with invalid arguments. More... | |
| TEST_F (AlexaChannelControllerCapabilityAgentTest, test_changeChannelDirective_successCase) | |
| TEST_F (AlexaChannelControllerCapabilityAgentTest, test_changeChannelDirective_errorCase) | |
| TEST_F (AlexaChannelControllerCapabilityAgentTest, test_incrementChannelsDirective_successCase) | |
| TEST_F (AlexaChannelControllerCapabilityAgentTest, test_decrementChannelsDirective_successCase) | |
| TEST_F (AlexaChannelControllerCapabilityAgentTest, test_skipChannelsDirective_errorCase) | |
| TEST_F (AlexaChannelControllerCapabilityAgentTest, test_unknownDirective) | |
| TEST_F (AlexaChannelControllerCapabilityAgentTest, test_reportStateChange_successCase) | |
| TEST_F (AlexaChannelControllerCapabilityAgentTest, test_reportStateChange_errorCase) | |
| TEST_F (AlexaChannelControllerCapabilityAgentTest, test_unknownDirectiveWithProactivelyReportedAndRetrievableTrue) | |
| TEST_F (AlexaChannelControllerCapabilityAgentTest, test_unknownDirectiveWithProactivelyReportedAndRetrievableFalse) | |
Variables | |
| static const std::string | NAMESPACE {"Alexa.ChannelController"} |
| The namespace for capability agent. More... | |
| static const std::string | INTERFACE_VERSION {"3"} |
| The supported version. More... | |
| static const std::string | NAME_CHANGECHANNEL {"ChangeChannel"} |
| The name for ChangeChannel directive. More... | |
| static const std::string | NAME_SKIPCHANNELS {"SkipChannels"} |
| The name for SkipChannels directive. More... | |
| static const std::string | UNKNOWN_DIRECTIVE {"Unknown"} |
| An unknown directive signature. More... | |
| static const std::string | TEST_CHANNEL_NUMBER {"256"} |
| Channel number for testing. More... | |
| static const std::string | TEST_CHANNEL_CALLSIGN {"PBS"} |
| Channel call sign for testing. More... | |
| static const std::string | TEST_CHANNEL_AFFILIATE_CALLSIGN {"affiliateCallSign"} |
| Channel affiliate callsign for testing. More... | |
| static const std::string | TEST_CHANNEL_METADATA_NAME {"Sample Channel"} |
| Channel metadata name for testing. More... | |
| static const std::string | TEST_CHANNEL_METADATA_IMAGE {"<URI>"} |
| Channel image URL for testing. More... | |
| static const std::string | CHANGECHANNEL_PAYLOAD |
| static const std::string | SKIPCHANNELS_INCREMENT_PAYLOAD |
| static const std::string | SKIPCHANNELS_DECREMENT_PAYLOAD |
| static const std::string | CHANNELSTATE_PROPERTY_NAME {"channel"} |
| The name of channel property. More... | |
| using alexaClientSDK::alexaChannelController::test::EndpointIdentifier = typedef endpoints::EndpointIdentifier |
| std::shared_ptr<AVSDirective> alexaClientSDK::alexaChannelController::test::buildAVSDirective | ( | std::string | directiveName, |
| std::string | payload | ||
| ) |
|
static |
Correlation token for testing.
|
static |
DialogRequestId for testing.
|
static |
Event key.
|
static |
MessageId for testing.
|
static |
The test EndpointId.
| alexaClientSDK::alexaChannelController::test::TEST_F | ( | AlexaChannelControllerCapabilityAgentTest | , |
| test_givenInvalidParameters_create_shouldFail | |||
| ) |
Test that create() returns a nullptr if called with invalid arguments.
| alexaClientSDK::alexaChannelController::test::TEST_F | ( | AlexaChannelControllerCapabilityAgentTest | , |
| test_changeChannelDirective_successCase | |||
| ) |
Test successful handling of ChangeChannel directive.
| alexaClientSDK::alexaChannelController::test::TEST_F | ( | AlexaChannelControllerCapabilityAgentTest | , |
| test_changeChannelDirective_errorCase | |||
| ) |
Test error path of ChangeChannel directive.
| alexaClientSDK::alexaChannelController::test::TEST_F | ( | AlexaChannelControllerCapabilityAgentTest | , |
| test_incrementChannelsDirective_successCase | |||
| ) |
Test successful handling of SkipChannels directive with Increment Channel payload.
| alexaClientSDK::alexaChannelController::test::TEST_F | ( | AlexaChannelControllerCapabilityAgentTest | , |
| test_decrementChannelsDirective_successCase | |||
| ) |
Test successful handling of SkipChannels directive with Decrement payload.
| alexaClientSDK::alexaChannelController::test::TEST_F | ( | AlexaChannelControllerCapabilityAgentTest | , |
| test_skipChannelsDirective_errorCase | |||
| ) |
Test error path of SkipChannels directive.
| alexaClientSDK::alexaChannelController::test::TEST_F | ( | AlexaChannelControllerCapabilityAgentTest | , |
| test_unknownDirective | |||
| ) |
Tests unknown Directive. Expect that the sendExceptionEncountered and setFailed will be called.
| alexaClientSDK::alexaChannelController::test::TEST_F | ( | AlexaChannelControllerCapabilityAgentTest | , |
| test_reportStateChange_successCase | |||
| ) |
Test triggering of reportStateChange and subsequent call to the ContextManager to build the context.
| alexaClientSDK::alexaChannelController::test::TEST_F | ( | AlexaChannelControllerCapabilityAgentTest | , |
| test_reportStateChange_errorCase | |||
| ) |
Test triggering of reportStateChange and subsequent failure to get the getChannelState and call to the ContextManager to report the failure.
| alexaClientSDK::alexaChannelController::test::TEST_F | ( | AlexaChannelControllerCapabilityAgentTest | , |
| test_unknownDirectiveWithProactivelyReportedAndRetrievableTrue | |||
| ) |
Tests unknown Directive with both proactively reported and retrievable set. Expect that the sendExceptionEncountered and setFailed will be called.
| alexaClientSDK::alexaChannelController::test::TEST_F | ( | AlexaChannelControllerCapabilityAgentTest | , |
| test_unknownDirectiveWithProactivelyReportedAndRetrievableFalse | |||
| ) |
Tests unknown Directive with both proactively reported and retrievable as false. Expect that the sendExceptionEncountered and setFailed will be called.
|
static |
Time of sample used for testing.
|
static |
Timeout when waiting for futures to be set.
|
static |
|
static |
The name of channel property.
|
static |
The supported version.
|
static |
The name for ChangeChannel directive.
|
static |
The name for SkipChannels directive.
|
static |
The namespace for capability agent.
|
static |
|
static |
|
static |
Channel affiliate callsign for testing.
|
static |
Channel call sign for testing.
|
static |
Channel image URL for testing.
|
static |
Channel metadata name for testing.
|
static |
Channel number for testing.
|
static |
An unknown directive signature.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0