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

Classes

class  alexaClientSDK::adsl::test::DirectiveProcessorTest
 

Namespaces

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

Macros

#define NAMESPACE_AND_NAME_0_0   NAMESPACE_0, NAME_0
 Namespace and name combination for tests. More...
 
#define NAMESPACE_AND_NAME_0_1   NAMESPACE_0, NAME_1
 Namespace and name combination (changing name this time) for tests. More...
 
#define NAMESPACE_AND_NAME_0_2   NAMESPACE_0, NAME_2
 Namespace and name combination (changing name this time) for tests. More...
 
#define NAMESPACE_AND_NAME_0_3   NAMESPACE_0, NAME_3
 Namespace and name combination (changing name this time) for tests. More...
 
#define NAMESPACE_AND_NAME_1_0   NAMESPACE_1, NAME_0
 Namespace and name combination (changing namespace this time) for tests. More...
 

Functions

static const std::string alexaClientSDK::adsl::test::MESSAGE_ID_0_0 ("Message_0_0")
 Generic messageId used for tests. More...
 
static const std::string alexaClientSDK::adsl::test::MESSAGE_ID_0_1 ("Message_0_1")
 Generic MessageId used for test. More...
 
static const std::string alexaClientSDK::adsl::test::MESSAGE_ID_0_2 ("Message_0_2")
 Generic MessageId used for test. More...
 
static const std::string alexaClientSDK::adsl::test::MESSAGE_ID_0_3 ("Message_0_3")
 Generic MessageId used for test. More...
 
static const std::string alexaClientSDK::adsl::test::MESSAGE_ID_1_0 ("Message_1_0")
 Generic MessageId used for 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::NAMESPACE_0 ("namespace_0")
 A generic namespace string for tests. More...
 
static const std::string alexaClientSDK::adsl::test::NAMESPACE_1 ("namespace_1")
 A generic namespace string for tests. More...
 
static const std::string alexaClientSDK::adsl::test::NAME_0 ("name_0")
 A generic name string for tests. More...
 
static const std::string alexaClientSDK::adsl::test::NAME_1 ("name_1")
 A generic name string for tests. More...
 
static const std::string alexaClientSDK::adsl::test::NAME_2 ("name_2")
 A generic name string for tests. More...
 
static const std::string alexaClientSDK::adsl::test::NAME_3 ("name_3")
 A generic name string for tests. More...
 
static const std::string alexaClientSDK::adsl::test::TEST_ATTACHMENT_CONTEXT_ID ("TEST_ATTACHMENT_CONTEXT_ID")
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveProcessorTest, test_nullptrDirective)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveProcessorTest, test_wrongDialogRequestId)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveProcessorTest, test_sendNonBlocking)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveProcessorTest, test_sendBlockingThenNonBlocking)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveProcessorTest, test_onUnregisteredDirective)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveProcessorTest, test_setDialogRequestIdCancelsOutstandingDirectives)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveProcessorTest, test_addDirectiveWhileDisabled)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveProcessorTest, test_addDirectiveAfterReEnabled)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveProcessorTest, test_audioAndVisualIsBlockingAudio)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveProcessorTest, test_differentMediums)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveProcessorTest, test_releaseOneMedium)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveProcessorTest, test_blockingQueuedDirectivIsBlocking)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveProcessorTest, test_nonBlockingQueuedDirectivIsNotBlocking)
 

Variables

static const std::string alexaClientSDK::adsl::test::NEW_DIALOG_REQUEST_DIRECTIVE_V0
 
static const std::string alexaClientSDK::adsl::test::NO_CONTEXT = ""
 A null context ID string. More...
 
static const NamespaceAndName alexaClientSDK::adsl::test::NEW_DIALOG_REQUEST_SIGNATURE {"InteractionModel", "NewDialogRequest"}
 The NewDialogRequest directive signature. More...
 

Macro Definition Documentation

◆ NAMESPACE_AND_NAME_0_0

#define NAMESPACE_AND_NAME_0_0   NAMESPACE_0, NAME_0

Namespace and name combination for tests.

◆ NAMESPACE_AND_NAME_0_1

#define NAMESPACE_AND_NAME_0_1   NAMESPACE_0, NAME_1

Namespace and name combination (changing name this time) for tests.

◆ NAMESPACE_AND_NAME_0_2

#define NAMESPACE_AND_NAME_0_2   NAMESPACE_0, NAME_2

Namespace and name combination (changing name this time) for tests.

◆ NAMESPACE_AND_NAME_0_3

#define NAMESPACE_AND_NAME_0_3   NAMESPACE_0, NAME_3

Namespace and name combination (changing name this time) for tests.

◆ NAMESPACE_AND_NAME_1_0

#define NAMESPACE_AND_NAME_1_0   NAMESPACE_1, NAME_0

Namespace and name combination (changing namespace this time) for tests.

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