tests: add tc-e_util_transform test cases 15/249515/4
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 14 Dec 2020 06:34:40 +0000 (15:34 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 15 Dec 2020 00:27:30 +0000 (00:27 +0000)
This file contains testcases for e_util_transform api.

Change-Id: I3706e0f504d86550e15a266c83653d204dd6a3dc

tests/Makefile.am
tests/tc-e_util_transform.cpp [new file with mode: 0644]
tests/tc-main.h [new file with mode: 0644]

index 97aaf93e694b07356811d9e3aca7a6b8798eb63a..2a867968249d4ce7839c92f60debeb37248bd6ae 100644 (file)
@@ -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 (file)
index 0000000..c932022
--- /dev/null
@@ -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 (file)
index 0000000..851b9c8
--- /dev/null
@@ -0,0 +1,51 @@
+/**************************************************************************
+ *
+ * Copyright 2020 Samsung Electronics co., Ltd. All Rights Reserved.
+ *
+ * Contact: SooChan Lim <sc1.lim@samsung.com>
+ *
+ * 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 <vector>
+#include <list>
+#include <climits>
+#include <pthread.h>
+#include <gmock/gmock.h>
+#include <stdlib.h>
+#ifdef  __cplusplus
+extern "C" {
+#endif
+#include <e.h>
+#ifdef  __cplusplus
+}
+#endif
+
+using ::testing::TestWithParam;
+using ::testing::Bool;
+using ::testing::Values;
+using ::testing::Combine;
+
+#endif