AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest Class Reference

Test harness for AudioInputProcessor class. More...

Inheritance diagram for alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest:
Collaboration graph
[legend]

Public Member Functions

void SetUp () override
 Set up the test harness for running a test. More...
 
void TearDown () override
 Clean up the test harness after running a test. More...
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 

Protected Types

enum  RecognizeStopPoint {
  RecognizeStopPoint::AFTER_RECOGNIZE, RecognizeStopPoint::AFTER_CONTEXT, RecognizeStopPoint::AFTER_FOCUS, RecognizeStopPoint::AFTER_SEND,
  RecognizeStopPoint::NONE
}
 Enumerate different points to call stopCapture() during testRecognizeSucceeds(). More...
 
enum  StopCaptureDirectiveSchedule { StopCaptureDirectiveSchedule::BEFORE_RESPONSE_STATUS_RECEIVED, StopCaptureDirectiveSchedule::AFTER_RESPONSE_CODE_RECEIVED, StopCaptureDirectiveSchedule::AFTER_EVENT_STREAM_CLOSE, StopCaptureDirectiveSchedule::NONE }
 

Protected Member Functions

bool testRecognizeFails (AudioProvider audioProvider, Initiator initiator, avsCommon::avs::AudioInputStream::Index begin=AudioInputProcessor::INVALID_INDEX, avsCommon::avs::AudioInputStream::Index keywordEnd=AudioInputProcessor::INVALID_INDEX, std::string keyword="")
 
bool testRecognizeSucceeds (AudioProvider audioProvider, Initiator initiator, avsCommon::avs::AudioInputStream::Index begin=AudioInputProcessor::INVALID_INDEX, avsCommon::avs::AudioInputStream::Index keywordEnd=AudioInputProcessor::INVALID_INDEX, std::string keyword="", RecognizeStopPoint stopPoint=RecognizeStopPoint::NONE, std::shared_ptr< std::string > avsInitiator=nullptr, const std::shared_ptr< std::vector< char >> KWDMetadata=nullptr, std::string expectedFormat="", std::map< std::string, std::string > encodingFormats={})
 
bool testStopCaptureSucceeds ()
 
bool testContextFailure (avsCommon::sdkInterfaces::ContextRequestError error)
 
bool testStopCaptureDirectiveSucceeds (bool withDialogRequestId)
 
bool testStopCaptureDirectiveFails (bool withDialogRequestId)
 
bool testExpectSpeechSucceeds (bool withDialogRequestId)
 
bool testExpectSpeechWaits (bool withDialogRequestId, bool verifyTimeout)
 
bool testExpectSpeechExternalHandling (bool notifyBackOfTimeout)
 
bool testExpectSpeechFails (bool withDialogRequestId)
 
bool testRecognizeWithExpectSpeechInitiator (bool withInitiator)
 
void testRequestEncodingAudioFormatsSucceeds ()
 
std::shared_ptr< avsCommon::avs::AVSDirectivecreateAVSDirective (const avsCommon::avs::NamespaceAndName &directive, bool withDialogRequestId, bool withInitiator=true)
 
std::shared_ptr< avsCommon::avs::AVSDirectivecreateAVSDirective (const avsCommon::avs::NamespaceAndName &directive, bool withDialogRequestId, bool withInitiator, rapidjson::Document &document, rapidjson::Value &payloadJson)
 
void removeDefaultAudioProvider ()
 This function replace m_audioInputProcessor with a new one that does not have a default AudioProvider. More...
 
void makeDefaultAudioProviderNotAlwaysReadable ()
 
void addExpectSpeechTimeoutHandler ()
 
bool testFocusChange (avsCommon::avs::FocusState state, avsCommon::avs::MixingBehavior behavior)
 
void testAIPStateTransitionOnEventResponse (avsCommon::sdkInterfaces::MessageRequestObserverInterface::Status responseStatus, StopCaptureDirectiveSchedule stopCaptureSchedule, AudioInputProcessorObserverInterface::State expectedAIPFinalState, bool expectFocusReleased, bool closeRequest=true)
 
