16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_MOCKSPEAKERINTERFACE_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_MOCKSPEAKERINTERFACE_H_ 26 namespace sdkInterfaces {
29 using namespace avsCommon::avs::speakerConstants;
33 static const bool MUTE(
true);
39 static const bool UNMUTE(
false);
53 bool setVolume(int8_t volume)
override;
54 bool setMute(
bool mute)
override;
66 m_settings.volume = volume;
71 m_settings.mute = mute;
80 settings->
volume = m_settings.volume;
81 settings->
mute = m_settings.mute;
103 void DelegateToReal();
120 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_MOCKSPEAKERINTERFACE_H_ Definition: gmock-actions.h:53
virtual bool setVolume(int8_t volume)=0
Definition: AmdMetricWrapperTest.cpp:24
::std::string string
Definition: gtest-port.h:1097
virtual bool setMute(bool mute)=0
#define ON_CALL(obj, call)
Definition: gmock-spec-builders.h:1841
MockSpeaker()
Constructor.
Definition: MockSpeakerInterface.h:86
bool mute
True means muted, false means unmuted.
Definition: SpeakerInterface.h:46
static const std::string UNMUTE_STRING("false")
String value for unmute.
void DelegateToReal()
Delegate call from Mock Speaker object to an object with actual implementation.
Definition: MockSpeakerInterface.h:110
Definition: SpeakerInterface.h:33
bool getSpeakerSettings(SpeakerInterface::SpeakerSettings *settings) override
Definition: MockSpeakerInterface.h:75
PolymorphicAction< internal::InvokeAction< FunctionImpl > > Invoke(FunctionImpl function_impl)
Definition: gmock-more-actions.h:114
Definition: MockSpeakerInterface.h:51
Definition: MockSpeakerInterface.h:94
const int8_t AVS_SET_VOLUME_MIN
AVS setVolume Minimum.
Definition: SpeakerConstants.h:30
Definition: SpeakerInterface.h:42
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
int8_t volume
Must be within [AVS_SET_VOLUME_MIN, AVS_SET_VOLUME_MAX].
Definition: SpeakerInterface.h:44
static const SpeakerInterface::SpeakerSettings DEFAULT_SETTINGS
Value for default volume settings.
Definition: MockSpeakerInterface.h:45
const internal::AnythingMatcher _
Definition: gmock-matchers.h:3729
static const bool UNMUTE(false)
Value for unmute.
#define MOCK_METHOD1(m,...)
Definition: gmock-generated-function-mockers.h:676
static const std::string MUTE_STRING("true")
String value for mute.
virtual bool getSpeakerSettings(SpeakerSettings *settings)=0
bool setMute(bool mute) override
Definition: MockSpeakerInterface.h:70
static const bool MUTE(true)
Value for mute.
bool setVolume(int8_t volume) override
Definition: MockSpeakerInterface.h:65