AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Classes | |
class | HTTP2TransportTest |
Test harness for HTTP2Transport class. More... | |
class | MessageRequestHandlerTest |
class | MockExchangeHandlerContext |
class | MockMessageRouterObserver |
class | MockPostConnectObserver |
class | MockPostConnectOperation |
class | MockPostConnectOperationProvider |
class | MockTransport |
class | MockTransportObserver |
class | PostConnectSequencerFactoryTest |
class | PostConnectSequencerTest |
Functions | |
TEST_F (HTTP2TransportTest, testSlow_emptyAuthToken) | |
TEST_F (HTTP2TransportTest, testSlow_waitAuthDelegateInterface) | |
TEST_F (HTTP2TransportTest, test_bearerTokenInRequest) | |
TEST_F (HTTP2TransportTest, test_triggerPostConnectObject) | |
TEST_F (HTTP2TransportTest, test_connectionStatusOnPostConnect) | |
TEST_F (HTTP2TransportTest, testSlow_retryOnDownchannelConnectionFailure) | |
TEST_F (HTTP2TransportTest, test_messageRequestContent) | |
TEST_F (HTTP2TransportTest, test_messageRequestWithAttachment) | |
TEST_F (HTTP2TransportTest, test_pauseSendWhenSDSEmpty) | |
TEST_F (HTTP2TransportTest, testSlow_messageRequestsQueuing) | |
TEST_F (HTTP2TransportTest, messageRequests_SequentialSend) | |
TEST_F (HTTP2TransportTest, messageRequests_concurrentSend) | |
TEST_F (HTTP2TransportTest, test_onSendCompletedNotification) | |
TEST_F (HTTP2TransportTest, test_onExceptionReceivedNon200Content) | |
TEST_F (HTTP2TransportTest, test_messageConsumerReceiveDirective) | |
TEST_F (HTTP2TransportTest, test_onServerSideDisconnectOnDownchannelClosure) | |
TEST_F (HTTP2TransportTest, test_messageRequestTimeoutPingRequest) | |
TEST_F (HTTP2TransportTest, testTimer_networkInactivityPingRequest) | |
TEST_F (HTTP2TransportTest, testSlow_tearDownPingTimeout) | |
TEST_F (HTTP2TransportTest, testSlow_tearDownPingFailure) | |
TEST_F (HTTP2TransportTest, testSlow_avsStreamsLimit) | |
TEST_F (HTTP2TransportTest, test_onPostConnectFailureInitiatesShutdownAndNotifiesObservers) | |
TEST_F (HTTP2TransportTest, test_eventTracerIsNotifiedForMessagesSent) | |
TEST_F (HTTP2TransportTest, test_eventTracerIsNotNotifiedForFailedMessages) | |
TEST_F (HTTP2TransportTest, test_eventTracerNotifiedForEmptyMessageContent) | |
TEST_F (HTTP2TransportTest, test_eventTracerIsNotifiedForMultipleMessages) | |
TEST_F (MessageRequestHandlerTest, test_headers) | |
void | initializeMockTransport (MockTransport *transport) |
void | connectMockTransport (MockTransport *transport) |
void | disconnectMockTransport (MockTransport *transport) |
TEST_F (PostConnectSequencerFactoryTest, test_createWithNullProviders) | |
TEST_F (PostConnectSequencerFactoryTest, test_createPostConnectCallsProviders) | |
TEST_F (PostConnectSequencerFactoryTest, test_createPostConnectWhenProviderReturnsNull) | |
TEST_F (PostConnectSequencerTest, test_postConnectOperationsSet) | |
TEST_F (PostConnectSequencerTest, test_postConnectOperationsSetRemovesDuplicates) | |
TEST_F (PostConnectSequencerTest, test_happyPathAndPostConnectObserverGetsNotified) | |
TEST_F (PostConnectSequencerTest, test_doPostConnectReturnFalseOnSecondCall) | |
TEST_F (PostConnectSequencerTest, test_subsequentOperationsDontExecute) | |
TEST_F (PostConnectSequencerTest, test_onDisconnectStopsExecution) | |
Variables | |
static const std::string | TEST_AVS_GATEWAY_STRING = "http://avs-alexa-na.amazon.com" |
Test AVS Gateway. More... | |
static const std::string | AVS_DOWNCHANNEL_URL_PATH_EXTENSION = "/v20160207/directives" |
Expected Downchannel URL sent on requests. More... | |
static const std::string | AVS_PING_URL_PATH_EXTENSION = "/ping" |
Expected ping URL sent on requests. More... | |
static const std::string | FULL_DOWNCHANNEL_URL = TEST_AVS_GATEWAY_STRING + AVS_DOWNCHANNEL_URL_PATH_EXTENSION |
Expected Full Downchannel URL sent on requests. More... | |
static const std::string | FULL_PING_URL = TEST_AVS_GATEWAY_STRING + AVS_PING_URL_PATH_EXTENSION |
Expected Full ping URL sent on requests. More... | |
static const auto | ONE_HUNDRED_MILLISECOND_DELAY = std::chrono::milliseconds(100) |
A 100 millisecond delay used in tests. More... | |
static const auto | TEN_MILLISECOND_DELAY = std::chrono::milliseconds(10) |
A 10 millisecond delay used in tests. More... | |
static const auto | SHORT_DELAY = std::chrono::seconds(1) |
A short delay used in tests. More... | |
static const auto | RESPONSE_TIMEOUT = std::chrono::seconds(5) |
Typical Timeout used in waiting for responses. More... | |
static const auto | LONG_RESPONSE_TIMEOUT = std::chrono::seconds(10) |
A longer timeout used in waiting for responses. More... | |
static const std::string | HTTP_AUTHORIZATION_HEADER_BEARER = "Authorization: Bearer" |
HTTP Authorization header. More... | |
static const std::string | CBL_AUTHORIZATION_TOKEN = "AUTH_TOKEN" |
Authorization Token. More... | |
static const std::string | TEST_ATTACHMENT_ID_STRING_ONE = "testAttachmentId_1" |
A test AttachmentId string. More... | |
static const std::string | TEST_MESSAGE = "aaabbccc" |
static const std::string | TEST_ATTACHMENT_MESSAGE = "MY_A_T_T_ACHMENT" |
static const std::string | TEST_ATTACHMENT_FIELD = "ATTACHMENT" |
static const long | NO_CALL = -2 |
static const std::string | NON_MIME_PAYLOAD = "A_NON_MIME_PAYLOAD" |
static const std::string | DIRECTIVE1 |
static const std::string | DIRECTIVE2 |
static const std::string | MIME_BOUNDARY = "thisisaboundary" |
static const std::string | MIME_BODY_DIRECTIVE1 |
static const std::string | MIME_BODY_DIRECTIVE2 |
static const std::string | HTTP_BOUNDARY_HEADER |
static const unsigned | MAX_PING_STREAMS = 1 |
static const unsigned | MAX_DOWNCHANNEL_STREAMS = 1 |
static const unsigned | MAX_AVS_STREAMS = 10 |
static const unsigned | MAX_POST_STREAMS = MAX_AVS_STREAMS - MAX_DOWNCHANNEL_STREAMS - MAX_PING_STREAMS |
static const std::string | AUTHORIZATION_HEADER = "Authorization: Bearer " |
static const std::string | AUTH_TOKEN = "authToken" |
static const auto | SHORT_DELAY = std::chrono::seconds(1) |
A short delay used in tests. More... | |
void alexaClientSDK::acl::transport::test::connectMockTransport | ( | MockTransport * | transport | ) |
Puts the mock transport into a connected state.
void alexaClientSDK::acl::transport::test::disconnectMockTransport | ( | MockTransport * | transport | ) |
Puts the mock transport into a disconnected state.
void alexaClientSDK::acl::transport::test::initializeMockTransport | ( | MockTransport * | transport | ) |
Puts the mock transport into a ready to connect state.
alexaClientSDK::acl::transport::test::TEST_F | ( | PostConnectSequencerFactoryTest | , |
test_createWithNullProviders | |||
) |
Test if create returns nullptr when one of the providers is a nullptr.
alexaClientSDK::acl::transport::test::TEST_F | ( | PostConnectSequencerFactoryTest | , |
test_createPostConnectCallsProviders | |||
) |
Test if the createPostConnectOperation() is called on all the providers when createPostConnect() is called.
alexaClientSDK::acl::transport::test::TEST_F | ( | PostConnectSequencerTest | , |
test_postConnectOperationsSet | |||
) |
Check if the PostConnectOperationsSet sequences operations based on priority.
alexaClientSDK::acl::transport::test::TEST_F | ( | MessageRequestHandlerTest | , |
test_headers | |||
) |
Test if extra headers are preserved in message request handler
alexaClientSDK::acl::transport::test::TEST_F | ( | PostConnectSequencerFactoryTest | , |
test_createPostConnectWhenProviderReturnsNull | |||
) |
Test createPostConnect() does not fail if one of the providers returns nullptr.
alexaClientSDK::acl::transport::test::TEST_F | ( | PostConnectSequencerTest | , |
test_postConnectOperationsSetRemovesDuplicates | |||
) |
Check if the PostConnectOperationsSet keeps only one instance with the same priority.
alexaClientSDK::acl::transport::test::TEST_F | ( | PostConnectSequencerTest | , |
test_happyPathAndPostConnectObserverGetsNotified | |||
) |
Check if all PostConnectOperations are executed in sequence and the PostConnectObserver will be notified.
alexaClientSDK::acl::transport::test::TEST_F | ( | PostConnectSequencerTest | , |
test_doPostConnectReturnFalseOnSecondCall | |||
) |
Check if doPostConnect() gets called twice in a row, the method returns false..
alexaClientSDK::acl::transport::test::TEST_F | ( | PostConnectSequencerTest | , |
test_subsequentOperationsDontExecute | |||
) |
Check if PostConnectSequencer stops execution of PostConnectOperations if the performOperation() fails on one of them.
It is possible that the destructor gets called first which initiates an abortOperation before the mainLoopThread exits.
alexaClientSDK::acl::transport::test::TEST_F | ( | PostConnectSequencerTest | , |
test_onDisconnectStopsExecution | |||
) |
Check if onDisconnect() stops execution of PostConnectOperations.
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
testSlow_emptyAuthToken | |||
) |
Test non-authorization on empty auth token.
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
testSlow_waitAuthDelegateInterface | |||
) |
Test waiting for AuthDelegateInterface.
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
test_bearerTokenInRequest | |||
) |
Test verifying the proper inclusion of bearer token in requests.
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
test_triggerPostConnectObject | |||
) |
Test creation and triggering of post-connect object.
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
test_connectionStatusOnPostConnect | |||
) |
Test delay of connection status until post-connect object created / notifies success.
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
testSlow_retryOnDownchannelConnectionFailure | |||
) |
Test retry upon failed downchannel connection.
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
test_messageRequestContent | |||
) |
Test sending of MessageRequest content.
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
test_messageRequestWithAttachment | |||
) |
Test sending of MessageRequest with attachment data.
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
test_pauseSendWhenSDSEmpty | |||
) |
Test pause of sending message when attachment buffer (SDS) empty but not closed.
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
testSlow_messageRequestsQueuing | |||
) |
Test queuing MessageRequests until a response code has been received for any outstanding MessageRequest
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
messageRequests_SequentialSend | |||
) |
Test MessageRequests are sent sequentially.
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
messageRequests_concurrentSend | |||
) |
Test concurrent send of non sequential MessageRequests.
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
test_onSendCompletedNotification | |||
) |
Test notification of onSendCompleted (check mapping of all cases and their mapping to MessageRequestObserverInterface::Status).
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
test_onExceptionReceivedNon200Content | |||
) |
Test onExceptionReceived() notification for non 200 content.
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
test_messageConsumerReceiveDirective | |||
) |
Test MessageConsumerInterface receipt of directives on Downchannel and Event streams.
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
test_onServerSideDisconnectOnDownchannelClosure | |||
) |
Test broadcast onServerSideDisconnect() upon closure of successfully opened downchannel.
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
test_messageRequestTimeoutPingRequest | |||
) |
Test detection of MessageRequest timeout and trigger of ping request.
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
testTimer_networkInactivityPingRequest | |||
) |
Test detection of network inactivity and trigger of ping request and continued ping for continued inactivity.
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
testSlow_tearDownPingTimeout | |||
) |
Test connection tear down for ping timeout.
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
testSlow_tearDownPingFailure | |||
) |
Test connection tear down for ping failure.
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
testSlow_avsStreamsLimit | |||
) |
Test limiting use of AVS streams to 10.
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
test_onPostConnectFailureInitiatesShutdownAndNotifiesObservers | |||
) |
Test if the HTTP2Transport receives the onPostConnectFailure() event, it notifies observers with onDisconnected() and ChangeReason as UNRECOVERABLE_ERROR
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
test_eventTracerIsNotifiedForMessagesSent | |||
) |
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
test_eventTracerIsNotNotifiedForFailedMessages | |||
) |
Test the event tracer does not get notified if message fails to send.
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
test_eventTracerNotifiedForEmptyMessageContent | |||
) |
Test that the event tracer does get notified when the contents of the sent message is empty.
alexaClientSDK::acl::transport::test::TEST_F | ( | HTTP2TransportTest | , |
test_eventTracerIsNotifiedForMultipleMessages | |||
) |
Test if the event tracer gets notified for multiple message requests.
|
static |
|
static |
|
static |
Expected Downchannel URL sent on requests.
|
static |
Expected ping URL sent on requests.
|
static |
Authorization Token.
|
static |
|
static |
|
static |
Expected Full Downchannel URL sent on requests.
|
static |
Expected Full ping URL sent on requests.
|
static |
HTTP Authorization header.
|
static |
|
static |
A longer timeout used in waiting for responses.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
A 100 millisecond delay used in tests.
|
static |
Typical Timeout used in waiting for responses.
|
static |
A short delay used in tests.
|
static |
A short delay used in tests.
|
static |
A 10 millisecond delay used in tests.
|
static |
|
static |
A test AttachmentId string.
|
static |
|
static |
Test AVS Gateway.
|
static |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0