![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Classes | |
| class | PlaybackControllerTest |
Test harness for StateSynchronizer class. More... | |
| class | PlaybackRouterTest |
Functions | |
| static std::string | checkMessageRequest (std::shared_ptr< MessageRequest > messageRequest, const std::string &expected_payload_name, const std::string &expected_payload_action) |
| TEST_F (PlaybackControllerTest, test_createSuccessfully) | |
| TEST_F (PlaybackControllerTest, test_createWithError) | |
| TEST_F (PlaybackControllerTest, test_playButtonPressed) | |
| TEST_F (PlaybackControllerTest, test_pauseButtonPressed) | |
| TEST_F (PlaybackControllerTest, test_nextButtonPressed) | |
| TEST_F (PlaybackControllerTest, test_previousButtonPressed) | |
| TEST_F (PlaybackControllerTest, test_skipForwardButtonPressed) | |
| TEST_F (PlaybackControllerTest, test_skipBackwardButtonPressed) | |
| TEST_F (PlaybackControllerTest, test_shuffleTogglePressed) | |
| TEST_F (PlaybackControllerTest, test_loopTogglePressed) | |
| TEST_F (PlaybackControllerTest, test_repeatTogglePressed) | |
| TEST_F (PlaybackControllerTest, test_thumbsUpTogglePressed) | |
| TEST_F (PlaybackControllerTest, test_thumbsDownTogglePressed) | |
| TEST_F (PlaybackControllerTest, test_getContextFailure) | |
| TEST_F (PlaybackControllerTest, test_sendMessageFailure) | |
| TEST_F (PlaybackControllerTest, test_sendMessageException) | |
| TEST_F (PlaybackRouterTest, test_defaultHandler) | |
| TEST_F (PlaybackRouterTest, test_secondHandler) | |
| TEST_F (PlaybackRouterTest, test_switchToDefaultHandler) | |
Variables | |
| static const std::string | PLAYBACK_CONTROLLER_NAMESPACE = "PlaybackController" |
| String to identify the AVS namespace of the event we send. More... | |
| static const std::string | PLAYBACK_PLAY_NAME = "PlayCommandIssued" |
| String to identify the AVS name of the event on the 'Play' button pressed. More... | |
| static const std::string | PLAYBACK_PAUSE_NAME = "PauseCommandIssued" |
| String to identify the AVS name of the event on the 'Pause' button pressed. More... | |
| static const std::string | PLAYBACK_NEXT_NAME = "NextCommandIssued" |
| String to identify the AVS name of the event on the 'Next' button pressed. More... | |
| static const std::string | PLAYBACK_PREVIOUS_NAME = "PreviousCommandIssued" |
| String to identify the AVS name of the event on the 'Previous' button pressed. More... | |
| static const std::string | PLAYBACK_BUTTON_NAME = "ButtonCommandIssued" |
| String to identify the AVS name of the event on a PlaybackController button pressed. More... | |
| static const std::string | PLAYBACK_SKIPFORWARD_NAME = "SKIPFORWARD" |
| String to identify the AVS name inside the event payload on the 'SKIPFORWARD' button pressed. More... | |
| static const std::string | PLAYBACK_SKIPBACKWARD_NAME = "SKIPBACKWARD" |
| String to identify the AVS name inside the event payload on the 'SKIPBACKWARD' button pressed. More... | |
| static const std::string | PLAYBACK_TOGGLE_NAME = "ToggleCommandIssued" |
| String to identify the AVS name of the event on a PlaybackController toggle button toggled. More... | |
| static const std::string | PLAYBACK_SHUFFLE_NAME = "SHUFFLE" |
| String to identify the AVS name inside the event payload on the 'SHUFFLE' button toggled. More... | |
| static const std::string | PLAYBACK_LOOP_NAME = "LOOP" |
| String to identify the AVS name inside the event payload on the 'LOOP' button toggled. More... | |
| static const std::string | PLAYBACK_REPEAT_NAME = "REPEAT" |
| String to identify the AVS name inside the event payload on the 'REPEAT' button toggled. More... | |
| static const std::string | PLAYBACK_THUMBSUP_NAME = "THUMBSUP" |
| String to identify the AVS name inside the event payload on the 'THUMBSUP' button toggled. More... | |
| static const std::string | PLAYBACK_THUMBSDOWN_NAME = "THUMBSDOWN" |
| String to identify the AVS name inside the event payload on the 'THUMBSDOWN' button toggled. More... | |
| static const std::string | PLAYBACK_SELECTED_NAME = "SELECT" |
| String to identify the AVS name for 'SELECT' action on a toggle button. More... | |
| static const std::string | PLAYBACK_DESELECTED_NAME = "DESELECT" |
| String to identify the AVS name for 'DESELECT' action on a toggle button. More... | |
| static const std::string | TEST_EXCEPTION_TEXT = "Exception test" |
| String to test for MessageRequest exceptionReceived() More... | |
| static const std::chrono::milliseconds | TEST_RESULT_WAIT_PERIOD {100} |
| A short period of time to wait for the m_contextTrigger or m_messageTrigger. More... | |
| static const ContextRequestToken | CONTEXT_REQUEST_TOKEN {1} |
| static const std::string | MOCK_CONTEXT |
| A mock context returned by MockContextManager. More... | |
|
static |
Check if message request has errors.
| messageRequest | The message requests to be checked. |
| alexaClientSDK::capabilityAgents::playbackController::test::TEST_F | ( | PlaybackRouterTest | , |
| test_defaultHandler | |||
| ) |
Test default handler is called.
| alexaClientSDK::capabilityAgents::playbackController::test::TEST_F | ( | PlaybackRouterTest | , |
| test_secondHandler | |||
| ) |
Test 2nd handler is called after registration.
| alexaClientSDK::capabilityAgents::playbackController::test::TEST_F | ( | PlaybackRouterTest | , |
| test_switchToDefaultHandler | |||
| ) |
Test default handler is called again after switchToDefaultHandler has been called.
| alexaClientSDK::capabilityAgents::playbackController::test::TEST_F | ( | PlaybackControllerTest | , |
| test_createSuccessfully | |||
| ) |
This case tests if StateSynchronizer basic create function works properly
| alexaClientSDK::capabilityAgents::playbackController::test::TEST_F | ( | PlaybackControllerTest | , |
| test_createWithError | |||
| ) |
This case tests if possible nullptr parameters passed to StateSynchronizer::create are handled properly.
| alexaClientSDK::capabilityAgents::playbackController::test::TEST_F | ( | PlaybackControllerTest | , |
| test_playButtonPressed | |||
| ) |
This case tests if buttonPressed will send the correct PlaybackButton::PLAY event message.
| alexaClientSDK::capabilityAgents::playbackController::test::TEST_F | ( | PlaybackControllerTest | , |
| test_pauseButtonPressed | |||
| ) |
This case tests if buttonPressed will send the correct PlaybackButton::PAUSE event message.
| alexaClientSDK::capabilityAgents::playbackController::test::TEST_F | ( | PlaybackControllerTest | , |
| test_nextButtonPressed | |||
| ) |
This case tests if buttonPressed will send the correct PlaybackButton::NEXT event message.
| alexaClientSDK::capabilityAgents::playbackController::test::TEST_F | ( | PlaybackControllerTest | , |
| test_previousButtonPressed | |||
| ) |
This case tests if buttonPressed will send the correct PlaybackButton::PREVIOUS event message.
| alexaClientSDK::capabilityAgents::playbackController::test::TEST_F | ( | PlaybackControllerTest | , |
| test_skipForwardButtonPressed | |||
| ) |
This case tests if buttonPressed will send the correct PlaybackButton::SKIP_FORWARD event message.
| alexaClientSDK::capabilityAgents::playbackController::test::TEST_F | ( | PlaybackControllerTest | , |
| test_skipBackwardButtonPressed | |||
| ) |
This case tests if buttonPressed will send the correct PlaybackButton::SKIP_BACKWARD event message.
| alexaClientSDK::capabilityAgents::playbackController::test::TEST_F | ( | PlaybackControllerTest | , |
| test_shuffleTogglePressed | |||
| ) |
This case tests if togglePressed will send the correct PlaybackToggle::SHUFFLE event message.
| alexaClientSDK::capabilityAgents::playbackController::test::TEST_F | ( | PlaybackControllerTest | , |
| test_loopTogglePressed | |||
| ) |
This case tests if togglePressed will send the correct PlaybackToggle::LOOP event message.
| alexaClientSDK::capabilityAgents::playbackController::test::TEST_F | ( | PlaybackControllerTest | , |
| test_repeatTogglePressed | |||
| ) |
This case tests if togglePressed will send the correct PlaybackToggle::REPEAT event message.
| alexaClientSDK::capabilityAgents::playbackController::test::TEST_F | ( | PlaybackControllerTest | , |
| test_thumbsUpTogglePressed | |||
| ) |
This case tests if togglePressed will send the correct PlaybackToggle::THUMBS_UP event message.
| alexaClientSDK::capabilityAgents::playbackController::test::TEST_F | ( | PlaybackControllerTest | , |
| test_thumbsDownTogglePressed | |||
| ) |
This case tests if togglePressed will send the correct PlaybackToggle::THUMBS_DOWN event message.
| alexaClientSDK::capabilityAgents::playbackController::test::TEST_F | ( | PlaybackControllerTest | , |
| test_getContextFailure | |||
| ) |
This case tests if getContext() returns failure, the button on the top of the queue will be dropped and getContext will be called for the next button on the queue.
| alexaClientSDK::capabilityAgents::playbackController::test::TEST_F | ( | PlaybackControllerTest | , |
| test_sendMessageFailure | |||
| ) |
This case tests if sendMessage() returns failure, an error log should be logged with the button pressed and reason for failure.
| alexaClientSDK::capabilityAgents::playbackController::test::TEST_F | ( | PlaybackControllerTest | , |
| test_sendMessageException | |||
| ) |
This case tests if exceptionReceived() is received, an error log should be logged with with the exception description.
|
static |
|
static |
A mock context returned by MockContextManager.
|
static |
String to identify the AVS name of the event on a PlaybackController button pressed.
|
static |
String to identify the AVS namespace of the event we send.
|
static |
String to identify the AVS name for 'DESELECT' action on a toggle button.
|
static |
String to identify the AVS name inside the event payload on the 'LOOP' button toggled.
|
static |
String to identify the AVS name of the event on the 'Next' button pressed.
|
static |
String to identify the AVS name of the event on the 'Pause' button pressed.
|
static |
String to identify the AVS name of the event on the 'Play' button pressed.
|
static |
String to identify the AVS name of the event on the 'Previous' button pressed.
|
static |
String to identify the AVS name inside the event payload on the 'REPEAT' button toggled.
|
static |
String to identify the AVS name for 'SELECT' action on a toggle button.
|
static |
String to identify the AVS name inside the event payload on the 'SHUFFLE' button toggled.
|
static |
String to identify the AVS name inside the event payload on the 'SKIPBACKWARD' button pressed.
|
static |
String to identify the AVS name inside the event payload on the 'SKIPFORWARD' button pressed.
|
static |
String to identify the AVS name inside the event payload on the 'THUMBSDOWN' button toggled.
|
static |
String to identify the AVS name inside the event payload on the 'THUMBSUP' button toggled.
|
static |
String to identify the AVS name of the event on a PlaybackController toggle button toggled.
|
static |
String to test for MessageRequest exceptionReceived()
|
static |
A short period of time to wait for the m_contextTrigger or m_messageTrigger.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0