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

Classes

class  APLCATest
 
class  BaseAPLCapabilityAgentTest
 Test harness for BaseAPLCapabilityAgent class. More...
 

Typedefs

using JSONStream = std::vector< std::shared_ptr< std::istream > >
 Alias for JSON stream type used in ConfigurationNode initialization. More...
 

Functions

static std::chrono::milliseconds TIMEOUT (1000)
 Timeout when waiting for futures to be set. More...
 
const std::string makeDocumentAplPayload (const std::string &token, const std::string &timeoutType)
 
static void setConfig ()
 
static aplCapabilityCommonInterfaces::aplEventPayload::UserEvent createUserEventPayload (aplCapabilityCommonInterfaces::PresentationToken token, std::string arguments, std::string source, std::string components)
 
static aplCapabilityCommonInterfaces::aplEventPayload::DataSourceFetch createDataSourceFetchPayload (aplCapabilityCommonInterfaces::PresentationToken token, std::string dataSourceType, std::string fetchPayload)
 
static aplCapabilityCommonInterfaces::aplEventPayload::VisualContext createVisualContextPayload (aplCapabilityCommonInterfaces::PresentationToken token, std::string version, std::string visualContext, std::string datasourceContext)
 
static void verifySendMessage (std::shared_ptr< avsCommon::avs::MessageRequest > request, const std::string expectedEventName, const std::string expectedPayload, const std::string expectedNameSpace)
 
 TEST_F (BaseAPLCapabilityAgentTest, testTimeoutShort)
 
 TEST_F (BaseAPLCapabilityAgentTest, testTimeoutTransient)
 
 TEST_F (BaseAPLCapabilityAgentTest, testTimeoutLong)
 
 TEST_F (BaseAPLCapabilityAgentTest, testUnknownDirective)
 
 TEST_F (BaseAPLCapabilityAgentTest, testMissingTimeoutTypeRenderDocumentDirective)
 
 TEST_F (BaseAPLCapabilityAgentTest, testInvalidTimeoutTypeRenderDocumentDirective)
 
 TEST_F (BaseAPLCapabilityAgentTest, testMalformedRenderDocumentDirective)
 
 TEST_F (BaseAPLCapabilityAgentTest, testMalformedRenderDocumentDirective2)
 
 TEST_F (BaseAPLCapabilityAgentTest, testMalformedExecuteCommandDirective)
 
 TEST_F (BaseAPLCapabilityAgentTest, testMalformedExecuteCommandDirective2)
 
 TEST_F (BaseAPLCapabilityAgentTest, testExecuteCommandAfterMismatchedAPLCard)
 
 TEST_F (BaseAPLCapabilityAgentTest, testExecuteCommandAfterRightAPL)
 
 TEST_F (BaseAPLCapabilityAgentTest, testSendUserEvent)
 
 TEST_F (BaseAPLCapabilityAgentTest, testIndexListDataSourceFetchRequestEvent)
 
 TEST_F (BaseAPLCapabilityAgentTest, testTokenListDataSourceFetchRequestEvent)
 
 TEST_F (BaseAPLCapabilityAgentTest, testAPLProactiveStateReportNotSentIfNotRendering)
 
 TEST_F (BaseAPLCapabilityAgentTest, testAPLProactiveStateReportSentIfRendering)
 
 TEST_F (BaseAPLCapabilityAgentTest, testAPLProactiveStateReportSentIndependentOfProvideStateResponse)
 
 TEST_F (BaseAPLCapabilityAgentTest, testAPLProactiveStateReportNotSentIfRenderingNotComplete)
 
 TEST_F (BaseAPLCapabilityAgentTest, testRenderDocumentReceivedTimestamp)
 

Variables

static std::string TESTPRESENTATIONAPL_CONFIGURATION_ROOT_KEY = "TestPresentationAPLCapabilityAgent"
 The key in our config file to find the root of APL CA configuration. More...
 
static const std::string NAMESPACE = "Test.Presentation.APL"
 The namespace registered for this capability agent. More...
 
static const std::string UNKNOWN_DIRECTIVE = "Unknown"
 An unknown directive signature. More...
 
static const std::string USER_EVENT_EVENT = "UserEvent"
 The name for UserEvent event. More...
 
static const std::string LOAD_INDEX_LIST_DATA = "LoadIndexListData"
 The name for LoadIndexListData event. More...
 
