AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Typedefs | Functions | Variables
AlexaLiveViewControllerCapabilityAgentTest.cpp File Reference
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <acsdk/AlexaLiveViewController/private/AlexaLiveViewControllerCapabilityAgent.h>
#include <acsdk/AlexaLiveViewControllerInterfaces/LiveViewControllerInterface.h>
#include <acsdk/AlexaLiveViewControllerInterfaces/LiveViewControllerObserverInterface.h>
#include <RTCSCNativeInterface/RtcscAppClientInterface.h>
#include <AVSCommon/AVS/Attachment/MockAttachmentManager.h>
#include <AVSCommon/SDKInterfaces/Endpoints/EndpointIdentifier.h>
#include <AVSCommon/SDKInterfaces/MockAlexaInterfaceMessageSender.h>
#include <AVSCommon/SDKInterfaces/MockContextManager.h>
#include <AVSCommon/SDKInterfaces/MockDirectiveHandlerResult.h>
#include <AVSCommon/SDKInterfaces/MockExceptionEncounteredSender.h>
#include <AVSCommon/SDKInterfaces/MockMessageSender.h>
#include <AVSCommon/Utils/JSON/JSONUtils.h>
#include <AVSCommon/Utils/Memory/Memory.h>
#include <AVSCommon/Utils/WaitEvent.h>
Include dependency graph for AlexaLiveViewControllerCapabilityAgentTest.cpp:

Classes

class  alexaClientSDK::alexaLiveViewController::test::MockAlexaLiveViewControllerInterface
 
class  alexaClientSDK::alexaLiveViewController::test::MockRtcscAppClient
 
class  alexaClientSDK::alexaLiveViewController::test::AlexaLiveViewControllerCapabilityAgentTest
 

Namespaces

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

Typedefs

using alexaClientSDK::alexaLiveViewController::test::EndpointIdentifier = endpoints::EndpointIdentifier
 For readability. More...
 

Functions

static std::chrono::milliseconds alexaClientSDK::alexaLiveViewController::test::TIMEOUT (1000)
 Timeout when waiting for futures to be set. More...
 
static const EndpointIdentifier alexaClientSDK::alexaLiveViewController::test::TEST_ENDPOINT_ID ("testEndpointId")
 The test EndpointId. More...
 
static const std::string alexaClientSDK::alexaLiveViewController::test::MESSAGE_ID ("messageId")
 MessageId key. More...
 
static const std::string alexaClientSDK::alexaLiveViewController::test::MESSAGE_ID_TEST ("MessageId_Test")
 MessageId for testing. More...
 
static const std::string alexaClientSDK::alexaLiveViewController::test::DIALOG_REQUEST_ID ("dialogRequestId")
 Dialog request Id key. More...
 
static const std::string alexaClientSDK::alexaLiveViewController::test::DIALOG_REQUEST_ID_TEST ("DialogRequestId_Test")
 DialogRequestId for testing. More...
 
static const std::string alexaClientSDK::alexaLiveViewController::test::CORRELATION_TOKEN ("correlationToken")
 Correlation token key. More...
 
static const std::string alexaClientSDK::alexaLiveViewController::test::CORRELATION_TOKEN_TEST ("CorrelationToken_Test")
 Correlation token for testing. More...
 
static const std::string alexaClientSDK::alexaLiveViewController::test::EVENT_CORRELATION_TOKEN ("eventCorrelationToken")
 Event correlation token key. More...
 
static const std::string alexaClientSDK::alexaLiveViewController::test::EVENT_CORRELATION_TOKEN_TEST ("EventCorrelationToken_Test")
 Event correlation for testing. More...
 
static void alexaClientSDK::alexaLiveViewController::test::verifySendMessage (std::shared_ptr< avsCommon::avs::MessageRequest > request, const std::string expectedEventName, const std::string expectedPayload, const std::string expectedNameSpace)
 
