AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Macros | Functions | Variables
DirectiveRouterTest.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/DirectiveRouter.h"
#include "MockDirectiveHandler.h"
Include dependency graph for DirectiveRouterTest.cpp:

Classes

class  alexaClientSDK::adsl::test::DirectiveRouterTest
 

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_ANY   NAMESPACE_0, NAME_ANY
 Namespace and name combination ('any 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...
 
#define NAMESPACE_AND_NAME_2_0   NAMESPACE_2, NAME_0
 Namespace and name combination (changing namespace this time) for tests. More...
 
#define NAMESPACE_AND_NAME_2_ANY   NAMESPACE_2, NAME_ANY
 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_1_0 ("Message_1_0")
 Generic MessageId used for tests. More...
 
static const std::string alexaClientSDK::adsl::test::MESSAGE_ID_2_0 ("Message_2_0")
 Generic MessageId used for test. 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::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::NAMESPACE_2 ("namespace_2")
 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_ANY ("*")
 A generic 'any name' string for tests. More...
 
static const std::string alexaClientSDK::adsl::test::TEST_ATTACHMENT_CONTEXT_ID ("TEST_ATTACHMENT_CONTEXT_ID")
 
static const std::chrono::seconds alexaClientSDK::adsl::test::LONG_TIMEOUT (15)
 Long timeout we only reach when a concurrency test fails. More...
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveRouterTest, test_unroutedDirective)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveRouterTest, test_settingADirectiveHandler)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveRouterTest, test_registeringMultipeHandler)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveRouterTest, test_removingChangingAndNotChangingHandlers)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveRouterTest, test_resultOfHandleDirectiveFailure)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveRouterTest, test_handlerMethodsCanRunConcurrently)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveRouterTest, test_perDirectiveRuleMatching)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveRouterTest, test_perNamespaceRuleMatching)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveRouterTest, test_perInstanceRuleMatching)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveRouterTest, test_perNamespaceAnyInstanceRuleMatching)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveRouterTest, test_perEndpointMatching)
 
 alexaClientSDK::adsl::test::TEST_F (DirectiveRouterTest, test_addDirectiveHandlerWithInvalidRoutingRuleShouldFail)
 

Variables

static const std::string alexaClientSDK::adsl::test::WILDCARD = "*"
 Represent a wildcard string. 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_ANY

#define NAMESPACE_AND_NAME_0_ANY   NAMESPACE_0, NAME_ANY

Namespace and name combination ('any 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.

◆ NAMESPACE_AND_NAME_2_0

#define NAMESPACE_AND_NAME_2_0   NAMESPACE_2, NAME_0

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

◆ NAMESPACE_AND_NAME_2_ANY

#define NAMESPACE_AND_NAME_2_ANY   NAMESPACE_2, NAME_ANY

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