AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Typedefs | Functions | Variables
alexaClientSDK::afml::test Namespace Reference

Classes

class  AudioActivityTrackerTest
 
class  ChannelTest
 Test fixture for testing Channel. More...
 
class  FocusChangeManager
 Manages testing focus changes. More...
 
class  FocusManagerTest
 Test fixture for testing FocusManager. More...
 
class  MockActivityTrackerInterface
 A test observer that mocks out the ActivityTrackerInterface#notifyOfActivityUpdates() call. More...
 
class  MockChannelObserver
 MockChannelObserver for tests. More...
 
class  TestClient
 A test observer that mocks out the ChannelObserverInterface#onFocusChanged() call. More...
 
class  VisualActivityTrackerTest
 Test harness for VisualActivityTrackerTest class. More...
 

Typedefs

using JSONStream = std::vector< std::shared_ptr< std::istream > >
 Alias for JSON stream type used in ConfigurationNode initialization. More...
 

Functions

static std::chrono::milliseconds MY_WAIT_TIMEOUT (1000)
 Plenty of time for a test to complete. More...
 
static const std::string NAMESPACE_AUDIO_ACTIVITY_TRACKER ("AudioActivityTracker")
 Namespace for AudioActivityTracke. More...
 
 TEST_F (AudioActivityTrackerTest, test_noActivityUpdate)
 Test if there's no activity updates, AudioActivityTracker will return an empty context. More...
 
 TEST_F (AudioActivityTrackerTest, test_emptyActivityUpdate)
 Test if there's an empty set of activity updates, AudioActivityTracker will return an empty context. More...
 
 TEST_F (AudioActivityTrackerTest, test_oneActiveChannel)
 Test if there's an activityUpdate for one active channel, context will be reported correctly. More...
 
 TEST_F (AudioActivityTrackerTest, test_oneActiveChannelWithAIPAsInterface)
 
 TEST_F (AudioActivityTrackerTest, test_oneActiveChannelWithDefaultAndAIPAsInterfaces)
 
 TEST_F (AudioActivityTrackerTest, test_twoActiveChannels)
 Test if there's an activityUpdate for two active channels, context will be reported correctly. More...
 
 TEST_F (AudioActivityTrackerTest, test_oneActiveOneIdleChannels)
 Test if there's an activityUpdate for one active and one idle channels, context will be reported correctly. More...
 
 TEST_F (FocusManagerTest, test_acquireInvalidChannelName)
 Tests acquireChannel with an invalid Channel name, expecting no focus changes to be made. More...
 
 TEST_F (FocusManagerTest, test_acquireChannelWithNoOtherChannelsActive)
 Tests acquireChannel, expecting to get Foreground status since no other Channels are active. More...
 
 TEST_F (FocusManagerTest, test_acquireLowerPriorityChannelWithOneHigherPriorityChannelTaken)
 
 TEST_F (FocusManagerTest, test_aquireLowerPriorityChannelWithTwoHigherPriorityChannelsTaken)
 
 TEST_F (FocusManagerTest, acquireVirtualChannelWithTwoLowerPriorityChannelsTaken)
 
 TEST_F (FocusManagerTest, test_acquireHigherPriorityChannelWithOneLowerPriorityChannelTaken)
 
 TEST_F (FocusManagerTest, test_kickOutActivityOnSameChannel)
 
 TEST_F (FocusManagerTest, test_simpleReleaseChannel)
 
 TEST_F (FocusManagerTest, test_simpleReleaseChannelWithIncorrectObserver)
 
 TEST_F (FocusManagerTest, test_releaseForegroundChannelWhileBackgroundChannelTaken)
 
 TEST_F (FocusManagerTest, test_simpleNonTargetedStop)
 
 TEST_F (FocusManagerTest, test_threeNonTargetedStopsWithThreeActivitiesHappening)
 
 TEST_F (FocusManagerTest, test_stopForegroundActivityAndAcquireDifferentChannel)
 
 TEST_F (FocusManagerTest, test_stopForegroundActivityAndAcquireSameChannel)
 
 TEST_F (FocusManagerTest, test_stopAllActivitiesWithSingleChannel)
 
 TEST_F (FocusManagerTest, test_stopAllActivitiesWithThreeChannels)
 
 TEST_F (FocusManagerTest, stopAllActivitiesWithSingleChannel)
 
 TEST_F (FocusManagerTest, stopAllActivitiesWithThreeChannels)
 
 TEST_F (FocusManagerTest, test_releaseBackgroundChannelWhileTwoChannelsTaken)
 
 TEST_F (FocusManagerTest, test_kickOutActivityOnSameChannelWhileOtherChannelsActive)
 
 TEST_F (FocusManagerTest, test_addObserver)
 Tests that multiple observers can be added, and that they are notified of all focus changes. More...
 
 TEST_F (FocusManagerTest, test_removeObserver)
 Tests that observers can be removed, and that they are no longer notified of focus changes after removal. More...
 
 TEST_F (FocusManagerTest, test_activityTracker)
 
 TEST_F (ChannelTest, test_getName)
 Tests that the getName method of Channel works properly. More...
 
 TEST_F (ChannelTest, test_getPriority)
 Tests that the getPriority method of Channel works properly. More...
 
 TEST_F (ChannelTest, test_setObserverThenSetFocus)
 Tests that the observer properly gets notified of focus changes. More...
 
 TEST_F (ChannelTest, test_priorityComparison)
 Tests that Channels are compared properly. More...
 
 TEST_F (ChannelTest, test_isChannelActive)
 Tests that a Channel correctly reports whether it is active. More...
 
 TEST_F (ChannelTest, test_getTimeAtIdle)
 
 TEST_F (ChannelTest, test_MultiActivity_NewActivityKicksExistingActivity)
 
 TEST_F (ChannelTest, test_MultiActivity_IncomingActivityWithPatience1)
 
 TEST_F (ChannelTest, test_MultiActivity_IncomingActivityWithPatience2)
 
 TEST_F (ChannelTest, test_MultiActivity_IncomingActivityWithPatience3)
 
 TEST_F (ChannelTest, test_MultiActivity_IncomingActivityWithPatience4)
 
 TEST_F (ChannelTest, test_MultiActivity_IncomingActivityWithPatience5)
 
