AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Functions
alexaClientSDK::applicationUtilities::systemSoundPlayer::test Namespace Reference

Classes

class  StubAudioFactory
 Stub class that implements AudioFactoryInterface. More...
 
class  SystemSoundPlayerTest
 SystemSoundPlayerTest unit tests. More...
 

Functions

 TEST_F (SystemSoundPlayerTest, test_createSystemSoundPlayerInterfaceFailureCases)
 
 TEST_F (SystemSoundPlayerTest, test_createWithNullPointers)
 
 TEST_F (SystemSoundPlayerTest, test_playWakeWord)
 
 TEST_F (SystemSoundPlayerTest, test_playEndSpeech)
 
 TEST_F (SystemSoundPlayerTest, test_failPlayback)
 
 TEST_F (SystemSoundPlayerTest, test_playBeforeFinish)
 
 TEST_F (SystemSoundPlayerTest, test_sequentialPlayback)
 

Function Documentation

◆ TEST_F() [1/7]

alexaClientSDK::applicationUtilities::systemSoundPlayer::test::TEST_F ( SystemSoundPlayerTest  ,
test_createSystemSoundPlayerInterfaceFailureCases   
)

Test createSystemSoundPlayerInterface() simple failure cases

Expect failure with null audio pipeline factory.

Expect failure with null audio factory.

Expect failure when audio pipeline factory returns a nullptr for the application media interfaces.

Expect failure when application media interfaces contains a null media player.

Expect failure when audio factory returns a nullptr for the system sounds audio factory.

◆ TEST_F() [2/7]

alexaClientSDK::applicationUtilities::systemSoundPlayer::test::TEST_F ( SystemSoundPlayerTest  ,
test_createWithNullPointers   
)

Test create() with nullptrs

◆ TEST_F() [3/7]

alexaClientSDK::applicationUtilities::systemSoundPlayer::test::TEST_F ( SystemSoundPlayerTest  ,
test_playWakeWord   
)

Test System Sound Player correctly plays wake word notification tone.

◆ TEST_F() [4/7]

alexaClientSDK::applicationUtilities::systemSoundPlayer::test::TEST_F ( SystemSoundPlayerTest  ,
test_playEndSpeech   
)

Test System Sound Player correctly plays end speech tone.

◆ TEST_F() [5/7]

alexaClientSDK::applicationUtilities::systemSoundPlayer::test::TEST_F ( SystemSoundPlayerTest  ,
test_failPlayback   
)

Test System Sound Player returns false on playback error.

◆ TEST_F() [6/7]

alexaClientSDK::applicationUtilities::systemSoundPlayer::test::TEST_F ( SystemSoundPlayerTest  ,
test_playBeforeFinish   
)

Test System Sound Player blocks and return false when busy playing a Tone.

◆ TEST_F() [7/7]

alexaClientSDK::applicationUtilities::systemSoundPlayer::test::TEST_F ( SystemSoundPlayerTest  ,
test_sequentialPlayback   
)

Test System Sound Player unblocks after playTone finishes.

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