AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::speechencoder::test::MockEncoderContext Class Reference
Inheritance diagram for alexaClientSDK::speechencoder::test::MockEncoderContext:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::speechencoder::test::MockEncoderContext:
Collaboration graph
[legend]

Public Member Functions

 MOCK_METHOD1 (init, bool(alexaClientSDK::avsCommon::utils::AudioFormat inputFormat))
 
 MOCK_METHOD0 (getInputFrameSize, size_t())
 
 MOCK_METHOD0 (getOutputFrameSize, size_t())
 
 MOCK_METHOD0 (requiresFullyRead, bool())
 
 MOCK_METHOD0 (getAudioFormat, AudioFormat())
 
 MOCK_METHOD0 (getAVSFormatName, std::string())
 
 MOCK_METHOD0 (start, bool())
 
 MOCK_METHOD3 (processSamples, ssize_t(void *samples, size_t nWords, uint8_t *buffer))
 
 MOCK_METHOD0 (close, void())
 
- Public Member Functions inherited from alexaClientSDK::speechencoder::EncoderContext
virtual bool init (alexaClientSDK::avsCommon::utils::AudioFormat inputFormat)=0
 
virtual size_t getInputFrameSize ()=0
 
virtual size_t getOutputFrameSize ()=0
 
virtual bool requiresFullyRead ()=0
 
virtual alexaClientSDK::avsCommon::utils::AudioFormat getAudioFormat ()=0
 
virtual std::string getAVSFormatName ()=0
 
virtual bool start ()=0
 
virtual ssize_t processSamples (void *samples, size_t numberOfWords, uint8_t *buffer)=0
 
virtual void close ()=0
 
virtual ~EncoderContext ()=default
 

Detailed Description

A mock encoder backend implementation that inherits from EncoderContext.

Member Function Documentation

◆ MOCK_METHOD0() [1/7]

alexaClientSDK::speechencoder::test::MockEncoderContext::MOCK_METHOD0 ( close  ,
void()   
)

◆ MOCK_METHOD0() [2/7]

alexaClientSDK::speechencoder::test::MockEncoderContext::MOCK_METHOD0 ( getAudioFormat  ,
AudioFormat()   
)

◆ MOCK_METHOD0() [3/7]

alexaClientSDK::speechencoder::test::MockEncoderContext::MOCK_METHOD0 ( getAVSFormatName  ,
std::string()   
)

◆ MOCK_METHOD0() [4/7]

alexaClientSDK::speechencoder::test::MockEncoderContext::MOCK_METHOD0 ( getInputFrameSize  ,
size_t()   
)

◆ MOCK_METHOD0() [5/7]

alexaClientSDK::speechencoder::test::MockEncoderContext::MOCK_METHOD0 ( getOutputFrameSize  ,
size_t()   
)

◆ MOCK_METHOD0() [6/7]

alexaClientSDK::speechencoder::test::MockEncoderContext::MOCK_METHOD0 ( requiresFullyRead  ,
bool()   
)

◆ MOCK_METHOD0() [7/7]

alexaClientSDK::speechencoder::test::MockEncoderContext::MOCK_METHOD0 ( start  ,
bool()   
)

◆ MOCK_METHOD1()

alexaClientSDK::speechencoder::test::MockEncoderContext::MOCK_METHOD1 ( init  ,
bool(alexaClientSDK::avsCommon::utils::AudioFormat inputFormat)   
)

◆ MOCK_METHOD3()

alexaClientSDK::speechencoder::test::MockEncoderContext::MOCK_METHOD3 ( processSamples  ,
ssize_t(void *samples, size_t nWords, uint8_t *buffer)   
)

The documentation for this class was generated from the following file:

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