static std::chrono::milliseconds MY_WAIT_TIMEOUT (1000)
 Plenty of time for a test to complete. More...
 
static const std::string NAMESPACE_AUDIO_ACTIVITY_TRACKER ("VisualActivityTracker")
 Namespace for AudioActivityTracke. More...
 
 TEST_F (VisualActivityTrackerTest, test_noActivityUpdate)
 Test if there's no activity updates, VisualActivityTracker will return an empty context. More...
 
 TEST_F (VisualActivityTrackerTest, test_emptyActivityUpdate)
 Test if there's an empty vector of activity updates, VisualActivityTracker will return an empty context. More...
 
 TEST_F (VisualActivityTrackerTest, test_oneIdleChannel)
 Test if there's an activityUpdate for one idle channel, VisualActivityTracker will return an empty context. More...
 
 TEST_F (VisualActivityTrackerTest, test_oneActiveChannel)
 Test if there's an activityUpdate for one active channel, context will be reported correctly. More...
 
 TEST_F (VisualActivityTrackerTest, test_invalidChannelActivityUpdate)
 
 TEST_F (VisualActivityTrackerTest, test_validChannelTwoActivityUpdates)
 

Variables

static const NamespaceAndName NAMESPACE_AND_NAME_STATE {NAMESPACE_AUDIO_ACTIVITY_TRACKER, "ActivityState"}
 The NamespaceAndName to send to the ContextManager. More...
 
static const unsigned int PROVIDE_STATE_TOKEN_TEST {1}
 Provide State Token for testing. More...
 
static const std::string DIALOG_CHANNEL_NAME {"Dialog"}
 The default Dialog Channel name. More...
 
static unsigned int DIALOG_CHANNEL_PRIORITY {100}
 The default dialog Channel priority. More...
 
static const std::string DIALOG_INTERFACE_NAME {"SpeechSynthesizer"}
 The default Dialog interface name. More...
 
static const std::string AIP_INTERFACE_NAME {"SpeechRecognizer"}
 The SpeechRecognizer interface name. More...
 
static const std::string CONTENT_CHANNEL_NAME {"Content"}
 The default Content Channel name. More...
 
static const std::string CONTENT_INTERFACE_NAME {"AudioPlayer"}
 The default Content interface name. More...
 
static unsigned int CONTENT_CHANNEL_PRIORITY {300}
 The default Content Channel priority. More...
 
