AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Typedefs | Functions | Variables
RangeControllerCapabilityAgentTest.cpp File Reference
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <rapidjson/document.h>
#include <rapidjson/error/en.h>
#include <rapidjson/stringbuffer.h>
#include <rapidjson/writer.h>
#include "RangeController/RangeControllerAttributeBuilder.h"
#include "RangeController/RangeControllerCapabilityAgent.h"
#include <AVSCommon/AVS/Attachment/MockAttachmentManager.h>
#include <AVSCommon/SDKInterfaces/MockContextManager.h>
#include <AVSCommon/SDKInterfaces/MockDirectiveHandlerResult.h>
#include <AVSCommon/SDKInterfaces/MockExceptionEncounteredSender.h>
#include <AVSCommon/SDKInterfaces/MockAlexaInterfaceMessageSender.h>
#include <AVSCommon/SDKInterfaces/RangeController/RangeControllerAttributes.h>
#include <AVSCommon/SDKInterfaces/RangeController/RangeControllerInterface.h>
#include <AVSCommon/Utils/Memory/Memory.h>
#include <AVSCommon/Utils/Timing/TimePoint.h>
#include <AVSCommon/Utils/WaitEvent.h>
Include dependency graph for RangeControllerCapabilityAgentTest.cpp:

Classes

class  alexaClientSDK::capabilityAgents::rangeController::test::MockRangeControllerInterface
 
class  alexaClientSDK::capabilityAgents::rangeController::test::RangeControllerCapabilityAgentTest
 

Namespaces

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

Typedefs

using alexaClientSDK::capabilityAgents::rangeController::test::EndpointIdentifier = endpoints::EndpointIdentifier
 

Functions

static std::chrono::milliseconds alexaClientSDK::capabilityAgents::rangeController::test::TIMEOUT (1000)
 Timeout when waiting for futures to be set. More...
 
static const EndpointIdentifier alexaClientSDK::capabilityAgents::rangeController::test::TEST_ENDPOINT_ID ("testEndpointId")
 The test EndpointId. More...
 
static const EndpointIdentifier alexaClientSDK::capabilityAgents::rangeController::test::TEST_INSTANCE ("testInstance")
 The test instance. More...
 
static const std::string alexaClientSDK::capabilityAgents::rangeController::test::EVENT ("event")
 Event key. More...
 
static const std::string alexaClientSDK::capabilityAgents::rangeController::test::HEADER ("header")
 Header key. More...
 
static const std::string alexaClientSDK::capabilityAgents::rangeController::test::MESSAGE_ID ("messageId")
 MessageId key. More...
 
static const std::string alexaClientSDK::capabilityAgents::rangeController::test::MESSAGE_ID_TEST ("MessageId_Test")
 MessageId for testing. More...
 
static const std::string alexaClientSDK::capabilityAgents::rangeController::test::DIALOG_REQUEST_ID ("dialogRequestId")
 Dialog request Id key. More...
 
static const std::string alexaClientSDK::capabilityAgents::rangeController::test::DIALOG_REQUEST_ID_TEST ("DialogRequestId_Test")
 DialogRequestId for testing. More...
 
static const std::string alexaClientSDK::capabilityAgents::rangeController::test::CORRELATION_TOKEN ("correlationToken")
 Correlation token key. More...
 
static const std::string alexaClientSDK::capabilityAgents::rangeController::test::CORRELATION_TOKEN_TEST ("CorrelationToken_Test")
 Correlation token for testing. More...
 
static const std::string alexaClientSDK::capabilityAgents::rangeController::test::EVENT_CORRELATION_TOKEN ("eventCorrelationToken")
 Event correlation token key. More...
 
static const std::string alexaClientSDK::capabilityAgents::rangeController::test::EVENT_CORRELATION_TOKEN_TEST ("EventCorrelationToken_Test")
 Event correlation for testing. More...
 
static const std::string alexaClientSDK::capabilityAgents::rangeController::test::TIME_OF_SAMPLE ("timeOfSample")
 Time of sample key. More...
 
