AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Protected Attributes | List of all members
alexaClientSDK::integration::test::NetworkIntegrationTests Class Reference
Inheritance diagram for alexaClientSDK::integration::test::NetworkIntegrationTests:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::integration::test::NetworkIntegrationTests:
Collaboration graph
[legend]

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< ACLTestContextm_context
 Context for running ACL based tests. More...
 
std::shared_ptr< ConnectionStatusObserverm_connectionStatusObserver
 ConnectionStatus Observer for checking the status changes in connection. More...
 
std::shared_ptr< AVSConnectionManagerm_avsConnectionManager
 Connection Manager for handling the communication between client and AVS. More...
 
std::shared_ptr< contextManager::ContextManagerm_contextManager
 ContextManager object. More...
 

Detailed Description

Test class to stress test the ACL Library for slow network connection.

Member Function Documentation

◆ addDelay()

void alexaClientSDK::integration::test::NetworkIntegrationTests::addDelay ( const std::string &  delayTime)

The function adds delay to the network.

Parameters
DelayTimeThe delay in milliseconds to be introduced in the network.

◆ connect()

void alexaClientSDK::integration::test::NetworkIntegrationTests::connect ( )

This function enables the m_avsConnectionManager to establish a connection to AVS.

◆ deleteDelay()

void alexaClientSDK::integration::test::NetworkIntegrationTests::deleteDelay ( )

Remove the delay in the network.

◆ disconnect()

void alexaClientSDK::integration::test::NetworkIntegrationTests::disconnect ( )

This function disables the m_avsConnectionManager to tear down the connection.

◆ sendEvent()

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.

Parameters
jsonContentThe content in json format to send in the message.
expectedStatusThe expected status of the message being sent to AVS.
timeoutThe maximum time to wait for the expectedStatus.
attachmentReaderThe attachment reader for the MessageRequest.

◆ SetUp()

void alexaClientSDK::integration::test::NetworkIntegrationTests::SetUp ( )
override

◆ TearDown()

void alexaClientSDK::integration::test::NetworkIntegrationTests::TearDown ( )
override

Member Data Documentation

◆ m_avsConnectionManager

std::shared_ptr<AVSConnectionManager> alexaClientSDK::integration::test::NetworkIntegrationTests::m_avsConnectionManager
protected

Connection Manager for handling the communication between client and AVS.

◆ m_connectionStatusObserver

std::shared_ptr<ConnectionStatusObserver> alexaClientSDK::integration::test::NetworkIntegrationTests::m_connectionStatusObserver
protected

ConnectionStatus Observer for checking the status changes in connection.

◆ m_context

std::unique_ptr<ACLTestContext> alexaClientSDK::integration::test::NetworkIntegrationTests::m_context
protected

Context for running ACL based tests.

◆ m_contextManager

std::shared_ptr<contextManager::ContextManager> alexaClientSDK::integration::test::NetworkIntegrationTests::m_contextManager
protected

ContextManager object.


The documentation for this class was generated from the following file:

AlexaClientSDK 1.26.0 - Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0