static const std::chrono::milliseconds SHORT_TIMEOUT_MS = std::chrono::milliseconds(5)
 Timeout to sleep before asking for provideState(). More...
 
static const auto SHORT_TIMEOUT = std::chrono::milliseconds(50)
 Short time out for when callbacks are expected not to occur. More...
 
static const auto DEFAULT_TIMEOUT = std::chrono::seconds(15)
 Long time out for the Channel observer to wait for the focus change callback (we should not reach this). More...
 
static const auto NO_ACTIVITY_UPDATE_TIMEOUT = std::chrono::milliseconds(250)
 Time out to wait for ActivityUpdates. More...
 
static const std::string DIALOG_CHANNEL_NAME = "Dialog"
 The dialog Channel name used in initializing the FocusManager. More...
 
static const std::string ALERTS_CHANNEL_NAME = "Alert"
 The alerts Channel name used in initializing the FocusManager. More...
 
static const std::string CONTENT_CHANNEL_NAME = "Content"
 The content Channel name used in initializing the FocusManager. More...
 
static const std::string INCORRECT_CHANNEL_NAME = "aksdjfl;aksdjfl;akdsjf"
 An incorrect Channel name that is never initialized as a Channel. More...
 
static const std::string VIRTUAL_CHANNEL_NAME = "VirtualChannel"
 The virtual Channel name used in initializing the FocusManager. More...
 
static const unsigned int VIRTUAL_CHANNEL_PRIORITY = 25
 The priority of the virtual Channel used in initializing the FocusManager. More...
 
static const unsigned int DIALOG_CHANNEL_PRIORITY = 10
 The priority of the dialog Channel used in initializing the FocusManager. More...
 
static const unsigned int ALERTS_CHANNEL_PRIORITY = 20
 The priority of the alerts Channel used in initializing the FocusManager. More...
 
static const unsigned int CONTENT_CHANNEL_PRIORITY = 30
 The priority of the content Channel used in initializing the FocusManager. More...
 
static const std::string DIALOG_INTERFACE_NAME = "dialog"
 Sample dialog interface name. More...
 
static const std::string ALERTS_INTERFACE_NAME = "alerts"
 Sample alerts interface name. More...
 
static const std::string CONTENT_INTERFACE_NAME = "content"
 Sample content interface name. More...
 
static const std::string DIFFERENT_CONTENT_INTERFACE_NAME = "different content"
 Another sample content interface name. More...
 
static const std::string DIFFERENT_DIALOG_INTERFACE_NAME = "different dialog"
 Another sample dialog interface name. More...
 
static const std::string VIRTUAL_INTERFACE_NAME = "virtual"
 Sample Virtual Channel interface name. More...
 
static const std::string INTERRUPT_MODEL_ROOT_KEY = "interruptModel"
 The root key for the InterruptModel in the InterruptModelConfiguration. More...
 
static const std::string INTERRUPT_MODEL_CONFIG_JSON
 The Json that describes the InterruptModelConfiguration. More...
 
static const NamespaceAndName NAMESPACE_AND_NAME_STATE {NAMESPACE_AUDIO_ACTIVITY_TRACKER, "ActivityState"}
 The NamespaceAndName to send to the ContextManager. More...
 
static const unsigned int PROVIDE_STATE_TOKEN_TEST {1}
 Provide State Token for testing. More...
 
static const std::string VISUAL_CHANNEL_NAME {"Visual"}
 The default Visual Channel name. More...
 
static const std::string VISUAL_INTERFACE_NAME {"TempateRuntime"}
 The default Visual Interface name. More...
 
static unsigned int VISUAL_CHANNEL_PRIORITY {100}
 The default Visual Channel priority. More...
 
static const std::string INVALID_CHANNEL_NAME {"Invalid"}
 The default Invalid Channel name. More...
 
static unsigned int INVALID_CHANNEL_PRIORITY {300}
 The default Channel priority for the invalid channel. More...
 
static const std::chrono::milliseconds SHORT_TIMEOUT_MS = std::chrono::milliseconds(5)
 Timeout to sleep before asking for provideState(). More...
 

Typedef Documentation

◆ JSONStream

using alexaClientSDK::afml::test::JSONStream = typedef std::vector<std::shared_ptr<std::istream> >

Alias for JSON stream type used in ConfigurationNode initialization.

