![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <MockShutdownNotifier.h>
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 > &)>)) | |
![]() | |
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... | |
Mock class that implements ShutdownNotifierInterface.
alexaClientSDK::acsdkShutdownManagerInterfaces::test::MockShutdownNotifier::MOCK_METHOD1 | ( | addObserver | , |
void(const std::shared_ptr< avsCommon::utils::RequiresShutdown > &observer) | |||
) |
alexaClientSDK::acsdkShutdownManagerInterfaces::test::MockShutdownNotifier::MOCK_METHOD1 | ( | removeObserver | , |
void(const std::shared_ptr< avsCommon::utils::RequiresShutdown > &observer) | |||
) |
alexaClientSDK::acsdkShutdownManagerInterfaces::test::MockShutdownNotifier::MOCK_METHOD1 | ( | addWeakPtrObserver | , |
void(const std::weak_ptr< avsCommon::utils::RequiresShutdown > &observer) | |||
) |
alexaClientSDK::acsdkShutdownManagerInterfaces::test::MockShutdownNotifier::MOCK_METHOD1 | ( | removeWeakPtrObserver | , |
void(const std::weak_ptr< avsCommon::utils::RequiresShutdown > &observer) | |||
) |
alexaClientSDK::acsdkShutdownManagerInterfaces::test::MockShutdownNotifier::MOCK_METHOD1 | ( | notifyObservers | , |
void(std::function< void(const std::shared_ptr< avsCommon::utils::RequiresShutdown > &)>) | |||
) |
alexaClientSDK::acsdkShutdownManagerInterfaces::test::MockShutdownNotifier::MOCK_METHOD1 | ( | notifyObserversInReverse | , |
bool(std::function< void(const std::shared_ptr< avsCommon::utils::RequiresShutdown > &)>) | |||
) |
alexaClientSDK::acsdkShutdownManagerInterfaces::test::MockShutdownNotifier::MOCK_METHOD1 | ( | setAddObserverFunction | , |
void(std::function< void(const std::shared_ptr< avsCommon::utils::RequiresShutdown > &)>) | |||
) |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0