void setupEncoderTest ()
 
void resetAudioInputProcessor ()
 
- Protected Member Functions inherited from testing::Test
 Test ()
 

Static Protected Member Functions

static void verifyExpectSpeechTimedOut (std::shared_ptr< avsCommon::avs::MessageRequest > request)
 

Protected Attributes

std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterfacem_metricRecorder
 The metric recorder. More...
 
std::shared_ptr< avsCommon::sdkInterfaces::test::MockDirectiveSequencerm_mockDirectiveSequencer
 The mock DirectiveSequencerInterface. More...
 
std::shared_ptr< avsCommon::sdkInterfaces::test::MockMessageSenderm_mockMessageSender
 The mock MessageSenderInterface for AIP. More...
 
std::shared_ptr< settings::test::MockSetting< settings::SpeechConfirmationSettingType > > m_mockSpeechConfirmation
 Mock speech confirmation setting. More...
 
std::shared_ptr< settings::test::MockSetting< settings::WakeWordConfirmationSettingType > > m_mockWakeWordConfirmation
 Mock wake word confirmation setting. More...
 
std::shared_ptr< MockCapabilityConfigurationChangeObserverm_mockCapabilityConfigurationChangeObserver
 The mock CapabilityconfigurationChangeObserverInterface. More...
 
std::shared_ptr< avsCommon::avs::CapabilityChangeNotifierInterfacem_capabilityChangeNotifier
 The CapabilityChangeNotifierInterface. More...
 
std::shared_ptr< settings::test::MockSetting< settings::WakeWords > > m_mockWakeWordSetting
 The locale and wake words settings. More...
 
std::shared_ptr< avsCommon::sdkInterfaces::test::MockContextManagerm_mockContextManager
 The mock ContextManagerInterface. More...
 
std::shared_ptr< avsCommon::sdkInterfaces::test::MockFocusManagerm_mockFocusManager
 The mock FocusManagerInterface. More...
 
std::shared_ptr< avsCommon::avs::DialogUXStateAggregatorm_dialogUXStateAggregator
 The DialogUXStateAggregator to test with. More...
 
std::shared_ptr< TestDialogUXStateObserverm_dialogUXStateObserver
 A TestDialogUXStateObserver track when the DialogUXStateAggregator is thinking. More...
 
std::shared_ptr< avsCommon::sdkInterfaces::test::MockExceptionEncounteredSenderm_mockExceptionEncounteredSender
 The mock ExceptionEncounteredSenderInterface. More...
 
std::shared_ptr< avsCommon::sdkInterfaces::test::MockUserInactivityMonitorm_mockUserInactivityMonitor
 The mock UserInactivityMonitorInterface. More...
 
std::unique_ptr< avsCommon::avs::AudioInputStream::Writer > m_writer
 A AudioInputStream::Writer to write audio data to m_audioProvider. More...
 
std::unique_ptr< AudioProviderm_audioProvider
 The AudioProvider to test with. More...
 
std::shared_ptr< MockExpectSpeechTimeoutHandlerm_mockExpectSpeechTimeoutHandler
 A mock ExpectSpeechHandler to test with. More...
 
std::shared_ptr< AudioInputProcessorm_audioInputProcessor
 The AudioInputProcessor to test. More...
 
std::shared_ptr< MockObserverm_mockObserver
 The mock ObserverInterface. More...
 
std::shared_ptr< MockSystemSoundPlayerm_mockSystemSoundPlayer
 A mock of the SystemSoundPlayerInterface. More...
 
std::shared_ptr< MockLocaleAssetsManagerm_mockAssetsManager
 
std::shared_ptr< RecognizeEventm_recognizeEvent
 The RecognizeEvent from the last testRecognizeSucceeds() call. More...
 
std::shared_ptr< avsCommon::sdkInterfaces::test::MockPowerResourceManagerm_mockPowerResourceManager
 The mock PowerResourceManagerInterface. More...
 
std::vector< Samplem_pattern
 Vector of samples holding a test pattern to feed through the AudioInputStream. More...
 
