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::DiscoveryEventSenderTest Class Reference
Inheritance diagram for alexaClientSDK::capabilitiesDelegate::test::DiscoveryEventSenderTest:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::capabilitiesDelegate::test::DiscoveryEventSenderTest:
Collaboration graph
[legend]

Public Member Functions

void SetUp () override
 Setup the test harness for running the test. More...
 
void TearDown () override
 Clean up the test harness after running the test. More...
 

Protected Member Functions

void validateCallsToAuthDelegate (const std::shared_ptr< DiscoveryEventSenderInterface > &discoveryEventSender, bool expectAuthFailure)
 

Protected Attributes

std::shared_ptr< MockMessageSenderm_mockMessageSender
 The mock MessageSenderInterface used in the tests. More...
 
std::shared_ptr< MockAuthDelegatem_mockAuthDelegate
 The instance of the AuthDelegate used in the tests. More...
 
std::shared_ptr< MockDiscoveryStatusObserverm_mockDiscoveryStatusObserver
 The instance of the DiscoveryObserverStatusInterface used in the tests. More...
 
std::shared_ptr< DiscoveryEventSenderInterfacem_discoveryEventSender
 The instance of the DiscoveryEventSenderInterface to be tested. More...
 

Detailed Description

Test harness for DiscoveryEventSender class.

Member Function Documentation

◆ SetUp()

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

Setup the test harness for running the test.

◆ TearDown()

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

Clean up the test harness after running the test.

◆ validateCallsToAuthDelegate()

void alexaClientSDK::capabilitiesDelegate::test::DiscoveryEventSenderTest::validateCallsToAuthDelegate ( const std::shared_ptr< DiscoveryEventSenderInterface > &  discoveryEventSender,
bool  expectAuthFailure = false 
)
protected

Validates if the expected methods get called on the auth delegate.

Parameters
discoveryEventSenderThe DiscoveryEventSenderInterface to observe authdelegate.
expectAuthFailureTrue if a call to onAuthFailure() is expected, else false.

Member Data Documentation

◆ m_discoveryEventSender

std::shared_ptr<DiscoveryEventSenderInterface> alexaClientSDK::capabilitiesDelegate::test::DiscoveryEventSenderTest::m_discoveryEventSender
protected

The instance of the DiscoveryEventSenderInterface to be tested.

◆ m_mockAuthDelegate

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

The instance of the AuthDelegate used in the tests.

◆ m_mockDiscoveryStatusObserver

std::shared_ptr<MockDiscoveryStatusObserver> alexaClientSDK::capabilitiesDelegate::test::DiscoveryEventSenderTest::m_mockDiscoveryStatusObserver
protected

The instance of the DiscoveryObserverStatusInterface used in the tests.

◆ m_mockMessageSender

std::shared_ptr<MockMessageSender> alexaClientSDK::capabilitiesDelegate::test::DiscoveryEventSenderTest::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