diff options
author | Inkyun Kil <inkyun.kil@samsung.com> | 2020-10-30 14:58:28 +0900 |
---|---|---|
committer | Inkyun Kil <inkyun.kil@samsung.com> | 2020-11-19 15:57:08 +0900 |
commit | 0159ecc467ad5745ac204a690dbb24001be3981f (patch) | |
tree | c503405d3df4fc00eef602d1197ec7ed11238933 /unittests/mock/ecore_evas_mock.cc | |
parent | a8a5f55faa8880eff38874ca42d8178ba42e9aa7 (diff) | |
download | minicontrol-0159ecc467ad5745ac204a690dbb24001be3981f.tar.gz minicontrol-0159ecc467ad5745ac204a690dbb24001be3981f.tar.bz2 minicontrol-0159ecc467ad5745ac204a690dbb24001be3981f.zip |
Improve coverage
Change-Id: I9c74a2c5e6e95006db967a1f6770688f139b9335
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
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 |