AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
VisualCharacteristicsTest.cpp File Reference
#include "acsdk/VisualCharacteristics/private/VisualCharacteristics.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <AVSCommon/SDKInterfaces/Endpoints/MockEndpointCapabilitiesRegistrar.h>
#include <AVSCommon/SDKInterfaces/MockContextManager.h>
#include <AVSCommon/SDKInterfaces/MockExceptionEncounteredSender.h>
#include <AVSCommon/Utils/Configuration/ConfigurationNode.h>
#include <AVSCommon/Utils/Memory/Memory.h>
#include <AVSCommon/Utils/Threading/Executor.h>
#include <acsdk/PresentationOrchestratorInterfaces/PresentationOrchestratorStateObserverInterface.h>
#include <acsdk/VisualCharacteristicsInterfaces/VisualCharacteristicsInterface.h>
Include dependency graph for VisualCharacteristicsTest.cpp:

Classes

class  alexaClientSDK::visualCharacteristics::MockPresentationOrchestratorStateObserver
 Mocked PresentationOrchestratorStateObserverInterface. More...
 
class  alexaClientSDK::visualCharacteristics::VisualCharacteristicsTest
 Test harness for VisualCharacteristics class. More...
 

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::visualCharacteristics
 

Functions

static void alexaClientSDK::visualCharacteristics::setConfig ()
 
 alexaClientSDK::visualCharacteristics::TEST_F (VisualCharacteristicsTest, testGetCapabilityConfigurations)
 
 alexaClientSDK::visualCharacteristics::TEST_F (VisualCharacteristicsTest, testVerifyGetConfigurations)
 
 alexaClientSDK::visualCharacteristics::TEST_F (VisualCharacteristicsTest, testAddWindowInstance)
 
 alexaClientSDK::visualCharacteristics::TEST_F (VisualCharacteristicsTest, testUpdateWindowInstance)
 
 alexaClientSDK::visualCharacteristics::TEST_F (VisualCharacteristicsTest, testRemoveWindowInstance)
 
 alexaClientSDK::visualCharacteristics::TEST_F (VisualCharacteristicsTest, testValidateConfigurationUnknownInteractionMode)
 
 alexaClientSDK::visualCharacteristics::TEST_F (VisualCharacteristicsTest, testClearToken)
 

Variables

static const std::string alexaClientSDK::visualCharacteristics::INTERACTION_MODE_CONFIG
 Interaction mode configuration json. More...
 
static const std::string alexaClientSDK::visualCharacteristics::WINDOW_CONFIG
 Alexa.Display.Window configuration json. More...
 
static const std::string alexaClientSDK::visualCharacteristics::INVALID_INTERACTION_MODE_WINDOW_CONFIG
 Alexa.Display.Window configuration json which specifies an invalid interaction mode. More...
 
static const std::string alexaClientSDK::visualCharacteristics::DISPLAY_CONFIG
 Alexa.Display configuration json. More...
 
static const std::string alexaClientSDK::visualCharacteristics::SETTINGS_CONFIG
 Dummy configuration for testing VC. More...
 
static const std::string alexaClientSDK::visualCharacteristics::INVALID_WINDOW_INTERACTIONMODE_SETTINGS_CONFIG
 Invalid interactionmode configuration for testing VC. More...
 
static const std::string alexaClientSDK::visualCharacteristics::WINDOW_STATE
 Visual Context for the window states. More...
 
static const std::string alexaClientSDK::visualCharacteristics::WINDOW_STATE_NO_TOKEN
 Visual Context for the window states without a token. More...
 
static const std::string alexaClientSDK::visualCharacteristics::EMPTY_WINDOW_STATE = R"({"defaultWindowId":"tvFullscreen","instances":[]})"
 Empty Visual Context for the window states. More...
 
static const std::string alexaClientSDK::visualCharacteristics::ALEXA_DISPLAY_WINDOW_NAMESPACE {"Alexa.Display.Window"}
 Namespace for sending WindowState context from a device. More...
 
static const std::string alexaClientSDK::visualCharacteristics::WINDOW_STATE_NAME {"WindowState"}
 Tag for finding the device window state context information sent from the runtime as part of event context. More...
 
static const std::string alexaClientSDK::visualCharacteristics::WINDOW_ID {"tvFullscreen"}
 Id of a window instance. More...
 
static const std::string alexaClientSDK::visualCharacteristics::WINDOW_TEMPLATE_ID {"tvFullscreen"}
 Id of a window template used by the window instance. More...
 
static const std::string alexaClientSDK::visualCharacteristics::WINDOW_TEMPLATE_ID_OVERLAY {"tvOverlayLandscape"}
 Id of a window template used by the window instance. More...
 
static const std::string alexaClientSDK::visualCharacteristics::INTERACTION_MODE {"tv"}
 Id of an interaction mode used by a window instance instance. More...
 
static const std::string alexaClientSDK::visualCharacteristics::SIZE_CONFIG_ID {"fullscreen"}
 Id of a size configuration used by a window instance instance. More...
 
static const std::string alexaClientSDK::visualCharacteristics::TOKEN {"token1"}
 Presentation token of currently served by a presentation. More...
 
static const std::string alexaClientSDK::visualCharacteristics::EMPTY_TOKEN {""}
 Empty Presentation token. More...
 
static const std::string alexaClientSDK::visualCharacteristics::DISPLAY_INTERFACE {"Alexa.Presentation.APL"}
 Display interface holding a presentation. More...
 
static const std::string alexaClientSDK::visualCharacteristics::DEFAULT_ENDPOINT {""}
 The endpoint holding this window. More...
 
static const int alexaClientSDK::visualCharacteristics::CAPABILITY_CFG_COUNT = 3
 Count of the capability configuration. More...
 
static const int alexaClientSDK::visualCharacteristics::INTERACTION_MODE_CFG_COUNT = 2
 Count of the number of interaction modes. More...
 
static const int alexaClientSDK::visualCharacteristics::WINDOW_TEMPLATE_CFG_COUNT = 2
 Count of the number of window template. More...
 
static const int alexaClientSDK::visualCharacteristics::STATE_REQUEST_ZERO = 0
 State request #0. More...
 
static const int alexaClientSDK::visualCharacteristics::STATE_REQUEST_ONE = 1
 State request #1. More...
 
static const int alexaClientSDK::visualCharacteristics::STATE_REQUEST_TWO = 2
 State request #2. More...
 
static const avsCommon::avs::NamespaceAndName alexaClientSDK::visualCharacteristics::DEVICE_WINDOW_STATE {ALEXA_DISPLAY_WINDOW_NAMESPACE, WINDOW_STATE_NAME}
 The VisualCharacteristics context state signature. 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