◆ AudioActivityTrackerTest()
alexaClientSDK::afml::test::AudioActivityTrackerTest::AudioActivityTrackerTest |
( |
| ) |
|
◆ provideUpdate()
void alexaClientSDK::afml::test::AudioActivityTrackerTest::provideUpdate |
( |
const std::vector< Channel::State > & |
channels | ) |
|
A helper function to verify the context provided by the AudioActivityTracker matches the set the channels notified via notifyOfActivityUpdates().
- Parameters
-
◆ SetUp()
void alexaClientSDK::afml::test::AudioActivityTrackerTest::SetUp |
( |
| ) |
|
|
overridevirtual |
◆ TearDown()
void alexaClientSDK::afml::test::AudioActivityTrackerTest::TearDown |
( |
| ) |
|
|
overridevirtual |
◆ verifyState()
void alexaClientSDK::afml::test::AudioActivityTrackerTest::verifyState |
( |
const std::string & |
providedState, |
|
|
const std::vector< Channel::State > & |
channels |
|
) |
| |
Verify that the provided state matches the expected state
- Parameters
-
jsonState | The state to verify |
channels | The set of channels that's passed into the AudioActivityTracker |
◆ wakeOnSetState()
SetStateResult alexaClientSDK::afml::test::AudioActivityTrackerTest::wakeOnSetState |
( |
| ) |
|
This is invoked in response to a setState
call.
- Returns
SUCCESS
.
◆ m_audioActivityTracker
std::shared_ptr<AudioActivityTracker> alexaClientSDK::afml::test::AudioActivityTrackerTest::m_audioActivityTracker |
◆ m_contentChannel
std::shared_ptr<Channel> alexaClientSDK::afml::test::AudioActivityTrackerTest::m_contentChannel |
A contentChannel used for testing.
◆ m_dialogChannel
std::shared_ptr<Channel> alexaClientSDK::afml::test::AudioActivityTrackerTest::m_dialogChannel |
A dialogChannel used for testing.
◆ m_mockContextManager
std::shared_ptr<MockContextManager> alexaClientSDK::afml::test::AudioActivityTrackerTest::m_mockContextManager |
ContextManager
to provide state and update state.
◆ m_wakeSetStateFuture
std::future<void> alexaClientSDK::afml::test::AudioActivityTrackerTest::m_wakeSetStateFuture |
Future to notify when setState
is called.
◆ m_wakeSetStatePromise
std::promise<void> alexaClientSDK::afml::test::AudioActivityTrackerTest::m_wakeSetStatePromise |
Promise to be fulfilled when setState
is called.
The documentation for this class was generated from the following file:
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0