From 04c16b68cfd5f1a2159a0b3a1f22d9ebe63cb5c5 Mon Sep 17 00:00:00 2001 From: Hyunjun Ko Date: Fri, 10 Feb 2012 14:46:12 +0900 Subject: Delete old files --- TC/utc/utc_thumbnail_get_data_func.c | 103 ----------------------------------- TC/utc/utc_thumbnail_get_data_func.h | 52 ------------------ 2 files changed, 155 deletions(-) delete mode 100644 TC/utc/utc_thumbnail_get_data_func.c delete mode 100644 TC/utc/utc_thumbnail_get_data_func.h diff --git a/TC/utc/utc_thumbnail_get_data_func.c b/TC/utc/utc_thumbnail_get_data_func.c deleted file mode 100644 index ccee472..0000000 --- a/TC/utc/utc_thumbnail_get_data_func.c +++ /dev/null @@ -1,103 +0,0 @@ -/* - * libmedia-thumbnail - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -/** -* @file utc_thumbnail_get_data_func.c -* @brief This is a suit of unit test cases to test thumbnail_get_data API function -* @author -* @version Initial Creation Version 0.1 -* @date 2011-10-13 -*/ - -#include "utc_thumbnail_get_data_func.h" - - -/** -* @brief This tests int thumbnail_get_data() API with valid parameters -* @par ID utc_thumbnail_get_data_func_01 -* @param [in] -* @return This function returns zero on success, or negative value with error code -*/ -void utc_thumbnail_get_data_func_01() -{ - int ret = -1; - - const char *origin_path = "/opt/media/Images and videos/Wallpapers/Home_default.png"; - - unsigned char *data = NULL; - int thumb_size = 0; - int thumb_w = 0; - int thumb_h = 0; - int origin_w = 0; - int origin_h = 0; - - media_thumb_type thumb_type = MEDIA_THUMB_256x256; - media_thumb_format thumb_format = MEDIA_THUMB_BGRA; - - ret = thumbnail_get_data(origin_path, thumb_type, thumb_format, &data, &thumb_size, &thumb_w, &thumb_h, &origin_w, &origin_h); - - if (ret < MEDIA_THUMB_ERROR_NONE) { - UTC_THUMB_LOG( "unable to make thumbnail raw data. error code->%d", ret); - tet_result(TET_FAIL); - return; - } else { - tet_result(TET_PASS); - } - - return; -} - - -/** -* @brief This tests int thumbnail_get_data() API with invalid parameters -* @par ID utc_thumbnail_get_data_func_02 -* @param [in] -* @return error code on success -*/ -void utc_thumbnail_get_data_func_02() -{ - int ret = -1; - - const char *origin_path = NULL; - - unsigned char *data = NULL; - int thumb_size = 0; - int thumb_w = 0; - int thumb_h = 0; - int origin_w = 0; - int origin_h = 0; - - media_thumb_type thumb_type = MEDIA_THUMB_256x256; - media_thumb_format thumb_format = MEDIA_THUMB_BGRA; - - ret = thumbnail_get_data(origin_path, thumb_type, thumb_format, &data, &thumb_size, &thumb_w, &thumb_h, &origin_w, &origin_h); - - if (ret < MEDIA_THUMB_ERROR_NONE) { - UTC_THUMB_LOG("abnormal condition test for null, error code->%d", ret); - tet_result(TET_PASS); - } else { - UTC_THUMB_LOG("Creating thumbnail raw data should be failed because the origin_path is NULL"); - tet_result(TET_FAIL); - } - - return ; -} - diff --git a/TC/utc/utc_thumbnail_get_data_func.h b/TC/utc/utc_thumbnail_get_data_func.h deleted file mode 100644 index 82fd272..0000000 --- a/TC/utc/utc_thumbnail_get_data_func.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * libmedia-thumbnail - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - - -/** -* @file utc_thumbnail_get_data_func.h -* @author -* @brief This is the implementaion file for the test case of thumbnail_request_from_db API function -* @version Initial Creation Version 0.1 -* @date 2011-10-13 -*/ - -#ifndef __UTS_thumbnail_get_data__FUNC_H_ -#define __UTS_thumbnail_get_data__FUNC_H_ - - -#include "utc_media_thumb_common.h" - -/* Initialize TCM data structures */ -void (*tet_startup)() = NULL; -void (*tet_cleanup)() = NULL; - -void utc_thumbnail_get_data_func_01(); -void utc_thumbnail_get_data_func_02(); - -struct tet_testlist tet_testlist[] = { - {utc_thumbnail_get_data_func_01, 1}, - {utc_thumbnail_get_data_func_02, 2}, - {NULL, 0} -}; - - -#endif // __UTS_thumbnail_get_data__FUNC_H_ - -- cgit v1.2.3