15 #ifndef ACSDK_NOTIFIERINTERFACES_TEST_MOCKNOTIFIER_H_ 16 #define ACSDK_NOTIFIERINTERFACES_TEST_MOCKNOTIFIER_H_ 23 namespace notifierInterfaces {
42 template <
typename ObserverType>
58 #endif // ACSDK_NOTIFIERINTERFACES_TEST_MOCKNOTIFIER_H_ virtual void setAddObserverFunction(std::function< void(const std::shared_ptr< ObserverType > &)> postAddFunc)=0
Set a function for notifications on an observer additions.
Definition: AmdMetricWrapperTest.cpp:24
MOCK_METHOD1_T(addObserver, void(const std::shared_ptr< ObserverType > &observer))
virtual void notifyObservers(std::function< void(const std::shared_ptr< ObserverType > &)> notify)=0
Notify the observers in the order that they were added.
virtual bool notifyObserversInReverse(std::function< void(const std::shared_ptr< ObserverType > &)> notify)=0
Notify the observers in the reverse order that they were added.
Mock class that implements NotifierInterface.
Definition: MockNotifier.h:43
virtual void removeObserver(const std::shared_ptr< ObserverType > &observer)=0
Remove an observer.
virtual void addObserver(const std::shared_ptr< ObserverType > &observer)=0
Add an observer.
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
virtual void addWeakPtrObserver(const std::weak_ptr< ObserverType > &observer)=0
Add a weak reference to an observer.
Generic observer operations interface.
Definition: NotifierInterface.h:33
virtual void removeWeakPtrObserver(const std::weak_ptr< ObserverType > &observer)=0
Remove an observer.