summaryrefslogtreecommitdiff
path: root/unittests/mock/ecore_evas_mock.cc
blob: 14fcd7a676911522246a8ea4c86d6be2ec2b1ddc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * Copyright (c) 2020 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.
 */

#include "ecore_evas_mock.h"

#include "mock_hook.h"
#include "test_fixture.h"


extern "C" Ecore_Evas* ecore_evas_object_ecore_evas_get(Evas_Object* arg0) {
  return MOCK_HOOK_P1(EcoreEvasMock, ecore_evas_object_ecore_evas_get, arg0);
}

extern "C" void ecore_evas_data_set(Ecore_Evas* arg0, const char* arg1,
    const void* arg2) {
  return MOCK_HOOK_P3(EcoreEvasMock, ecore_evas_data_set, arg0, arg1, arg2);
}

extern "C" void ecore_evas_callback_delete_request_set(Ecore_Evas* arg0,
    Ecore_Evas_Event_Cb arg1) {
  return MOCK_HOOK_P2(EcoreEvasMock, ecore_evas_callback_delete_request_set,
      arg0, arg1);
}

extern "C" void evas_object_event_callback_add(Evas_Object *eo_obj,
    Evas_Callback_Type type, Evas_Object_Event_Cb func, const void *data) {
  return MOCK_HOOK_P4(EcoreEvasMock, evas_object_event_callback_add,
      eo_obj, type, func, data);
}