static const std::string LOAD_TOKEN_LIST_DATA = "LoadTokenListData"
 The name for LoadTokenListData event. More...
 
static const std::string MESSAGE_ID = "messageId"
 The MessageId identifer. More...
 
static const std::string MESSAGE_ID_2 = "messageId2"
 The MessageId identifer. More...
 
static const std::string SAMPLE_USER_EVENT_PAYLOAD
 Payload to be sent for UserEvent. More...
 
static const std::string DYNAMIC_INDEX_LIST = "dynamicIndexList"
 DynamicIndexList DataSource type. More...
 
static const std::string SAMPLE_INDEX_DATA_SOURCE_FETCH_REQUEST
 Payload to be sent for ListDataSourceFetchRequest. More...
 
static const std::string SAMPLE_INDEX_DATA_SOURCE_FETCH_APL_REQUEST
 Payload to be sent for ListDataSourceFetchRequest from APLCore. More...
 
static const std::string DYNAMIC_TOKEN_LIST = "dynamicTokenList"
 DynamicTokenList DataSource type. More...
 
static const std::string SAMPLE_TOKEN_DATA_SOURCE_FETCH_REQUEST
 Payload to be sent for TokenDataSourceFetchRequest. More...
 
static const std::string SAMPLE_TOKEN_DATA_SOURCE_FETCH_APL_REQUEST
 Payload to be sent for TokenDataSourceFetchRequest from APLCore. More...
 
static const std::string MESSAGE_EVENT_KEY = "event"
 JSON key for the event section of a message. More...
 
static const std::string MESSAGE_NAMESPACE_KEY = "namespace"
 JSON key for the namespace field of a message header. More...
 
static const std::string MESSAGE_NAME_KEY = "name"
 JSON key for the name field of a message header. More...
 
static const std::string MESSAGE_HEADER_KEY = "header"
 JSON key for the header section of a message. More...
 
static const std::string MESSAGE_PAYLOAD_KEY = "payload"
 JSON key for the payload section of an message. More...
 
static const char * SEND_INDEX_LIST_DATA = "SendIndexListData"
 The name for SendIndexListData directive. More...
 
static const char * UPDATE_INDEX_LIST_DATA = "UpdateIndexListData"
 The name for UpdateIndexListData directive. More...
 
static const char * SEND_TOKEN_LIST_DATA = "SendTokenListData"
 The name for SendTokenListData directive. More...
 
static const NamespaceAndName DOCUMENT {NAMESPACE, "RenderDocument"}
 The RenderDocument directive signature. More...
 
static const NamespaceAndName COMMAND {NAMESPACE, "ExecuteCommands"}
 The ExecuteCommands directive signature. More...
 
static const NamespaceAndName INDEX_LIST_DATA {NAMESPACE, SEND_INDEX_LIST_DATA}
 The SendIndexListData directive signature. More...
 
static const NamespaceAndName INDEX_LIST_UPDATE {NAMESPACE, UPDATE_INDEX_LIST_DATA}
 The UpdateIndexListData directive signature. More...
 
static const NamespaceAndName TOKEN_LIST_DATA {NAMESPACE, SEND_TOKEN_LIST_DATA}
 The SendTokenListData directive signature. More...
 
static const char SKILL_ID [] = "skillId"
 Identifier for the skilld in presentationSession. More...
 
static const char PRESENTATION_SESSION_ID [] = "id"
 Identifier for the id in presentationSession. More...
 
static const std::string DOCUMENT_APL_PAYLOAD
 A RenderDocument directive with APL payload. More...
 
static const std::string DOCUMENT_APL_PAYLOAD_2
 A 2nd RenderDocument directive with APL payload. More...
 
static const std::string DOCUMENT_APL_PAYLOAD_MISSING_TIMEOUTTYPE
 
static const std::string DOCUMENT_APL_PAYLOAD_INVALID_TIMEOUTTYPE
 
static const std::string DOCUMENT_APL_PAYLOAD_MALFORMED
 A malformed RenderDocument directive with APL payload without presentationToken. More...
 
static const std::string DOCUMENT_APL_PAYLOAD_MALFORMED_2
 A malformed RenderDocument directive with APL payload without document. More...
 
static const std::string EXECUTE_COMMAND_PAYLOAD_MALFORMED
 A malformed ExecuteCommand directive with APL payload without commands. More...
 
