hwc: modify the some symbol
[platform/core/uifw/libtdm.git] / haltests / src / tc_tdm_hwc.cpp
index 4df9e54..541414f 100644 (file)
@@ -378,12 +378,12 @@ TEST_P(TDMHwc, GetChangedCompositionTypesFailNull)
        }
 }
 
-/* tdm_error tdm_hwc_accept_changes() */
+/* tdm_error tdm_hwc_accept_validation() */
 TEST_P(TDMHwc, AcceptChangesFailNull)
 {
        TDM_UT_SKIP_FLAG(has_outputs);
 
-       error = tdm_hwc_accept_changes(NULL);
+       error = tdm_hwc_accept_validation(NULL);
        ASSERT_NE(TDM_ERROR_NONE, error);
 }
 
@@ -395,10 +395,10 @@ TEST_P(TDMHwc, AcceptChangesFailNoHwc)
        for (int o = 0; o < output_count; o++) {
                hwc = tdm_output_get_hwc(outputs[o], &error);
                if (hwc) {
-                       error = tdm_hwc_accept_changes(hwc);
+                       error = tdm_hwc_accept_validation(hwc);
                        ASSERT_NE(TDM_ERROR_NONE, error);
                } else {
-                       error = tdm_hwc_accept_changes(hwc);
+                       error = tdm_hwc_accept_validation(hwc);
                        ASSERT_NE(TDM_ERROR_NONE, error);
                }
        }
@@ -422,7 +422,7 @@ TEST_P(TDMHwc, AcceptChangesSuccessful)
                        for (int w = 0; w < HWC_WIN_NUM; w++) {
                                hwc_wnds[w] = tdm_hwc_create_window(hwc, &error);
                                ASSERT_EQ(TDM_ERROR_NONE, error);
-                               error = tdm_hwc_window_set_composition_type(hwc_wnds[w], TDM_COMPOSITION_DEVICE);
+                               error = tdm_hwc_window_set_composition_type(hwc_wnds[w], TDM_HWC_WIN_COMPOSITION_DEVICE);
                                ASSERT_EQ(TDM_ERROR_NONE, error);
                        }
 
@@ -437,7 +437,7 @@ TEST_P(TDMHwc, AcceptChangesSuccessful)
                                ASSERT_EQ(TDM_ERROR_NONE, error);
                                ASSERT_EQ(get_num, num_types);
 
-                               error =  tdm_hwc_accept_changes(hwc);
+                               error =  tdm_hwc_accept_validation(hwc);
                                ASSERT_EQ(TDM_ERROR_NONE, error);
 
                                free(composition_types);
@@ -479,7 +479,7 @@ TEST_P(TDMHwc, CommitSuccessful)
                        for (int w = 0; w < HWC_WIN_NUM; w++) {
                                hwc_wnds[w] = tdm_hwc_create_window(hwc, &error);
                                ASSERT_EQ(TDM_ERROR_NONE, error);
-                               error = tdm_hwc_window_set_composition_type(hwc_wnds[w], TDM_COMPOSITION_DEVICE);
+                               error = tdm_hwc_window_set_composition_type(hwc_wnds[w], TDM_HWC_WIN_COMPOSITION_DEVICE);
                                ASSERT_EQ(TDM_ERROR_NONE, error);
                        }
 
@@ -494,7 +494,7 @@ TEST_P(TDMHwc, CommitSuccessful)
                                ASSERT_EQ(TDM_ERROR_NONE, error);
                                ASSERT_EQ(get_num, num_types);
 
-                               error =  tdm_hwc_accept_changes(hwc);
+                               error =  tdm_hwc_accept_validation(hwc);
                                ASSERT_EQ(TDM_ERROR_NONE, error);
 
                                free(composition_types);