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

Classes

class  AlexaRecordControllerCapabilityAgentTest
 
class  MockRecordControllerHandlerInterface
 

Typedefs

using EndpointIdentifier = endpoints::EndpointIdentifier
 

Functions

static std::chrono::milliseconds TIMEOUT (1000)
 Timeout when waiting for futures to be set. More...
 
std::shared_ptr< AVSDirectivebuildAVSDirective (std::string directiveName)
 
 TEST_F (AlexaRecordControllerCapabilityAgentTest, test_givenInvalidParameters_create_shouldFail)
 Test that create() returns a nullptr if called with invalid arguments. More...
 
 TEST_F (AlexaRecordControllerCapabilityAgentTest, test_startRecordingDirective_successCase)
 
 TEST_F (AlexaRecordControllerCapabilityAgentTest, test_startRecordingDirective_errorCase)
 
 TEST_F (AlexaRecordControllerCapabilityAgentTest, test_stopRecordingDirective_successCase)
 
 TEST_F (AlexaRecordControllerCapabilityAgentTest, test_stopRecordingDirective_errorCase)
 
 TEST_F (AlexaRecordControllerCapabilityAgentTest, test_unknownDirective)
 
 TEST_F (AlexaRecordControllerCapabilityAgentTest, test_unknownDirectiveWithProactivelyReportedAndRetrievableTrue)
 
 TEST_F (AlexaRecordControllerCapabilityAgentTest, test_unknownDirectiveWithProactivelyReportedAndRetrievableFalse)
 

Variables

static const std::string TIME_OF_SAMPLE_TEST {"2017-02-03T16:20:50.523Z"}
 Time of sample used for testing. More...
 
static const std::string NAMESPACE {"Alexa.RecordController"}
 The namespace for capability agent. More...
 
static const std::string INTERFACE_VERSION {"3"}
 The supported version. More...
 
static const std::string NAME_STARTRECORDING {"StartRecording"}
 The name for StartRecording directive. More...
 
static const std::string NAME_STOPRECORDING {"StopRecording"}
 The name for StopRecording directive. More...
 
static const std::string UNKNOWN_DIRECTIVE {"Unknown"}
 An unknown directive signature. 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 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...
 
static const std::string TEST_STATE_NOT_RECORDING {"NOT_RECORDING"}
 NOT_RECORDING state string for testing. More...
 
static const std::string TEST_STATE_RECORDING {"RECORDING"}
 RECORDING state string for testing. More...
 
static const std::string RECORDINGSTATE_PROPERTY_NAME {"recordingState"}
 The name of recording state property. More...
 

Typedef Documentation

◆ EndpointIdentifier

Function Documentation

◆ buildAVSDirective()

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

◆ TEST_F() [1/8]

alexaClientSDK::alexaRecordController::test::TEST_F ( AlexaRecordControllerCapabilityAgentTest  ,
test_givenInvalidParameters_create_shouldFail   
)

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

◆ TEST_F() [2/8]

alexaClientSDK::alexaRecordController::test::TEST_F ( AlexaRecordControllerCapabilityAgentTest  ,
test_startRecordingDirective_successCase   
)

Test successful handling of StartRecording directive.

◆ TEST_F() [3/8]

alexaClientSDK::alexaRecordController::test::TEST_F ( AlexaRecordControllerCapabilityAgentTest  ,
test_startRecordingDirective_errorCase   
)

Test error path of StartRecording directive.

◆ TEST_F() [4/8]

alexaClientSDK::alexaRecordController::test::TEST_F ( AlexaRecordControllerCapabilityAgentTest  ,
test_stopRecordingDirective_successCase   
)

Test successful handling of StopRecording directive.

◆ TEST_F() [5/8]

alexaClientSDK::alexaRecordController::test::TEST_F ( AlexaRecordControllerCapabilityAgentTest  ,
test_stopRecordingDirective_errorCase   
)

Test error path of StopRecording directive.

◆ TEST_F() [6/8]

alexaClientSDK::alexaRecordController::test::TEST_F ( AlexaRecordControllerCapabilityAgentTest  ,
test_unknownDirective   
)

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

◆ TEST_F() [7/8]

alexaClientSDK::alexaRecordController::test::TEST_F ( AlexaRecordControllerCapabilityAgentTest  ,
test_unknownDirectiveWithProactivelyReportedAndRetrievableTrue   
)

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

◆ TEST_F() [8/8]

alexaClientSDK::alexaRecordController::test::TEST_F ( AlexaRecordControllerCapabilityAgentTest  ,
test_unknownDirectiveWithProactivelyReportedAndRetrievableFalse   
)

Tests unknown Directive with retrievable set to false. Expect that the sendExceptionEncountered and setFailed will be called.

◆ TIMEOUT()

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

Timeout when waiting for futures to be set.

Variable Documentation

◆ CORRELATION_TOKEN_TEST

const std::string alexaClientSDK::alexaRecordController::test::CORRELATION_TOKEN_TEST {"CorrelationToken_Test"}
static

Correlation token for testing.

◆ DIALOG_REQUEST_ID_TEST

const std::string alexaClientSDK::alexaRecordController::test::DIALOG_REQUEST_ID_TEST {"DialogRequestId_Test"}
static

DialogRequestId for testing.

◆ EVENT

const std::string alexaClientSDK::alexaRecordController::test::EVENT {"event"}
static

Event key.

◆ INTERFACE_VERSION

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

The supported version.

◆ MESSAGE_ID_TEST

const std::string alexaClientSDK::alexaRecordController::test::MESSAGE_ID_TEST {"MessageId_Test"}
static

MessageId for testing.

◆ NAME_STARTRECORDING

const std::string alexaClientSDK::alexaRecordController::test::NAME_STARTRECORDING {"StartRecording"}
static

The name for StartRecording directive.

◆ NAME_STOPRECORDING

const std::string alexaClientSDK::alexaRecordController::test::NAME_STOPRECORDING {"StopRecording"}
static

The name for StopRecording directive.

◆ NAMESPACE

const std::string alexaClientSDK::alexaRecordController::test::NAMESPACE {"Alexa.RecordController"}
static

The namespace for capability agent.

◆ RECORDINGSTATE_PROPERTY_NAME

const std::string alexaClientSDK::alexaRecordController::test::RECORDINGSTATE_PROPERTY_NAME {"recordingState"}
static

The name of recording state property.

◆ TEST_ENDPOINT_ID

const EndpointIdentifier alexaClientSDK::alexaRecordController::test::TEST_ENDPOINT_ID {"testEndpointId"}
static

The test EndpointId.

◆ TEST_STATE_NOT_RECORDING

const std::string alexaClientSDK::alexaRecordController::test::TEST_STATE_NOT_RECORDING {"NOT_RECORDING"}
static

NOT_RECORDING state string for testing.

◆ TEST_STATE_RECORDING

const std::string alexaClientSDK::alexaRecordController::test::TEST_STATE_RECORDING {"RECORDING"}
static

RECORDING state string for testing.

◆ TIME_OF_SAMPLE_TEST

const std::string alexaClientSDK::alexaRecordController::test::TIME_OF_SAMPLE_TEST {"2017-02-03T16:20:50.523Z"}
static

Time of sample used for testing.

◆ UNKNOWN_DIRECTIVE

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