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

Protected Member Functions

void SetUp () override
 
void TearDown () override
 
bool testNotRetryable (MessageRequestObserverInterface::Status status)
 
bool testRetryable (MessageRequestObserverInterface::Status status)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 

Protected Attributes

std::shared_ptr< CertifiedSenderm_certifiedSender
 Class under test. More...
 
std::shared_ptr< MockMessageStoragem_storage
 Mock message storage layer. More...
 
std::shared_ptr< MockConnectionm_connection
 
std::shared_ptr< registrationManager::MockCustomerDataManagerm_customerDataManager
 The pointer to the customer data manager. More...
 
std::shared_ptr< avsCommon::sdkInterfaces::test::MockMessageSenderm_mockMessageSender
 The mock message sender instance. More...
 

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
- Static Public Member Functions inherited from testing::Test
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 

Member Function Documentation

◆ SetUp()

void alexaClientSDK::certifiedSender::test::CertifiedSenderTest::SetUp ( )
inlineoverrideprotectedvirtual

Reimplemented from testing::Test.

◆ TearDown()

void alexaClientSDK::certifiedSender::test::CertifiedSenderTest::TearDown ( )
inlineoverrideprotectedvirtual

Reimplemented from testing::Test.

◆ testNotRetryable()

bool alexaClientSDK::certifiedSender::test::CertifiedSenderTest::testNotRetryable ( MessageRequestObserverInterface::Status  status)
protected

Utility function to test that messages that receive a non-retryable status response are not retried.

Parameters
statusThe (non-retryable) status.
Returns
Whether the test succeeded.

wait for requests to get sent out.

◆ testRetryable()

bool alexaClientSDK::certifiedSender::test::CertifiedSenderTest::testRetryable ( MessageRequestObserverInterface::Status  status)
protected

Utility function to test that messages that receive a retryable status response are retried.

Note
A long timeout must be used because the first retry will happen only 10s after the first attempt.
Parameters
statusThe (retryable) status.
Returns
Whether the test succeeded.

wait for requests to get sent out.

Member Data Documentation

◆ m_certifiedSender

std::shared_ptr<CertifiedSender> alexaClientSDK::certifiedSender::test::CertifiedSenderTest::m_certifiedSender
protected

Class under test.

◆ m_connection

std::shared_ptr<MockConnection> alexaClientSDK::certifiedSender::test::CertifiedSenderTest::m_connection
protected

Pointer to connection. We need to remove certifiedSender as a connection observer or both objects will never be deleted.

◆ m_customerDataManager

std::shared_ptr<registrationManager::MockCustomerDataManager> alexaClientSDK::certifiedSender::test::CertifiedSenderTest::m_customerDataManager
protected

The pointer to the customer data manager.

◆ m_mockMessageSender

std::shared_ptr<avsCommon::sdkInterfaces::test::MockMessageSender> alexaClientSDK::certifiedSender::test::CertifiedSenderTest::m_mockMessageSender
protected

The mock message sender instance.

◆ m_storage

std::shared_ptr<MockMessageStorage> alexaClientSDK::certifiedSender::test::CertifiedSenderTest::m_storage
protected

Mock message storage layer.


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