AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Typedefs | Functions | Variables
AlexaChannelControllerCapabilityAgentTest.cpp File Reference
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <acsdk/AlexaChannelController/private/AlexaChannelControllerCapabilityAgent.h>
#include <acsdk/AlexaChannelControllerInterfaces/ChannelControllerInterface.h>
#include <acsdk/AlexaChannelControllerInterfaces/ChannelControllerObserverInterface.h>
#include <AVSCommon/AVS/Attachment/MockAttachmentManager.h>
#include <AVSCommon/SDKInterfaces/MockAlexaInterfaceMessageSender.h>
#include <AVSCommon/SDKInterfaces/MockContextManager.h>
#include <AVSCommon/SDKInterfaces/MockDirectiveHandlerResult.h>
#include <AVSCommon/SDKInterfaces/MockExceptionEncounteredSender.h>
#include <AVSCommon/Utils/Memory/Memory.h>
#include <AVSCommon/Utils/Timing/TimePoint.h>
#include <AVSCommon/Utils/WaitEvent.h>
#include <AVSCommon/Utils/Optional.h>
Include dependency graph for AlexaChannelControllerCapabilityAgentTest.cpp:

Classes

class  alexaClientSDK::alexaChannelController::test::MockAlexaChannelControllerInterface
 
class  alexaClientSDK::alexaChannelController::test::AlexaChannelControllerCapabilityAgentTest
 

Namespaces

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

Typedefs

using alexaClientSDK::alexaChannelController::test::EndpointIdentifier = endpoints::EndpointIdentifier
 

Functions

static std::chrono::milliseconds alexaClientSDK::alexaChannelController::test::TIMEOUT (1000)
 Timeout when waiting for futures to be set. More...
 
static const std::string alexaClientSDK::alexaChannelController::test::TIME_OF_SAMPLE_TEST ("2017-02-03T16:20:50.523Z")
 Time of sample used for testing. More...
 
static const EndpointIdentifier alexaClientSDK::alexaChannelController::test::TEST_ENDPOINT_ID ("testEndpointId")
 The test EndpointId. More...
 
static const std::string alexaClientSDK::alexaChannelController::test::EVENT ("event")
 Event key. More...
 
static const std::string alexaClientSDK::alexaChannelController::test::MESSAGE_ID_TEST ("MessageId_Test")
 MessageId for testing. More...
 
static const std::string alexaClientSDK::alexaChannelController::test::DIALOG_REQUEST_ID_TEST ("DialogRequestId_Test")
 DialogRequestId for testing. More...
 
static const std::string alexaClientSDK::alexaChannelController::test::CORRELATION_TOKEN_TEST ("CorrelationToken_Test")
 Correlation token for testing. More...
 
std::shared_ptr< AVSDirective > alexaClientSDK::alexaChannelController::test::buildAVSDirective (std::string directiveName, std::string payload)
 
 alexaClientSDK::alexaChannelController::test::TEST_F (AlexaChannelControllerCapabilityAgentTest, test_givenInvalidParameters_create_shouldFail)
 Test that create() returns a nullptr if called with invalid arguments. More...
 
 alexaClientSDK::alexaChannelController::test::TEST_F (AlexaChannelControllerCapabilityAgentTest, test_changeChannelDirective_successCase)
 
 alexaClientSDK::alexaChannelController::test::TEST_F (AlexaChannelControllerCapabilityAgentTest, test_changeChannelDirective_errorCase)
 
 alexaClientSDK::alexaChannelController::test::TEST_F (AlexaChannelControllerCapabilityAgentTest, test_incrementChannelsDirective_successCase)
 
 alexaClientSDK::alexaChannelController::test::TEST_F (AlexaChannelControllerCapabilityAgentTest, test_decrementChannelsDirective_successCase)
 
 alexaClientSDK::alexaChannelController::test::TEST_F (AlexaChannelControllerCapabilityAgentTest, test_skipChannelsDirective_errorCase)
 
 alexaClientSDK::alexaChannelController::test::TEST_F (AlexaChannelControllerCapabilityAgentTest, test_unknownDirective)
 
 alexaClientSDK::alexaChannelController::test::TEST_F (AlexaChannelControllerCapabilityAgentTest, test_reportStateChange_successCase)
 
 alexaClientSDK::alexaChannelController::test::TEST_F (AlexaChannelControllerCapabilityAgentTest, test_reportStateChange_errorCase)
 
 alexaClientSDK::alexaChannelController::test::TEST_F (AlexaChannelControllerCapabilityAgentTest, test_unknownDirectiveWithProactivelyReportedAndRetrievableTrue)
 
 alexaClientSDK::alexaChannelController::test::TEST_F (AlexaChannelControllerCapabilityAgentTest, test_unknownDirectiveWithProactivelyReportedAndRetrievableFalse)
 

Variables

static const std::string alexaClientSDK::alexaChannelController::test::NAMESPACE {"Alexa.ChannelController"}
 The namespace for capability agent. More...
 
static const std::string alexaClientSDK::alexaChannelController::test::INTERFACE_VERSION {"3"}
 The supported version. More...
 
static const std::string alexaClientSDK::alexaChannelController::test::NAME_CHANGECHANNEL {"ChangeChannel"}
 The name for ChangeChannel directive. More...
 
static const std::string alexaClientSDK::alexaChannelController::test::NAME_SKIPCHANNELS {"SkipChannels"}
 The name for SkipChannels directive. More...
 
static const std::string alexaClientSDK::alexaChannelController::test::UNKNOWN_DIRECTIVE {"Unknown"}
 An unknown directive signature. More...
 
static const std::string alexaClientSDK::alexaChannelController::test::TEST_CHANNEL_NUMBER {"256"}
 Channel number for testing. More...
 
static const std::string alexaClientSDK::alexaChannelController::test::TEST_CHANNEL_CALLSIGN {"PBS"}
 Channel call sign for testing. More...
 
static const std::string alexaClientSDK::alexaChannelController::test::TEST_CHANNEL_AFFILIATE_CALLSIGN {"affiliateCallSign"}
 Channel affiliate callsign for testing. More...
 
static const std::string alexaClientSDK::alexaChannelController::test::TEST_CHANNEL_METADATA_NAME {"Sample Channel"}
 Channel metadata name for testing. More...
 
static const std::string alexaClientSDK::alexaChannelController::test::TEST_CHANNEL_METADATA_IMAGE {"<URI>"}
 Channel image URL for testing. More...
 
static const std::string alexaClientSDK::alexaChannelController::test::CHANGECHANNEL_PAYLOAD
 
static const std::string alexaClientSDK::alexaChannelController::test::SKIPCHANNELS_INCREMENT_PAYLOAD
 
static const std::string alexaClientSDK::alexaChannelController::test::SKIPCHANNELS_DECREMENT_PAYLOAD
 
static const std::string alexaClientSDK::alexaChannelController::test::CHANNELSTATE_PROPERTY_NAME {"channel"}
 The name of channel property. 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