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_METHOD2(ecore_wl2_window_class_set,
34 void(Ecore_Wl2_Window *, const char *));
35 MOCK_METHOD1(ecore_wl2_window_id_get,
36 int(Ecore_Wl2_Window *));
37 MOCK_METHOD1(ecore_evas_wayland2_window_get,
38 Ecore_Wl2_Window *(const Ecore_Evas *));
39 MOCK_METHOD1(ecore_evas_ecore_evas_get,
40 Ecore_Evas *(const Evas *));
41 MOCK_METHOD1(evas_object_evas_get,
43 MOCK_METHOD1(ecore_wl2_window_surface_get,
44 struct wl_surface *(Ecore_Wl2_Window *));
45 MOCK_METHOD3(evas_object_data_set,
46 void (Evas_Object *, const char *, const void *));
47 MOCK_METHOD4(evas_object_event_callback_add, void (Evas_Object *,
48 Evas_Callback_Type, Evas_Object_Event_Cb, const void *));
51 #endif // UNIT_TESTS_MOCK_ECORE_WL2_MOCK_H_