![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Classes | |
| struct | EventData |
| class | PostConnectSynchronizeStateSenderTest |
Functions | |
| bool | parseEventJson (const std::string &eventJson, EventData *eventData) |
| bool | validateEvent (const std::string &eventJson) |
| TEST_F (PostConnectSynchronizeStateSenderTest, test_createWithNullContextManager) | |
| TEST_F (PostConnectSynchronizeStateSenderTest, test_createWithMetricRecorder) | |
| TEST_F (PostConnectSynchronizeStateSenderTest, test_getOperationPriority) | |
| TEST_F (PostConnectSynchronizeStateSenderTest, test_perfromOperationSendsSynchronizeStateEvent) | |
| TEST_F (PostConnectSynchronizeStateSenderTest, test_performOperationRetriesOnContextFailure) | |
| TEST_F (PostConnectSynchronizeStateSenderTest, test_testPerfromOperationRetriesOnUnsuccessfulResponse) | |
| TEST_F (PostConnectSynchronizeStateSenderTest, test_abortOperationWhenContextRequestInProgress) | |
| TEST_F (PostConnectSynchronizeStateSenderTest, test_abortOperationWhenSendMessageInProgress) | |
Variables | |
| static const std::string | TEST_CONTEXT_VALUE = "{}" |
| String indicating the device's context. More... | |
| static const std::string | EXPECTED_NAMESPACE = "System" |
| String indicating the SynchronizeState event's expected namespace. More... | |
| static const std::string | EXPECTED_NAME = "SynchronizeState" |
| String indicating the SynchronizeState event's expected name. More... | |
| static const std::string | EXPECTED_PAYLOAD = "{}" |
| String indicating the SynchronizeState event's expected payload. More... | |
| static const ContextRequestToken | MOCK_CONTEXT_REQUEST_TOKEN = 1 |
| Request token used to mock getContext return value. More... | |
| static const int | TEST_RETRY_COUNT = 3 |
| Number of retries used in tests. More... | |
| bool alexaClientSDK::synchronizeStateSender::test::parseEventJson | ( | const std::string & | eventJson, |
| EventData * | eventData | ||
| ) |
| alexaClientSDK::synchronizeStateSender::test::TEST_F | ( | PostConnectSynchronizeStateSenderTest | , |
| test_createWithNullContextManager | |||
| ) |
Test create with null ContextManager.
| alexaClientSDK::synchronizeStateSender::test::TEST_F | ( | PostConnectSynchronizeStateSenderTest | , |
| test_createWithMetricRecorder | |||
| ) |
Test create with MetricRecorder.
| alexaClientSDK::synchronizeStateSender::test::TEST_F | ( | PostConnectSynchronizeStateSenderTest | , |
| test_getOperationPriority | |||
| ) |
Test GetPriority method for PostConnectSynchronizeStateSender.
| alexaClientSDK::synchronizeStateSender::test::TEST_F | ( | PostConnectSynchronizeStateSenderTest | , |
| test_perfromOperationSendsSynchronizeStateEvent | |||
| ) |
Test happy case for performOperation method. SynchronizeState event is sent and performOperation() returns true.
| alexaClientSDK::synchronizeStateSender::test::TEST_F | ( | PostConnectSynchronizeStateSenderTest | , |
| test_performOperationRetriesOnContextFailure | |||
| ) |
Test performOperation() method retries sending SynchronizeState event on context fetch failure.
abort operation after 3 retries.
Synchronize State event not sent.
Abort after 3 retries.
| alexaClientSDK::synchronizeStateSender::test::TEST_F | ( | PostConnectSynchronizeStateSenderTest | , |
| test_testPerfromOperationRetriesOnUnsuccessfulResponse | |||
| ) |
Test performOperation() method retries sending SynchronizeState event on unsuccessful response to SynchronizeState event.
abort operation after 3 retries.
Abort after 3 retries.
| alexaClientSDK::synchronizeStateSender::test::TEST_F | ( | PostConnectSynchronizeStateSenderTest | , |
| test_abortOperationWhenContextRequestInProgress | |||
| ) |
Test abortOperation() triggers performOperation() to return when context fetch is in progress.
Wait for 500 ms and spin a thread to abort the post connect operation.
| alexaClientSDK::synchronizeStateSender::test::TEST_F | ( | PostConnectSynchronizeStateSenderTest | , |
| test_abortOperationWhenSendMessageInProgress | |||
| ) |
Test abortOperation() triggers performOperation() to return when SynchronizeState event send is in progress.
Wait for 500 ms and spin a thread to abort the post connect operation.
| bool alexaClientSDK::synchronizeStateSender::test::validateEvent | ( | const std::string & | eventJson | ) |
|
static |
String indicating the SynchronizeState event's expected name.
|
static |
String indicating the SynchronizeState event's expected namespace.
|
static |
String indicating the SynchronizeState event's expected payload.
|
static |
Request token used to mock getContext return value.
|
static |
String indicating the device's context.
|
static |
Number of retries used in tests.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0