From ae97bea7b1f6a6a5d5889f1c3e47bd9aa888f220 Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Mon, 14 Dec 2020 15:34:40 +0900 Subject: [PATCH] tests: add tc-e_util_transform test cases This file contains testcases for e_util_transform api. Change-Id: I3706e0f504d86550e15a266c83653d204dd6a3dc --- tests/Makefile.am | 34 ++++++++++++++++++++++- tests/tc-e_util_transform.cpp | 25 +++++++++++++++++ tests/tc-main.h | 51 +++++++++++++++++++++++++++++++++++ 3 files changed, 109 insertions(+), 1 deletion(-) create mode 100644 tests/tc-e_util_transform.cpp create mode 100644 tests/tc-main.h diff --git a/tests/Makefile.am b/tests/Makefile.am index 97aaf93e69..2a86796824 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,19 +1,51 @@ bin_PROGRAMS = enlightenment-tests +#tc_e_util_transform_sources = \ +# tc-e_util_transform.cpp \ +# ../src/bin/e_util_transform.c + enlightenment_tests_SOURCES = \ - tc-main.cpp + tc-main.cpp \ + tc-e_util_transform.cpp \ + $(top_srcdir)/src/bin/e_util_transform.c + +#enlightenment_tests_SOURCES += \ +# tc-e_util_transform.cpp \ +# ../src/bin/e_util_transform.c + +enlightenment_tests_CFLAGS = \ + @DLOG_CFLAGS@ \ + @WAYLAND_CFLAGS@ \ + @WAYLAND_TBM_CFLAGS@ \ + @E_CFLAGS@ \ + @GMOCK_CFLAGS@ \ + @SUID_CFLAGS@ \ + @e_cflags@ \ + ${CFLAGS} \ + -I$(top_builddir)/src/bin \ + -I$(top_builddir)/src/bin/video \ + -I$(top_builddir)/src/bin/services \ + -I$(top_builddir)/src/modules enlightenment_tests_CXXFLAGS = \ @DLOG_CFLAGS@ \ + @WAYLAND_CFLAGS@ \ + @WAYLAND_TBM_CFLAGS@ \ + @E_CFLAGS@ \ @GMOCK_CFLAGS@ \ @SUID_CFLAGS@ \ ${CXXFLAGS} \ -I$(top_builddir)/src/bin \ + -I$(top_builddir)/src/bin/video \ + -I$(top_builddir)/src/bin/services \ -I$(top_builddir)/src/modules enlightenment_tests_LDFLAGS = \ @DLOG_LIBS@ \ + @WAYLAND_LIBS@ \ + @WAYLAND_TBM_LIBS@ \ + @E_LIBS@ \ @GMOCK_LIBS@ \ @SUID_CFLAGS@ \ ${LDFLAGS} \ diff --git a/tests/tc-e_util_transform.cpp b/tests/tc-e_util_transform.cpp new file mode 100644 index 0000000000..c9320220e0 --- /dev/null +++ b/tests/tc-e_util_transform.cpp @@ -0,0 +1,25 @@ +#include "tc-main.h" + +#ifdef __cplusplus +extern "C" { +#endif +#include "e_util_transform.h" +#ifdef __cplusplus +} +#endif + +class EUtilTransform : public ::testing::Test +{ +public: + void SetUp(void) override { + } + + void TearDown(void) override { + } +}; + + +TEST_F(EUtilTransform, new_del) +{ + EXPECT_TRUE(true); +} diff --git a/tests/tc-main.h b/tests/tc-main.h new file mode 100644 index 0000000000..851b9c8a84 --- /dev/null +++ b/tests/tc-main.h @@ -0,0 +1,51 @@ +/************************************************************************** + * + * Copyright 2020 Samsung Electronics co., Ltd. All Rights Reserved. + * + * Contact: SooChan Lim + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sub license, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice (including the + * next paragraph) shall be included in all copies or substantial portions + * of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. + * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR + * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * +**************************************************************************/ + +#ifndef __TC_MAIN_H__ +#define __TC_MAIN_H__ + +#include +#include +#include +#include +#include +#include +#ifdef __cplusplus +extern "C" { +#endif +#include +#ifdef __cplusplus +} +#endif + +using ::testing::TestWithParam; +using ::testing::Bool; +using ::testing::Values; +using ::testing::Combine; + +#endif -- 2.34.1