Function Documentation

◆ MY_WAIT_TIMEOUT() [1/2]

static std::chrono::milliseconds alexaClientSDK::afml::test::MY_WAIT_TIMEOUT ( 1000  )
static

Plenty of time for a test to complete.

◆ MY_WAIT_TIMEOUT() [2/2]

static std::chrono::milliseconds alexaClientSDK::afml::test::MY_WAIT_TIMEOUT ( 1000  )
static

Plenty of time for a test to complete.

◆ NAMESPACE_AUDIO_ACTIVITY_TRACKER() [1/2]

static const std::string alexaClientSDK::afml::test::NAMESPACE_AUDIO_ACTIVITY_TRACKER ( "AudioActivityTracker"  )
static

Namespace for AudioActivityTracke.

◆ NAMESPACE_AUDIO_ACTIVITY_TRACKER() [2/2]

static const std::string alexaClientSDK::afml::test::NAMESPACE_AUDIO_ACTIVITY_TRACKER ( "VisualActivityTracker"  )
static

Namespace for AudioActivityTracke.

◆ TEST_F() [1/48]

alexaClientSDK::afml::test::TEST_F ( VisualActivityTrackerTest  ,
test_noActivityUpdate   
)

Test if there's no activity updates, VisualActivityTracker will return an empty context.

◆ TEST_F() [2/48]

alexaClientSDK::afml::test::TEST_F ( VisualActivityTrackerTest  ,
test_emptyActivityUpdate   
)

Test if there's an empty vector of activity updates, VisualActivityTracker will return an empty context.

◆ TEST_F() [3/48]

alexaClientSDK::afml::test::TEST_F ( AudioActivityTrackerTest  ,
test_noActivityUpdate   
)

Test if there's no activity updates, AudioActivityTracker will return an empty context.

◆ TEST_F() [4/48]

alexaClientSDK::afml::test::TEST_F ( VisualActivityTrackerTest  ,
test_oneIdleChannel   
)

Test if there's an activityUpdate for one idle channel, VisualActivityTracker will return an empty context.

◆ TEST_F() [5/48]

alexaClientSDK::afml::test::TEST_F ( VisualActivityTrackerTest  ,
test_oneActiveChannel   
)

Test if there's an activityUpdate for one active channel, context will be reported correctly.

◆ TEST_F() [6/48]

alexaClientSDK::afml::test::TEST_F ( AudioActivityTrackerTest  ,
test_emptyActivityUpdate   
)

Test if there's an empty set of activity updates, AudioActivityTracker will return an empty context.

◆ TEST_F() [7/48]

alexaClientSDK::afml::test::TEST_F ( VisualActivityTrackerTest  ,
test_invalidChannelActivityUpdate   
)

◆ TEST_F() [8/48]

alexaClientSDK::afml::test::TEST_F ( AudioActivityTrackerTest  ,
test_oneActiveChannel   
)

Test if there's an activityUpdate for one active channel, context will be reported correctly.

◆ TEST_F() [9/48]

alexaClientSDK::afml::test::TEST_F ( VisualActivityTrackerTest  ,
test_validChannelTwoActivityUpdates   
)

◆ TEST_F() [10/48]

alexaClientSDK::afml::test::TEST_F ( AudioActivityTrackerTest  ,
test_oneActiveChannelWithAIPAsInterface   
)

◆ TEST_F() [11/48]

alexaClientSDK::afml::test::TEST_F ( AudioActivityTrackerTest  ,
test_oneActiveChannelWithDefaultAndAIPAsInterfaces   
)

◆ TEST_F() [12/48]

alexaClientSDK::afml::test::TEST_F ( AudioActivityTrackerTest  ,
test_twoActiveChannels   
)

Test if there's an activityUpdate for two active channels, context will be reported correctly.

◆ TEST_F() [13/48]

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.

◆ TEST_F() [14/48]

alexaClientSDK::afml::test::TEST_F ( FocusManagerTest  ,
test_acquireInvalidChannelName   
)

Tests acquireChannel with an invalid Channel name, expecting no focus changes to be made.

◆ TEST_F() [15/48]

alexaClientSDK::afml::test::TEST_F ( FocusManagerTest  ,
test_acquireChannelWithNoOtherChannelsActive   
)

Tests acquireChannel, expecting to get Foreground status since no other Channels are active.

