AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions
DirectiveSequencerTest.cpp File Reference
#include <chrono>
#include <future>
#include <string>
#include <memory>
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <acsdkShutdownManagerInterfaces/MockShutdownNotifier.h>
#include <AVSCommon/AVS/Attachment/AttachmentManager.h>
#include <AVSCommon/AVS/NamespaceAndName.h>
#include <AVSCommon/SDKInterfaces/MockDirectiveHandlerResult.h>
#include "ADSL/DirectiveSequencer.h"
#include "MockDirectiveHandler.h"
Include dependency graph for DirectiveSequencerTest.cpp:

Classes

class  alexaClientSDK::adsl::test::MockExceptionEncounteredSender
 
class  alexaClientSDK::adsl::test::DirectiveSequencerTest
 DirectiveSequencerTest. More...
 

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::adsl
 
 alexaClientSDK::adsl::test
 

Functions

static const std::chrono::milliseconds alexaClientSDK::adsl::test::LONG_HANDLING_TIME_MS (30000)
 Long amount of time for handling a directive to allow other things to happen (we should not reach this). More...
 
static const std::string alexaClientSDK::adsl::test::NAMESPACE_TEST ("Test")
 Namespace for Test only directives. More...
 
static const std::string alexaClientSDK::adsl::test::NAMESPACE_SPEAKER ("Speaker")
 Namespace for Speaker directives. More...
 
static const std::string alexaClientSDK::adsl::test::NAMESPACE_SPEECH_SYNTHESIZER ("SpeechSynthesizer")
 Namespace for SpeechSynthesizer directives. More...
 
static const std::string alexaClientSDK::adsl::test::NAMESPACE_AUDIO_PLAYER ("AudioPlayer")
 Namespace for AudioPlayer directives. More...
 
static const std::string alexaClientSDK::adsl::test::NAME_DONE ("Done")
 Name for Test directive used to terminate tests. More...
 
static const std::string alexaClientSDK::adsl::test::NAME_SET_VOLUME ("SetVolume")
 Name for Speaker::setVolume Directives. More...
 
static const std::string alexaClientSDK::adsl::test::NAME_SPEAK ("Speak")
 Name for SpeechSynthesizer::Speak directives. More...
 
static const std::string alexaClientSDK::adsl::test::NAME_PLAY ("Play")
 Name for AudioPlayer::Play directives. More...
 
static const std::string alexaClientSDK::adsl::test::NAME_BLOCKING ("Blocking")
 Name for Test::Blocking directives. More...
 
static const std::string alexaClientSDK::adsl::test::NAME_NON_BLOCKING ("Non-Blocking")
 Name for Test::Non-Blocking directives. More...
 
static const std::string alexaClientSDK::adsl::test::NAME_HANDLE_IMMEDIATELY ("Handle-Immediately")
 Name for Test::Handle-Immediately directives. More...
 
static const std::string alexaClientSDK::adsl::test::MESSAGE_ID_DONE ("Message_Done")
 MessageId for Testing:Done directives used to terminate tests. More...
 
static const std::string alexaClientSDK::adsl::test::MESSAGE_ID_0 ("Message_0")
 Generic messageId used for tests. More...
 
static const std::string alexaClientSDK::adsl::test::MESSAGE_ID_1 ("Message_1")
 Generic MessageId used for test. More...
 
static const std::string alexaClientSDK::adsl::test::MESSAGE_ID_2 ("Message_2")
 Generic MessageId used for tests. More...
 
static const std::string alexaClientSDK::adsl::test::DIALOG_REQUEST_ID_DONE ("DialogRequestId_Done")
 Default DialogRequestId for directives used to terminate tests. More...
 
static const std::string alexaClientSDK::adsl::test::DIALOG_REQUEST_ID_0 ("DialogRequestId_0")
 Generic DialogRequestId used for tests. More...
 
static const std::string alexaClientSDK::adsl::test::DIALOG_REQUEST_ID_1 ("DialogRequestId_1")
 Generic DialogRequestId used for tests. More...
 
static const std::string alexaClientSDK::adsl::test::UNPARSED_DIRECTIVE ("unparsedDirectiveForTest")
 An unparsed directive for test. More...
 
static const std::string alexaClientSDK::adsl::test::PAYLOAD_TEST ("payloadForTest")
 A paylaod for test;. More...
 
static const std::string alexaClientSDK::adsl::test::DIALOG_REQUEST_ID_2 ("DialogRequestId_2")
 Generic DialogRequestId used for tests. More...
 
static const std::string alexaClientSDK::adsl::test::TEST_ATTACHMENT_CONTEXT_ID ("TEST_ATTACHMENT_CONTEXT_ID")
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveSequencerTest, test_createNullptrExceptionSender)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveSequencerTest, test_createDirectiveSequencerInterfaceNullptrExceptionSender)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveSequencerTest, test_createDirectiveSequencerInterfaceNullptrShutdownNotifier)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveSequencerTest, test_createAndDoneTrigger)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveSequencerTest, test_nullptrDirective)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveSequencerTest, test_unhandledDirective)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveSequencerTest, test_emptyDialogRequestId)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveSequencerTest, test_handleImmediatelyHandler)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveSequencerTest, test_removingAndChangingHandlers)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveSequencerTest, test_blockingDirective)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveSequencerTest, test_blockingThenNonDialogDirective)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveSequencerTest, test_bargeIn)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveSequencerTest, testTimer_blockingThenNonBockingOnSameDialogId)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveSequencerTest, test_thatBargeInDropsSubsequentDirectives)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveSequencerTest, test_preHandleDirectiveError)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveSequencerTest, test_handleDirectiveError)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveSequencerTest, test_addDirectiveHandlersWhileHandlingDirectives)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveSequencerTest, test_handleBlockingThenImmediatelyThenNonBockingOnSameDialogId)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveSequencerTest, test_addDirectiveAfterDisabled)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveSequencerTest, test_disableCancelsDirective)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveSequencerTest, test_addDirectiveAfterReEnabled)
 

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