AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#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 "ToggleController/ToggleControllerAttributeBuilder.h"
#include "ToggleController/ToggleControllerCapabilityAgent.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/ToggleController/ToggleControllerAttributes.h>
#include <AVSCommon/SDKInterfaces/ToggleController/ToggleControllerInterface.h>
#include <AVSCommon/Utils/Memory/Memory.h>
#include <AVSCommon/Utils/Timing/TimePoint.h>
#include <AVSCommon/Utils/WaitEvent.h>
Namespaces | |
alexaClientSDK | |
Whether or not curl logs should be emitted. | |
alexaClientSDK::capabilityAgents | |
alexaClientSDK::capabilityAgents::toggleController | |
alexaClientSDK::capabilityAgents::toggleController::test | |
Typedefs | |
using | alexaClientSDK::capabilityAgents::toggleController::test::EndpointIdentifier = endpoints::EndpointIdentifier |
Functions | |
static std::chrono::milliseconds | alexaClientSDK::capabilityAgents::toggleController::test::TIMEOUT (1000) |
Timeout when waiting for futures to be set. More... | |
static const EndpointIdentifier | alexaClientSDK::capabilityAgents::toggleController::test::TEST_ENDPOINT_ID ("testEndpointId") |
The test EndpointId. More... | |
static const EndpointIdentifier | alexaClientSDK::capabilityAgents::toggleController::test::TEST_INSTANCE ("testInstance") |
The test instance. More... | |
static const std::string | alexaClientSDK::capabilityAgents::toggleController::test::EVENT ("event") |
Event key. More... | |
static const std::string | alexaClientSDK::capabilityAgents::toggleController::test::HEADER ("header") |
Header key. More... | |
static const std::string | alexaClientSDK::capabilityAgents::toggleController::test::MESSAGE_ID ("messageId") |
MessageId key. More... | |
static const std::string | alexaClientSDK::capabilityAgents::toggleController::test::MESSAGE_ID_TEST ("MessageId_Test") |
MessageId for testing. More... | |
static const std::string | alexaClientSDK::capabilityAgents::toggleController::test::DIALOG_REQUEST_ID ("dialogRequestId") |
Dialog request Id key. More... | |
static const std::string | alexaClientSDK::capabilityAgents::toggleController::test::DIALOG_REQUEST_ID_TEST ("DialogRequestId_Test") |
DialogRequestId for testing. More... | |
static const std::string | alexaClientSDK::capabilityAgents::toggleController::test::CORRELATION_TOKEN ("correlationToken") |
Correlation token key. More... | |
static const std::string | alexaClientSDK::capabilityAgents::toggleController::test::CORRELATION_TOKEN_TEST ("CorrelationToken_Test") |
Correlation token for testing. More... | |
static const std::string | alexaClientSDK::capabilityAgents::toggleController::test::EVENT_CORRELATION_TOKEN ("eventCorrelationToken") |
Event correlation token key. More... | |
static const std::string | alexaClientSDK::capabilityAgents::toggleController::test::EVENT_CORRELATION_TOKEN_TEST ("EventCorrelationToken_Test") |
Event correlation for testing. More... | |
static const std::string | alexaClientSDK::capabilityAgents::toggleController::test::TIME_OF_SAMPLE ("timeOfSample") |
Time of sample key. More... | |
static const std::string | alexaClientSDK::capabilityAgents::toggleController::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::toggleController::test::buildAVSDirective (std::string directiveName) |
alexaClientSDK::capabilityAgents::toggleController::test::TEST_F (ToggleControllerCapabilityAgentTest, test_givenInvalidParameters_create_shouldFail) | |
Test that create() returns a nullptr if called with invalid arguments. More... | |
alexaClientSDK::capabilityAgents::toggleController::test::TEST_F (ToggleControllerCapabilityAgentTest, test_turnOnDirective_successCase) | |
alexaClientSDK::capabilityAgents::toggleController::test::TEST_F (ToggleControllerCapabilityAgentTest, test_turnOnDirective_errorCase) | |
alexaClientSDK::capabilityAgents::toggleController::test::TEST_F (ToggleControllerCapabilityAgentTest, test_turnOffDirective_successCase) | |
alexaClientSDK::capabilityAgents::toggleController::test::TEST_F (ToggleControllerCapabilityAgentTest, test_turnOffDirective_errorCase) | |
alexaClientSDK::capabilityAgents::toggleController::test::TEST_F (ToggleControllerCapabilityAgentTest, test_reportStateChange_successCase) | |
alexaClientSDK::capabilityAgents::toggleController::test::TEST_F (ToggleControllerCapabilityAgentTest, test_reportStateChange_errorCase) | |
alexaClientSDK::capabilityAgents::toggleController::test::TEST_F (ToggleControllerCapabilityAgentTest, test_unknownDirectiveWithProactivelyReportedAndRetrievableTrue) | |
alexaClientSDK::capabilityAgents::toggleController::test::TEST_F (ToggleControllerCapabilityAgentTest, test_unknownDirectiveWithProactivelyReportedAndRetrievableFalse) | |
Variables | |
static const std::string | alexaClientSDK::capabilityAgents::toggleController::test::NAMESPACE {"Alexa.ToggleController"} |
The namespace for capability agent. More... | |
static const std::string | alexaClientSDK::capabilityAgents::toggleController::test::INTERFACE_VERSION {"3"} |
The supported version. More... | |
static const std::string | alexaClientSDK::capabilityAgents::toggleController::test::NAME_TURNON {"TurnOn"} |
The name for TurnOn directive. More... | |
static const std::string | alexaClientSDK::capabilityAgents::toggleController::test::NAME_TURNOFF {"TurnOff"} |
The name for TurnOff directive. More... | |
static const std::string | alexaClientSDK::capabilityAgents::toggleController::test::TOGGLESTATE_PROPERTY_NAME {"toggleState"} |
The name for toggleState property. More... | |
static const std::string | alexaClientSDK::capabilityAgents::toggleController::test::UNKNOWN_DIRECTIVE {"Unknown"} |
An unknown directive signature. 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