diff options
Diffstat (limited to 'src/components/application_manager/test/mock/include/application_manager/event_engine')
2 files changed, 11 insertions, 1 deletions
diff --git a/src/components/application_manager/test/mock/include/application_manager/event_engine/event.h b/src/components/application_manager/test/mock/include/application_manager/event_engine/event.h index e76b767f17..55f5cd1320 100644 --- a/src/components/application_manager/test/mock/include/application_manager/event_engine/event.h +++ b/src/components/application_manager/test/mock/include/application_manager/event_engine/event.h @@ -77,7 +77,7 @@ class Event { * * @param so The smart_object received in HMI response */ - void set_smart_object(smart_objects::SmartObject& so); + void set_smart_object(const smart_objects::SmartObject& so); /* * @brief Retrieves event smart object diff --git a/src/components/application_manager/test/mock/include/application_manager/event_engine/event_dispatcher.h b/src/components/application_manager/test/mock/include/application_manager/event_engine/event_dispatcher.h index 875add2828..ff21b01c58 100644 --- a/src/components/application_manager/test/mock/include/application_manager/event_engine/event_dispatcher.h +++ b/src/components/application_manager/test/mock/include/application_manager/event_engine/event_dispatcher.h @@ -97,6 +97,13 @@ class EventDispatcher : public utils::Singleton<EventDispatcher> { */ virtual ~EventDispatcher(); + /* + * @brief removes observer + * when occurs unsubscribe from event + * @param observer to be removed + */ + void remove_observer_from_list(EventObserver* const observer); + DISALLOW_COPY_AND_ASSIGN(EventDispatcher); FRIEND_BASE_SINGLETON_CLASS(EventDispatcher); @@ -108,7 +115,10 @@ class EventDispatcher : public utils::Singleton<EventDispatcher> { // Members section sync_primitives::Lock state_lock_; + sync_primitives::Lock observer_list_lock_; EventObserverMap observers_; + ObserverList observers_list_; + }; } |