AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Public Attributes | List of all members
alexaClientSDK::adsl::test::DirectiveSequencerTest Class Reference

DirectiveSequencerTest. More...

Inheritance diagram for alexaClientSDK::adsl::test::DirectiveSequencerTest:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::adsl::test::DirectiveSequencerTest:
Collaboration graph
[legend]

Public Member Functions

void SetUp () override
 
void TearDown () override
 
void setDialogRequestId (std::string dialogRequestId)
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 

Public Attributes

std::shared_ptr< MockDirectiveHandlerm_doneHandler
 Handler to invoke for the Test::Done directive. More...
 
std::shared_ptr< MockExceptionEncounteredSenderm_exceptionEncounteredSender
 Mock ExceptionEncounteredSender. More...
 
std::shared_ptr< MockShutdownNotifierm_shutdownNotifier
 Mock ShutdownNotifier. More...
 
std::shared_ptr< DirectiveSequencerInterfacem_sequencer
 The DirectiveSequencer to test. More...
 
std::shared_ptr< AttachmentManagerm_attachmentManager
 AttachmentManager with which to create directives. More...
 

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
- 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)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 

Detailed Description

DirectiveSequencerTest.

Member Function Documentation

◆ setDialogRequestId()

void alexaClientSDK::adsl::test::DirectiveSequencerTest::setDialogRequestId ( std::string  dialogRequestId)

SetDialogRequestId(). Tests should use this method rather than m_sequencer->setDialogRequestId() so that TearDown() knows which DialogRequestId to use for the Test::Done directive.

Parameters
dialogRequestIdThe new value for DialogRequestId.

◆ SetUp()

void alexaClientSDK::adsl::test::DirectiveSequencerTest::SetUp ( )
overridevirtual

Setup the DirectiveSequencerTest. Creates a DirectiveSequencer and initialized it with a DirectiveHandler that allows waiting for a final directive to be processed.

Reimplemented from testing::Test.

◆ TearDown()

void alexaClientSDK::adsl::test::DirectiveSequencerTest::TearDown ( )
overridevirtual

TearDown the DirectiveSequencerTest. Sends a Test.Done directive with the current dialogRequestId and waits for it to be handled before allowing the test to complete.

Reimplemented from testing::Test.

Member Data Documentation

◆ m_attachmentManager

std::shared_ptr<AttachmentManager> alexaClientSDK::adsl::test::DirectiveSequencerTest::m_attachmentManager

AttachmentManager with which to create directives.

◆ m_doneHandler

std::shared_ptr<MockDirectiveHandler> alexaClientSDK::adsl::test::DirectiveSequencerTest::m_doneHandler

Handler to invoke for the Test::Done directive.

◆ m_exceptionEncounteredSender

std::shared_ptr<MockExceptionEncounteredSender> alexaClientSDK::adsl::test::DirectiveSequencerTest::m_exceptionEncounteredSender

Mock ExceptionEncounteredSender.

◆ m_sequencer

std::shared_ptr<DirectiveSequencerInterface> alexaClientSDK::adsl::test::DirectiveSequencerTest::m_sequencer

The DirectiveSequencer to test.

◆ m_shutdownNotifier

std::shared_ptr<MockShutdownNotifier> alexaClientSDK::adsl::test::DirectiveSequencerTest::m_shutdownNotifier

Mock ShutdownNotifier.


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