static const std::string EXECUTE_COMMAND_PAYLOAD_MALFORMED_2
 A malformed ExecuteCommand directive with APL payload without presentationToken. More...
 
static const std::string EXECUTE_COMMAND_PAYLOAD
 
static const std::string SETTINGS_CONFIG
 
static const std::string WINDOW_ID = "WINDOW_ID"
 Test window ID. More...
 
static const unsigned int STATE_REQUEST_TOKEN = 1
 A visual state request token. More...
 
static const unsigned int PROACTIVE_STATE_REQUEST_TOKEN = 0
 A state request token for a proactive state request. More...
 
static const std::string APL_TOKEN = "APL_TOKEN"
 APL_TOKEN used in documents. More...
 
static const char *const APL_TOKEN_2 = "APL_TOKEN_2"
 APL_TOKEN_2 used in documents. More...
 
static const std::string TEST_METRIC_NAME = "APLCATest"
 Metric name for the test CA. More...
 
static std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterfacemetricRecorder
 Metric recorder shared ptr. More...
 
std::mutex m
 
std::condition_variable conditionVariable
 

Typedef Documentation

◆ JSONStream

using alexaClientSDK::aplCapabilityCommon::test::JSONStream = typedef std::vector<std::shared_ptr<std::istream> >

Alias for JSON stream type used in ConfigurationNode initialization.

Function Documentation

◆ createDataSourceFetchPayload()

static aplCapabilityCommonInterfaces::aplEventPayload::DataSourceFetch alexaClientSDK::aplCapabilityCommon::test::createDataSourceFetchPayload ( aplCapabilityCommonInterfaces::PresentationToken  token,
std::string  dataSourceType,
std::string  fetchPayload 
)
static

◆ createUserEventPayload()

static aplCapabilityCommonInterfaces::aplEventPayload::UserEvent alexaClientSDK::aplCapabilityCommon::test::createUserEventPayload ( aplCapabilityCommonInterfaces::PresentationToken  token,
std::string  arguments,
std::string  source,
std::string  components 
)
static

◆ createVisualContextPayload()

static aplCapabilityCommonInterfaces::aplEventPayload::VisualContext alexaClientSDK::aplCapabilityCommon::test::createVisualContextPayload ( aplCapabilityCommonInterfaces::PresentationToken  token,
std::string  version,
std::string  visualContext,
std::string  datasourceContext 
)
static

◆ makeDocumentAplPayload()

const std::string alexaClientSDK::aplCapabilityCommon::test::makeDocumentAplPayload ( const std::string &  token,
const std::string &  timeoutType 
)

◆ setConfig()

static void alexaClientSDK::aplCapabilityCommon::test::setConfig ( )
static

◆ TEST_F() [1/20]

alexaClientSDK::aplCapabilityCommon::test::TEST_F ( BaseAPLCapabilityAgentTest  ,
testTimeoutShort   
)

Tests timeout calculation

◆ TEST_F() [2/20]

alexaClientSDK::aplCapabilityCommon::test::TEST_F ( BaseAPLCapabilityAgentTest  ,
testTimeoutTransient   
)

◆ TEST_F() [3/20]

alexaClientSDK::aplCapabilityCommon::test::TEST_F ( BaseAPLCapabilityAgentTest  ,
testTimeoutLong   
)

◆ TEST_F() [4/20]

alexaClientSDK::aplCapabilityCommon::test::TEST_F ( BaseAPLCapabilityAgentTest  ,
testUnknownDirective   
)

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

◆ TEST_F() [5/20]

alexaClientSDK::aplCapabilityCommon::test::TEST_F ( BaseAPLCapabilityAgentTest  ,
testMissingTimeoutTypeRenderDocumentDirective   
)

Tests when a RenderDocument Directive doesn't contain timeoutType. Verify that sendExceptionEncountered and setFailed are not called.

Some domains do not include timeout type.

◆ TEST_F() [6/20]

alexaClientSDK::aplCapabilityCommon::test::TEST_F ( BaseAPLCapabilityAgentTest  ,
testInvalidTimeoutTypeRenderDocumentDirective   
)

Tests when a RenderDocument Directive contains an invalid timeoutType. Expect that sendExceptionEncountered and setFailed will be called.

◆ TEST_F() [7/20]

alexaClientSDK::aplCapabilityCommon::test::TEST_F ( BaseAPLCapabilityAgentTest  ,
testMalformedRenderDocumentDirective   
)

