AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::avsCommon::test::StateChangeManager Class Reference

Manages testing state changes. More...

Inheritance diagram for alexaClientSDK::avsCommon::test::StateChangeManager:
Inheritance graph
[legend]

Public Member Functions

void assertStateChange (std::shared_ptr< TestObserver > observer, DialogUXStateObserverInterface::DialogUXState expectedState, std::chrono::milliseconds timeout=DEFAULT_TIMEOUT)
 
void assertNoStateChange (std::shared_ptr< TestObserver > observer, std::chrono::milliseconds timeout=SHORT_TIMEOUT)
 

Detailed Description

Manages testing state changes.

Member Function Documentation

◆ assertNoStateChange()

void alexaClientSDK::avsCommon::test::StateChangeManager::assertNoStateChange ( std::shared_ptr< TestObserver observer,
std::chrono::milliseconds  timeout = SHORT_TIMEOUT 
)
inline

Checks that a state change does not occur by waiting for the timeout duration.

Parameters
observerThe UX state observer.
timeoutAn optional timeout parameter to wait for to make sure no state change has occurred.

◆ assertStateChange()

void alexaClientSDK::avsCommon::test::StateChangeManager::assertStateChange ( std::shared_ptr< TestObserver observer,
DialogUXStateObserverInterface::DialogUXState  expectedState,
std::chrono::milliseconds  timeout = DEFAULT_TIMEOUT 
)
inline

Checks that a state change occurred and that the ux state received is the same as the expected ux state.

Parameters
observerThe UX state observer.
expectedStateThe expected UX state.
timeoutAn optional timeout parameter to wait for a state change

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