◆ TEST_F() [16/48]

alexaClientSDK::afml::test::TEST_F ( FocusManagerTest  ,
test_acquireLowerPriorityChannelWithOneHigherPriorityChannelTaken   
)

Tests acquireChannel with two Channels. The lower priority Channel should get Background focus and the higher priority Channel should get Foreground focus.

◆ TEST_F() [17/48]

alexaClientSDK::afml::test::TEST_F ( FocusManagerTest  ,
test_aquireLowerPriorityChannelWithTwoHigherPriorityChannelsTaken   
)

Tests acquireChannel with three Channels. The two lowest priority Channels should get Background focus while the highest priority Channel should be Foreground focused.

◆ TEST_F() [18/48]

alexaClientSDK::afml::test::TEST_F ( FocusManagerTest  ,
acquireVirtualChannelWithTwoLowerPriorityChannelsTaken   
)

Tests acquireChannel virtual channel is working the same as other channels. We test with three Channels (one virtual). First we acquire a non-virtual channel and make sure it goes FOREGROUND. Then we acquire a virtual channel with higher prioirty and one non-virtual with lower priority and make sure the two lowest priority Channels should get Background focus while the highest priority Channel should be Foreground focused.

◆ TEST_F() [19/48]

alexaClientSDK::afml::test::TEST_F ( FocusManagerTest  ,
test_acquireHigherPriorityChannelWithOneLowerPriorityChannelTaken   
)

Tests acquireChannel with a high priority Channel while a low priority Channel is already taken. The lower priority Channel should at first be Foreground focused and then get a change to Background focus while the higher priority should be Foreground focused.

◆ TEST_F() [20/48]

alexaClientSDK::afml::test::TEST_F ( FocusManagerTest  ,
test_kickOutActivityOnSameChannel   
)

Tests acquireChannel with a single Channel. The original observer should be notified to stop and the new observer should obtain Foreground focus.

◆ TEST_F() [21/48]

alexaClientSDK::afml::test::TEST_F ( FocusManagerTest  ,
test_simpleReleaseChannel   
)

Tests releaseChannel with a single Channel. The observer should be notified to stop.

◆ TEST_F() [22/48]

alexaClientSDK::afml::test::TEST_F ( FocusManagerTest  ,
test_simpleReleaseChannelWithIncorrectObserver   
)

Tests releaseChannel on a Channel with an incorrect observer. The client should not receive any callback.

◆ TEST_F() [23/48]

alexaClientSDK::afml::test::TEST_F ( FocusManagerTest  ,
test_releaseForegroundChannelWhileBackgroundChannelTaken   
)

Tests releaseChannel of the Foreground focused Channel while another Channel is taken. The originally Background focused Channel should be notified to come to the Foreground while the originally Foreground focused Channel should be notified to stop.

◆ TEST_F() [24/48]

alexaClientSDK::afml::test::TEST_F ( FocusManagerTest  ,
test_simpleNonTargetedStop   
)

Tests stopForegroundActivity with a single Channel. The observer should be notified to stop.

◆ TEST_F() [25/48]

alexaClientSDK::afml::test::TEST_F ( FocusManagerTest  ,
test_threeNonTargetedStopsWithThreeActivitiesHappening   
)

Tests stopForegroundActivity with a three active Channels. The Foreground Channel observer should be notified to stop each time and the next highest priority background Channel should be brought to the foreground each time.

◆ TEST_F() [26/48]

alexaClientSDK::afml::test::TEST_F ( FocusManagerTest  ,
test_stopForegroundActivityAndAcquireDifferentChannel   
)

Tests stopForegroundActivity with a single Channel. The next client to request a different Channel should be given foreground focus.

◆ TEST_F() [27/48]

alexaClientSDK::afml::test::TEST_F ( FocusManagerTest  ,
test_stopForegroundActivityAndAcquireSameChannel   
)

Tests stopForegroundActivity with a single Channel. The next client to request the same Channel should be given foreground focus.

◆ TEST_F() [28/48]

alexaClientSDK::afml::test::TEST_F ( FocusManagerTest  ,
test_stopAllActivitiesWithSingleChannel   
)

Test stopAllActivities with a single channel. Expect focus change only on that channel and reacquiring the same channel should resulted in foreground focus.

◆ TEST_F() [29/48]

