AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Typedefs | Functions | Variables
AlexaPresentationTest.cpp File Reference
#include <condition_variable>
#include <future>
#include <memory>
#include <mutex>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <rapidjson/document.h>
#include <AVSCommon/AVS/Attachment/MockAttachmentManager.h>
#include <AVSCommon/SDKInterfaces/MockContextManager.h>
#include <AVSCommon/SDKInterfaces/MockDirectiveHandlerResult.h>
#include <AVSCommon/SDKInterfaces/MockExceptionEncounteredSender.h>
#include <AVSCommon/SDKInterfaces/MockMessageSender.h>
#include <AVSCommon/Utils/Configuration/ConfigurationNode.h>
#include <AVSCommon/Utils/JSON/JSONUtils.h>
#include <AVSCommon/Utils/Logger/Logger.h>
#include <AVSCommon/Utils/Memory/Memory.h>
#include <acsdk/AlexaPresentation/private/AlexaPresentation.h>
Include dependency graph for AlexaPresentationTest.cpp:

Classes

class  alexaClientSDK::alexaPresentation::test::AlexaPresentationTest
 Test harness for AlexaPresentationTest class. More...
 

Namespaces

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

Typedefs

using alexaClientSDK::alexaPresentation::test::JSONStream = std::vector< std::shared_ptr< std::istream > >
 Alias for JSON stream type used in ConfigurationNode initialization. More...
 

Functions

static std::chrono::milliseconds alexaClientSDK::alexaPresentation::test::TIMEOUT (1000)
 Timeout when waiting for futures to be set. More...
 
static const std::string alexaClientSDK::alexaPresentation::test::MESSAGE_ID ("messageId")
 The MessageId identifer. More...
 
static void alexaClientSDK::alexaPresentation::test::verifySendMessage (std::shared_ptr< avsCommon::avs::MessageRequest > request, const std::string expectedEventName, const std::string expectedPayload, const std::string expectedNameSpace)
 
 alexaClientSDK::alexaPresentation::test::TEST_F (AlexaPresentationTest, testUnknownDirective)
 
 alexaClientSDK::alexaPresentation::test::TEST_F (AlexaPresentationTest, testPresentationDismissed)
 

Variables

static const std::string alexaClientSDK::alexaPresentation::test::NAMESPACE {"Alexa.Presentation"}
 The second namespace registered for this capability agent. More...
 
static const std::string alexaClientSDK::alexaPresentation::test::UNKNOWN_DIRECTIVE {"Unknown"}
 An unknown directive signature. More...
 
static const std::string alexaClientSDK::alexaPresentation::test::PRESENTATION_DISMISSED_EVENT {"Dismissed"}
 The name for Dismissed event. More...
 
static const std::string alexaClientSDK::alexaPresentation::test::EXPECTED_PRESENTATION_DISMISSED_PAYLOAD = R"({"presentationToken":"TOKEN"})"
 Expected payload to be sent with Dismissed event. More...
 
static const std::string alexaClientSDK::alexaPresentation::test::MESSAGE_EVENT_KEY = "event"
 JSON key for the event section of a message. More...
 
static const std::string alexaClientSDK::alexaPresentation::test::MESSAGE_NAMESPACE_KEY = "namespace"
 JSON key for the namespace field of a message header. More...
 
static const std::string alexaClientSDK::alexaPresentation::test::MESSAGE_NAME_KEY = "name"
 JSON key for the name field of a message header. More...
 
static const std::string alexaClientSDK::alexaPresentation::test::MESSAGE_HEADER_KEY = "header"
 JSON key for the header section of a message. More...
 
static const std::string alexaClientSDK::alexaPresentation::test::MESSAGE_PAYLOAD_KEY = "payload"
 JSON key for the payload section of an message. More...
 
static const aplCapabilityCommonInterfaces::PresentationToken alexaClientSDK::alexaPresentation::test::PRESENTATION_TOKEN = "TOKEN"
 Presentation Token used by presentations. More...
 
std::mutex alexaClientSDK::alexaPresentation::test::m
 
std::condition_variable alexaClientSDK::alexaPresentation::test::conditionVariable
 

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