AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Typedefs | Functions | Variables
ModeControllerCapabilityAgentTest.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 "ModeController/ModeControllerAttributeBuilder.h"
#include "ModeController/ModeControllerCapabilityAgent.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/ModeController/ModeControllerAttributes.h>
#include <AVSCommon/SDKInterfaces/ModeController/ModeControllerInterface.h>
#include <AVSCommon/Utils/Memory/Memory.h>
#include <AVSCommon/Utils/Timing/TimePoint.h>
#include <AVSCommon/Utils/WaitEvent.h>
Include dependency graph for ModeControllerCapabilityAgentTest.cpp:

Classes

class  alexaClientSDK::capabilityAgents::modeController::test::MockModeControllerInterface
 
class  alexaClientSDK::capabilityAgents::modeController::test::ModeControllerCapabilityAgentTest
 

Namespaces

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

Typedefs

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

Functions

static std::chrono::milliseconds alexaClientSDK::capabilityAgents::modeController::test::TIMEOUT (1000)
 Timeout when waiting for futures to be set. More...
 
static const EndpointIdentifier alexaClientSDK::capabilityAgents::modeController::test::TEST_ENDPOINT_ID ("testEndpointId")
 The test EndpointId. More...
 
static const EndpointIdentifier alexaClientSDK::capabilityAgents::modeController::test::TEST_INSTANCE ("testInstance")
 The test instance. More...
 
static const std::string alexaClientSDK::capabilityAgents::modeController::test::EVENT ("event")
 Event key. More...
 
static const std::string alexaClientSDK::capabilityAgents::modeController::test::HEADER ("header")
 Header key. More...
 
static const std::string alexaClientSDK::capabilityAgents::modeController::test::MESSAGE_ID ("messageId")
 MessageId key. More...
 
static const std::string alexaClientSDK::capabilityAgents::modeController::test::MESSAGE_ID_TEST ("MessageId_Test")
 MessageId for testing. More...
 
static const std::string alexaClientSDK::capabilityAgents::modeController::test::DIALOG_REQUEST_ID ("dialogRequestId")
 Dialog request Id key. More...
 
static const std::string alexaClientSDK::capabilityAgents::modeController::test::DIALOG_REQUEST_ID_TEST ("DialogRequestId_Test")
 DialogRequestId for testing. More...
 
static const std::string alexaClientSDK::capabilityAgents::modeController::test::CORRELATION_TOKEN ("correlationToken")
 Correlation token key. More...
 
static const std::string alexaClientSDK::capabilityAgents::modeController::test::CORRELATION_TOKEN_TEST ("CorrelationToken_Test")
 Correlation token for testing. More...
 
static const std::string alexaClientSDK::capabilityAgents::modeController::test::EVENT_CORRELATION_TOKEN ("eventCorrelationToken")
 Event correlation token key. More...
 
static const std::string alexaClientSDK::capabilityAgents::modeController::test::EVENT_CORRELATION_TOKEN_TEST ("EventCorrelationToken_Test")
 Event correlation for testing. More...
 
static const std::string alexaClientSDK::capabilityAgents::modeController::test::TIME_OF_SAMPLE ("timeOfSample")
 Time of sample key. More...
 
static const std::string alexaClientSDK::capabilityAgents::modeController::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::modeController::test::buildAVSDirective (std::string directiveName, std::string payload)
 
 alexaClientSDK::capabilityAgents::modeController::test::TEST_F (ModeControllerCapabilityAgentTest, test_givenInvalidParameters_create_shouldFail)
 Test that create() returns a nullptr if called with invalid arguments. More...
 
 alexaClientSDK::capabilityAgents::modeController::test::TEST_F (ModeControllerCapabilityAgentTest, test_setModeDirective_successCase)
 
 alexaClientSDK::capabilityAgents::modeController::test::TEST_F (ModeControllerCapabilityAgentTest, test_setModeDirective_errorCase)
 
 alexaClientSDK::capabilityAgents::modeController::test::TEST_F (ModeControllerCapabilityAgentTest, test_adjustModeValueDirective_successCase)
 
 alexaClientSDK::capabilityAgents::modeController::test::TEST_F (ModeControllerCapabilityAgentTest, test_adjustModeValueDirective_errorCase)
 
 alexaClientSDK::capabilityAgents::modeController::test::TEST_F (ModeControllerCapabilityAgentTest, test_reportStateChange_successCase)
 
 alexaClientSDK::capabilityAgents::modeController::test::TEST_F (ModeControllerCapabilityAgentTest, test_reportStateChange_errorCase)
 
 alexaClientSDK::capabilityAgents::modeController::test::TEST_F (ModeControllerCapabilityAgentTest, test_unknownDirectiveWithProactivelyReportedAndRetrievableTrue)
 
 alexaClientSDK::capabilityAgents::modeController::test::TEST_F (ModeControllerCapabilityAgentTest, test_unknownDirectiveWithProactivelyReportedAndRetrievableFalse)
 

Variables

static const std::string alexaClientSDK::capabilityAgents::modeController::test::NAMESPACE {"Alexa.ModeController"}
 The namespace for capability agent. More...
 
static const std::string alexaClientSDK::capabilityAgents::modeController::test::INTERFACE_VERSION {"3"}
 The supported version. More...
 
static const std::string alexaClientSDK::capabilityAgents::modeController::test::NAME_SETMODE {"SetMode"}
 The name for SetMode directive. More...
 
static const std::string alexaClientSDK::capabilityAgents::modeController::test::NAME_ADJUSTMODE {"AdjustMode"}
 The name for AdjustMode directive. More...
 
static const std::string alexaClientSDK::capabilityAgents::modeController::test::MODE_PROPERTY_NAME {"mode"}
 The name for modeValue property. More...
 
static const std::string alexaClientSDK::capabilityAgents::modeController::test::UNKNOWN_DIRECTIVE {"Unknown"}
 An unknown directive signature. More...
 
static std::string alexaClientSDK::capabilityAgents::modeController::test::MODE_OPEN = "open"
 Mode for testing. More...
 
static std::string alexaClientSDK::capabilityAgents::modeController::test::MODE_CLOSED = "close"
 Mode for testing. More...
 
static int alexaClientSDK::capabilityAgents::modeController::test::MODE_DELTA = 1
 Mode Delta for testing. More...
 
static const std::string alexaClientSDK::capabilityAgents::modeController::test::SET_MODE_PAYLOAD_TEST
 SetModeValue payload for testing. More...
 
static const std::string alexaClientSDK::capabilityAgents::modeController::test::ADJUST_MODE_PAYLOAD_TEST
 AdjustModeValue 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