AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Typedefs | Functions | Variables
alexaClientSDK::acsdkAlexaKeypadController::test Namespace Reference

Classes

class  AlexaKeypadControllerCapabilityAgentTest
 
class  MockAlexaKeypadControllerInterface
 

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 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...
 
std::shared_ptr< AVSDirectivebuildAVSDirective (std::string directiveName)
 
 TEST_F (AlexaKeypadControllerCapabilityAgentTest, test_givenInvalidParameters_create_shouldFail)
 Test that create() returns a nullptr if called with invalid arguments. More...
 
 TEST_F (AlexaKeypadControllerCapabilityAgentTest, test_sendKeystrokeDirective_successCase)
 
 TEST_F (AlexaKeypadControllerCapabilityAgentTest, test_sendKeystrokeDirective_errorCase)
 
 TEST_F (AlexaKeypadControllerCapabilityAgentTest, test_unknownDirective)
 

Variables

static const std::string NAMESPACE {"Alexa.KeypadController"}
 The namespace for capability agent. More...
 
static const std::string INTERFACE_VERSION {"3"}
 The supported version. More...
 
static const std::string NAME_SENDKEYSTROKE {"SendKeystroke"}
 The name for SendKeystroke directive. More...
 
static const std::string UNKNOWN_DIRECTIVE {"Unknown"}
 An unknown directive signature. More...
 
static const std::string PAYLOAD = R"delim( { "keystroke": "SELECT" } )delim"
 

Typedef Documentation

◆ EndpointIdentifier

Function Documentation

◆ buildAVSDirective()

std::shared_ptr<AVSDirective> alexaClientSDK::acsdkAlexaKeypadController::test::buildAVSDirective ( std::string  directiveName)

◆ CORRELATION_TOKEN()

static const std::string alexaClientSDK::acsdkAlexaKeypadController::test::CORRELATION_TOKEN ( "correlationToken"  )
static

Correlation token key.

◆ CORRELATION_TOKEN_TEST()

static const std::string alexaClientSDK::acsdkAlexaKeypadController::test::CORRELATION_TOKEN_TEST ( "CorrelationToken_Test"  )
static

Correlation token for testing.

◆ DIALOG_REQUEST_ID()

static const std::string alexaClientSDK::acsdkAlexaKeypadController::test::DIALOG_REQUEST_ID ( "dialogRequestId"  )
static

Dialog request Id key.

◆ DIALOG_REQUEST_ID_TEST()

static const std::string alexaClientSDK::acsdkAlexaKeypadController::test::DIALOG_REQUEST_ID_TEST ( "DialogRequestId_Test"  )
static

DialogRequestId for testing.

◆ EVENT()

static const std::string alexaClientSDK::acsdkAlexaKeypadController::test::EVENT ( "event"  )
static

Event key.

◆ EVENT_CORRELATION_TOKEN()

static const std::string alexaClientSDK::acsdkAlexaKeypadController::test::EVENT_CORRELATION_TOKEN ( "eventCorrelationToken"  )
static

Event correlation token key.

◆ EVENT_CORRELATION_TOKEN_TEST()

static const std::string alexaClientSDK::acsdkAlexaKeypadController::test::EVENT_CORRELATION_TOKEN_TEST ( "EventCorrelationToken_Test"  )
static

Event correlation for testing.

◆ HEADER()

static const std::string alexaClientSDK::acsdkAlexaKeypadController::test::HEADER ( "header"  )
static

Header key.

◆ MESSAGE_ID()

static const std::string alexaClientSDK::acsdkAlexaKeypadController::test::MESSAGE_ID ( "messageId"  )
static

MessageId key.

◆ MESSAGE_ID_TEST()

static const std::string alexaClientSDK::acsdkAlexaKeypadController::test::MESSAGE_ID_TEST ( "MessageId_Test"  )
static

MessageId for testing.

◆ TEST_ENDPOINT_ID()

static const EndpointIdentifier alexaClientSDK::acsdkAlexaKeypadController::test::TEST_ENDPOINT_ID ( "testEndpointId"  )
static

The test EndpointId.

◆ TEST_F() [1/4]

alexaClientSDK::acsdkAlexaKeypadController::test::TEST_F ( AlexaKeypadControllerCapabilityAgentTest  ,
test_givenInvalidParameters_create_shouldFail   
)

Test that create() returns a nullptr if called with invalid arguments.

◆ TEST_F() [2/4]

alexaClientSDK::acsdkAlexaKeypadController::test::TEST_F ( AlexaKeypadControllerCapabilityAgentTest  ,
test_sendKeystrokeDirective_successCase   
)

Test successful handling of SendKeystroke directive.

◆ TEST_F() [3/4]

alexaClientSDK::acsdkAlexaKeypadController::test::TEST_F ( AlexaKeypadControllerCapabilityAgentTest  ,
test_sendKeystrokeDirective_errorCase   
)

Test error path of SendKeystroke directive.

◆ TEST_F() [4/4]

alexaClientSDK::acsdkAlexaKeypadController::test::TEST_F ( AlexaKeypadControllerCapabilityAgentTest  ,
test_unknownDirective   
)

Tests unknown Directive. Expect that the sendExceptionEncountered and setFailed will be called.

◆ TIMEOUT()

static std::chrono::milliseconds alexaClientSDK::acsdkAlexaKeypadController::test::TIMEOUT ( 1000  )
static

Timeout when waiting for futures to be set.

Variable Documentation

◆ INTERFACE_VERSION

const std::string alexaClientSDK::acsdkAlexaKeypadController::test::INTERFACE_VERSION {"3"}
static

The supported version.

◆ NAME_SENDKEYSTROKE

const std::string alexaClientSDK::acsdkAlexaKeypadController::test::NAME_SENDKEYSTROKE {"SendKeystroke"}
static

The name for SendKeystroke directive.

◆ NAMESPACE

const std::string alexaClientSDK::acsdkAlexaKeypadController::test::NAMESPACE {"Alexa.KeypadController"}
static

The namespace for capability agent.

◆ PAYLOAD

const std::string alexaClientSDK::acsdkAlexaKeypadController::test::PAYLOAD = R"delim( { "keystroke": "SELECT" } )delim"
static

◆ UNKNOWN_DIRECTIVE

const std::string alexaClientSDK::acsdkAlexaKeypadController::test::UNKNOWN_DIRECTIVE {"Unknown"}
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