alexaClientSDK::afml::test::TEST_F ( FocusManagerTest  ,
test_stopAllActivitiesWithThreeChannels   
)

Test stopAllActivities with three channels. Expect focus change to none for all channels and a channel should resulted in foreground focus.

◆ TEST_F() [30/48]

alexaClientSDK::afml::test::TEST_F ( FocusManagerTest  ,
stopAllActivitiesWithSingleChannel   
)

Test stopAllActivities with a single channel. Expect focus change only on that channel and reacquiring the same channel should result in foreground focus.

◆ TEST_F() [31/48]

alexaClientSDK::afml::test::TEST_F ( FocusManagerTest  ,
stopAllActivitiesWithThreeChannels   
)

Test stopAllActivities with three channels. Expect focus change to none for all channels and a channel should result in foreground focus.

◆ TEST_F() [32/48]

alexaClientSDK::afml::test::TEST_F ( FocusManagerTest  ,
test_releaseBackgroundChannelWhileTwoChannelsTaken   
)

Tests releaseChannel with the background Channel while there is a foreground Channel. The foreground Channel should remain foregrounded while the background Channel's observer should be notified to stop.

◆ TEST_F() [33/48]

alexaClientSDK::afml::test::TEST_F ( FocusManagerTest  ,
test_kickOutActivityOnSameChannelWhileOtherChannelsActive   
)

Tests acquireChannel of an already active foreground Channel while another Channel is also active. The original observer of the foreground be notified to stop and the new observer of the Channel will be notified that it has Foreground focus. The originally backgrounded Channel should not change focus.

◆ TEST_F() [34/48]

alexaClientSDK::afml::test::TEST_F ( FocusManagerTest  ,
test_addObserver   
)

Tests that multiple observers can be added, and that they are notified of all focus changes.

◆ TEST_F() [35/48]

alexaClientSDK::afml::test::TEST_F ( FocusManagerTest  ,
test_removeObserver   
)

Tests that observers can be removed, and that they are no longer notified of focus changes after removal.

◆ TEST_F() [36/48]

alexaClientSDK::afml::test::TEST_F ( FocusManagerTest  ,
test_activityTracker   
)

Tests activityTracker with three Channels and make sure notifyOfActivityUpdates() is called correctly.

◆ TEST_F() [37/48]

alexaClientSDK::afml::test::TEST_F ( ChannelTest  ,
test_getName   
)

Tests that the getName method of Channel works properly.

◆ TEST_F() [38/48]

alexaClientSDK::afml::test::TEST_F ( ChannelTest  ,
test_getPriority   
)

Tests that the getPriority method of Channel works properly.

◆ TEST_F() [39/48]

alexaClientSDK::afml::test::TEST_F ( ChannelTest  ,
test_setObserverThenSetFocus   
)

Tests that the observer properly gets notified of focus changes.

◆ TEST_F() [40/48]

alexaClientSDK::afml::test::TEST_F ( ChannelTest  ,
test_priorityComparison   
)

Tests that Channels are compared properly.

◆ TEST_F() [41/48]

alexaClientSDK::afml::test::TEST_F ( ChannelTest  ,
test_isChannelActive   
)

Tests that a Channel correctly reports whether it is active.

◆ TEST_F() [42/48]

alexaClientSDK::afml::test::TEST_F ( ChannelTest  ,
test_getTimeAtIdle   
)

◆ TEST_F() [43/48]

alexaClientSDK::afml::test::TEST_F ( ChannelTest  ,
test_MultiActivity_NewActivityKicksExistingActivity   
)

◆ TEST_F() [44/48]

alexaClientSDK::afml::test::TEST_F ( ChannelTest  ,
test_MultiActivity_IncomingActivityWithPatience1   
)

◆ TEST_F() [45/48]

alexaClientSDK::afml::test::TEST_F ( ChannelTest  ,
test_MultiActivity_IncomingActivityWithPatience2   
)

◆ TEST_F() [46/48]

alexaClientSDK::afml::test::TEST_F ( ChannelTest  ,
test_MultiActivity_IncomingActivityWithPatience3   
)

◆ TEST_F() [47/48]

alexaClientSDK::afml::test::TEST_F ( ChannelTest  ,
test_MultiActivity_IncomingActivityWithPatience4   
)

◆ TEST_F() [48/48]

alexaClientSDK::afml::test::TEST_F ( ChannelTest  ,
test_MultiActivity_IncomingActivityWithPatience5   
)

