AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
InputControllerCapabilityAgentTest.cpp File Reference
#include <chrono>
#include <memory>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <AVSCommon/AVS/Attachment/MockAttachmentManager.h>
#include <AVSCommon/SDKInterfaces/Endpoints/EndpointIdentifier.h>
#include <AVSCommon/SDKInterfaces/MockContextManager.h>
#include <AVSCommon/SDKInterfaces/MockDirectiveHandlerResult.h>
#include <AVSCommon/SDKInterfaces/MockExceptionEncounteredSender.h>
#include <AVSCommon/SDKInterfaces/MockAlexaInterfaceMessageSender.h>
#include <AVSCommon/Utils/Memory/Memory.h>
#include <AVSCommon/Utils/WaitEvent.h>
#include "acsdk/AlexaInputController/private/InputControllerCapabilityAgent.h"
Include dependency graph for InputControllerCapabilityAgentTest.cpp:

Classes

class  alexaClientSDK::alexaInputController::test::MockHandler
 
class  alexaClientSDK::alexaInputController::test::InputControllerCapabilityAgentTest
 Test harness for InputControllerCapabilityAgentTest class. More...
 

Namespaces

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

Functions

static std::chrono::milliseconds alexaClientSDK::alexaInputController::test::TIMEOUT (1000)
 Timeout when waiting for futures to be set. More...
 
static const std::string alexaClientSDK::alexaInputController::test::TIME_OF_SAMPLE_TEST ("2017-02-03T16:20:50.523Z")
 Time of sample used for testing. More...
 
static const endpoints::EndpointIdentifier alexaClientSDK::alexaInputController::test::TEST_ENDPOINT_ID ("testEndpointId")
 The test EndpointId. More...
 
static const std::string alexaClientSDK::alexaInputController::test::EVENT ("event")
 Event key. More...
 
static const std::string alexaClientSDK::alexaInputController::test::HEADER ("header")
 Header key. More...
 
static const std::string alexaClientSDK::alexaInputController::test::MESSAGE_ID ("messageId")
 MessageId key. More...
 
static const std::string alexaClientSDK::alexaInputController::test::MESSAGE_ID_TEST ("MessageId_Test")
 MessageId for testing. More...
 
static const std::string alexaClientSDK::alexaInputController::test::DIALOG_REQUEST_ID ("dialogRequestId")
 Dialog request Id key. More...
 
static const std::string alexaClientSDK::alexaInputController::test::DIALOG_REQUEST_ID_TEST ("DialogRequestId_Test")
 DialogRequestId for testing. More...
 
static const std::string alexaClientSDK::alexaInputController::test::CORRELATION_TOKEN_TEST ("CorrelationToken_Test")
 Correlation token for testing. More...
 
static const std::string alexaClientSDK::alexaInputController::test::EVENT_CORRELATION_TOKEN_TEST ("EventCorrelationToken_Test")
 Event correlation for testing. More...
 
static std::shared_ptr< AVSDirective > alexaClientSDK::alexaInputController::test::buildAVSDirective (std::string directiveName, std::string payload, std::string messageId=MESSAGE_ID_TEST)
 
 alexaClientSDK::alexaInputController::test::TEST_F (InputControllerCapabilityAgentTest, test_givenInvalidParameters_create_shouldFail)
 Test that create() returns a nullptr if called with invalid arguments. More...
 
 alexaClientSDK::alexaInputController::test::TEST_F (InputControllerCapabilityAgentTest, test_selectInputDirective_successCase)
 
 alexaClientSDK::alexaInputController::test::TEST_F (InputControllerCapabilityAgentTest, test_selectInputDirective_errorCase)
 
 alexaClientSDK::alexaInputController::test::TEST_F (InputControllerCapabilityAgentTest, test_reportStateChange_successCase)
 
 alexaClientSDK::alexaInputController::test::TEST_F (InputControllerCapabilityAgentTest, test_unknownInvalidDirective)
 

Variables

static const std::string alexaClientSDK::alexaInputController::test::NAMESPACE {"Alexa.InputController"}
 The namespace for capability agent. More...
 
static const std::string alexaClientSDK::alexaInputController::test::INTERFACE_VERSION {"3"}
 The supported version. More...
 
static const std::string alexaClientSDK::alexaInputController::test::NAME_SETMODE {"SelectInput"}
 The name for SelectInput directive. More...
 
static const std::string alexaClientSDK::alexaInputController::test::UNKNOWN_DIRECTIVE {"Unknown"}
 An unknown directive signature. More...
 
static const std::string alexaClientSDK::alexaInputController::test::INPUT_PROPERTY_NAME {"input"}
 The name for modeValue property. More...
 
static const Input alexaClientSDK::alexaInputController::test::CD_INPUT_TEST = Input::CD
 CD Input string for testing. More...
 
static const Input alexaClientSDK::alexaInputController::test::HDMI_1_INPUT_TEST = Input::HDMI_1
 HDMI 1 Input string for testing. More...
 
static const InputControllerInterface::SupportedInputs alexaClientSDK::alexaInputController::test::DEFAULT_ALLOWED_INPUT
 
static const std::string alexaClientSDK::alexaInputController::test::SELECT_INPUT_DIRECTIVE_JSON_STRING
 A simple SelectInput directive JSON string. More...
 
static const std::string alexaClientSDK::alexaInputController::test::SELECT_INPUT_UNSUPPORTED_DIRECTIVE_JSON_STRING
 A simple SelectInput directive JSON string. More...
 
static const std::string alexaClientSDK::alexaInputController::test::SELECT_INPUT_MISSING_TAG_DIRECTIVE_JSON_STRING
 A SelectInput directive without input field. More...
 
static const std::string alexaClientSDK::alexaInputController::test::SELECT_INPUT_EMPTY_INPUT_DIRECTIVE_JSON_STRING
 A SelectInput directive with an empty input. 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