std::shared_ptr< AVSDirective > alexaClientSDK::alexaLiveViewController::test::buildAVSDirective (std::string directiveName)
 
 alexaClientSDK::alexaLiveViewController::test::TEST_F (AlexaLiveViewControllerCapabilityAgentTest, test_givenInvalidParameters_create_shouldFail)
 Test that create() returns a nullptr if called with invalid arguments. More...
 
 alexaClientSDK::alexaLiveViewController::test::TEST_F (AlexaLiveViewControllerCapabilityAgentTest, test_liveViewDirectives_successCase)
 
 alexaClientSDK::alexaLiveViewController::test::TEST_F (AlexaLiveViewControllerCapabilityAgentTest, test_startLiveViewDirective_errorCase)
 
 alexaClientSDK::alexaLiveViewController::test::TEST_F (AlexaLiveViewControllerCapabilityAgentTest, test_stopLiveViewDirective_errorCase)
 
 alexaClientSDK::alexaLiveViewController::test::TEST_F (AlexaLiveViewControllerCapabilityAgentTest, test_unknownDirective)
 

Variables

static const std::string alexaClientSDK::alexaLiveViewController::test::NAMESPACE {"Alexa.Camera.LiveViewController"}
 The namespace for capability agent. More...
 
static const std::string alexaClientSDK::alexaLiveViewController::test::INTERFACE_VERSION {"1.7"}
 The supported version. More...
 
static const std::string alexaClientSDK::alexaLiveViewController::test::NAME_STARTLIVEVIEW {"StartLiveView"}
 The name for StartLiveView directive. More...
 
static const std::string alexaClientSDK::alexaLiveViewController::test::NAME_STOPLIVEVIEW {"StopLiveView"}
 The name for StopLiveView directive. More...
 
static const std::string alexaClientSDK::alexaLiveViewController::test::UNKNOWN_DIRECTIVE {"Unknown"}
 An unknown directive signature. More...
 
static const std::string alexaClientSDK::alexaLiveViewController::test::LIVE_VIEW_STARTED_EVENT {"LiveViewStarted"}
 The LiveViewStarted event signature. More...
 
static const std::string alexaClientSDK::alexaLiveViewController::test::LIVE_VIEW_STOPPED_EVENT {"LiveViewStopped"}
 The LiveViewStopped event signature. More...
 
static const std::string alexaClientSDK::alexaLiveViewController::test::MESSAGE_EVENT_KEY = "event"
 JSON key for the event section of a message. More...
 
static const std::string alexaClientSDK::alexaLiveViewController::test::MESSAGE_HEADER_KEY = "header"
 JSON key for the header section of a message. More...
 
static const std::string alexaClientSDK::alexaLiveViewController::test::MESSAGE_PAYLOAD_KEY = "payload"
 JSON key for the payload section of an message. More...
 
static const std::string alexaClientSDK::alexaLiveViewController::test::MESSAGE_NAMESPACE_KEY = "namespace"
 JSON key for the namespace field of a message header. More...
 
static const std::string alexaClientSDK::alexaLiveViewController::test::MESSAGE_NAME_KEY = "name"
 JSON key for the name field of a message header. More...
 
static const std::string alexaClientSDK::alexaLiveViewController::test::START_LIVE_VIEW_PAYLOAD
 Sample StartLiveView payload. More...
 
static const std::string alexaClientSDK::alexaLiveViewController::test::STOP_LIVE_VIEW_PAYLOAD
 Sample StopLiveView payload. More...
 
static const std::string alexaClientSDK::alexaLiveViewController::test::EXPECTED_LIVE_VIEW_STARTED_PAYLOAD
 Expected LiveViewStarted payload for test purposes. More...
 
static const std::string alexaClientSDK::alexaLiveViewController::test::EXPECTED_LIVE_VIEW_STOPPED_PAYLOAD
 Expected LiveViewStopped payload for test purposes. 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