Variable Documentation

◆ AIP_INTERFACE_NAME

const std::string alexaClientSDK::afml::test::AIP_INTERFACE_NAME {"SpeechRecognizer"}
static

The SpeechRecognizer interface name.

◆ ALERTS_CHANNEL_NAME

const std::string alexaClientSDK::afml::test::ALERTS_CHANNEL_NAME = "Alert"
static

The alerts Channel name used in initializing the FocusManager.

◆ ALERTS_CHANNEL_PRIORITY

const unsigned int alexaClientSDK::afml::test::ALERTS_CHANNEL_PRIORITY = 20
static

The priority of the alerts Channel used in initializing the FocusManager.

◆ ALERTS_INTERFACE_NAME

const std::string alexaClientSDK::afml::test::ALERTS_INTERFACE_NAME = "alerts"
static

Sample alerts interface name.

◆ CONTENT_CHANNEL_NAME [1/2]

const std::string alexaClientSDK::afml::test::CONTENT_CHANNEL_NAME = "Content"
static

The content Channel name used in initializing the FocusManager.

◆ CONTENT_CHANNEL_NAME [2/2]

const std::string alexaClientSDK::afml::test::CONTENT_CHANNEL_NAME {"Content"}
static

The default Content Channel name.

◆ CONTENT_CHANNEL_PRIORITY [1/2]

const unsigned int alexaClientSDK::afml::test::CONTENT_CHANNEL_PRIORITY = 30
static

The priority of the content Channel used in initializing the FocusManager.

◆ CONTENT_CHANNEL_PRIORITY [2/2]

unsigned int alexaClientSDK::afml::test::CONTENT_CHANNEL_PRIORITY {300}
static

The default Content Channel priority.

◆ CONTENT_INTERFACE_NAME [1/2]

const std::string alexaClientSDK::afml::test::CONTENT_INTERFACE_NAME {"AudioPlayer"}
static

The default Content interface name.

◆ CONTENT_INTERFACE_NAME [2/2]

const std::string alexaClientSDK::afml::test::CONTENT_INTERFACE_NAME = "content"
static

Sample content interface name.

◆ DEFAULT_TIMEOUT

const auto alexaClientSDK::afml::test::DEFAULT_TIMEOUT = std::chrono::seconds(15)
static

Long time out for the Channel observer to wait for the focus change callback (we should not reach this).

◆ DIALOG_CHANNEL_NAME [1/2]

const std::string alexaClientSDK::afml::test::DIALOG_CHANNEL_NAME = "Dialog"
static

The dialog Channel name used in initializing the FocusManager.

◆ DIALOG_CHANNEL_NAME [2/2]

const std::string alexaClientSDK::afml::test::DIALOG_CHANNEL_NAME {"Dialog"}
static

The default Dialog Channel name.

◆ DIALOG_CHANNEL_PRIORITY [1/2]

unsigned int alexaClientSDK::afml::test::DIALOG_CHANNEL_PRIORITY {100}
static

The default dialog Channel priority.

◆ DIALOG_CHANNEL_PRIORITY [2/2]

const unsigned int alexaClientSDK::afml::test::DIALOG_CHANNEL_PRIORITY = 10
static

The priority of the dialog Channel used in initializing the FocusManager.

◆ DIALOG_INTERFACE_NAME [1/2]

const std::string alexaClientSDK::afml::test::DIALOG_INTERFACE_NAME {"SpeechSynthesizer"}
static

The default Dialog interface name.

◆ DIALOG_INTERFACE_NAME [2/2]

const std::string alexaClientSDK::afml::test::DIALOG_INTERFACE_NAME = "dialog"
static

Sample dialog interface name.

◆ DIFFERENT_CONTENT_INTERFACE_NAME

const std::string alexaClientSDK::afml::test::DIFFERENT_CONTENT_INTERFACE_NAME = "different content"
static

Another sample content interface name.

◆ DIFFERENT_DIALOG_INTERFACE_NAME

const std::string alexaClientSDK::afml::test::DIFFERENT_DIALOG_INTERFACE_NAME = "different dialog"
static

Another sample dialog interface name.

◆ INCORRECT_CHANNEL_NAME

const std::string alexaClientSDK::afml::test::INCORRECT_CHANNEL_NAME = "aksdjfl;aksdjfl;akdsjf"
static

