|
void | SetUp () override |
|
void | TearDown () override |
|
void | connect () |
|
void | disconnect () |
|
void | sendEvent (const std::string &jsonContent, std::shared_ptr< avsCommon::avs::attachment::AttachmentReader > attachmentReader, avsCommon::sdkInterfaces::MessageRequestObserverInterface::Status expectedStatus, std::chrono::seconds timeout) |
|
void | setupMessageAndSend (const std::string &json, avsCommon::sdkInterfaces::MessageRequestObserverInterface::Status expectedStatus, std::chrono::seconds timeout) |
|
void | setupMessageWithAttachmentAndSend (const std::string &json, std::string &file, avsCommon::sdkInterfaces::MessageRequestObserverInterface::Status expectedStatus, std::chrono::seconds timeout) |
|
void | assertExceptionWithName (const std::string name) |
|
void | sendEventWithToken (const std::string &eventName, const std::string &eventNameSpace, const std::string &dialogRequestID, std::string token, MessageRequestObserverInterface::Status expectedStatus) |
|
◆ assertExceptionWithName()
void alexaClientSDK::integration::test::AlexaDirectiveSequencerLibraryTest::assertExceptionWithName |
( |
const std::string |
name | ) |
|
|
inlineprotected |
Helper function to check that a directive with the given name is an exception.
- Parameters
-
Pointer | to a exception encountered sender to receive exceptions through. |
String | of the name of the directive that should be an exception. |
◆ connect()
void alexaClientSDK::integration::test::AlexaDirectiveSequencerLibraryTest::connect |
( |
| ) |
|
|
inlineprotected |
◆ disconnect()
void alexaClientSDK::integration::test::AlexaDirectiveSequencerLibraryTest::disconnect |
( |
| ) |
|
|
inlineprotected |
◆ sendEvent()
Send and event to AVS. Blocks until a status is received.
- Parameters
-
message | The message to send. |
expectStatus | The status to expect from the call to send the message. |
timeout | How long to wait for a result from delivering the message. |
◆ sendEventWithToken()
void alexaClientSDK::integration::test::AlexaDirectiveSequencerLibraryTest::sendEventWithToken |
( |
const std::string & |
eventName, |
|
|
const std::string & |
eventNameSpace, |
|
|
const std::string & |
dialogRequestID, |
|
|
std::string |
token, |
|
|
MessageRequestObserverInterface::Status |
expectedStatus |
|
) |
| |
|
inlineprotected |
Function to setup a message with a token and send it to AVS.
- Parameters
-
eventName | Name of the event to send. |
eventNameSpace | Namespace if the Name of the event to send. |
dialogRequestID | DialogRequestID to use to send the event. |
token | Token to be added to the event payload. |
expectedStatus | MessageRequest status to expect after sending the event |
◆ SetUp()
void alexaClientSDK::integration::test::AlexaDirectiveSequencerLibraryTest::SetUp |
( |
| ) |
|
|
inlineoverrideprotected |
◆ setupMessageAndSend()
Function to setup a message and send it to AVS.
- Parameters
-
json | A JSON string containing the message to send. |
expectStatus | The status to expect from the call to send the message. |
timeout | How long to wait for a result from delivering the message. |
◆ setupMessageWithAttachmentAndSend()
Function to setup a message with an attachment and send it to AVS.
- Parameters
-
json | A JSON string containing the message to send. |
file | Name of the file to read the attachment from. |
expectStatus | The status to expect from the call to send the message. |
timeout | How long to wait for a result from delivering the message. |
◆ TearDown()
void alexaClientSDK::integration::test::AlexaDirectiveSequencerLibraryTest::TearDown |
( |
| ) |
|
|
inlineoverrideprotected |
◆ m_avsConnectionManager
std::shared_ptr<AVSConnectionManager> alexaClientSDK::integration::test::AlexaDirectiveSequencerLibraryTest::m_avsConnectionManager |
|
protected |
Object that manages the connection to AVS
.
◆ m_context
std::unique_ptr<ACLTestContext> alexaClientSDK::integration::test::AlexaDirectiveSequencerLibraryTest::m_context |
|
protected |
Context for running ACL based tests.
◆ m_directiveSequencer
std::shared_ptr<DirectiveSequencerInterface> alexaClientSDK::integration::test::AlexaDirectiveSequencerLibraryTest::m_directiveSequencer |
|
protected |
The DirectiveSequencer
instance to test.
◆ m_exceptionEncounteredSender
◆ m_messageInterpreter
std::shared_ptr<MessageInterpreter> alexaClientSDK::integration::test::AlexaDirectiveSequencerLibraryTest::m_messageInterpreter |
|
protected |
Object to convert messages from AVS
in to directives passed to the DirectiveSequencer
.
The documentation for this class was generated from the following file:
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0