AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Classes | |
class | AlexaPresentationTest |
Test harness for AlexaPresentationTest class. More... | |
Typedefs | |
using | JSONStream = std::vector< std::shared_ptr< std::istream > > |
Alias for JSON stream type used in ConfigurationNode initialization. More... | |
Functions | |
static std::chrono::milliseconds | TIMEOUT (1000) |
Timeout when waiting for futures to be set. More... | |
static const std::string | MESSAGE_ID ("messageId") |
The MessageId identifer. More... | |
static void | verifySendMessage (std::shared_ptr< avsCommon::avs::MessageRequest > request, const std::string expectedEventName, const std::string expectedPayload, const std::string expectedNameSpace) |
TEST_F (AlexaPresentationTest, testUnknownDirective) | |
TEST_F (AlexaPresentationTest, testPresentationDismissed) | |
Variables | |
static const std::string | NAMESPACE {"Alexa.Presentation"} |
The second namespace registered for this capability agent. More... | |
static const std::string | UNKNOWN_DIRECTIVE {"Unknown"} |
An unknown directive signature. More... | |
static const std::string | PRESENTATION_DISMISSED_EVENT {"Dismissed"} |
The name for Dismissed event. More... | |
static const std::string | EXPECTED_PRESENTATION_DISMISSED_PAYLOAD = R"({"presentationToken":"TOKEN"})" |
Expected payload to be sent with Dismissed event. More... | |
static const std::string | MESSAGE_EVENT_KEY = "event" |
JSON key for the event section of a 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 | 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 aplCapabilityCommonInterfaces::PresentationToken | PRESENTATION_TOKEN = "TOKEN" |
Presentation Token used by presentations. More... | |
std::mutex | m |
std::condition_variable | conditionVariable |
using alexaClientSDK::alexaPresentation::test::JSONStream = typedef std::vector<std::shared_ptr<std::istream> > |
Alias for JSON stream type used in ConfigurationNode
initialization.
|
static |
The MessageId
identifer.
alexaClientSDK::alexaPresentation::test::TEST_F | ( | AlexaPresentationTest | , |
testUnknownDirective | |||
) |
Tests unknown Directive. Expect that the sendExceptionEncountered and setFailed will be called.
alexaClientSDK::alexaPresentation::test::TEST_F | ( | AlexaPresentationTest | , |
testPresentationDismissed | |||
) |
Verify the Presentation Dismissed Event
Expect a call to getContext as part of sending DISMISSED event.
wait for getContext
|
static |
Timeout when waiting for futures to be set.
|
static |
Verify the request sent to AVS is as expected.
std::condition_variable alexaClientSDK::alexaPresentation::test::conditionVariable |
|
static |
Expected payload to be sent with Dismissed event.
std::mutex alexaClientSDK::alexaPresentation::test::m |
|
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 second namespace registered for this capability agent.
|
static |
The name for Dismissed event.
|
static |
Presentation Token used by presentations.
|
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