An incorrect Channel name that is never initialized as a Channel.

◆ INTERRUPT_MODEL_CONFIG_JSON

const std::string alexaClientSDK::afml::test::INTERRUPT_MODEL_CONFIG_JSON
static

The Json that describes the InterruptModelConfiguration.

◆ INTERRUPT_MODEL_ROOT_KEY

const std::string alexaClientSDK::afml::test::INTERRUPT_MODEL_ROOT_KEY = "interruptModel"
static

The root key for the InterruptModel in the InterruptModelConfiguration.

◆ INVALID_CHANNEL_NAME

const std::string alexaClientSDK::afml::test::INVALID_CHANNEL_NAME {"Invalid"}
static

The default Invalid Channel name.

◆ INVALID_CHANNEL_PRIORITY

unsigned int alexaClientSDK::afml::test::INVALID_CHANNEL_PRIORITY {300}
static

The default Channel priority for the invalid channel.

◆ NAMESPACE_AND_NAME_STATE [1/2]

const NamespaceAndName alexaClientSDK::afml::test::NAMESPACE_AND_NAME_STATE {NAMESPACE_AUDIO_ACTIVITY_TRACKER, "ActivityState"}
static

The NamespaceAndName to send to the ContextManager.

◆ NAMESPACE_AND_NAME_STATE [2/2]

const NamespaceAndName alexaClientSDK::afml::test::NAMESPACE_AND_NAME_STATE {NAMESPACE_AUDIO_ACTIVITY_TRACKER, "ActivityState"}
static

The NamespaceAndName to send to the ContextManager.

◆ NO_ACTIVITY_UPDATE_TIMEOUT

const auto alexaClientSDK::afml::test::NO_ACTIVITY_UPDATE_TIMEOUT = std::chrono::milliseconds(250)
static

Time out to wait for ActivityUpdates.

◆ PROVIDE_STATE_TOKEN_TEST [1/2]

const unsigned int alexaClientSDK::afml::test::PROVIDE_STATE_TOKEN_TEST {1}
static

Provide State Token for testing.

◆ PROVIDE_STATE_TOKEN_TEST [2/2]

const unsigned int alexaClientSDK::afml::test::PROVIDE_STATE_TOKEN_TEST {1}
static

Provide State Token for testing.

◆ SHORT_TIMEOUT

const auto alexaClientSDK::afml::test::SHORT_TIMEOUT = std::chrono::milliseconds(50)
static

Short time out for when callbacks are expected not to occur.

◆ SHORT_TIMEOUT_MS [1/2]

const std::chrono::milliseconds alexaClientSDK::afml::test::SHORT_TIMEOUT_MS = std::chrono::milliseconds(5)
static

Timeout to sleep before asking for provideState().

◆ SHORT_TIMEOUT_MS [2/2]

const std::chrono::milliseconds alexaClientSDK::afml::test::SHORT_TIMEOUT_MS = std::chrono::milliseconds(5)
static

Timeout to sleep before asking for provideState().

◆ VIRTUAL_CHANNEL_NAME

const std::string alexaClientSDK::afml::test::VIRTUAL_CHANNEL_NAME = "VirtualChannel"
static

The virtual Channel name used in initializing the FocusManager.

◆ VIRTUAL_CHANNEL_PRIORITY

const unsigned int alexaClientSDK::afml::test::VIRTUAL_CHANNEL_PRIORITY = 25
static

The priority of the virtual Channel used in initializing the FocusManager.

◆ VIRTUAL_INTERFACE_NAME

const std::string alexaClientSDK::afml::test::VIRTUAL_INTERFACE_NAME = "virtual"
static

Sample Virtual Channel interface name.

◆ VISUAL_CHANNEL_NAME

const std::string alexaClientSDK::afml::test::VISUAL_CHANNEL_NAME {"Visual"}
static

The default Visual Channel name.

◆ VISUAL_CHANNEL_PRIORITY

unsigned int alexaClientSDK::afml::test::VISUAL_CHANNEL_PRIORITY {100}
static

The default Visual Channel priority.

◆ VISUAL_INTERFACE_NAME

const std::string alexaClientSDK::afml::test::VISUAL_INTERFACE_NAME {"TempateRuntime"}
static

The default Visual Interface name.

AlexaClientSDK 1.26.0 - Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0