Tests when a malformed RenderDocument Directive (without presentationToken) is received. Expect that the sendExceptionEncountered and setFailed will be called.

◆ TEST_F() [8/20]

alexaClientSDK::aplCapabilityCommon::test::TEST_F ( BaseAPLCapabilityAgentTest  ,
testMalformedRenderDocumentDirective2   
)

Tests when a malformed RenderDocument Directive (without document) is received. Expect that the sendExceptionEncountered and setFailed will be called.

◆ TEST_F() [9/20]

alexaClientSDK::aplCapabilityCommon::test::TEST_F ( BaseAPLCapabilityAgentTest  ,
testMalformedExecuteCommandDirective   
)

Tests when a malformed ExecuteCommands Directive is received (without presentationToken). Expect that the sendExceptionEncountered and setFailed will be called.

◆ TEST_F() [10/20]

alexaClientSDK::aplCapabilityCommon::test::TEST_F ( BaseAPLCapabilityAgentTest  ,
testMalformedExecuteCommandDirective2   
)

Tests when a malformed ExecuteCommands Directive (without commands) is received. Expect that the sendExceptionEncountered and setFailed will be called.

◆ TEST_F() [11/20]

alexaClientSDK::aplCapabilityCommon::test::TEST_F ( BaseAPLCapabilityAgentTest  ,
testExecuteCommandAfterMismatchedAPLCard   
)

Tests when a ExecuteCommands Directive is received after an APL card is displayed. In this case the ExecuteCommand should fail as presentationToken(APL rendered) != presentationToken(ExecuteCommand).

◆ TEST_F() [12/20]

alexaClientSDK::aplCapabilityCommon::test::TEST_F ( BaseAPLCapabilityAgentTest  ,
testExecuteCommandAfterRightAPL   
)

Tests when a ExecuteCommands Directive is received after displaying an APL card with matching presentationToken. The command should be successful.

◆ TEST_F() [13/20]

alexaClientSDK::aplCapabilityCommon::test::TEST_F ( BaseAPLCapabilityAgentTest  ,
testSendUserEvent   
)

◆ TEST_F() [14/20]

alexaClientSDK::aplCapabilityCommon::test::TEST_F ( BaseAPLCapabilityAgentTest  ,
testIndexListDataSourceFetchRequestEvent   
)

◆ TEST_F() [15/20]

alexaClientSDK::aplCapabilityCommon::test::TEST_F ( BaseAPLCapabilityAgentTest  ,
testTokenListDataSourceFetchRequestEvent   
)

◆ TEST_F() [16/20]

alexaClientSDK::aplCapabilityCommon::test::TEST_F ( BaseAPLCapabilityAgentTest  ,
testAPLProactiveStateReportNotSentIfNotRendering   
)

◆ TEST_F() [17/20]

alexaClientSDK::aplCapabilityCommon::test::TEST_F ( BaseAPLCapabilityAgentTest  ,
testAPLProactiveStateReportSentIfRendering   
)

◆ TEST_F() [18/20]

alexaClientSDK::aplCapabilityCommon::test::TEST_F ( BaseAPLCapabilityAgentTest  ,
testAPLProactiveStateReportSentIndependentOfProvideStateResponse   
)

◆ TEST_F() [19/20]

alexaClientSDK::aplCapabilityCommon::test::TEST_F ( BaseAPLCapabilityAgentTest  ,
testAPLProactiveStateReportNotSentIfRenderingNotComplete   
)

◆ TEST_F() [20/20]

alexaClientSDK::aplCapabilityCommon::test::TEST_F ( BaseAPLCapabilityAgentTest  ,
testRenderDocumentReceivedTimestamp   
)

Checks that the timestamp for the directive is recorded and passed on correctly

◆ TIMEOUT()

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

Timeout when waiting for futures to be set.

◆ verifySendMessage()

static void alexaClientSDK::aplCapabilityCommon::test::verifySendMessage ( std::shared_ptr< avsCommon::avs::MessageRequest request,
const std::string  expectedEventName,
const std::string  expectedPayload,
const std::string  expectedNameSpace 
)
static

Verify the request sent to AVS is as expected.

Variable Documentation

◆ APL_TOKEN

const std::string alexaClientSDK::aplCapabilityCommon::test::APL_TOKEN = "APL_TOKEN"
static

APL_TOKEN used in documents.

◆ APL_TOKEN_2