std::string m_dialogRequestId
 
std::shared_ptr< audioEncoderInterfaces::AudioEncoderInterfacem_audioEncoder
 The audio encoder object. More...
 
std::shared_ptr< MockBlockAudioEncoderm_mockBlockAudioEncoder
 The mock BlockAudioEncoderInterface. More...
 
std::string m_messageId
 Message ID in directive. More...
 

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
- Static Public Member Functions inherited from testing::Test
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 

Detailed Description

Test harness for AudioInputProcessor class.

Member Enumeration Documentation

◆ RecognizeStopPoint

Enumerate different points to call stopCapture() during testRecognizeSucceeds().

Enumerator
AFTER_RECOGNIZE 

Call stopCapture() immediately after the recognize() call.

AFTER_CONTEXT 

Call stopCapture() immediately after the onContextAvailable() call.

AFTER_FOCUS 

Call stopCapture() immediately after the onFocusChanged() call.

AFTER_SEND 

Call stopCapture() immediately after the message is sent.

NONE 

Do not call stopCapture() during the test.

◆ StopCaptureDirectiveSchedule

Enumerates the different points when to pass a stop capture directive to AIP via AudioInputProcessor::handleDirectiveImmediately())

Enumerator
BEFORE_RESPONSE_STATUS_RECEIVED 

Pass a stop capture directive to AIP before the response code to the Recognize request is receeived.

AFTER_RESPONSE_CODE_RECEIVED 

Pass a stop capture directive to AIP after the response ccode to the Recognize requet is received.

AFTER_EVENT_STREAM_CLOSE 

Pass a stop capture directive after the event stream is closed.

NONE 

Do not pass a stop capture directive.

Member Function Documentation

◆ addExpectSpeechTimeoutHandler()

void alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::addExpectSpeechTimeoutHandler ( )
protected

This function adds a custom ExpectSpeechHandler.

◆ createAVSDirective() [1/2]

std::shared_ptr< avsCommon::avs::AVSDirective > alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::createAVSDirective ( const avsCommon::avs::NamespaceAndName directive,
bool  withDialogRequestId,
bool  withInitiator = true 
)
protected

Function to construct an AVSDirective for the specified namespace/name.

Parameters
directiveThe namespace and name to use for this directive.
withDialogRequestIdA flag indicating whether to include a dialog request ID.
withInitiatorA flag indicating whether the directive should have an initiator.
Returns
the constructed AVSDirective.

◆ createAVSDirective() [2/2]

std::shared_ptr< avsCommon::avs::AVSDirective > alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::createAVSDirective ( const avsCommon::avs::NamespaceAndName directive,
bool  withDialogRequestId,
bool  withInitiator,
rapidjson::Document &  document,
rapidjson::Value &  payloadJson 
)
protected

Function to construct an AVSDirective for the specified namespace/name, with the given payload.

Parameters
directiveThe namespace and name to use for this directive.
withDialogRequestIdA flag indicating whether to include a dialog request ID.
withInitiatorA flag indicating whether the directive should have an initiator.
documentThe root document object to use.
documentThe payload to use.
Returns
the constructed AVSDirective.

◆ makeDefaultAudioProviderNotAlwaysReadable()

void alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::makeDefaultAudioProviderNotAlwaysReadable ( )
protected

This function replace m_audioInputProcessor with a new one that has an AudioProvider that is not alwaysReadable.

◆ removeDefaultAudioProvider()

void alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::removeDefaultAudioProvider ( )
protected

This function replace m_audioInputProcessor with a new one that does not have a default AudioProvider.

◆ resetAudioInputProcessor()

void alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::resetAudioInputProcessor ( )
protected

Resets the audio input processor, call after any test.

◆ SetUp()

void alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::SetUp ( )
overridevirtual

Set up the test harness for running a test.

Reimplemented from testing::Test.

◆ setupEncoderTest()

void alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::setupEncoderTest ( )
protected

Function which does encoder specific setup

◆ TearDown()

void alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::TearDown ( )
overridevirtual

