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::sdkInterfaces::test::MockChannelVolumeInterface Class Reference

#include <MockChannelVolumeInterface.h>

Inheritance diagram for alexaClientSDK::avsCommon::sdkInterfaces::test::MockChannelVolumeInterface:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::avsCommon::sdkInterfaces::test::MockChannelVolumeInterface:
Collaboration graph
[legend]

Public Member Functions

 MOCK_CONST_METHOD0 (getSpeakerType, avsCommon::sdkInterfaces::ChannelVolumeInterface::Type())
 
 MOCK_CONST_METHOD0 (getId, size_t())
 
 MOCK_METHOD0 (startDucking, bool())
 
 MOCK_METHOD0 (stopDucking, bool())
 
 MOCK_METHOD1 (setUnduckedVolume, bool(int8_t))
 
 MOCK_METHOD1 (setMute, bool(bool))
 
 MOCK_CONST_METHOD1 (getSpeakerSettings, bool(avsCommon::sdkInterfaces::SpeakerInterface::SpeakerSettings *))
 
void DelegateToReal ()
 
 MockChannelVolumeInterface (avsCommon::sdkInterfaces::ChannelVolumeInterface::Type type=avsCommon::sdkInterfaces::ChannelVolumeInterface::Type::AVS_SPEAKER_VOLUME, std::shared_ptr< avsCommon::sdkInterfaces::SpeakerInterface > speaker=std::make_shared< NiceMock< MockSpeakerInterface >>())
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::ChannelVolumeInterface
virtual bool startDucking ()=0
 
virtual bool stopDucking ()=0
 
virtual bool setUnduckedVolume (int8_t volume)=0
 
virtual bool adjustUnduckedVolume (int8_t delta)
 
virtual bool setMute (bool mute)=0
 
virtual bool getSpeakerSettings (avsCommon::sdkInterfaces::SpeakerInterface::SpeakerSettings *settings) const =0
 
virtual Type getSpeakerType () const =0
 
virtual std::size_t getId () const
 
virtual ~ChannelVolumeInterface ()=default
 

Additional Inherited Members

- Public Types inherited from alexaClientSDK::avsCommon::sdkInterfaces::ChannelVolumeInterface
enum  Type { Type::AVS_SPEAKER_VOLUME, Type::AVS_ALERTS_VOLUME }
 

Constructor & Destructor Documentation

◆ MockChannelVolumeInterface()

alexaClientSDK::avsCommon::sdkInterfaces::test::MockChannelVolumeInterface::MockChannelVolumeInterface ( avsCommon::sdkInterfaces::ChannelVolumeInterface::Type  type = avsCommon::sdkInterfaces::ChannelVolumeInterface::Type::AVS_SPEAKER_VOLUME,
std::shared_ptr< avsCommon::sdkInterfaces::SpeakerInterface speaker = std::make_shared<NiceMock<MockSpeakerInterface>>() 
)
inline

Member Function Documentation

◆ DelegateToReal()

void alexaClientSDK::avsCommon::sdkInterfaces::test::MockChannelVolumeInterface::DelegateToReal ( )
inline

◆ MOCK_CONST_METHOD0() [1/2]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockChannelVolumeInterface::MOCK_CONST_METHOD0 ( getSpeakerType  ,
avsCommon::sdkInterfaces::ChannelVolumeInterface::Type()   
)

◆ MOCK_CONST_METHOD0() [2/2]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockChannelVolumeInterface::MOCK_CONST_METHOD0 ( getId  ,
size_t()   
)

◆ MOCK_CONST_METHOD1()

alexaClientSDK::avsCommon::sdkInterfaces::test::MockChannelVolumeInterface::MOCK_CONST_METHOD1 ( getSpeakerSettings  ,
bool(avsCommon::sdkInterfaces::SpeakerInterface::SpeakerSettings *)   
)

◆ MOCK_METHOD0() [1/2]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockChannelVolumeInterface::MOCK_METHOD0 ( startDucking  ,
bool()   
)

◆ MOCK_METHOD0() [2/2]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockChannelVolumeInterface::MOCK_METHOD0 ( stopDucking  ,
bool()   
)

◆ MOCK_METHOD1() [1/2]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockChannelVolumeInterface::MOCK_METHOD1 ( setUnduckedVolume  ,
bool(int8_t)   
)

◆ MOCK_METHOD1() [2/2]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockChannelVolumeInterface::MOCK_METHOD1 ( setMute  ,
bool(bool)   
)

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