AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::acsdkShutdownManagerInterfaces::test::MockShutdownNotifier Class Reference

#include <MockShutdownNotifier.h>

Inheritance diagram for alexaClientSDK::acsdkShutdownManagerInterfaces::test::MockShutdownNotifier:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::acsdkShutdownManagerInterfaces::test::MockShutdownNotifier:
Collaboration graph
[legend]

Public Member Functions

 MOCK_METHOD1 (addObserver, void(const std::shared_ptr< avsCommon::utils::RequiresShutdown > &observer))
 
 MOCK_METHOD1 (removeObserver, void(const std::shared_ptr< avsCommon::utils::RequiresShutdown > &observer))
 
 MOCK_METHOD1 (addWeakPtrObserver, void(const std::weak_ptr< avsCommon::utils::RequiresShutdown > &observer))
 
 MOCK_METHOD1 (removeWeakPtrObserver, void(const std::weak_ptr< avsCommon::utils::RequiresShutdown > &observer))
 
 MOCK_METHOD1 (notifyObservers, void(std::function< void(const std::shared_ptr< avsCommon::utils::RequiresShutdown > &)>))
 
 MOCK_METHOD1 (notifyObserversInReverse, bool(std::function< void(const std::shared_ptr< avsCommon::utils::RequiresShutdown > &)>))
 
 MOCK_METHOD1 (setAddObserverFunction, void(std::function< void(const std::shared_ptr< avsCommon::utils::RequiresShutdown > &)>))
 
- Public Member Functions inherited from alexaClientSDK::notifierInterfaces::NotifierInterface< avsCommon::utils::RequiresShutdown >
virtual ~NotifierInterface ()=default
 
virtual void addObserver (const std::shared_ptr< avsCommon::utils::RequiresShutdown > &observer)=0
 Add an observer. More...
 
virtual void removeObserver (const std::shared_ptr< avsCommon::utils::RequiresShutdown > &observer)=0
 Remove an observer. More...
 
virtual void addWeakPtrObserver (const std::weak_ptr< avsCommon::utils::RequiresShutdown > &observer)=0
 Add a weak reference to an observer. More...
 
virtual void removeWeakPtrObserver (const std::weak_ptr< avsCommon::utils::RequiresShutdown > &observer)=0
 Remove an observer. More...
 
virtual void notifyObservers (std::function< void(const std::shared_ptr< avsCommon::utils::RequiresShutdown > &)> notify)=0
 Notify the observers in the order that they were added. More...
 
virtual bool notifyObserversInReverse (std::function< void(const std::shared_ptr< avsCommon::utils::RequiresShutdown > &)> notify)=0
 Notify the observers in the reverse order that they were added. More...
 
virtual void setAddObserverFunction (std::function< void(const std::shared_ptr< avsCommon::utils::RequiresShutdown > &)> postAddFunc)=0
 Set a function for notifications on an observer additions. More...
 

Detailed Description

Mock class that implements ShutdownNotifierInterface.

Member Function Documentation

◆ MOCK_METHOD1() [1/7]

alexaClientSDK::acsdkShutdownManagerInterfaces::test::MockShutdownNotifier::MOCK_METHOD1 ( addObserver  ,
void(const std::shared_ptr< avsCommon::utils::RequiresShutdown > &observer)   
)

◆ MOCK_METHOD1() [2/7]

alexaClientSDK::acsdkShutdownManagerInterfaces::test::MockShutdownNotifier::MOCK_METHOD1 ( removeObserver  ,
void(const std::shared_ptr< avsCommon::utils::RequiresShutdown > &observer)   
)

◆ MOCK_METHOD1() [3/7]

alexaClientSDK::acsdkShutdownManagerInterfaces::test::MockShutdownNotifier::MOCK_METHOD1 ( addWeakPtrObserver  ,
void(const std::weak_ptr< avsCommon::utils::RequiresShutdown > &observer)   
)

◆ MOCK_METHOD1() [4/7]

alexaClientSDK::acsdkShutdownManagerInterfaces::test::MockShutdownNotifier::MOCK_METHOD1 ( removeWeakPtrObserver  ,
void(const std::weak_ptr< avsCommon::utils::RequiresShutdown > &observer)   
)

◆ MOCK_METHOD1() [5/7]

alexaClientSDK::acsdkShutdownManagerInterfaces::test::MockShutdownNotifier::MOCK_METHOD1 ( notifyObservers  ,
void(std::function< void(const std::shared_ptr< avsCommon::utils::RequiresShutdown > &)>)   
)

◆ MOCK_METHOD1() [6/7]

alexaClientSDK::acsdkShutdownManagerInterfaces::test::MockShutdownNotifier::MOCK_METHOD1 ( notifyObserversInReverse  ,
bool(std::function< void(const std::shared_ptr< avsCommon::utils::RequiresShutdown > &)>)   
)

◆ MOCK_METHOD1() [7/7]

alexaClientSDK::acsdkShutdownManagerInterfaces::test::MockShutdownNotifier::MOCK_METHOD1 ( setAddObserverFunction  ,
void(std::function< void(const std::shared_ptr< avsCommon::utils::RequiresShutdown > &)>)   
)

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