Test harness for VisualActivityTrackerTest
class.
More...
◆ VisualActivityTrackerTest()
alexaClientSDK::afml::test::VisualActivityTrackerTest::VisualActivityTrackerTest |
( |
| ) |
|
A constructor which initializes the promises and futures needed for the test class.
◆ provideUpdate()
void alexaClientSDK::afml::test::VisualActivityTrackerTest::provideUpdate |
( |
const std::vector< Channel::State > & |
channels | ) |
|
A helper function to verify the context provided by the VisualActivityTracker matches the set the channels notified via notifyOfActivityUpdates().
- Parameters
-
◆ SetUp()
void alexaClientSDK::afml::test::VisualActivityTrackerTest::SetUp |
( |
| ) |
|
|
overridevirtual |
Set up the test harness for running a test.
Reimplemented from testing::Test.
◆ TearDown()
void alexaClientSDK::afml::test::VisualActivityTrackerTest::TearDown |
( |
| ) |
|
|
overridevirtual |
Clean up the test harness after running a test.
Reimplemented from testing::Test.
◆ verifyState()
void alexaClientSDK::afml::test::VisualActivityTrackerTest::verifyState |
( |
const std::string & |
providedState, |
|
|
const std::vector< Channel::State > & |
channels |
|
) |
| |
Verify that the provided state matches the expected state
- Parameters
-
◆ wakeOnSetState()
SetStateResult alexaClientSDK::afml::test::VisualActivityTrackerTest::wakeOnSetState |
( |
| ) |
|
This is invoked in response to a setState
call.
- Returns
SUCCESS
.
◆ m_mockContextManager
std::shared_ptr<MockContextManager> alexaClientSDK::afml::test::VisualActivityTrackerTest::m_mockContextManager |
ContextManager
to provide state and update state.
◆ m_VisualActivityTracker
std::shared_ptr<VisualActivityTracker> alexaClientSDK::afml::test::VisualActivityTrackerTest::m_VisualActivityTracker |
◆ m_visualChannel
std::shared_ptr<Channel> alexaClientSDK::afml::test::VisualActivityTrackerTest::m_visualChannel |
A visualChannel used for testing.
◆ m_wakeSetStateFuture
std::future<void> alexaClientSDK::afml::test::VisualActivityTrackerTest::m_wakeSetStateFuture |
Future to notify when setState
is called.
◆ m_wakeSetStatePromise
std::promise<void> alexaClientSDK::afml::test::VisualActivityTrackerTest::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