Clean up the test harness after running a test.

Reimplemented from testing::Test.

◆ testAIPStateTransitionOnEventResponse()

void alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::testAIPStateTransitionOnEventResponse ( avsCommon::sdkInterfaces::MessageRequestObserverInterface::Status  responseStatus,
StopCaptureDirectiveSchedule  stopCaptureSchedule,
AudioInputProcessorObserverInterface::State  expectedAIPFinalState,
bool  expectFocusReleased,
bool  closeRequest = true 
)
protected

Performs a test to check the AIP correctly transitions to a state after getting notified of the response to the recognize event and/or receiving a stop capture directive.

Parameters
responseStatusThe response status for the recognize request.
stopCaptureScheduleSpecify the point when to pass a stop capture directive to AIP.
expectedAIPFinalStateThe expected final state of the AIP.
expectFocusReleasedIf true, it is expected that AIP will release the channel focus in the final state, and false otherwise.
closeRequestWhether onSendCompleted() should be called to simulate a stream close.

◆ testContextFailure()

bool alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::testContextFailure ( avsCommon::sdkInterfaces::ContextRequestError  error)
protected

Function to call AudioInputProcessor::onContextFailure() and verify that AudioInputProcessor responds to it correctly.

Parameters
errorThe failure type to test.
Returns
true if the call works correctly, else false.

◆ testExpectSpeechExternalHandling()

bool alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::testExpectSpeechExternalHandling ( bool  notifyBackOfTimeout)
protected

Function to send an expect speech event and verify that that external handling does not result in an internal timeout.

Parameters
notifyBackOfTimeoutWhether to notify the AIP of the ExpectSpeech timing out
Returns
true if the call works correctly, else false.

◆ testExpectSpeechFails()

bool alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::testExpectSpeechFails ( bool  withDialogRequestId)
protected

Function to send an expect speech event and optionally verify that it fails.

Parameters
withDialogRequestIdA flag indicating whether to send the event with a dialog request ID.
Returns
true if the call fails as expected, else false.

◆ testExpectSpeechSucceeds()

bool alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::testExpectSpeechSucceeds ( bool  withDialogRequestId)
protected

Function to send an expect speech event and verify that it succeeds.

Parameters
withDialogRequestIdA flag indicating whether to send the directive with a dialog request ID.
Returns
true if the call works correctly, else false.

◆ testExpectSpeechWaits()

bool alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::testExpectSpeechWaits ( bool  withDialogRequestId,
bool  verifyTimeout 
)
protected

Function to send an expect speech event and optionally verify that it times out.

Parameters
withDialogRequestIdA flag indicating whether to send the event with a dialog request ID.
verifyTimeoutA flag indicating whether to wait for a timeout.
Returns
true if the call works correctly, else false.

◆ testFocusChange()

bool alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::testFocusChange ( avsCommon::avs::FocusState  state,
avsCommon::avs::MixingBehavior  behavior 
)
protected

Function to call onFocusChanged() and verify that AudioInputProcessor responds correctly.

Parameters
stateThe focus state to test with.
behaviorThe MixingBehavior to test with.
Returns
true if the AudioInputProcessor responds as expected, else false.

◆ testRecognizeFails()

bool alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::testRecognizeFails ( AudioProvider  audioProvider,
Initiator  initiator,
avsCommon::avs::AudioInputStream::Index  begin = AudioInputProcessor::INVALID_INDEX,
avsCommon::avs::AudioInputStream::Index  keywordEnd = AudioInputProcessor::INVALID_INDEX,
std::string  keyword = "" 
)
protected

Function to send a recognize event and verify that it fails. Parameters are passed through to RecognizeEvent::RecognizeEvent().

Returns
true if the recognize event failed to send correctly, else false.

◆ testRecognizeSucceeds()

