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::MockFocusManager Class Reference

Mock class that implements the FocusManager. More...

#include <MockFocusManager.h>

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

Public Member Functions

 MOCK_METHOD3 (acquireChannel, bool(const std::string &channelName, std::shared_ptr< avsCommon::sdkInterfaces::ChannelObserverInterface > channelObserver, const std::string &interfaceName))
 
 MOCK_METHOD2 (acquireChannel, bool(const std::string &channelName, std::shared_ptr< avsCommon::sdkInterfaces::FocusManagerInterface::Activity > channelActivity))
 
 MOCK_METHOD2 (releaseChannel, std::future< bool >(const std::string &channelName, std::shared_ptr< avsCommon::sdkInterfaces::ChannelObserverInterface > channelObserver))
 
 MOCK_METHOD0 (stopForegroundActivity, void())
 
 MOCK_METHOD1 (addObserver, void(const std::shared_ptr< avsCommon::sdkInterfaces::FocusManagerObserverInterface > &observer))
 
 MOCK_METHOD1 (removeObserver, void(const std::shared_ptr< avsCommon::sdkInterfaces::FocusManagerObserverInterface > &observer))
 
 MOCK_METHOD0 (stopAllActivities, void())
 
 MOCK_METHOD3 (modifyContentType, void(const std::string &, const std::string &, avsCommon::avs::ContentType))
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::FocusManagerInterface
virtual ~FocusManagerInterface ()=default
 Destructor. More...
 
virtual bool acquireChannel (const std::string &channelName, std::shared_ptr< avsCommon::sdkInterfaces::ChannelObserverInterface > channelObserver, const std::string &interfaceName)=0
 
virtual bool acquireChannel (const std::string &channelName, std::shared_ptr< avsCommon::sdkInterfaces::FocusManagerInterface::Activity > channelActivity)=0
 
virtual std::future< bool > releaseChannel (const std::string &channelName, std::shared_ptr< avsCommon::sdkInterfaces::ChannelObserverInterface > channelObserver)=0
 
virtual void stopForegroundActivity ()=0
 
virtual void stopAllActivities ()=0
 
virtual void addObserver (const std::shared_ptr< avsCommon::sdkInterfaces::FocusManagerObserverInterface > &observer)=0
 
virtual void removeObserver (const std::shared_ptr< avsCommon::sdkInterfaces::FocusManagerObserverInterface > &observer)=0
 
virtual void modifyContentType (const std::string &channelName, const std::string &interfaceName, avsCommon::avs::ContentType contentType)=0
 

Additional Inherited Members

- Static Public Attributes inherited from alexaClientSDK::avsCommon::sdkInterfaces::FocusManagerInterface
static constexpr const char * DIALOG_CHANNEL_NAME = "Dialog"
 The default Dialog Channel name. More...
 
static constexpr unsigned int DIALOG_CHANNEL_PRIORITY = 100
 The default dialog Channel priority. More...
 
static constexpr const char * COMMUNICATIONS_CHANNEL_NAME = "Communications"
 The default Communications Channel name. More...
 
static constexpr unsigned int COMMUNICATIONS_CHANNEL_PRIORITY = 150
 The default Communications Channel priority. More...
 
static constexpr const char * ALERT_CHANNEL_NAME = "Alert"
 The default Alert Channel name. More...
 
static constexpr unsigned int ALERT_CHANNEL_PRIORITY = 200
 The default Alert Channel priority. More...
 
static constexpr const char * CONTENT_CHANNEL_NAME = "Content"
 The default Content Channel name. More...
 
static constexpr unsigned int CONTENT_CHANNEL_PRIORITY = 300
 The default Content Channel priority. More...
 
static constexpr const char * VISUAL_CHANNEL_NAME = "Visual"
 The default Visual Channel name. More...
 
static constexpr unsigned int VISUAL_CHANNEL_PRIORITY = 100
 The default Visual Channel priority. More...
 

Detailed Description

Mock class that implements the FocusManager.

Member Function Documentation

◆ MOCK_METHOD0() [1/2]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockFocusManager::MOCK_METHOD0 ( stopForegroundActivity  ,
void()   
)

◆ MOCK_METHOD0() [2/2]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockFocusManager::MOCK_METHOD0 ( stopAllActivities  ,
void()   
)

◆ MOCK_METHOD1() [1/2]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockFocusManager::MOCK_METHOD1 ( addObserver  ,
void(const std::shared_ptr< avsCommon::sdkInterfaces::FocusManagerObserverInterface > &observer)   
)

◆ MOCK_METHOD1() [2/2]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockFocusManager::MOCK_METHOD1 ( removeObserver  ,
void(const std::shared_ptr< avsCommon::sdkInterfaces::FocusManagerObserverInterface > &observer)   
)

◆ MOCK_METHOD2() [1/2]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockFocusManager::MOCK_METHOD2 ( acquireChannel  ,
bool(const std::string &channelName, std::shared_ptr< avsCommon::sdkInterfaces::FocusManagerInterface::Activity > channelActivity)   
)

◆ MOCK_METHOD2() [2/2]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockFocusManager::MOCK_METHOD2 ( releaseChannel  ,
std::future< bool >  const std::string &channelName, std::shared_ptr< avsCommon::sdkInterfaces::ChannelObserverInterface > channelObserver 
)

◆ MOCK_METHOD3() [1/2]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockFocusManager::MOCK_METHOD3 ( acquireChannel  ,
bool(const std::string &channelName, std::shared_ptr< avsCommon::sdkInterfaces::ChannelObserverInterface > channelObserver, const std::string &interfaceName)   
)

◆ MOCK_METHOD3() [2/2]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockFocusManager::MOCK_METHOD3 ( modifyContentType  ,
void(const std::string &, const std::string &, avsCommon::avs::ContentType  
)

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