![]() |
AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Public Member Functions | |
void | SetUp () override |
void | TearDown () override |
void | connect () |
void | disconnect () |
void | sendEvent (const std::string &jsonContent, MessageRequestObserverInterface::Status expectedStatus, std::chrono::seconds timeout, std::shared_ptr< avsCommon::avs::attachment::AttachmentReader > attachmentReader=nullptr) |
void | addDelay (const std::string &delayTime) |
void | deleteDelay () |
Protected Attributes | |
std::unique_ptr< ACLTestContext > | m_context |
Context for running ACL based tests. More... | |
std::shared_ptr< ConnectionStatusObserver > | m_connectionStatusObserver |
ConnectionStatus Observer for checking the status changes in connection. More... | |
std::shared_ptr< AVSConnectionManager > | m_avsConnectionManager |
Connection Manager for handling the communication between client and AVS. More... | |
std::shared_ptr< contextManager::ContextManager > | m_contextManager |
ContextManager object. More... | |
Test class to stress test the ACL Library for slow network connection.
void alexaClientSDK::integration::test::NetworkIntegrationTests::addDelay | ( | const std::string & | delayTime | ) |
The function adds delay to the network.
DelayTime | The delay in milliseconds to be introduced in the network. |
void alexaClientSDK::integration::test::NetworkIntegrationTests::connect | ( | ) |
This function enables the m_avsConnectionManager
to establish a connection to AVS.
void alexaClientSDK::integration::test::NetworkIntegrationTests::deleteDelay | ( | ) |
Remove the delay in the network.
void alexaClientSDK::integration::test::NetworkIntegrationTests::disconnect | ( | ) |
This function disables the m_avsConnectionManager
to tear down the connection.
void alexaClientSDK::integration::test::NetworkIntegrationTests::sendEvent | ( | const std::string & | jsonContent, |
MessageRequestObserverInterface::Status | expectedStatus, | ||
std::chrono::seconds | timeout, | ||
std::shared_ptr< avsCommon::avs::attachment::AttachmentReader > | attachmentReader = nullptr |
||
) |
The function to send one message to AVS.
jsonContent | The content in json format to send in the message. |
expectedStatus | The expected status of the message being sent to AVS. |
timeout | The maximum time to wait for the expectedStatus . |
attachmentReader | The attachment reader for the MessageRequest. |
|
override |
|
override |
|
protected |
Connection Manager for handling the communication between client and AVS.
|
protected |
ConnectionStatus Observer for checking the status changes in connection.
|
protected |
Context for running ACL based tests.
|
protected |
ContextManager object.
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0