AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <ACLTestContext.h>
Public Member Functions | |
~ACLTestContext () | |
std::shared_ptr< avsCommon::sdkInterfaces::AuthDelegateInterface > | getAuthDelegate () const |
std::shared_ptr< registrationManager::CustomerDataManagerInterface > | getCustomerDataManager () const |
std::shared_ptr< avsCommon::avs::attachment::AttachmentManager > | getAttachmentManager () const |
std::shared_ptr< acl::MessageRouter > | getMessageRouter () const |
std::shared_ptr< ConnectionStatusObserver > | getConnectionStatusObserver () const |
std::shared_ptr< avsCommon::sdkInterfaces::ContextManagerInterface > | getContextManager () const |
void | waitForConnected () |
void | waitForDisconnected () |
Static Public Member Functions | |
static std::unique_ptr< ACLTestContext > | create (const std::string &filePath, const std::string &overlay="") |
Class providing lifecycle management of resources needed for testing ACL or functionality that requires ACL for testing.
alexaClientSDK::integration::test::ACLTestContext::~ACLTestContext | ( | ) |
Destructor. de-initializes all resources acquired during construction.
|
static |
Create an ACLTestContext.
Creating an instance of this class provides: Initialization of the Alexa
Client
SDK
(includes @ libcurl and ConfigurationNode
. A CustomerDataManager
instance. An AuthDelegateInterface
instance. An AttachmentManager
instance. A ConnectionStatusObserver
instance. A ContextManager
instance. Initialization of PostConnect
.
filePath | The path to a config file. |
overlay | A JSON string containing values to overlay on the contents of the configuration file. |
std::shared_ptr< AttachmentManager > alexaClientSDK::integration::test::ACLTestContext::getAttachmentManager | ( | ) | const |
Get the instance of AttachmentManager
to use for the test.
AttachmentManager
to use for the test. std::shared_ptr< AuthDelegateInterface > alexaClientSDK::integration::test::ACLTestContext::getAuthDelegate | ( | ) | const |
Get the instance of AuthDelegateInterface
to use for the test.
AuthDelegateInterface
to use for the test. std::shared_ptr< ConnectionStatusObserver > alexaClientSDK::integration::test::ACLTestContext::getConnectionStatusObserver | ( | ) | const |
Get the ConnectionStatusObserver
instance to use for the test.
ConnectionStatusObserver
instance to use for the test. std::shared_ptr< ContextManagerInterface > alexaClientSDK::integration::test::ACLTestContext::getContextManager | ( | ) | const |
Get the ContextManager
instance to use for the test.
ContextManager
instance to use for the test. std::shared_ptr< CustomerDataManagerInterface > alexaClientSDK::integration::test::ACLTestContext::getCustomerDataManager | ( | ) | const |
Get the instance of CustomerDataManager
to use for the test.
CustomerDataManager
to use for the test. std::shared_ptr< MessageRouter > alexaClientSDK::integration::test::ACLTestContext::getMessageRouter | ( | ) | const |
Get the MessageRouter
instance to use for the test.
MessageRouter
instance to use for the test. void alexaClientSDK::integration::test::ACLTestContext::waitForConnected | ( | ) |
Wait for the ConnectionStatusObserver
to be notified that the client has successfully connected to AVS
.
void alexaClientSDK::integration::test::ACLTestContext::waitForDisconnected | ( | ) |
Wait for the ConnectionStatusObserver
to be notified that the client has successfully disconnected from AVS
.
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0