16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_MOCKCHANNELVOLUMEINTERFACE_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_MOCKCHANNELVOLUMEINTERFACE_H_ 25 namespace sdkInterfaces {
35 return (
size_t)m_speaker.get();
44 m_settings.
volume = volume;
48 m_settings.
mute = mute;
61 std::shared_ptr<avsCommon::sdkInterfaces::SpeakerInterface> speaker) :
71 const std::shared_ptr<avsCommon::sdkInterfaces::SpeakerInterface> m_speaker;
83 void DelegateToReal();
87 std::shared_ptr<avsCommon::sdkInterfaces::SpeakerInterface> speaker =
88 std::make_shared<NiceMock<MockSpeakerInterface>>()) :
90 m_manager{
type, speaker} {
113 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_MOCKCHANNELVOLUMEINTERFACE_H_ virtual std::size_t getId() const
Definition: ChannelVolumeInterface.h:117
Definition: gmock-actions.h:53
virtual bool getSpeakerSettings(avsCommon::sdkInterfaces::SpeakerInterface::SpeakerSettings *settings) const =0
avsCommon::sdkInterfaces::ChannelVolumeInterface::Type getSpeakerType() const
Definition: MockChannelVolumeInterface.h:31
Definition: AmdMetricWrapperTest.cpp:24
Volume type reflecting AVS Speaker API volume.
Type
Definition: ChannelVolumeInterface.h:37
#define ON_CALL(obj, call)
Definition: gmock-spec-builders.h:1841
bool startDucking()
Definition: MockChannelVolumeInterface.h:37
size_t getId() const
Definition: MockChannelVolumeInterface.h:34
bool mute
True means muted, false means unmuted.
Definition: SpeakerInterface.h:46
virtual Type getSpeakerType() const =0
Definition: ChannelVolumeInterface.h:32
PolymorphicAction< internal::InvokeAction< FunctionImpl > > Invoke(FunctionImpl function_impl)
Definition: gmock-more-actions.h:114
bool setMute(bool mute)
Definition: MockChannelVolumeInterface.h:47
Definition: MockChannelVolumeInterface.h:29
MockChannelVolumeManager(avsCommon::sdkInterfaces::ChannelVolumeInterface::Type type, std::shared_ptr< avsCommon::sdkInterfaces::SpeakerInterface > speaker)
Definition: MockChannelVolumeInterface.h:59
const int8_t AVS_SET_VOLUME_MIN
AVS setVolume Minimum.
Definition: SpeakerConstants.h:30
virtual bool setUnduckedVolume(int8_t volume)=0
Definition: SpeakerInterface.h:42
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Definition: MockChannelVolumeInterface.h:74
virtual bool stopDucking()=0
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 >>())
Definition: MockChannelVolumeInterface.h:84
int8_t volume
Must be within [AVS_SET_VOLUME_MIN, AVS_SET_VOLUME_MAX].
Definition: SpeakerInterface.h:44
bool stopDucking()
Definition: MockChannelVolumeInterface.h:40
type
Definition: upload.py:443
void DelegateToReal()
Definition: MockChannelVolumeInterface.h:97
bool getSpeakerSettings(avsCommon::sdkInterfaces::SpeakerInterface::SpeakerSettings *settings) const
Definition: MockChannelVolumeInterface.h:51
virtual bool startDucking()=0
const internal::AnythingMatcher _
Definition: gmock-matchers.h:3729
#define MOCK_CONST_METHOD1(m,...)
Definition: gmock-generated-function-mockers.h:688
#define MOCK_METHOD0(m,...)
Definition: gmock-generated-function-mockers.h:675
#define MOCK_METHOD1(m,...)
Definition: gmock-generated-function-mockers.h:676
#define MOCK_CONST_METHOD0(m,...)
Definition: gmock-generated-function-mockers.h:687
virtual bool setMute(bool mute)=0
bool setUnduckedVolume(int8_t volume)
Definition: MockChannelVolumeInterface.h:43