AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
MockSpeakerManager.h
Go to the documentation of this file.
1 /*
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_MOCKSPEAKERMANAGER_H_
17 #define ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_MOCKSPEAKERMANAGER_H_
18 
19 #include <gmock/gmock.h>
20 
22 
23 namespace alexaClientSDK {
24 namespace avsCommon {
25 namespace sdkInterfaces {
26 namespace test {
27 
29 public:
31  setVolume,
32  std::future<bool>(
34  int8_t volume,
36 
39  void(
43 
46  std::future<bool>(
48  int8_t delta,
50 
52  setMute,
53  std::future<bool>(
55  bool mute,
57 
59  setVolume,
60  std::future<bool>(
62  int8_t volume,
63  bool forceNoNotifications,
65 
68  std::future<bool>(
70  int8_t delta,
71  bool forceNoNotifications,
73 
75  setMute,
76  std::future<bool>(
78  bool mute,
79  bool forceNoNotifications,
81 
82 #ifdef ENABLE_MAXVOLUME_SETTING
83  MOCK_METHOD1(setMaximumVolumeLimit, std::future<bool>(const int8_t maximumVolumeLimit));
84 #endif // ENABLE_MAXVOLUME_SETTING
85 
88  std::future<bool>(
91 
94  void(std::shared_ptr<avsCommon::sdkInterfaces::SpeakerManagerObserverInterface> observer));
97  void(std::shared_ptr<avsCommon::sdkInterfaces::SpeakerManagerObserverInterface> observer));
100  void(std::shared_ptr<avsCommon::sdkInterfaces::ChannelVolumeInterface> channelVolumeInterface));
101 };
102 
103 } // namespace test
104 } // namespace sdkInterfaces
105 } // namespace avsCommon
106 } // namespace alexaClientSDK
107 
108 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_MOCKSPEAKERMANAGER_H_
virtual std::future< bool > setVolume(ChannelVolumeInterface::Type type, int8_t volume, const NotificationProperties &properties)=0
virtual void removeSpeakerManagerObserver(std::shared_ptr< SpeakerManagerObserverInterface > observer)=0
MOCK_METHOD3(setVolume, std::future< bool >(avsCommon::sdkInterfaces::ChannelVolumeInterface::Type type, int8_t volume, const avsCommon::sdkInterfaces::SpeakerManagerInterface::NotificationProperties &properties))
MOCK_METHOD2(getSpeakerSettings, std::future< bool >(avsCommon::sdkInterfaces::ChannelVolumeInterface::Type type, avsCommon::sdkInterfaces::SpeakerInterface::SpeakerSettings *settings))
Definition: AmdMetricWrapperTest.cpp:24
virtual void addChannelVolumeInterface(std::shared_ptr< ChannelVolumeInterface > channelVolumeInterface)=0
virtual std::future< bool > adjustVolume(ChannelVolumeInterface::Type type, int8_t delta, const NotificationProperties &properties)=0
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
MOCK_METHOD4(setVolume, std::future< bool >(avsCommon::sdkInterfaces::ChannelVolumeInterface::Type type, int8_t volume, bool forceNoNotifications, avsCommon::sdkInterfaces::SpeakerManagerObserverInterface::Source source))
virtual void onExternalSpeakerSettingsUpdate(ChannelVolumeInterface::Type type, const SpeakerInterface::SpeakerSettings &speakerSettings, const NotificationProperties &properties)
Definition: SpeakerManagerInterface.h:93
type
Definition: upload.py:443
MOCK_METHOD1(addSpeakerManagerObserver, void(std::shared_ptr< avsCommon::sdkInterfaces::SpeakerManagerObserverInterface > observer))
virtual std::future< bool > getSpeakerSettings(ChannelVolumeInterface::Type type, SpeakerInterface::SpeakerSettings *settings)=0
Source
Indicates whether the source of the call is from an AVS Directive or through a Local API call...
Definition: SpeakerManagerObserverInterface.h:35
virtual void addSpeakerManagerObserver(std::shared_ptr< SpeakerManagerObserverInterface > observer)=0
virtual std::future< bool > setMute(ChannelVolumeInterface::Type type, bool mute, const NotificationProperties &properties)=0

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