diff options
Diffstat (limited to 'unittests/mock/ecore_evas_mock.cc')
-rw-r--r-- | unittests/mock/ecore_evas_mock.cc | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/unittests/mock/ecore_evas_mock.cc b/unittests/mock/ecore_evas_mock.cc new file mode 100644 index 0000000..14fcd7a --- /dev/null +++ b/unittests/mock/ecore_evas_mock.cc @@ -0,0 +1,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); +}
\ No newline at end of file |