bool alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::testRecognizeSucceeds ( AudioProvider  audioProvider,
Initiator  initiator,
avsCommon::avs::AudioInputStream::Index  begin = AudioInputProcessor::INVALID_INDEX,
avsCommon::avs::AudioInputStream::Index  keywordEnd = AudioInputProcessor::INVALID_INDEX,
std::string  keyword = "",
RecognizeStopPoint  stopPoint = RecognizeStopPoint::NONE,
std::shared_ptr< std::string >  avsInitiator = nullptr,
const std::shared_ptr< std::vector< char >>  KWDMetadata = nullptr,
std::string  expectedFormat = "",
std::map< std::string, std::string >  encodingFormats = {} 
)
protected

Function to send a recognize event and verify that it succeeds. All parameters except stopPoint are passed through to RecognizeEvent::RecognizeEvent().

Parameters
stopPointWhere (if at all) to call stopCapture() during this test.
Returns
true if the recognize event sent correctly, else false.

◆ testRecognizeWithExpectSpeechInitiator()

bool alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::testRecognizeWithExpectSpeechInitiator ( bool  withInitiator)
protected

Function to send an ExpectSpeech directive and verify the initiator is handled correctly on the subsequent Recognize.

Parameters
withInitiatorA flag indicating whether the ExpectSpeech will contain the initiator.
Returns
true if the call succeeds, else false.

◆ testRequestEncodingAudioFormatsSucceeds()

void alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::testRequestEncodingAudioFormatsSucceeds ( )
protected

Function to request AIP to produce multiple audio streams of different encodings for upcoming RecognizeEvent

◆ testStopCaptureDirectiveFails()

bool alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::testStopCaptureDirectiveFails ( bool  withDialogRequestId)
protected

Function to receive a StopCapture directive and verify that AudioInputProcessor rejects it.

Parameters
withDialogRequestIdA flag indicating whether to send the directive with a dialog request ID.
Returns
true if the call fails as expected, else false.

◆ testStopCaptureDirectiveSucceeds()

bool alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::testStopCaptureDirectiveSucceeds ( bool  withDialogRequestId)
protected

Function to receive a StopCapture directive and verify that AudioInputProcessor responds to it correctly.

Parameters
withDialogRequestIdA flag indicating whether to send the directive with a dialog request ID.
Returns
true if the call works correctly, else false.

◆ testStopCaptureSucceeds()

bool alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::testStopCaptureSucceeds ( )
protected

Function to call AudioInputProcessor::stopCapture() and verify that it succeeds.

Returns
true if the call works correctly, else false.

◆ verifyExpectSpeechTimedOut()

void alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::verifyExpectSpeechTimedOut ( std::shared_ptr< avsCommon::avs::MessageRequest request)
staticprotected

This function verifies that JSON content of an ExpectSpeechTimedOut MessageRequest is correct, and that it does not have an attachment. This function signature matches that of MessageSenderInterface::sendMessage() so that an EXPECT_CALL() can Invoke() this function directly.

Parameters
requestThe MessageRequest to verify.

Member Data Documentation

◆ m_audioEncoder

std::shared_ptr<audioEncoderInterfaces::AudioEncoderInterface> alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_audioEncoder
protected

The audio encoder object.

◆ m_audioInputProcessor

std::shared_ptr<AudioInputProcessor> alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_audioInputProcessor
protected

The AudioInputProcessor to test.

◆ m_audioProvider

std::unique_ptr<AudioProvider> alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_audioProvider
protected

The AudioProvider to test with.

◆ m_capabilityChangeNotifier

std::shared_ptr<avsCommon::avs::CapabilityChangeNotifierInterface> alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_capabilityChangeNotifier
protected

The CapabilityChangeNotifierInterface.

◆ m_dialogRequestId

std::string alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_dialogRequestId
protected

◆ m_dialogUXStateAggregator

std::shared_ptr<avsCommon::avs::DialogUXStateAggregator> alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_dialogUXStateAggregator
protected

The DialogUXStateAggregator to test with.

◆ m_dialogUXStateObserver

std::shared_ptr<TestDialogUXStateObserver> alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_dialogUXStateObserver
protected

A TestDialogUXStateObserver track when the DialogUXStateAggregator is thinking.

◆ m_messageId

std::string alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_messageId
protected

Message ID in directive.

