summaryrefslogtreecommitdiff
path: root/notification-ex/mock_listener.h
diff options
context:
space:
mode:
Diffstat (limited to 'notification-ex/mock_listener.h')
-rw-r--r--notification-ex/mock_listener.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/notification-ex/mock_listener.h b/notification-ex/mock_listener.h
new file mode 100644
index 0000000..1df439b
--- /dev/null
+++ b/notification-ex/mock_listener.h
@@ -0,0 +1,40 @@
+/*
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef NOTIFICATION_EX_MOCK_LISTENER_H_
+#define NOTIFICATION_EX_MOCK_LISTENER_H_
+
+#include "notification-ex/observer_interface.h"
+
+#ifndef EXPORT_API
+#define EXPORT_API __attribute__((visibility("default")))
+#endif
+
+namespace notification {
+
+class EXPORT_API MockEventsListener : public IEventListener {
+ public:
+ MockEventsListener();
+ virtual ~MockEventsListener();
+
+ void RegisterObserver(IEventObserver observer) override;
+ void UnRegisterObserver(IEventObserver observer) override;
+ void NotifyAll() override;
+};
+
+} // namespace notification
+
+#endif // NOTIFICATION_EX_MOCK_LISTENER_H_