-
-/* tdm_error tdm_hwc_window_video_get_supported_format(tdm_hwc_window *hwc_window, const tbm_format **formats, int *count); */
-TEST_F(TDMHwcWindow, VideoGetSupportedFormatFailNull)
-{
- const tbm_format *formats;
- int count;
-
- error = tdm_hwc_window_video_get_supported_format(NULL, &formats, &count);
- ASSERT_NE(TDM_ERROR_NONE, error);
-
- if (hwc_count > 0) {
- error = tdm_hwc_window_video_get_supported_format(hwc_wins[0], NULL, &count);
- error = tdm_hwc_window_video_get_supported_format(hwc_wins[0], &formats, NULL);
- }
-}
-
-TEST_F(TDMHwcWindow, VideoGetSupportedFormatSuccessful)
-{
- const tbm_format *formats;
- int count;
-
- for (int i = 0; i < hwc_count; i++) {
- /* hwc_window with TDM_COMPOSITION_CLIENT dosn't support tdm_hwc_window_video_get_supported_format()*/
- error = tdm_hwc_window_set_composition_type(hwc_wins[i], TDM_COMPOSITION_CLIENT);
- ASSERT_EQ(TDM_ERROR_NONE, error);
- error = tdm_hwc_window_video_get_supported_format(hwc_wins[i], &formats, &count);
- ASSERT_NE(TDM_ERROR_NONE, error);
-
- /*TODO:: check format for TDM_COMPOSITION_VIDEO*/
- }
-}
-