2 * Copyright (c) 2022 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #include "mock/app_event_mock.hh"
19 #include "mock/mock_hook.hh"
20 #include "mock/test_fixture.hh"
22 extern "C" int event_add_event_handler(const char *event_name,
23 event_cb callback, void *user_data, event_handler_h *event_handler) {
24 return MOCK_HOOK_P4(AppEventMock, event_add_event_handler,
25 event_name, callback, user_data, event_handler);
28 extern "C" int event_remove_event_handler(event_handler_h event_handler) {
29 return MOCK_HOOK_P1(AppEventMock, event_remove_event_handler,
33 extern "C" int event_publish_app_event(const char *event_name,
35 return MOCK_HOOK_P2(AppEventMock, event_publish_app_event,
36 event_name, event_data);