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

Classes

class  AlexaLauncherCapabilityAgentTest
 
class  MockAlexaLauncherInterface
 

Typedefs

using EndpointIdentifier = endpoints::EndpointIdentifier
 

Functions

static std::chrono::milliseconds TIMEOUT (1000)
 Timeout when waiting for futures to be set. More...
 
static const std::string TIME_OF_SAMPLE_TEST ("2017-02-03T16:20:50.523Z")
 Time of sample used for testing. More...
 
static const avsCommon::sdkInterfaces::endpoints::EndpointIdentifier TEST_ENDPOINT_ID ("testEndpointId")
 The test EndpointId. More...
 
static const std::string EVENT ("event")
 Event key. More...
 
static const std::string MESSAGE_ID_TEST ("MessageId_Test")
 MessageId for testing. More...
 
static const std::string DIALOG_REQUEST_ID_TEST ("DialogRequestId_Test")
 DialogRequestId for testing. More...
 
static const std::string CORRELATION_TOKEN_TEST ("CorrelationToken_Test")
 Correlation token for testing. More...
 
std::shared_ptr< AVSDirectivebuildAVSDirective (std::string directiveName, std::string payload)
 
 TEST_F (AlexaLauncherCapabilityAgentTest, test_givenInvalidParameters_create_shouldFail)
 Test that create() returns a nullptr if called with invalid arguments. More...
 
 TEST_F (AlexaLauncherCapabilityAgentTest, test_launchTargetDirective_successCase)
 
 TEST_F (AlexaLauncherCapabilityAgentTest, test_launchTargetDirective_errorCase)
 
 TEST_F (AlexaLauncherCapabilityAgentTest, test_unknownDirective)
 

Variables

static const std::string NAMESPACE {"Alexa.Launcher"}
 The namespace for capability agent. More...
 
static const std::string INTERFACE_VERSION {"3"}
 The supported version. More...
 
static const std::string NAME_LAUNCHTARGET {"LaunchTarget"}
 The name for LaunchTarget directive. More...
 
static const std::string UNKNOWN_DIRECTIVE {"Unknown"}
 An unknown directive signature. More...
 
static const std::string LAUNCH_TARGET_PAYLOD
 

Typedef Documentation

◆ EndpointIdentifier

Function Documentation

◆ buildAVSDirective()

std::shared_ptr<AVSDirective> alexaClientSDK::acsdkAlexaLauncher::test::buildAVSDirective ( std::string  directiveName,
std::string  payload 
)

◆ CORRELATION_TOKEN_TEST()

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

Correlation token for testing.

◆ DIALOG_REQUEST_ID_TEST()

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

DialogRequestId for testing.

◆ EVENT()

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

Event key.

◆ MESSAGE_ID_TEST()

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

MessageId for testing.

◆ TEST_ENDPOINT_ID()

static const avsCommon::sdkInterfaces::endpoints::EndpointIdentifier alexaClientSDK::acsdkAlexaLauncher::test::TEST_ENDPOINT_ID ( "testEndpointId"  )
static

The test EndpointId.

◆ TEST_F() [1/4]

alexaClientSDK::acsdkAlexaLauncher::test::TEST_F ( AlexaLauncherCapabilityAgentTest  ,
test_givenInvalidParameters_create_shouldFail   
)

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

◆ TEST_F() [2/4]

alexaClientSDK::acsdkAlexaLauncher::test::TEST_F ( AlexaLauncherCapabilityAgentTest  ,
test_launchTargetDirective_successCase   
)

Test successful handling of LaunchTarget directive.

◆ TEST_F() [3/4]

alexaClientSDK::acsdkAlexaLauncher::test::TEST_F ( AlexaLauncherCapabilityAgentTest  ,
test_launchTargetDirective_errorCase   
)

Test error path of LaunchTarget directive.

◆ TEST_F() [4/4]

alexaClientSDK::acsdkAlexaLauncher::test::TEST_F ( AlexaLauncherCapabilityAgentTest  ,
test_unknownDirective   
)

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

◆ TIME_OF_SAMPLE_TEST()

static const std::string alexaClientSDK::acsdkAlexaLauncher::test::TIME_OF_SAMPLE_TEST ( "2017-02-03T16:20:50.523Z"  )
static

Time of sample used for testing.

◆ TIMEOUT()

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

Timeout when waiting for futures to be set.

Variable Documentation

◆ INTERFACE_VERSION

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

The supported version.

◆ LAUNCH_TARGET_PAYLOD

const std::string alexaClientSDK::acsdkAlexaLauncher::test::LAUNCH_TARGET_PAYLOD
static
Initial value:
= R"delim( {
"identifier": "amzn1.alexa-ask-target.app.72095",
"name": "Amazon Video" } )delim"

◆ NAME_LAUNCHTARGET

const std::string alexaClientSDK::acsdkAlexaLauncher::test::NAME_LAUNCHTARGET {"LaunchTarget"}
static

The name for LaunchTarget directive.

◆ NAMESPACE

const std::string alexaClientSDK::acsdkAlexaLauncher::test::NAMESPACE {"Alexa.Launcher"}
static

The namespace for capability agent.

◆ UNKNOWN_DIRECTIVE

const std::string alexaClientSDK::acsdkAlexaLauncher::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