bf7f84ff30ba971a85c111bc9f106ec6a7051de3
[platform/core/appfw/appcore-widget.git] / test / unit_tests / mock / ecore_wl2_mock.h
1 /*
2  * Copyright (c) 2020 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 #ifndef UNIT_TESTS_MOCK_ECORE_WL2_MOCK_H_
18 #define UNIT_TESTS_MOCK_ECORE_WL2_MOCK_H_
19
20 #include <gmock/gmock.h>
21 #include <Eina.h>
22 #include <Ecore_Wl2.h>
23 #include <Elementary.h>
24
25 #include "mock/module_mock.h"
26
27 class EcoreWl2Mock : public virtual ModuleMock {
28  public:
29   virtual ~EcoreWl2Mock() {}
30
31   MOCK_METHOD0(ecore_wl2_init,
32       int());
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,
44       int());
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,
52       Evas *(const Eo *));
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 *));
61 };
62
63 #endif  // UNIT_TESTS_MOCK_ECORE_WL2_MOCK_H_