tpl_wayland_egl_thread: add testcase to gtest 15/134815/5
authorSangjin Lee <lsj119@samsung.com>
Fri, 21 Apr 2017 03:54:43 +0000 (12:54 +0900)
committerjoonbum.ko <joonbum.ko@samsung.com>
Wed, 21 Jun 2017 07:04:25 +0000 (16:04 +0900)
Change-Id: I3ce36d710b73ae025916cb92809babc07d1919f0

Makefile
tc/test/tpl-test_twe_thread_test.cpp [new file with mode: 0644]

index 943b97c..e7a334f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -73,7 +73,7 @@ ifneq ($(call is-feature-enabled,winsys_wl),)
 TPL_HEADERS += $(SRC_DIR)/tpl_worker_thread.h
 TPL_HEADERS += $(SRC_DIR)/tpl_wayland_egl_thread.h
 TPL_SRCS += $(SRC_DIR)/tpl_wayland_egl.c
-#TPL_SRCS += $(SRC_DIR)/tpl_wayland_egl_thread.c
+TPL_SRCS += $(SRC_DIR)/tpl_wayland_egl_thread.c
 TPL_SRCS += $(SRC_DIR)/tpl_wayland_vk_wsi.c
 TPL_SRCS += $(SRC_DIR)/tpl_gbm.c
 TPL_SRCS += $(SRC_DIR)/protocol/tizen-surface-protocol.c
diff --git a/tc/test/tpl-test_twe_thread_test.cpp b/tc/test/tpl-test_twe_thread_test.cpp
new file mode 100644 (file)
index 0000000..8a26ba8
--- /dev/null
@@ -0,0 +1,28 @@
+/**
+ * @file tpl-test_twe_thread_test.cpp
+ * @brief TPL Test case of twe_thread
+ *
+ */
+
+#include "gtest/gtest.h"
+
+#include "src/tpl-test_base.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+#include "tpl_wayland_egl_thread.h"
+#ifdef __cplusplus
+}
+#endif
+
+
+typedef TPLTestBase EXTRA_twe_thread;
+
+TEST_F(EXTRA_twe_thread, create_thread)
+{
+       twe_thread *thread;
+
+       thread = twe_thread_create();
+       ASSERT_NE((void*)NULL, thread);
+}
+