2 * Copyright (c) 2020 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.
17 #ifndef UNIT_TESTS_MOCK_ECORE_WL2_MOCK_H_
18 #define UNIT_TESTS_MOCK_ECORE_WL2_MOCK_H_
20 #include <gmock/gmock.h>
22 #include <Ecore_Wl2.h>
23 #include <Elementary.h>
25 #include "mock/module_mock.h"
27 class EcoreWl2Mock : public virtual ModuleMock {
29 virtual ~EcoreWl2Mock() {}
31 MOCK_METHOD0(ecore_wl2_init,
33 MOCK_METHOD1(ecore_wl2_connected_display_get,
34 Ecore_Wl2_Display*(const char *));
35 MOCK_METHOD2(ecore_wl2_window_iconified_set,
36 void(Ecore_Wl2_Window *, Eina_Bool));
37 MOCK_METHOD2(ecore_wl2_window_class_set,
38 void(Ecore_Wl2_Window *, const char *));
39 MOCK_METHOD1(ecore_wl2_window_id_get,
40 int(Ecore_Wl2_Window *));
41 MOCK_METHOD1(ecore_wl2_display_disconnect,
42 void(Ecore_Wl2_Display *));
43 MOCK_METHOD0(ecore_wl2_shutdown,
45 MOCK_METHOD1(ecore_wl2_display_connect,
46 Ecore_Wl2_Display *(const char *));
47 MOCK_METHOD1(ecore_evas_wayland2_window_get,
48 Ecore_Wl2_Window *(const Ecore_Evas *));
49 MOCK_METHOD1(ecore_evas_ecore_evas_get,
50 Ecore_Evas *(const Evas *));
51 MOCK_METHOD1(evas_object_evas_get,
53 MOCK_METHOD1(evas_object_del,
54 void (Evas_Object *));
55 MOCK_METHOD1(ecore_wl2_window_surface_get,
56 struct wl_surface *(Ecore_Wl2_Window *));
57 MOCK_METHOD3(evas_object_data_set,
58 void (Evas_Object *, const char *, const void *));
59 MOCK_METHOD4(evas_object_event_callback_add, void (Evas_Object *,
60 Evas_Callback_Type, Evas_Object_Event_Cb, const void *));
63 #endif // UNIT_TESTS_MOCK_ECORE_WL2_MOCK_H_