const char* const alexaClientSDK::aplCapabilityCommon::test::APL_TOKEN_2 = "APL_TOKEN_2"
static

APL_TOKEN_2 used in documents.

◆ COMMAND

const NamespaceAndName alexaClientSDK::aplCapabilityCommon::test::COMMAND {NAMESPACE, "ExecuteCommands"}
static

The ExecuteCommands directive signature.

◆ conditionVariable

std::condition_variable alexaClientSDK::aplCapabilityCommon::test::conditionVariable

◆ DOCUMENT

const NamespaceAndName alexaClientSDK::aplCapabilityCommon::test::DOCUMENT {NAMESPACE, "RenderDocument"}
static

The RenderDocument directive signature.

◆ DOCUMENT_APL_PAYLOAD

const std::string alexaClientSDK::aplCapabilityCommon::test::DOCUMENT_APL_PAYLOAD
static
Initial value:
= "{"
"\"presentationToken\":\"APL_TOKEN\","
"\"windowId\":\"WINDOW_ID\","
"\"timeoutType\":\"TRANSIENT\","
"\"document\":\"{}\""
"}"

A RenderDocument directive with APL payload.

◆ DOCUMENT_APL_PAYLOAD_2

const std::string alexaClientSDK::aplCapabilityCommon::test::DOCUMENT_APL_PAYLOAD_2
static
Initial value:
= "{"
"\"presentationToken\":\"APL_TOKEN_2\","
"\"windowId\":\"WINDOW_ID\","
"\"timeoutType\":\"TRANSIENT\","
"\"document\":\"{}\""
"}"

A 2nd RenderDocument directive with APL payload.

◆ DOCUMENT_APL_PAYLOAD_INVALID_TIMEOUTTYPE

const std::string alexaClientSDK::aplCapabilityCommon::test::DOCUMENT_APL_PAYLOAD_INVALID_TIMEOUTTYPE
static
Initial value:
=
"{"
"\"presentationToken\":\"APL_TOKEN\","
"\"windowId\":\"WINDOW_ID\","
"\"timeoutType\":\"SNAKES\","
"\"document\":\"{}\""
"}"

◆ DOCUMENT_APL_PAYLOAD_MALFORMED

const std::string alexaClientSDK::aplCapabilityCommon::test::DOCUMENT_APL_PAYLOAD_MALFORMED
static
Initial value:
= "{"
"\"token\":\"APL_TOKEN\""
"}"

A malformed RenderDocument directive with APL payload without presentationToken.

◆ DOCUMENT_APL_PAYLOAD_MALFORMED_2

const std::string alexaClientSDK::aplCapabilityCommon::test::DOCUMENT_APL_PAYLOAD_MALFORMED_2
static
Initial value:
= "{"
"\"presentationToken\":\"APL_TOKEN\""
"}"

A malformed RenderDocument directive with APL payload without document.

◆ DOCUMENT_APL_PAYLOAD_MISSING_TIMEOUTTYPE

const std::string alexaClientSDK::aplCapabilityCommon::test::DOCUMENT_APL_PAYLOAD_MISSING_TIMEOUTTYPE
static
Initial value:
=
"{"
"\"presentationToken\":\"APL_TOKEN\","
"\"windowId\":\"WINDOW_ID\","
"\"document\":\"{}\""
"}"

◆ DYNAMIC_INDEX_LIST

const std::string alexaClientSDK::aplCapabilityCommon::test::DYNAMIC_INDEX_LIST = "dynamicIndexList"
static

DynamicIndexList DataSource type.

◆ DYNAMIC_TOKEN_LIST

const std::string alexaClientSDK::aplCapabilityCommon::test::DYNAMIC_TOKEN_LIST = "dynamicTokenList"
static

DynamicTokenList DataSource type.

◆ EXECUTE_COMMAND_PAYLOAD

const std::string alexaClientSDK::aplCapabilityCommon::test::EXECUTE_COMMAND_PAYLOAD
static
Initial value:
= "{"
"\"presentationToken\":\"APL_TOKEN\","
"\"commands\": ["
" {\"type\": \"idleCommand\"} "
"]"
"}"

◆ EXECUTE_COMMAND_PAYLOAD_MALFORMED

const std::string alexaClientSDK::aplCapabilityCommon::test::EXECUTE_COMMAND_PAYLOAD_MALFORMED
static
Initial value:
= "{"
"\"presentationToken\":\"APL_TOKEN\""
"}"

