AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Typedefs | Functions | Variables
AlexaInterfaceCapabilityAgentTest.cpp File Reference
#include <future>
#include <memory>
#include <gmock/gmock.h>
#include <Alexa/AlexaEventProcessedNotifier.h>
#include <Alexa/AlexaInterfaceCapabilityAgent.h>
#include <Alexa/AlexaInterfaceConstants.h>
#include <Alexa/AlexaInterfaceMessageSenderInternalInterface.h>
#include <AVSCommon/AVS/AVSDirective.h>
#include <AVSCommon/AVS/NamespaceAndName.h>
#include <AVSCommon/SDKInterfaces/AlexaEventProcessedObserverInterface.h>
#include <AVSCommon/SDKInterfaces/MockAlexaInterfaceMessageSender.h>
#include <AVSCommon/SDKInterfaces/MockDirectiveHandlerResult.h>
#include <AVSCommon/SDKInterfaces/MockExceptionEncounteredSender.h>
#include <AVSCommon/SDKInterfaces/Endpoints/DefaultEndpointAnnotation.h>
#include <AVSCommon/SDKInterfaces/Endpoints/MockEndpointCapabilitiesRegistrar.h>
#include <AVSCommon/Utils/Memory/Memory.h>
Include dependency graph for AlexaInterfaceCapabilityAgentTest.cpp:

Classes

class  alexaClientSDK::capabilityAgents::alexa::test::TestEventProcessedObserver
 A test EventProcessedObserver. More...
 
class  alexaClientSDK::capabilityAgents::alexa::test::MockAlexaInterfaceMessageSenderInternal
 A mock MockAlexaInterfaceMessageSenderInternal. More...
 
class  alexaClientSDK::capabilityAgents::alexa::test::AlexaInterfaceCapabilityAgentTest
 

Namespaces

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

Typedefs

using alexaClientSDK::capabilityAgents::alexa::test::DefaultEndpointAnnotation = avsCommon::sdkInterfaces::endpoints::DefaultEndpointAnnotation
 

Functions

static std::chrono::milliseconds alexaClientSDK::capabilityAgents::alexa::test::TIMEOUT (1000)
 Timeout when waiting for future to be set. More...
 
 alexaClientSDK::capabilityAgents::alexa::test::TEST_F (AlexaInterfaceCapabilityAgentTest, createWithInvalidParameters)
 
 alexaClientSDK::capabilityAgents::alexa::test::TEST_F (AlexaInterfaceCapabilityAgentTest, testDefaultEndpoint)
 
 alexaClientSDK::capabilityAgents::alexa::test::TEST_F (AlexaInterfaceCapabilityAgentTest, testNonDefaultEndpoint)
 
 alexaClientSDK::capabilityAgents::alexa::test::TEST_F (AlexaInterfaceCapabilityAgentTest, testValidUnknownDirective)
 
 alexaClientSDK::capabilityAgents::alexa::test::TEST_F (AlexaInterfaceCapabilityAgentTest, testInvalidEventProcessedDirective)
 
 alexaClientSDK::capabilityAgents::alexa::test::TEST_F (AlexaInterfaceCapabilityAgentTest, testValidEventProcessedDirective)
 
 alexaClientSDK::capabilityAgents::alexa::test::TEST_F (AlexaInterfaceCapabilityAgentTest, testValidReportStateDirective)
 
 alexaClientSDK::capabilityAgents::alexa::test::TEST_F (AlexaInterfaceCapabilityAgentTest, testValidReportStateDirectiveReportStateFailure)
 
 alexaClientSDK::capabilityAgents::alexa::test::TEST_F (AlexaInterfaceCapabilityAgentTest, testInvalidReportStateDirectiveNoEndpoint)
 

Variables

static const std::string alexaClientSDK::capabilityAgents::alexa::test::NAMESPACE = "Alexa"
 The namespace for this capability agent. More...
 
static const std::string alexaClientSDK::capabilityAgents::alexa::test::EVENT_PROCESSED_DIRECTIVE_NAME = "EventProcessed"
 The Alexa.EventProcessed directive name. More...
 
static const std::string alexaClientSDK::capabilityAgents::alexa::test::REPORT_STATE_DIRECTIVE_NAME = "ReportState"
 The Alexa.ReportState directive name. More...
 
static const NamespaceAndName alexaClientSDK::capabilityAgents::alexa::test::EVENT_PROCESSED {NAMESPACE, EVENT_PROCESSED_DIRECTIVE_NAME}
 The EventProcessed directive signature. More...
 
static const NamespaceAndName alexaClientSDK::capabilityAgents::alexa::test::REPORT_STATE {NAMESPACE, REPORT_STATE_DIRECTIVE_NAME}
 The ReportState directive signature. More...
 
static const std::string alexaClientSDK::capabilityAgents::alexa::test::TEST_ENDPOINT_ID = "test-endpoint"
 The test messageId. More...
 
static const std::string alexaClientSDK::capabilityAgents::alexa::test::TEST_MESSAGE_ID = "abcdefg"
 The test messageId. More...
 
static const std::string alexaClientSDK::capabilityAgents::alexa::test::TEST_EVENTCORRELATION_TOKEN = "abcdefg"
 The test EventCorrelationToken. More...
 
static const std::string alexaClientSDK::capabilityAgents::alexa::test::VALID_EVENT_PROCESSED_DIRECTIVE
 A sample Directive JSON string for the purposes of creating an AVSDirective object. More...
 
static const std::string alexaClientSDK::capabilityAgents::alexa::test::UNKNOWN_DIRECTIVE
 A directive with an incorrect name. More...
 
static const std::string alexaClientSDK::capabilityAgents::alexa::test::EVENT_PROCESSED_WITH_NO_EVENT_CORRELATION_TOKEN
 An invalid EventProcessed Directive with no eventCorrelationToken. More...
 
static const std::string alexaClientSDK::capabilityAgents::alexa::test::VALID_ALEXA_REPORTSTATE_DIRECTIVE
 A sample Directive JSON string for the purposes of creating an AVSDirective object. More...
 
static const std::string alexaClientSDK::capabilityAgents::alexa::test::INVALID_ALEXA_REPORTSTATE_DIRECTIVE_NO_ENDPOINT
 A sample Directive JSON string for the purposes of creating an AVSDirective object. More...
 

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