AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
PresentationOrchestratorClientTest.cpp File Reference
#include "acsdk/PresentationOrchestratorClient/private/PresentationOrchestratorClient.h"
#include <chrono>
#include <vector>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <acsdk/PresentationOrchestratorInterfaces/MockPresentationObserver.h>
#include <acsdk/PresentationOrchestratorInterfaces/MockPresentationOrchestratorStateTracker.h>
#include <acsdk/PresentationOrchestratorInterfaces/MockVisualTimeoutManager.h>
#include <AVSCommon/Utils/PromiseFuturePair.h>
Include dependency graph for PresentationOrchestratorClientTest.cpp:

Classes

class  alexaClientSDK::presentationOrchestratorClient::test::PresentationOrchestratorClientTest
 Test harness for PresentationOrchestratorClient class. More...
 

Namespaces

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

Functions

PresentationOptions alexaClientSDK::presentationOrchestratorClient::test::generatePresentationOptions (const std::chrono::milliseconds &timeout, const PresentationLifespan &lifespan, const std::string &interfaceName, const std::string &metadata)
 
PresentationOrchestratorWindowInstance alexaClientSDK::presentationOrchestratorClient::test::generateWindowInstance (const std::string &windowId, const int &zOrder, const std::vector< std::string > &supportedInterfaces)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testRequestWindowInvalidWindowId)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testRequestWindowUnsupportedInterface)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testAddAndRequestWindow)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testAddRequestAndRemoveWindowWithTimeouts)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testRequestTokens)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testOnPresentationAvailable)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testMetadataUpdate)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testRequestAndClearMultipleWindowsWithSameZOrderIndex)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testRequestAndClearMultipleWindowsWithDifferentZOrderIndex)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testNavigateBack)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testNavigateBackMultipleWindowsSingleLongPresentationEach)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testNavigateBackMultipleWindowsLongOnPermanent)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testNavigateBackMultipleWindowsPermanentOnLong)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testNavigateBackPermanent)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testNavigateBackPermanentOnLong)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testNavigateBackShortHandlesBack)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testRequestWindowTransientFollowedByLongPresentation)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testRequestWindowShortFollowedByLongPresentation)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testRequestWindowShortFollowedByTransientPresentation)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testRequestWindowLongFollowedByTransientPresentation)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testDismissShortOnPermanent)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testDismissTransientOnPermanent)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testDefaultingTimeout)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testPresentationDisabledTimeout)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testDisablingTimeoutUsingSetTimeout)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testPermanentPresentationCustomTimeout)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testPermanentPresentationUpdateToShortCustomTimeout)
 
 alexaClientSDK::presentationOrchestratorClient::test::TEST_F (PresentationOrchestratorClientTest, testShortLifespanToLongLifespanChangeDisablesTimeout)
 

Variables

static const auto alexaClientSDK::presentationOrchestratorClient::test::SHORT_DELAY = std::chrono::milliseconds(500)
 
static const char alexaClientSDK::presentationOrchestratorClient::test::CLIENT_ID [] = "clientId"
 
static const char alexaClientSDK::presentationOrchestratorClient::test::WINDOW_ID_1 [] = "windowId1"
 
static const char alexaClientSDK::presentationOrchestratorClient::test::WINDOW_ID_2 [] = "windowId2"
 
static const char alexaClientSDK::presentationOrchestratorClient::test::INTERFACE_1 [] = "interface1"
 
static const char alexaClientSDK::presentationOrchestratorClient::test::INTERFACE_2 [] = "interface2"
 
static const char alexaClientSDK::presentationOrchestratorClient::test::METADATA_1 [] = "metadata1"
 
static const char alexaClientSDK::presentationOrchestratorClient::test::METADATA_2 [] = "metadata2"
 
static const auto alexaClientSDK::presentationOrchestratorClient::test::TIMEOUT = std::chrono::milliseconds(500)
 
static const std::chrono::milliseconds alexaClientSDK::presentationOrchestratorClient::test::DEFAULT_TIMEOUT_SHORT_PRESENTATION_MS {30000}
 Default timeout for SHORT presentations. 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