◆ m_metricRecorder

std::shared_ptr<avsCommon::utils::metrics::MetricRecorderInterface> alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_metricRecorder
protected

The metric recorder.

◆ m_mockAssetsManager

std::shared_ptr<MockLocaleAssetsManager> alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_mockAssetsManager
protected

◆ m_mockBlockAudioEncoder

std::shared_ptr<MockBlockAudioEncoder> alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_mockBlockAudioEncoder
protected

The mock BlockAudioEncoderInterface.

◆ m_mockCapabilityConfigurationChangeObserver

std::shared_ptr<MockCapabilityConfigurationChangeObserver> alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_mockCapabilityConfigurationChangeObserver
protected

The mock CapabilityconfigurationChangeObserverInterface.

◆ m_mockContextManager

std::shared_ptr<avsCommon::sdkInterfaces::test::MockContextManager> alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_mockContextManager
protected

The mock ContextManagerInterface.

◆ m_mockDirectiveSequencer

std::shared_ptr<avsCommon::sdkInterfaces::test::MockDirectiveSequencer> alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_mockDirectiveSequencer
protected

The mock DirectiveSequencerInterface.

◆ m_mockExceptionEncounteredSender

std::shared_ptr<avsCommon::sdkInterfaces::test::MockExceptionEncounteredSender> alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_mockExceptionEncounteredSender
protected

The mock ExceptionEncounteredSenderInterface.

◆ m_mockExpectSpeechTimeoutHandler

std::shared_ptr<MockExpectSpeechTimeoutHandler> alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_mockExpectSpeechTimeoutHandler
protected

A mock ExpectSpeechHandler to test with.

◆ m_mockFocusManager

std::shared_ptr<avsCommon::sdkInterfaces::test::MockFocusManager> alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_mockFocusManager
protected

The mock FocusManagerInterface.

◆ m_mockMessageSender

std::shared_ptr<avsCommon::sdkInterfaces::test::MockMessageSender> alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_mockMessageSender
protected

The mock MessageSenderInterface for AIP.

◆ m_mockObserver

std::shared_ptr<MockObserver> alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_mockObserver
protected

The mock ObserverInterface.

◆ m_mockPowerResourceManager

std::shared_ptr<avsCommon::sdkInterfaces::test::MockPowerResourceManager> alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_mockPowerResourceManager
protected

The mock PowerResourceManagerInterface.

◆ m_mockSpeechConfirmation

std::shared_ptr<settings::test::MockSetting<settings::SpeechConfirmationSettingType> > alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_mockSpeechConfirmation
protected

Mock speech confirmation setting.

◆ m_mockSystemSoundPlayer

std::shared_ptr<MockSystemSoundPlayer> alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_mockSystemSoundPlayer
protected

A mock of the SystemSoundPlayerInterface.

◆ m_mockUserInactivityMonitor

std::shared_ptr<avsCommon::sdkInterfaces::test::MockUserInactivityMonitor> alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_mockUserInactivityMonitor
protected

The mock UserInactivityMonitorInterface.

◆ m_mockWakeWordConfirmation

std::shared_ptr<settings::test::MockSetting<settings::WakeWordConfirmationSettingType> > alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_mockWakeWordConfirmation
protected

Mock wake word confirmation setting.

◆ m_mockWakeWordSetting

std::shared_ptr<settings::test::MockSetting<settings::WakeWords> > alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_mockWakeWordSetting
protected

The locale and wake words settings.

◆ m_pattern

std::vector<Sample> alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_pattern
protected

Vector of samples holding a test pattern to feed through the AudioInputStream.

◆ m_recognizeEvent

std::shared_ptr<RecognizeEvent> alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_recognizeEvent
protected

The RecognizeEvent from the last testRecognizeSucceeds() call.

◆ m_writer

std::unique_ptr<avsCommon::avs::AudioInputStream::Writer> alexaClientSDK::capabilityAgents::aip::test::AudioInputProcessorTest::m_writer
protected

A AudioInputStream::Writer to write audio data to m_audioProvider.


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