change the utests to haltests
[platform/core/uifw/libtdm.git] / haltests / src / tc_tdm_helper.cpp
similarity index 96%
rename from utests/src/ut_tdm_helper.cpp
rename to haltests/src/tc_tdm_helper.cpp
index 5aa34b1..4509cd0 100644 (file)
@@ -28,7 +28,7 @@
  *
 **************************************************************************/
 
-#include "ut_tdm.h"
+#include "tc_tdm.h"
 
 /* LCOV_EXCL_START */
 
@@ -396,7 +396,7 @@ TEST_P(TDMHelper, HelperDumpStart)
 }
 
 static void
-_ut_tdm_helper_capture_cb(tbm_surface_h buffer, void *user_data)
+_tc_tdm_helper_capture_cb(tbm_surface_h buffer, void *user_data)
 {
 }
 
@@ -412,16 +412,16 @@ TEST_P(TDMHelper, HelperCaptureOutput)
                ASSERT_EQ(ret, TDM_ERROR_NONE);
                ASSERT_NE(output, NULL);
 
-               if (!ut_tdm_output_is_connected(output))
+               if (!tc_tdm_output_is_connected(output))
                        continue;
 
-               ASSERT_EQ(ut_tdm_output_prepare(dpy, output, true), true);
+               ASSERT_EQ(tc_tdm_output_prepare(dpy, output, true), true);
 
                dump = tbm_surface_create(TDM_UT_BUFFER_SIZE, TDM_UT_BUFFER_SIZE, TBM_FORMAT_ARGB8888);
                ASSERT_NE(dump, NULL);
 
                ASSERT_EQ(tdm_helper_capture_output(output, dump, 0, 0, TDM_UT_BUFFER_SIZE, TDM_UT_BUFFER_SIZE,
-                                                                                       _ut_tdm_helper_capture_cb, NULL), TDM_ERROR_NONE);
+                                                                                       _tc_tdm_helper_capture_cb, NULL), TDM_ERROR_NONE);
 
                tdm_helper_dump_buffer_str(dump, NULL, (char*)typeid(*this).name());
 
@@ -435,7 +435,7 @@ TEST_P(TDMHelper, HelperCaptureOutputNullObject)
        tbm_surface_h dump = (tbm_surface_h)TDM_UT_INVALID_VALUE;
 
        ASSERT_EQ(tdm_helper_capture_output(NULL, dump, 0, 0, TDM_UT_BUFFER_SIZE, TDM_UT_BUFFER_SIZE,
-                                                                               _ut_tdm_helper_capture_cb, NULL), TDM_ERROR_INVALID_PARAMETER);
+                                                                               _tc_tdm_helper_capture_cb, NULL), TDM_ERROR_INVALID_PARAMETER);
 }
 
 TEST_P(TDMHelper, HelperCaptureOutputNullOther)
@@ -451,7 +451,7 @@ TEST_P(TDMHelper, HelperCaptureOutputNullOther)
        tbm_surface_h dump = (tbm_surface_h)TDM_UT_INVALID_VALUE;
 
        ASSERT_EQ(tdm_helper_capture_output(NULL, dump, 0, 0, TDM_UT_BUFFER_SIZE, TDM_UT_BUFFER_SIZE,
-                                                                               _ut_tdm_helper_capture_cb, NULL), TDM_ERROR_INVALID_PARAMETER);
+                                                                               _tc_tdm_helper_capture_cb, NULL), TDM_ERROR_INVALID_PARAMETER);
 }
 
 TEST_P(TDMHelper, HelperGetDisplayInformation)
@@ -464,9 +464,9 @@ TEST_P(TDMHelper, HelperGetDisplayInformation)
                tdm_output *output = tdm_display_get_output(dpy, o, &ret);
                ASSERT_EQ(ret, TDM_ERROR_NONE);
                ASSERT_NE(output, NULL);
-               if (!ut_tdm_output_is_connected(output))
+               if (!tc_tdm_output_is_connected(output))
                        continue;
-               ASSERT_EQ(ut_tdm_output_prepare(dpy, output, true), true);
+               ASSERT_EQ(tc_tdm_output_prepare(dpy, output, true), true);
        }
 
        tdm_helper_get_display_information(dpy, reply, &len);