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

Public Member Functions

void SetUp () override
 
void TearDown () override
 

Protected Member Functions

void validateAuthDelegate ()
 Validates AuthDelegate calls. More...
 
void addEndpoint (AVSDiscoveryEndpointAttributes attributes, CapabilityConfiguration configuration)
 Helper that validates dynamically adding an endpoint. Used for testing dynamic delete. More...
 
void addEndpointToCapabilitiesDelegate (std::shared_ptr< CapabilitiesDelegate >, AVSDiscoveryEndpointAttributes attributes, CapabilityConfiguration configuration)
 Helper that validates dynamically adding an endpoint. Used for testing dynamic delete. More...
 
void getEventCorrelationTokenString (std::shared_ptr< MessageRequest > request, std::string &eventCorrelationTokenString)
 

Protected Attributes

std::shared_ptr< MockAuthDelegatem_mockAuthDelegate
 The mock Auth Delegate instance. More...
 
std::shared_ptr< MockCapabilitiesDelegateStoragem_mockCapabilitiesStorage
 The mock Capabilities Storage instance. More...
 
std::shared_ptr< MockCapabilitiesDelegateObserverm_mockCapabilitiesDelegateObserver
 The mock CapabilitiesDelegate observer instance. More...
 
std::shared_ptr< registrationManager::MockCustomerDataManagerm_dataManager
 The data manager required to build the base object. More...
 
std::shared_ptr< avsCommon::sdkInterfaces::test::MockMessageSenderm_mockMessageSender
 The mock MessageSenderInterface used in the tests. More...
 
std::shared_ptr< CapabilitiesDelegatem_capabilitiesDelegate
 The instance of the capabilitiesDelegate used in the tests. More...
 

Detailed Description

Test harness for CapabilitiesDelegate class.

Member Function Documentation

◆ addEndpoint()

void alexaClientSDK::capabilitiesDelegate::test::CapabilitiesDelegateTest::addEndpoint ( AVSDiscoveryEndpointAttributes  attributes,
CapabilityConfiguration  configuration 
)
protected

Helper that validates dynamically adding an endpoint. Used for testing dynamic delete.

◆ addEndpointToCapabilitiesDelegate()

void alexaClientSDK::capabilitiesDelegate::test::CapabilitiesDelegateTest::addEndpointToCapabilitiesDelegate ( std::shared_ptr< CapabilitiesDelegate ,
AVSDiscoveryEndpointAttributes  attributes,
CapabilityConfiguration  configuration 
)
protected

Helper that validates dynamically adding an endpoint. Used for testing dynamic delete.

◆ getEventCorrelationTokenString()

void alexaClientSDK::capabilitiesDelegate::test::CapabilitiesDelegateTest::getEventCorrelationTokenString ( std::shared_ptr< MessageRequest request,
std::string &  eventCorrelationTokenString 
)
protected

◆ SetUp()

void alexaClientSDK::capabilitiesDelegate::test::CapabilitiesDelegateTest::SetUp ( )
override

Set up the test harness for running a test.

Expect calls to storage.

Add a new observer and it receives notifications of the current capabilities state.

◆ TearDown()

void alexaClientSDK::capabilitiesDelegate::test::CapabilitiesDelegateTest::TearDown ( )
override

Tear down the test harness after running a test.

◆ validateAuthDelegate()

void alexaClientSDK::capabilitiesDelegate::test::CapabilitiesDelegateTest::validateAuthDelegate ( )
protected

Validates AuthDelegate calls.

Member Data Documentation

◆ m_capabilitiesDelegate

std::shared_ptr<CapabilitiesDelegate> alexaClientSDK::capabilitiesDelegate::test::CapabilitiesDelegateTest::m_capabilitiesDelegate
protected

The instance of the capabilitiesDelegate used in the tests.

◆ m_dataManager

std::shared_ptr<registrationManager::MockCustomerDataManager> alexaClientSDK::capabilitiesDelegate::test::CapabilitiesDelegateTest::m_dataManager
protected

The data manager required to build the base object.

◆ m_mockAuthDelegate

std::shared_ptr<MockAuthDelegate> alexaClientSDK::capabilitiesDelegate::test::CapabilitiesDelegateTest::m_mockAuthDelegate
protected

The mock Auth Delegate instance.

◆ m_mockCapabilitiesDelegateObserver

std::shared_ptr<MockCapabilitiesDelegateObserver> alexaClientSDK::capabilitiesDelegate::test::CapabilitiesDelegateTest::m_mockCapabilitiesDelegateObserver
protected

The mock CapabilitiesDelegate observer instance.

◆ m_mockCapabilitiesStorage

std::shared_ptr<MockCapabilitiesDelegateStorage> alexaClientSDK::capabilitiesDelegate::test::CapabilitiesDelegateTest::m_mockCapabilitiesStorage
protected

The mock Capabilities Storage instance.

◆ m_mockMessageSender

std::shared_ptr<avsCommon::sdkInterfaces::test::MockMessageSender> alexaClientSDK::capabilitiesDelegate::test::CapabilitiesDelegateTest::m_mockMessageSender
protected

The mock MessageSenderInterface used in the tests.


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

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