AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Classes | |
class | AlexaLiveViewControllerCapabilityAgentTest |
class | MockAlexaLiveViewControllerInterface |
class | MockRtcscAppClient |
Typedefs | |
using | EndpointIdentifier = endpoints::EndpointIdentifier |
For readability. More... | |
Functions | |
static std::chrono::milliseconds | TIMEOUT (1000) |
Timeout when waiting for futures to be set. More... | |
static const EndpointIdentifier | TEST_ENDPOINT_ID ("testEndpointId") |
The test EndpointId. More... | |
static const std::string | MESSAGE_ID ("messageId") |
MessageId key. More... | |
static const std::string | MESSAGE_ID_TEST ("MessageId_Test") |
MessageId for testing. More... | |
static const std::string | DIALOG_REQUEST_ID ("dialogRequestId") |
Dialog request Id key. More... | |
static const std::string | DIALOG_REQUEST_ID_TEST ("DialogRequestId_Test") |
DialogRequestId for testing. More... | |
static const std::string | CORRELATION_TOKEN ("correlationToken") |
Correlation token key. More... | |
static const std::string | CORRELATION_TOKEN_TEST ("CorrelationToken_Test") |
Correlation token for testing. More... | |
static const std::string | EVENT_CORRELATION_TOKEN ("eventCorrelationToken") |
Event correlation token key. More... | |
static const std::string | EVENT_CORRELATION_TOKEN_TEST ("EventCorrelationToken_Test") |
Event correlation for testing. More... | |
static void | verifySendMessage (std::shared_ptr< avsCommon::avs::MessageRequest > request, const std::string expectedEventName, const std::string expectedPayload, const std::string expectedNameSpace) |
std::shared_ptr< AVSDirective > | buildAVSDirective (std::string directiveName) |
TEST_F (AlexaLiveViewControllerCapabilityAgentTest, test_givenInvalidParameters_create_shouldFail) | |
Test that create() returns a nullptr if called with invalid arguments. More... | |
TEST_F (AlexaLiveViewControllerCapabilityAgentTest, test_liveViewDirectives_successCase) | |
TEST_F (AlexaLiveViewControllerCapabilityAgentTest, test_startLiveViewDirective_errorCase) | |
TEST_F (AlexaLiveViewControllerCapabilityAgentTest, test_stopLiveViewDirective_errorCase) | |
TEST_F (AlexaLiveViewControllerCapabilityAgentTest, test_unknownDirective) | |
Variables | |
static const std::string | NAMESPACE {"Alexa.Camera.LiveViewController"} |
The namespace for capability agent. More... | |
static const std::string | INTERFACE_VERSION {"1.7"} |
The supported version. More... | |
static const std::string | NAME_STARTLIVEVIEW {"StartLiveView"} |
The name for StartLiveView directive. More... | |
static const std::string | NAME_STOPLIVEVIEW {"StopLiveView"} |
The name for StopLiveView directive. More... | |
static const std::string | UNKNOWN_DIRECTIVE {"Unknown"} |
An unknown directive signature. More... | |
static const std::string | LIVE_VIEW_STARTED_EVENT {"LiveViewStarted"} |
The LiveViewStarted event signature. More... | |
static const std::string | LIVE_VIEW_STOPPED_EVENT {"LiveViewStopped"} |
The LiveViewStopped event signature. More... | |
static const std::string | MESSAGE_EVENT_KEY = "event" |
JSON key for the event section of a message. More... | |
static const std::string | MESSAGE_HEADER_KEY = "header" |
JSON key for the header section of a message. More... | |
static const std::string | MESSAGE_PAYLOAD_KEY = "payload" |
JSON key for the payload section of an message. More... | |
static const std::string | MESSAGE_NAMESPACE_KEY = "namespace" |
JSON key for the namespace field of a message header. More... | |
static const std::string | MESSAGE_NAME_KEY = "name" |
JSON key for the name field of a message header. More... | |
static const std::string | START_LIVE_VIEW_PAYLOAD |
Sample StartLiveView payload. More... | |
static const std::string | STOP_LIVE_VIEW_PAYLOAD |
Sample StopLiveView payload. More... | |
static const std::string | EXPECTED_LIVE_VIEW_STARTED_PAYLOAD |
Expected LiveViewStarted payload for test purposes. More... | |
static const std::string | EXPECTED_LIVE_VIEW_STOPPED_PAYLOAD |
Expected LiveViewStopped payload for test purposes. More... | |
using alexaClientSDK::alexaLiveViewController::test::EndpointIdentifier = typedef endpoints::EndpointIdentifier |
For readability.
std::shared_ptr<AVSDirective> alexaClientSDK::alexaLiveViewController::test::buildAVSDirective | ( | std::string | directiveName | ) |
|
static |
Correlation token key.
|
static |
Correlation token for testing.
|
static |
Dialog request Id key.
|
static |
DialogRequestId for testing.
|
static |
Event correlation token key.
|
static |
Event correlation for testing.
|
static |
MessageId key.
|
static |
MessageId for testing.
|
static |
The test EndpointId.
alexaClientSDK::alexaLiveViewController::test::TEST_F | ( | AlexaLiveViewControllerCapabilityAgentTest | , |
test_givenInvalidParameters_create_shouldFail | |||
) |
Test that create() returns a nullptr if called with invalid arguments.
alexaClientSDK::alexaLiveViewController::test::TEST_F | ( | AlexaLiveViewControllerCapabilityAgentTest | , |
test_liveViewDirectives_successCase | |||
) |
Test successful handling of StartLiveView and StopLiveView directives.
alexaClientSDK::alexaLiveViewController::test::TEST_F | ( | AlexaLiveViewControllerCapabilityAgentTest | , |
test_startLiveViewDirective_errorCase | |||
) |
Test error path of StartLiveView directive.
alexaClientSDK::alexaLiveViewController::test::TEST_F | ( | AlexaLiveViewControllerCapabilityAgentTest | , |
test_stopLiveViewDirective_errorCase | |||
) |
Test error path of StopLiveView directive.
alexaClientSDK::alexaLiveViewController::test::TEST_F | ( | AlexaLiveViewControllerCapabilityAgentTest | , |
test_unknownDirective | |||
) |
Tests unknown Directive. Expect that the sendExceptionEncountered and setFailed will be called.
|
static |
Timeout when waiting for futures to be set.
|
static |
Verify the request sent to AVS is as expected.
request | Request for the event that is being sent to the cloud. |
expectedEventName | Name of the event being sent. |
expectedPayload | Payload of the event being sent. |
expectedNameSpace | Namespace of the event being sent. |
|
static |
Expected LiveViewStarted payload for test purposes.
|
static |
Expected LiveViewStopped payload for test purposes.
|
static |
The supported version.
|
static |
The LiveViewStarted event signature.
|
static |
The LiveViewStopped event signature.
|
static |
JSON key for the event section of a message.
|
static |
JSON key for the header section of a message.
|
static |
JSON key for the name field of a message header.
|
static |
JSON key for the namespace field of a message header.
|
static |
JSON key for the payload section of an message.
|
static |
The name for StartLiveView directive.
|
static |
The name for StopLiveView directive.
|
static |
The namespace for capability agent.
|
static |
Sample StartLiveView payload.
|
static |
Sample StopLiveView payload.
|
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