static const std::string alexaClientSDK::capabilityAgents::rangeController::test::TIME_OF_SAMPLE_TEST ("2017-02-03T16:20:50.523Z")
 Time of sample used for testing. More...
 
static std::shared_ptr< AVSDirective > alexaClientSDK::capabilityAgents::rangeController::test::buildAVSDirective (std::string directiveName, std::string payload)
 
 alexaClientSDK::capabilityAgents::rangeController::test::TEST_F (RangeControllerCapabilityAgentTest, test_givenInvalidParameters_create_shouldFail)
 Test that create() returns a nullptr if called with invalid arguments. More...
 
 alexaClientSDK::capabilityAgents::rangeController::test::TEST_F (RangeControllerCapabilityAgentTest, test_setRangeValueDirective_successCase)
 
 alexaClientSDK::capabilityAgents::rangeController::test::TEST_F (RangeControllerCapabilityAgentTest, test_setRangeValueDirective_errorCase)
 
 alexaClientSDK::capabilityAgents::rangeController::test::TEST_F (RangeControllerCapabilityAgentTest, test_adjustRangeValueDirective_successCase)
 
 alexaClientSDK::capabilityAgents::rangeController::test::TEST_F (RangeControllerCapabilityAgentTest, test_adjustRangeValueDirective_errorCase)
 
 alexaClientSDK::capabilityAgents::rangeController::test::TEST_F (RangeControllerCapabilityAgentTest, test_reportStateChange_successCase)
 
 alexaClientSDK::capabilityAgents::rangeController::test::TEST_F (RangeControllerCapabilityAgentTest, test_reportStateChange_errorCase)
 
 alexaClientSDK::capabilityAgents::rangeController::test::TEST_F (RangeControllerCapabilityAgentTest, test_unknownDirectiveWithProactivelyReportedAndRetrievableTrue)
 
 alexaClientSDK::capabilityAgents::rangeController::test::TEST_F (RangeControllerCapabilityAgentTest, test_unknownDirectiveWithProactivelyReportedAndRetrievableFalse)
 

Variables

static const std::string alexaClientSDK::capabilityAgents::rangeController::test::NAMESPACE {"Alexa.RangeController"}
 The namespace for capability agent. More...
 
static const std::string alexaClientSDK::capabilityAgents::rangeController::test::INTERFACE_VERSION {"3"}
 The supported version. More...
 
static const std::string alexaClientSDK::capabilityAgents::rangeController::test::NAME_SETRANGEVALUE {"SetRangeValue"}
 The name for SetRangeValue directive. More...
 
static const std::string alexaClientSDK::capabilityAgents::rangeController::test::NAME_ADJUSTRANGEVALUE {"AdjustRangeValue"}
 The name for AdjustRangeValue directive. More...
 
static const std::string alexaClientSDK::capabilityAgents::rangeController::test::RANGEVALUE_PROPERTY_NAME {"rangeValue"}
 The name for rangeValue property. More...
 
static const std::string alexaClientSDK::capabilityAgents::rangeController::test::UNKNOWN_DIRECTIVE {"Unknown"}
 An unknown directive signature. More...
 
static double alexaClientSDK::capabilityAgents::rangeController::test::RANGE_VALUE_MINUMUM = 0
 Minimum range value for test. More...
 
static double alexaClientSDK::capabilityAgents::rangeController::test::RANGE_VALUE_MAXIMUM = 100
 Maximum range value for test. More...
 
static double alexaClientSDK::capabilityAgents::rangeController::test::RANGE_VALUE_MEDIUM = 50
 Medium preset for test. More...
 
static double alexaClientSDK::capabilityAgents::rangeController::test::RANGE_PRECISION = 1
 Range precision for test. More...
 
static const std::string alexaClientSDK::capabilityAgents::rangeController::test::SET_RANGE_VALUE_PAYLOAD_TEST
 SetRangeValue payload for testing. More...
 
static const std::string alexaClientSDK::capabilityAgents::rangeController::test::ADJUST_RANGE_VALUE_PAYLOAD_TEST
 AdjustRangeValue payload for testing. 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