A malformed ExecuteCommand directive with APL payload without commands.

◆ EXECUTE_COMMAND_PAYLOAD_MALFORMED_2

const std::string alexaClientSDK::aplCapabilityCommon::test::EXECUTE_COMMAND_PAYLOAD_MALFORMED_2
static
Initial value:
= "{"
"\"token\":\"APL_TOKEN\""
"}"

A malformed ExecuteCommand directive with APL payload without presentationToken.

◆ INDEX_LIST_DATA

const NamespaceAndName alexaClientSDK::aplCapabilityCommon::test::INDEX_LIST_DATA {NAMESPACE, SEND_INDEX_LIST_DATA}
static

The SendIndexListData directive signature.

◆ INDEX_LIST_UPDATE

const NamespaceAndName alexaClientSDK::aplCapabilityCommon::test::INDEX_LIST_UPDATE {NAMESPACE, UPDATE_INDEX_LIST_DATA}
static

The UpdateIndexListData directive signature.

◆ LOAD_INDEX_LIST_DATA

const std::string alexaClientSDK::aplCapabilityCommon::test::LOAD_INDEX_LIST_DATA = "LoadIndexListData"
static

The name for LoadIndexListData event.

◆ LOAD_TOKEN_LIST_DATA

const std::string alexaClientSDK::aplCapabilityCommon::test::LOAD_TOKEN_LIST_DATA = "LoadTokenListData"
static

The name for LoadTokenListData event.

◆ m

std::mutex alexaClientSDK::aplCapabilityCommon::test::m

◆ MESSAGE_EVENT_KEY

const std::string alexaClientSDK::aplCapabilityCommon::test::MESSAGE_EVENT_KEY = "event"
static

JSON key for the event section of a message.

◆ MESSAGE_HEADER_KEY

const std::string alexaClientSDK::aplCapabilityCommon::test::MESSAGE_HEADER_KEY = "header"
static

JSON key for the header section of a message.

◆ MESSAGE_ID

const std::string alexaClientSDK::aplCapabilityCommon::test::MESSAGE_ID = "messageId"
static

The MessageId identifer.

◆ MESSAGE_ID_2

const std::string alexaClientSDK::aplCapabilityCommon::test::MESSAGE_ID_2 = "messageId2"
static

The MessageId identifer.

◆ MESSAGE_NAME_KEY

const std::string alexaClientSDK::aplCapabilityCommon::test::MESSAGE_NAME_KEY = "name"
static

JSON key for the name field of a message header.

◆ MESSAGE_NAMESPACE_KEY

const std::string alexaClientSDK::aplCapabilityCommon::test::MESSAGE_NAMESPACE_KEY = "namespace"
static

JSON key for the namespace field of a message header.

◆ MESSAGE_PAYLOAD_KEY

const std::string alexaClientSDK::aplCapabilityCommon::test::MESSAGE_PAYLOAD_KEY = "payload"
static

JSON key for the payload section of an message.

◆ metricRecorder

std::shared_ptr<avsCommon::utils::metrics::MetricRecorderInterface> alexaClientSDK::aplCapabilityCommon::test::metricRecorder
static

Metric recorder shared ptr.

◆ NAMESPACE

const std::string alexaClientSDK::aplCapabilityCommon::test::NAMESPACE = "Test.Presentation.APL"
static

The namespace registered for this capability agent.

◆ PRESENTATION_SESSION_ID

const char alexaClientSDK::aplCapabilityCommon::test::PRESENTATION_SESSION_ID[] = "id"
static

Identifier for the id in presentationSession.

◆ PROACTIVE_STATE_REQUEST_TOKEN

const unsigned int alexaClientSDK::aplCapabilityCommon::test::PROACTIVE_STATE_REQUEST_TOKEN = 0
static

A state request token for a proactive state request.

◆ SAMPLE_INDEX_DATA_SOURCE_FETCH_APL_REQUEST

const std::string alexaClientSDK::aplCapabilityCommon::test::SAMPLE_INDEX_DATA_SOURCE_FETCH_APL_REQUEST
static
Initial value:
=
R"({"correlationToken":"101","count":10.0,"listId":"vQdpOESlok","startIndex":1.0})"

Payload to be sent for ListDataSourceFetchRequest from APLCore.

◆ SAMPLE_INDEX_DATA_SOURCE_FETCH_REQUEST

