From: SooChan Lim Date: Mon, 14 Dec 2020 06:34:40 +0000 (+0900) Subject: tests: add tc-e_util_transform test cases X-Git-Tag: submit/tizen/20201215.033043~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F15%2F249515%2F4;p=platform%2Fupstream%2Fenlightenment.git tests: add tc-e_util_transform test cases This file contains testcases for e_util_transform api. Change-Id: I3706e0f504d86550e15a266c83653d204dd6a3dc --- 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