AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
TemplateRuntimeTest.cpp File Reference
#include <future>
#include <memory>
#include <unordered_set>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <rapidjson/document.h>
#include <AVSCommon/AVS/Attachment/MockAttachmentManager.h>
#include <AVSCommon/AVS/NamespaceAndName.h>
#include <AVSCommon/SDKInterfaces/MediaPropertiesInterface.h>
#include <AVSCommon/SDKInterfaces/MockDirectiveHandlerResult.h>
#include <AVSCommon/SDKInterfaces/MockExceptionEncounteredSender.h>
#include <AVSCommon/SDKInterfaces/RenderPlayerInfoCardsObserverInterface.h>
#include <AVSCommon/SDKInterfaces/RenderPlayerInfoCardsProviderInterface.h>
#include <AVSCommon/SDKInterfaces/RenderPlayerInfoCardsProviderRegistrarInterface.h>
#include <AVSCommon/Utils/Memory/Memory.h>
#include <acsdk/TemplateRuntimeInterfaces/TemplateRuntimeObserverInterface.h>
#include <acsdk/TemplateRuntime/private/TemplateRuntime.h>
Include dependency graph for TemplateRuntimeTest.cpp:

Classes

class  alexaClientSDK::templateRuntime::test::MockMediaPropertiesFetcher
 
class  alexaClientSDK::templateRuntime::test::MockRenderInfoCardsPlayer
 
class  alexaClientSDK::templateRuntime::test::MockRenderInfoCardsPlayerRegistrar
 
class  alexaClientSDK::templateRuntime::test::MockGui
 
class  alexaClientSDK::templateRuntime::test::TemplateRuntimeTest
 Test harness for TemplateRuntime class. More...
 

Namespaces

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

Functions

static std::chrono::milliseconds alexaClientSDK::templateRuntime::test::TIMEOUT (1000)
 Timeout when waiting for futures to be set. More...
 
static std::chrono::milliseconds alexaClientSDK::templateRuntime::test::TEMPLATE_TIMEOUT (5000)
 Timeout when waiting for clearTemplateCard. More...
 
static std::chrono::milliseconds alexaClientSDK::templateRuntime::test::TEMPLATE_NOT_CLEAR_TIMEOUT (2500)
 Timeout when waiting for clearTemplateCard not called. More...
 
static const std::string alexaClientSDK::templateRuntime::test::MESSAGE_ID ("messageId")
 The MessageId identifer. More...
 
static const std::string alexaClientSDK::templateRuntime::test::AUDIO_ITEM_ID ("AudioItemId abcdefgh")
 An audioItemId for the RenderPlayerInfo directive. More...
 
static const std::string alexaClientSDK::templateRuntime::test::AUDIO_ITEM_ID_1 ("AudioItemId 12345678")
 An audioItemId without a corresponding RenderPlayerInfo directive. More...
 
 alexaClientSDK::templateRuntime::test::TEST_F (TemplateRuntimeTest, test_nullAudioPlayerInterface)
 
 alexaClientSDK::templateRuntime::test::TEST_F (TemplateRuntimeTest, test_nullExceptionSender)
 
 alexaClientSDK::templateRuntime::test::TEST_F (TemplateRuntimeTest, test_renderInfoCardsPlayersFromRegistrarAddRemoveObserver)
 
 alexaClientSDK::templateRuntime::test::TEST_F (TemplateRuntimeTest, test_renderInfoCardsPlayersAddRemoveObserver)
 
 alexaClientSDK::templateRuntime::test::TEST_F (TemplateRuntimeTest, test_unknownDirective)
 
 alexaClientSDK::templateRuntime::test::TEST_F (TemplateRuntimeTest, testSlow_renderTemplateDirective)
 
 alexaClientSDK::templateRuntime::test::TEST_F (TemplateRuntimeTest, testRenderTemplateDirectiveWillNotClearCardAfterGoingToExpectingStateAfterGoingToIDLESlowTest)
 
 alexaClientSDK::templateRuntime::test::TEST_F (TemplateRuntimeTest, test_handleDirectiveImmediately)
 
 alexaClientSDK::templateRuntime::test::TEST_F (TemplateRuntimeTest, testSlow_renderPlayerInfoDirectiveBefore)
 
 alexaClientSDK::templateRuntime::test::TEST_F (TemplateRuntimeTest, test_renderPlayerInfoDirectiveAfter)
 
 alexaClientSDK::templateRuntime::test::TEST_F (TemplateRuntimeTest, test_renderPlayerInfoDirectiveWithoutAudioItemId)
 
 alexaClientSDK::templateRuntime::test::TEST_F (TemplateRuntimeTest, test_malformedRenderPlayerInfoDirective)
 
 alexaClientSDK::templateRuntime::test::TEST_F (TemplateRuntimeTest, test_renderPlayerInfoDirectiveDifferentAudioItemId)
 
 alexaClientSDK::templateRuntime::test::TEST_F (TemplateRuntimeTest, test_renderPlayerInfoDirectiveWithTwoProviders)
 
 alexaClientSDK::templateRuntime::test::TEST_F (TemplateRuntimeTest, test_renderPlayerInfoDirectiveAudioStateUpdate)
 
 alexaClientSDK::templateRuntime::test::TEST_F (TemplateRuntimeTest, testTimer_RenderPlayerInfoAfterPlayerActivityChanged)
 

Variables

static const std::string alexaClientSDK::templateRuntime::test::NAMESPACE {"TemplateRuntime"}
 The namespace for this capability agent. More...
 
static const std::string alexaClientSDK::templateRuntime::test::UNKNOWN_DIRECTIVE {"Unknown"}
 An unknown directive signature. More...
 
static const NamespaceAndName alexaClientSDK::templateRuntime::test::TEMPLATE {NAMESPACE, "RenderTemplate"}
 The RenderTemplate directive signature. More...
 
static const NamespaceAndName alexaClientSDK::templateRuntime::test::PLAYER_INFO {NAMESPACE, "RenderPlayerInfo"}
 The RenderPlayerInfo directive signature. More...
 
static const std::string alexaClientSDK::templateRuntime::test::TEMPLATE_PAYLOAD
 A RenderTemplate directive payload. More...
 
static const std::string alexaClientSDK::templateRuntime::test::PLAYERINFO_PAYLOAD
 A RenderPlayerInfo directive payload. More...
 
static const std::string alexaClientSDK::templateRuntime::test::MALFORM_PLAYERINFO_PAYLOAD
 A malformed RenderPlayerInfo directive payload. 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