![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <chrono>#include <future>#include <memory>#include <thread>#include <gmock/gmock.h>#include <gtest/gtest.h>#include <rapidjson/document.h>#include <rapidjson/error/en.h>#include <rapidjson/stringbuffer.h>#include <rapidjson/writer.h>#include <AVSCommon/SDKInterfaces/MockContextManager.h>#include <AVSCommon/Utils/JSON/JSONUtils.h>#include <AVSCommon/Utils/String/StringUtils.h>#include "AFML/AudioActivityTracker.h"Classes | |
| class | alexaClientSDK::afml::test::MockChannelObserver |
| MockChannelObserver for tests. More... | |
| class | alexaClientSDK::afml::test::AudioActivityTrackerTest |
Namespaces | |
| alexaClientSDK | |
| Whether or not curl logs should be emitted. | |
| alexaClientSDK::afml | |
| alexaClientSDK::afml::test | |
Functions | |
| static std::chrono::milliseconds | alexaClientSDK::afml::test::MY_WAIT_TIMEOUT (1000) |
| Plenty of time for a test to complete. More... | |
| static const std::string | alexaClientSDK::afml::test::NAMESPACE_AUDIO_ACTIVITY_TRACKER ("AudioActivityTracker") |
| Namespace for AudioActivityTracke. More... | |
| alexaClientSDK::afml::test::TEST_F (AudioActivityTrackerTest, test_noActivityUpdate) | |
| Test if there's no activity updates, AudioActivityTracker will return an empty context. More... | |
| alexaClientSDK::afml::test::TEST_F (AudioActivityTrackerTest, test_emptyActivityUpdate) | |
| Test if there's an empty set of activity updates, AudioActivityTracker will return an empty context. More... | |
| alexaClientSDK::afml::test::TEST_F (AudioActivityTrackerTest, test_oneActiveChannel) | |
| Test if there's an activityUpdate for one active channel, context will be reported correctly. More... | |
| alexaClientSDK::afml::test::TEST_F (AudioActivityTrackerTest, test_oneActiveChannelWithAIPAsInterface) | |
| alexaClientSDK::afml::test::TEST_F (AudioActivityTrackerTest, test_oneActiveChannelWithDefaultAndAIPAsInterfaces) | |
| alexaClientSDK::afml::test::TEST_F (AudioActivityTrackerTest, test_twoActiveChannels) | |
| Test if there's an activityUpdate for two active channels, context will be reported correctly. More... | |
| alexaClientSDK::afml::test::TEST_F (AudioActivityTrackerTest, test_oneActiveOneIdleChannels) | |
| Test if there's an activityUpdate for one active and one idle channels, context will be reported correctly. More... | |
Variables | |
| static const NamespaceAndName | alexaClientSDK::afml::test::NAMESPACE_AND_NAME_STATE {NAMESPACE_AUDIO_ACTIVITY_TRACKER, "ActivityState"} |
The NamespaceAndName to send to the ContextManager. More... | |
| static const unsigned int | alexaClientSDK::afml::test::PROVIDE_STATE_TOKEN_TEST {1} |
| Provide State Token for testing. More... | |
| static const std::string | alexaClientSDK::afml::test::DIALOG_CHANNEL_NAME {"Dialog"} |
| The default Dialog Channel name. More... | |
| static unsigned int | alexaClientSDK::afml::test::DIALOG_CHANNEL_PRIORITY {100} |
| The default dialog Channel priority. More... | |
| static const std::string | alexaClientSDK::afml::test::DIALOG_INTERFACE_NAME {"SpeechSynthesizer"} |
| The default Dialog interface name. More... | |
| static const std::string | alexaClientSDK::afml::test::AIP_INTERFACE_NAME {"SpeechRecognizer"} |
| The SpeechRecognizer interface name. More... | |
| static const std::string | alexaClientSDK::afml::test::CONTENT_CHANNEL_NAME {"Content"} |
| The default Content Channel name. More... | |
| static const std::string | alexaClientSDK::afml::test::CONTENT_INTERFACE_NAME {"AudioPlayer"} |
| The default Content interface name. More... | |
| static unsigned int | alexaClientSDK::afml::test::CONTENT_CHANNEL_PRIORITY {300} |
| The default Content Channel priority. More... | |
| static const std::chrono::milliseconds | alexaClientSDK::afml::test::SHORT_TIMEOUT_MS = std::chrono::milliseconds(5) |
| Timeout to sleep before asking for provideState(). More... | |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0