hwc: modify the some symbol
[platform/core/uifw/libtdm.git] / haltests / src / tc_tdm_hwc_window.cpp
index b330e85..3f91ace 100644 (file)
@@ -81,7 +81,7 @@ TEST_P(TDMHwcWindow, DestroyWindowSuccessful)
        }
 }
 
-/* tbm_surface_queue_h tdm_hwc_window_get_buffer_queue() */
+/* tbm_surface_queue_h tdm_hwc_window_acquire_buffer_queue() */
 TEST_P(TDMHwcWindow, GetBufferQueueFailNull)
 {
        TDM_UT_SKIP_FLAG(has_outputs);
@@ -89,11 +89,11 @@ TEST_P(TDMHwcWindow, GetBufferQueueFailNull)
        tdm_error error = TDM_ERROR_NONE;
        tbm_surface_queue_h queue = NULL;
 
-       queue = tdm_hwc_window_get_buffer_queue(NULL, &error);
+       queue = tdm_hwc_window_acquire_buffer_queue(NULL, &error);
        ASSERT_NE(TDM_ERROR_NONE, error);
        ASSERT_EQ(NULL, queue);
 
-       queue = tdm_hwc_window_get_buffer_queue(NULL, NULL);
+       queue = tdm_hwc_window_acquire_buffer_queue(NULL, NULL);
        ASSERT_EQ(NULL, queue);
 }
 
@@ -126,13 +126,13 @@ TEST_P(TDMHwcWindow, GetBufferQueueSuccessful)
                                error = tdm_hwc_window_set_info(hwc_wins[w], &info);
                                ASSERT_EQ(TDM_ERROR_NONE, error);
 
-                               queue = tdm_hwc_window_get_buffer_queue(hwc_wins[w], &error);
-                               tbm_surface_queue_destroy(queue);
+                               queue = tdm_hwc_window_acquire_buffer_queue(hwc_wins[w], &error);
+                               tdm_hwc_window_release_buffer_queue(hwc_wins[w], queue);
                                ASSERT_EQ(TDM_ERROR_NONE, error);
                                ASSERT_NE(NULL, queue);
 
-                               queue = tdm_hwc_window_get_buffer_queue(hwc_wins[w], NULL);
-                               tbm_surface_queue_destroy(queue);
+                               queue = tdm_hwc_window_acquire_buffer_queue(hwc_wins[w], NULL);
+                               tdm_hwc_window_release_buffer_queue(hwc_wins[w], queue);
                                ASSERT_NE(NULL, queue);
                        }
 
@@ -150,7 +150,7 @@ TEST_P(TDMHwcWindow, SetCompositionTypeFailNull)
 
        tdm_error error = TDM_ERROR_NONE;
 
-       error = tdm_hwc_window_set_composition_type(NULL, TDM_COMPOSITION_DEVICE);
+       error = tdm_hwc_window_set_composition_type(NULL, TDM_HWC_WIN_COMPOSITION_DEVICE);
        ASSERT_NE(TDM_ERROR_NONE, error);
 }
 
@@ -167,7 +167,7 @@ TEST_P(TDMHwcWindow, SetCompositionTypeFailInvalieCompositionType)
                if (hwc) {
                        hwc_win = tdm_hwc_create_window(hwc, &error);
                        ASSERT_NE(NULL, hwc_win);
-                       error = tdm_hwc_window_set_composition_type(hwc_win, tdm_hwc_window_composition(TDM_COMPOSITION_NONE - 1));
+                       error = tdm_hwc_window_set_composition_type(hwc_win, tdm_hwc_window_composition(TDM_HWC_WIN_COMPOSITION_NONE - 1));
                        ASSERT_NE(TDM_ERROR_NONE, error);
                        tdm_hwc_window_destroy(hwc_win);
                }
@@ -192,11 +192,11 @@ TEST_P(TDMHwcWindow, SetCompositionTypeSuccessful)
                        }
 
                        for (w = 0; w < HWC_WIN_NUM; w++) {
-                               error = tdm_hwc_window_set_composition_type(hwc_wins[w], TDM_COMPOSITION_DEVICE);
+                               error = tdm_hwc_window_set_composition_type(hwc_wins[w], TDM_HWC_WIN_COMPOSITION_DEVICE);
                                ASSERT_EQ(TDM_ERROR_NONE, error);
-                               error = tdm_hwc_window_set_composition_type(hwc_wins[w], TDM_COMPOSITION_CLIENT);
+                               error = tdm_hwc_window_set_composition_type(hwc_wins[w], TDM_HWC_WIN_COMPOSITION_CLIENT);
                                ASSERT_EQ(TDM_ERROR_NONE, error);
-                               error = tdm_hwc_window_set_composition_type(hwc_wins[w], TDM_COMPOSITION_CURSOR);
+                               error = tdm_hwc_window_set_composition_type(hwc_wins[w], TDM_HWC_WIN_COMPOSITION_CURSOR);
                                ASSERT_EQ(TDM_ERROR_NONE, error);
                        }