![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Classes | |
| class | MockModeControllerInterface |
| class | ModeControllerCapabilityAgentTest |
Typedefs | |
| using | EndpointIdentifier = endpoints::EndpointIdentifier |
Functions | |
| static std::chrono::milliseconds | TIMEOUT (1000) |
| Timeout when waiting for futures to be set. More... | |
| static const EndpointIdentifier | TEST_ENDPOINT_ID ("testEndpointId") |
| The test EndpointId. More... | |
| static const EndpointIdentifier | TEST_INSTANCE ("testInstance") |
| The test instance. More... | |
| static const std::string | EVENT ("event") |
| Event key. More... | |
| static const std::string | HEADER ("header") |
| Header key. More... | |
| static const std::string | MESSAGE_ID ("messageId") |
| MessageId key. More... | |
| static const std::string | MESSAGE_ID_TEST ("MessageId_Test") |
| MessageId for testing. More... | |
| static const std::string | DIALOG_REQUEST_ID ("dialogRequestId") |
| Dialog request Id key. More... | |
| static const std::string | DIALOG_REQUEST_ID_TEST ("DialogRequestId_Test") |
| DialogRequestId for testing. More... | |
| static const std::string | CORRELATION_TOKEN ("correlationToken") |
| Correlation token key. More... | |
| static const std::string | CORRELATION_TOKEN_TEST ("CorrelationToken_Test") |
| Correlation token for testing. More... | |
| static const std::string | EVENT_CORRELATION_TOKEN ("eventCorrelationToken") |
| Event correlation token key. More... | |
| static const std::string | EVENT_CORRELATION_TOKEN_TEST ("EventCorrelationToken_Test") |
| Event correlation for testing. More... | |
| static const std::string | TIME_OF_SAMPLE ("timeOfSample") |
| Time of sample key. More... | |
| static const std::string | TIME_OF_SAMPLE_TEST ("2017-02-03T16:20:50.523Z") |
| Time of sample used for testing. More... | |
| static std::shared_ptr< AVSDirective > | buildAVSDirective (std::string directiveName, std::string payload) |
| TEST_F (ModeControllerCapabilityAgentTest, test_givenInvalidParameters_create_shouldFail) | |
| Test that create() returns a nullptr if called with invalid arguments. More... | |
| TEST_F (ModeControllerCapabilityAgentTest, test_setModeDirective_successCase) | |
| TEST_F (ModeControllerCapabilityAgentTest, test_setModeDirective_errorCase) | |
| TEST_F (ModeControllerCapabilityAgentTest, test_adjustModeValueDirective_successCase) | |
| TEST_F (ModeControllerCapabilityAgentTest, test_adjustModeValueDirective_errorCase) | |
| TEST_F (ModeControllerCapabilityAgentTest, test_reportStateChange_successCase) | |
| TEST_F (ModeControllerCapabilityAgentTest, test_reportStateChange_errorCase) | |
| TEST_F (ModeControllerCapabilityAgentTest, test_unknownDirectiveWithProactivelyReportedAndRetrievableTrue) | |
| TEST_F (ModeControllerCapabilityAgentTest, test_unknownDirectiveWithProactivelyReportedAndRetrievableFalse) | |
Variables | |
| static const std::string | NAMESPACE {"Alexa.ModeController"} |
| The namespace for capability agent. More... | |
| static const std::string | INTERFACE_VERSION {"3"} |
| The supported version. More... | |
| static const std::string | NAME_SETMODE {"SetMode"} |
| The name for SetMode directive. More... | |
| static const std::string | NAME_ADJUSTMODE {"AdjustMode"} |
| The name for AdjustMode directive. More... | |
| static const std::string | MODE_PROPERTY_NAME {"mode"} |
| The name for modeValue property. More... | |
| static const std::string | UNKNOWN_DIRECTIVE {"Unknown"} |
| An unknown directive signature. More... | |
| static std::string | MODE_OPEN = "open" |
| Mode for testing. More... | |
| static std::string | MODE_CLOSED = "close" |
| Mode for testing. More... | |
| static int | MODE_DELTA = 1 |
| Mode Delta for testing. More... | |
| static const std::string | SET_MODE_PAYLOAD_TEST |
| SetModeValue payload for testing. More... | |
| static const std::string | ADJUST_MODE_PAYLOAD_TEST |
| AdjustModeValue payload for testing. More... | |
| using alexaClientSDK::capabilityAgents::modeController::test::EndpointIdentifier = typedef endpoints::EndpointIdentifier |
|
static |
Utility function to build the AVSDirective for test.
| directiveName | The name of the test directive to build. |
| payload | The unparsed payload of directive in JSON. |
nullptr if build failed.
|
static |
Correlation token key.
|
static |
Correlation token for testing.
|
static |
Dialog request Id key.
|
static |
DialogRequestId for testing.
|
static |
Event key.
|
static |
Event correlation token key.
|
static |
Event correlation for testing.
|
static |
Header key.
|
static |
MessageId key.
|
static |
MessageId for testing.
|
static |
The test EndpointId.
| alexaClientSDK::capabilityAgents::modeController::test::TEST_F | ( | ModeControllerCapabilityAgentTest | , |
| test_givenInvalidParameters_create_shouldFail | |||
| ) |
Test that create() returns a nullptr if called with invalid arguments.
| alexaClientSDK::capabilityAgents::modeController::test::TEST_F | ( | ModeControllerCapabilityAgentTest | , |
| test_setModeDirective_successCase | |||
| ) |
Test successful handling of SetMode directive.
| alexaClientSDK::capabilityAgents::modeController::test::TEST_F | ( | ModeControllerCapabilityAgentTest | , |
| test_setModeDirective_errorCase | |||
| ) |
Test error path of SetMode directive.
| alexaClientSDK::capabilityAgents::modeController::test::TEST_F | ( | ModeControllerCapabilityAgentTest | , |
| test_adjustModeValueDirective_successCase | |||
| ) |
Test successful handling of AdjustMode directive.
| alexaClientSDK::capabilityAgents::modeController::test::TEST_F | ( | ModeControllerCapabilityAgentTest | , |
| test_adjustModeValueDirective_errorCase | |||
| ) |
Test error path of AdjustMode directive.
| alexaClientSDK::capabilityAgents::modeController::test::TEST_F | ( | ModeControllerCapabilityAgentTest | , |
| test_reportStateChange_successCase | |||
| ) |
Test triggering of reportStateChange and subsequent call to the ContextManager to build the context.
| alexaClientSDK::capabilityAgents::modeController::test::TEST_F | ( | ModeControllerCapabilityAgentTest | , |
| test_reportStateChange_errorCase | |||
| ) |
Test triggering of reportStateChange and subsequent failure to get the getMode and call to the ContextManager to report the failure.
| alexaClientSDK::capabilityAgents::modeController::test::TEST_F | ( | ModeControllerCapabilityAgentTest | , |
| test_unknownDirectiveWithProactivelyReportedAndRetrievableTrue | |||
| ) |
Tests unknown Directive with both proactively reported and retrievable set. Expect that the sendExceptionEncountered and setFailed will be called.
| alexaClientSDK::capabilityAgents::modeController::test::TEST_F | ( | ModeControllerCapabilityAgentTest | , |
| test_unknownDirectiveWithProactivelyReportedAndRetrievableFalse | |||
| ) |
Tests unknown Directive with both proactively reported and retrievable as false. Expect that the sendExceptionEncountered and setFailed will be called.
|
static |
The test instance.
|
static |
Time of sample key.
|
static |
Time of sample used for testing.
|
static |
Timeout when waiting for futures to be set.
|
static |
AdjustModeValue payload for testing.
|
static |
The supported version.
|
static |
Mode for testing.
|
static |
Mode Delta for testing.
|
static |
Mode for testing.
|
static |
The name for modeValue property.
|
static |
The name for AdjustMode directive.
|
static |
The name for SetMode directive.
|
static |
The namespace for capability agent.
|
static |
SetModeValue payload for testing.
|
static |
An unknown directive signature.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0