const std::string alexaClientSDK::aplCapabilityCommon::test::SAMPLE_INDEX_DATA_SOURCE_FETCH_REQUEST
static
Initial value:
=
R"({"correlationToken":"101","count":10.0,"listId":"vQdpOESlok","startIndex":1.0,"presentationToken":"APL_TOKEN"})"

Payload to be sent for ListDataSourceFetchRequest.

◆ SAMPLE_TOKEN_DATA_SOURCE_FETCH_APL_REQUEST

const std::string alexaClientSDK::aplCapabilityCommon::test::SAMPLE_TOKEN_DATA_SOURCE_FETCH_APL_REQUEST
static
Initial value:
=
R"({"correlationToken":"101","listId":"vQdpOESlok","pageToken":"nextPage"})"

Payload to be sent for TokenDataSourceFetchRequest from APLCore.

◆ SAMPLE_TOKEN_DATA_SOURCE_FETCH_REQUEST

const std::string alexaClientSDK::aplCapabilityCommon::test::SAMPLE_TOKEN_DATA_SOURCE_FETCH_REQUEST
static
Initial value:
=
R"({"correlationToken":"101","listId":"vQdpOESlok","pageToken":"nextPage","presentationToken":"APL_TOKEN"})"

Payload to be sent for TokenDataSourceFetchRequest.

◆ SAMPLE_USER_EVENT_PAYLOAD

const std::string alexaClientSDK::aplCapabilityCommon::test::SAMPLE_USER_EVENT_PAYLOAD
static
Initial value:
=
R"({"presentationToken":"APL_TOKEN","arguments":{},"source":{},"components":{}})"

Payload to be sent for UserEvent.

◆ SEND_INDEX_LIST_DATA

const char* alexaClientSDK::aplCapabilityCommon::test::SEND_INDEX_LIST_DATA = "SendIndexListData"
static

The name for SendIndexListData directive.

◆ SEND_TOKEN_LIST_DATA

const char* alexaClientSDK::aplCapabilityCommon::test::SEND_TOKEN_LIST_DATA = "SendTokenListData"
static

The name for SendTokenListData directive.

◆ SETTINGS_CONFIG

const std::string alexaClientSDK::aplCapabilityCommon::test::SETTINGS_CONFIG
static
Initial value:
= R"({"TestPresentationAPLCapabilityAgent":{
"minStateReportIntervalMs": 250,
"stateReportCheckIntervalMs": 300
}})"

◆ SKILL_ID

const char alexaClientSDK::aplCapabilityCommon::test::SKILL_ID[] = "skillId"
static

Identifier for the skilld in presentationSession.

◆ STATE_REQUEST_TOKEN

const unsigned int alexaClientSDK::aplCapabilityCommon::test::STATE_REQUEST_TOKEN = 1
static

A visual state request token.

◆ TEST_METRIC_NAME

const std::string alexaClientSDK::aplCapabilityCommon::test::TEST_METRIC_NAME = "APLCATest"
static

Metric name for the test CA.

◆ TESTPRESENTATIONAPL_CONFIGURATION_ROOT_KEY

std::string alexaClientSDK::aplCapabilityCommon::test::TESTPRESENTATIONAPL_CONFIGURATION_ROOT_KEY = "TestPresentationAPLCapabilityAgent"
static

The key in our config file to find the root of APL CA configuration.

◆ TOKEN_LIST_DATA

const NamespaceAndName alexaClientSDK::aplCapabilityCommon::test::TOKEN_LIST_DATA {NAMESPACE, SEND_TOKEN_LIST_DATA}
static

The SendTokenListData directive signature.

◆ UNKNOWN_DIRECTIVE

const std::string alexaClientSDK::aplCapabilityCommon::test::UNKNOWN_DIRECTIVE = "Unknown"
static

An unknown directive signature.

◆ UPDATE_INDEX_LIST_DATA

const char* alexaClientSDK::aplCapabilityCommon::test::UPDATE_INDEX_LIST_DATA = "UpdateIndexListData"
static

The name for UpdateIndexListData directive.

◆ USER_EVENT_EVENT

const std::string alexaClientSDK::aplCapabilityCommon::test::USER_EVENT_EVENT = "UserEvent"
static

The name for UserEvent event.

◆ WINDOW_ID

const std::string alexaClientSDK::aplCapabilityCommon::test::WINDOW_ID = "WINDOW_ID"
static

Test window ID.

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0