From: Haejeong Kim Date: Fri, 10 Feb 2012 00:03:37 +0000 (+0900) Subject: code clean up X-Git-Tag: 2.0_alpha~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de25440cdd615d140820b3fc8ed99250f7b9a6af;p=platform%2Fcore%2Fmultimedia%2Flibmedia-service.git code clean up --- diff --git a/TC/_export_env.sh b/TC/_export_env.sh index 8f5ecd4..56e2167 100755 --- a/TC/_export_env.sh +++ b/TC/_export_env.sh @@ -1,7 +1,7 @@ #!/bin/sh export ARCH=target -export TET_INSTALL_PATH=/usr/bin/tetware/TETware # tetware root path +export TET_INSTALL_PATH=/usr/bin/tetware/TETware # tetware root path export TET_TARGET_PATH=$TET_INSTALL_PATH/tetware-target # tetware target path export PATH=$TET_TARGET_PATH/bin:$PATH export LD_LIBRARY_PATH=$TET_TARGET_PATH/lib/tet3:$LD_LIBRARY_PATH diff --git a/TC/utc/visual/utc_minfo_add_bookmark_func.c b/TC/utc/visual/utc_minfo_add_bookmark_func.c deleted file mode 100644 index f306742..0000000 --- a/TC/utc/visual/utc_minfo_add_bookmark_func.c +++ /dev/null @@ -1,103 +0,0 @@ -/* - * libmedia-service - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko , Haejeong Kim - * - * 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_minfo_add_bookmark_func.c -* @brief This is a suit of unit test cases to test minfo_add_bookmark API function -* @author -* @version Initial Creation Version 0.1 -* @date 2010-10-13 -*/ - -#include "utc_minfo_add_bookmark_func.h" - - -/** -* @brief This tests int minfo_add_bookmark() API with valid parameter -* add a bookmark to a media file. -* @par ID utc_minfo_add_bookmark_func_01 -* @param [in] -* @return This function returns zero on success, or negative value with error code -*/ -void utc_minfo_add_bookmark_func_01() -{ - int ret = -1; - - int position = 2346; - int media_id = 1; - char *thumb_path = "tmp1"; - - UTC_MINFO_INIT() - - ret = minfo_add_bookmark(media_id, position, thumb_path); - - if (ret < MB_SVC_ERROR_NONE) - { - UTC_MM_LOG( "unable to add a bookmark to a media file. error code->%d", ret); - UTC_MINFO_FINALIZE() - tet_result(TET_FAIL); - return; - } else { - UTC_MINFO_FINALIZE() - tet_result(TET_PASS); - } - - - return; -} - - -/** -* @brief This tests int minfo_add_bookmark() API with invalid parameter -* add a bookmark to a media file. -* @par ID utc_minfo_add_bookmark_func_02 -* @param [in] -* @return error code on success -*/ -void utc_minfo_add_bookmark_func_02() -{ - int ret = -1; - - int position = 2346; - int media_id = 1; - char *thumb_path = NULL; - - UTC_MINFO_INIT() - - ret = minfo_add_bookmark(media_id,position,thumb_path); - - if (ret<0) - { - UTC_MM_LOG("abnormal condition test for null, error code->%d", ret); - UTC_MINFO_FINALIZE() - tet_result(TET_PASS); - } - else - { - UTC_MM_LOG("add a bookmark to a media file should be failed because of the media_id parameter -1."); - UTC_MINFO_FINALIZE() - tet_result(TET_FAIL); - } - - - return ; -} diff --git a/TC/utc/visual/utc_minfo_add_bookmark_func.h b/TC/utc/visual/utc_minfo_add_bookmark_func.h deleted file mode 100644 index f385105..0000000 --- a/TC/utc/visual/utc_minfo_add_bookmark_func.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * libmedia-service - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko , Haejeong Kim - * - * 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_minfo_add_bookmark_func.h -* @author -* @brief This is the implementaion file for the test case of minfo_add_bookmark_ API function -* @version Initial Creation Version 0.1 -* @date 2010-10-13 -*/ - -#ifndef __UTS_minfo_add_bookmark__FUNC_H_ -#define __UTS_minfo_add_bookmark__FUNC_H_ - - -#include "utc_visual_svc_common.h" - -/* Initialize TCM data structures */ -void (*tet_startup)() = NULL; -void (*tet_cleanup)() = NULL; - -void utc_minfo_add_bookmark_func_01(); -void utc_minfo_add_bookmark_func_02(); - -struct tet_testlist tet_testlist[] = { - {utc_minfo_add_bookmark_func_01, 1}, - {utc_minfo_add_bookmark_func_02, 2}, - {NULL, 0} -}; - - -#endif //__UTS_minfo_add_bookmark__FUNC_H_ diff --git a/TC/utc/visual/utc_minfo_add_cluster_func.c b/TC/utc/visual/utc_minfo_add_cluster_func.c deleted file mode 100644 index 5cf72e1..0000000 --- a/TC/utc/visual/utc_minfo_add_cluster_func.c +++ /dev/null @@ -1,97 +0,0 @@ -/* - * libmedia-service - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko , Haejeong Kim - * - * 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_minfo_add_cluster_func.c -* @brief This is a suit of unit test cases to test minfo_add_cluster API function -* @author -* @version Initial Creation Version 0.1 -* @date 2010-10-13 -*/ - -#include "utc_minfo_add_cluster_func.h" - - -/** -* @brief This tests int minfo_add_cluster() API with valid parameter -* add a cluser record content in folder table. -* @par ID utc_minfo_add_cluster_func_01 -* @param [in] -* @return This function returns zero on success, or negative value with error code -*/ -void utc_minfo_add_cluster_func_01() -{ - int ret = -1; - char *cluster_url = "/opt/media/Images and videos/ForTC"; - int id = 0; - - UTC_MINFO_INIT() - ret = minfo_add_cluster(cluster_url, &id); - - if (ret < MB_SVC_ERROR_NONE) - { - UTC_MM_LOG( "failed to add a cluser record content in folder table. error code->%d", ret); - UTC_MINFO_FINALIZE() - tet_result(TET_FAIL); - return; - } - - UTC_MINFO_FINALIZE() - tet_result(TET_PASS); - - return; -} - - -/** -* @brief This tests int minfo_add_cluster() API with invalid parameter -* add a cluser record content in folder table. -* @par ID utc_minfo_add_cluster_func_02 -* @param [in] -* @return error code on success -*/ -void utc_minfo_add_cluster_func_02() -{ - int ret = -1; - char *cluster_url = NULL; /*= "/opt/media/Images/Wallpapers_1";*/ - int id = 0; - - UTC_MINFO_INIT() - ret = minfo_add_cluster(cluster_url, &id); - - - if (ret<0) - { - UTC_MM_LOG("abnormal condition test for null, error code->%d", ret); - UTC_MINFO_FINALIZE() - tet_result(TET_PASS); - } - else - { - UTC_MM_LOG("add a cluser record content in folder table should be failed because of the cluster_url NULL."); - UTC_MINFO_FINALIZE() - tet_result(TET_FAIL); - } - - - return ; -} diff --git a/TC/utc/visual/utc_minfo_add_cluster_func.h b/TC/utc/visual/utc_minfo_add_cluster_func.h deleted file mode 100644 index 6d3f5d0..0000000 --- a/TC/utc/visual/utc_minfo_add_cluster_func.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * libmedia-service - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko , Haejeong Kim - * - * 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_minfo_add_cluster_func.h -* @author -* @brief This is the implementaion file for the test case of minfo_add_cluster API function -* @version Initial Creation Version 0.1 -* @date 2010-10-13 -*/ - -#ifndef __UTS_minfo_add_cluster_FUNC_H_ -#define __UTS_minfo_add_cluster_FUNC_H_ - - -#include "utc_visual_svc_common.h" - -/* Initialize TCM data structures */ -void (*tet_startup)() = NULL; -void (*tet_cleanup)() = NULL; - -void utc_minfo_add_cluster_func_01(); -void utc_minfo_add_cluster_func_02(); - -struct tet_testlist tet_testlist[] = { - {utc_minfo_add_cluster_func_01, 1}, - {utc_minfo_add_cluster_func_02, 2}, - {NULL, 0} -}; - - -#endif //__UTS_minfo_add_cluster_FUNC_H_ diff --git a/TC/utc/visual/utc_minfo_add_media_func.c b/TC/utc/visual/utc_minfo_add_media_func.c deleted file mode 100644 index ff5d382..0000000 --- a/TC/utc/visual/utc_minfo_add_media_func.c +++ /dev/null @@ -1,96 +0,0 @@ -/* - * libmedia-service - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko , Haejeong Kim - * - * 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_minfo_free_glist_func.c -* @brief This is a suit of unit test cases to test minfo_add_media API function -* @author -* @version Initial Creation Version 0.1 -* @date 2010-10-13 -*/ - -#include "utc_minfo_add_media_func.h" - - -/** -* @brief This tests int minfo_add_media() API with valid parameter -* Add a media content to media table. -* @par ID utc_minfo_add_media_func_01 -* @param [in] -* @return This function returns zero on success, or negative value with error code -*/ -void utc_minfo_add_media_func_01() -{ - int err = -1; - char *file_url = "/opt/media/Images and videos/Wallpapers/Home_01.png"; - int type = 1; - - UTC_MINFO_INIT() - - err = minfo_add_media(file_url, type); - - if (err < MB_SVC_ERROR_NONE) - { - UTC_MM_LOG( "unable to Add a media content to media table. error code->%d", err); - UTC_MINFO_FINALIZE() - tet_result(TET_FAIL); - return; - } - - UTC_MINFO_FINALIZE() - tet_result(TET_PASS); - - return; -} - - -/** -* @brief This tests int minfo_add_media() API with invalid parameter -* Add a media content to media table. -* @par ID utc_minfo_add_media_func_02 -* @param [in] -* @return error code on success -*/ -void utc_minfo_add_media_func_02() -{ - int err = -1; - char *file_url = NULL; /*= "/opt/media/Images/Wallpapers/Home_01.png";*/ - int type = 1; - - UTC_MINFO_INIT() - err = minfo_add_media(file_url, type); - - if (err<0) - { - UTC_MM_LOG("abnormal condition test for null, error code->%d", err); - UTC_MINFO_FINALIZE() - tet_result(TET_PASS); - } - else - { - UTC_MM_LOG("Add a media content to media table should be failed because of the file_url NULL."); - UTC_MINFO_FINALIZE() - tet_result(TET_FAIL); - } - - return ; -} diff --git a/TC/utc/visual/utc_minfo_add_media_func.h b/TC/utc/visual/utc_minfo_add_media_func.h deleted file mode 100644 index 1a2cf94..0000000 --- a/TC/utc/visual/utc_minfo_add_media_func.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * libmedia-service - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko , Haejeong Kim - * - * 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_minfo_add_media_func.h -* @author -* @brief This is the implementaion file for the test case of minfo_add_media API function -* @version Initial Creation Version 0.1 -* @date 2010-10-13 -*/ - -#ifndef __UTS_minfo_add_media_FUNC_H_ -#define __UTS_minfo_add_media_FUNC_H_ - - -#include "utc_visual_svc_common.h" - -/* Initialize TCM data structures */ -void (*tet_startup)() = NULL; -void (*tet_cleanup)() = NULL; - -void utc_minfo_add_media_func_01(); -void utc_minfo_add_media_func_02(); - -struct tet_testlist tet_testlist[] = { - {utc_minfo_add_media_func_01, 1}, - {utc_minfo_add_media_func_02, 2}, - {NULL, 0} -}; - - -#endif //__UTS_minfo_add_media_FUNC_H_ diff --git a/TC/utc/visual/utc_minfo_copy_media_func.c b/TC/utc/visual/utc_minfo_copy_media_func.c deleted file mode 100644 index d7041ff..0000000 --- a/TC/utc/visual/utc_minfo_copy_media_func.c +++ /dev/null @@ -1,98 +0,0 @@ -/* - * libmedia-service - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko , Haejeong Kim - * - * 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_minfo_copy_media_func.c -* @brief This is a suit of unit test cases to test minfo_copy_media API function -* @author -* @version Initial Creation Version 0.1 -* @date 2010-10-13 -*/ - -#include "utc_minfo_copy_media_func.h" - - -/** -* @brief This tests int minfo_copy_media() API with valid parameter -* Copy a media content from media table. -* @par ID utc_minfo_copy_media_func_01 -* @param [in] -* @return This function returns zero on success, or negative value with error code -*/ -void utc_minfo_copy_media_func_01() -{ - int err = -1; - char *old_file_url = "/opt/media/Images and videos/Wallpapers/Home_default.png"; - char *new_file_url = "/opt/media/Images and videos/Wallpapers/Home_default_1.png"; - int type = 1; - - UTC_MINFO_INIT() - err = minfo_copy_media(old_file_url, new_file_url, type); - - if (err < MB_SVC_ERROR_NONE) - { - UTC_MM_LOG( "unable to Copy a media content from media table.. error code->%d", err); - UTC_MINFO_FINALIZE() - tet_result(TET_FAIL); - return; - } - - UTC_MINFO_FINALIZE() - tet_result(TET_PASS); - - return; -} - - -/** -* @brief This tests int minfo_copy_media() API with invalid parameter -* Copy a media content from media table. -* @par ID utc_minfo_copy_media_func_02 -* @param [in] -* @return error code on success -*/ -void utc_minfo_copy_media_func_02() -{ - int err = -1; - char *old_file_url = NULL; /*= "/opt/media/Images and videos/Wallpapers/Home_default.png";*/ - char *new_file_url = "/opt/media/Images and videos/Wallpapers/Home_default_1.png"; - int type = 1; - - UTC_MINFO_INIT() - err = minfo_copy_media(old_file_url, new_file_url, type); - - if (err<0) - { - UTC_MM_LOG("abnormal condition test for null, error code->%d", err); - UTC_MINFO_FINALIZE() - tet_result(TET_PASS); - } - else - { - UTC_MM_LOG("Copy a media content from media table should be failed because of the file_url NULL."); - UTC_MINFO_FINALIZE() - tet_result(TET_FAIL); - } - - return ; -} - diff --git a/TC/utc/visual/utc_minfo_copy_media_func.h b/TC/utc/visual/utc_minfo_copy_media_func.h deleted file mode 100644 index ca25e00..0000000 --- a/TC/utc/visual/utc_minfo_copy_media_func.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * libmedia-service - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko , Haejeong Kim - * - * 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_minfo_copy_media_func.h -* @author -* @brief This is the implementaion file for the test case of minfo_copy_media API function -* @version Initial Creation Version 0.1 -* @date 2010-10-13 -*/ - -#ifndef __UTS_minfo_copy_media_FUNC_H_ -#define __UTS_minfo_copy_media_FUNC_H_ - - -#include "utc_visual_svc_common.h" - -/* Initialize TCM data structures */ -void (*tet_startup)() = NULL; -void (*tet_cleanup)() = NULL; - -void utc_minfo_copy_media_func_01(); -void utc_minfo_copy_media_func_02(); - -struct tet_testlist tet_testlist[] = { - {utc_minfo_copy_media_func_01, 1}, - {utc_minfo_copy_media_func_02, 2}, - {NULL, 0} -}; - - -#endif //__UTS_minfo_copy_media_FUNC_H_ diff --git a/TC/utc/visual/utc_minfo_cp_media_func.c b/TC/utc/visual/utc_minfo_cp_media_func.c deleted file mode 100644 index 1c3bd31..0000000 --- a/TC/utc/visual/utc_minfo_cp_media_func.c +++ /dev/null @@ -1,150 +0,0 @@ -/* - * libmedia-service - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko , Haejeong Kim - * - * 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_minfo_cp_media_func.c -* @brief This is a suit of unit test cases to test minfo_cp_media API function -* @author -* @version Initial Creation Version 0.1 -* @date 2010-10-13 -*/ - -#include "utc_minfo_cp_media_func.h" - -static int _ite_fn( Mitem* item, void* user_data) -{ - GList** list = (GList**) user_data; - *list = g_list_append( *list, item ); - - return 0; -} - - -/** -* @brief This tests int minfo_cp_media() API with valid parameter -* copy a record identified by media id to destination folder identified by folder id. -* @par ID utc_minfo_cp_media_func_01 -* @param [in] -* @return This function returns zero on success, or negative value with error code -*/ -void utc_minfo_cp_media_func_01() -{ - int ret = -1; - - char *file_url = "/opt/media/Images and videos/Wallpapers/Home_default.png"; - int src_media_id = 1; - int src_cluster_id = 2; - int dst_cluster_id = 2; - Mitem* item = NULL; - UTC_MINFO_INIT() - - ret = minfo_get_item( file_url, &item ); - if (ret < MB_SVC_ERROR_NONE) - { - UTC_MM_LOG( "unable to get a media content from media table. error code->%d", ret); - UTC_MINFO_FINALIZE() - tet_result(TET_FAIL); - return; - } - - src_media_id = item->_id; - src_cluster_id = item->cluster_id; - dst_cluster_id = item->cluster_id + 1; - - minfo_destroy_mtype_item(item); - - ret = minfo_cp_media(src_media_id, dst_cluster_id); - - if (ret < MB_SVC_ERROR_NONE) - { - UTC_MM_LOG( "failed to copy a record identified by media id to destination folder identified by folder id. error code->%d", ret); - UTC_MINFO_FINALIZE() - tet_result(TET_FAIL); - return; - } - - GList *p_list = NULL; - minfo_item_filter item_filter = {MINFO_ITEM_ALL,MINFO_MEDIA_SORT_BY_NONE,-1,-1,false,false}; - Mitem* dest_item = NULL; - - ret = minfo_get_item_list(dst_cluster_id, item_filter, _ite_fn, &p_list); - - if (ret < MB_SVC_ERROR_NONE) - { - UTC_MM_LOG( "unable to get media records. error code->%d", ret); - UTC_MINFO_FINALIZE() - tet_result(TET_FAIL); - return; - } - - int len = g_list_length( p_list ); - dest_item = (Mitem*)g_list_nth_data(p_list, len-1); - ret = minfo_delete_media_id( dest_item->_id ); - - if (ret < MB_SVC_ERROR_NONE) - { - UTC_MM_LOG( "unable to delete media records. error code->%d", ret); - UTC_MINFO_FINALIZE() - tet_result(TET_FAIL); - return; - } - - minfo_destroy_mtype_item(dest_item); - - UTC_MINFO_FINALIZE() - tet_result(TET_PASS); - - return; -} - - -/** -* @brief This tests int minfo_cp_media() API with invalid parameter -* copy a record identified by media id to destination folder identified by folder id. -* @par ID utc_minfo_cp_media_func_02 -* @param [in] -* @return error code on success -*/ -void utc_minfo_cp_media_func_02() -{ - int ret = -1; - - int src_media_id = -1; - int dst_cluster_id = 2; - UTC_MINFO_INIT() - ret = minfo_cp_media(src_media_id, dst_cluster_id); - - if (ret<0) - { - UTC_MM_LOG("abnormal condition test for null, error code->%d", ret); - UTC_MINFO_FINALIZE() - tet_result(TET_PASS); - } - else - { - UTC_MM_LOG("copy a record identified by media id to destination folder identified by folder id should be failed because of the src_media_id -1."); - UTC_MINFO_FINALIZE() - tet_result(TET_FAIL); - } - - return ; -} diff --git a/TC/utc/visual/utc_minfo_cp_media_func.h b/TC/utc/visual/utc_minfo_cp_media_func.h deleted file mode 100644 index bb64eb8..0000000 --- a/TC/utc/visual/utc_minfo_cp_media_func.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * libmedia-service - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko , Haejeong Kim - * - * 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_minfo_cp_media_func.h -* @author -* @brief This is the implementaion file for the test case of minfo_cp_media API function -* @version Initial Creation Version 0.1 -* @date 2010-10-13 -*/ - -#ifndef __UTS_minfo_cp_media_func_FUNC_H_ -#define __UTS_minfo_cp_media_func_FUNC_H_ - - -#include "utc_visual_svc_common.h" - -/* Initialize TCM data structures */ -void (*tet_startup)() = NULL; -void (*tet_cleanup)() = NULL; - -void utc_minfo_cp_media_func_01(); -void utc_minfo_cp_media_func_02(); - -struct tet_testlist tet_testlist[] = { - {utc_minfo_cp_media_func_01, 1}, - {utc_minfo_cp_media_func_02, 2}, - {NULL, 0} -}; - - -#endif //__UTS_minfo_cp_media_func_FUNC_H_ diff --git a/TC/utc/visual/utc_minfo_delete_bookmark_func.c b/TC/utc/visual/utc_minfo_delete_bookmark_func.c deleted file mode 100644 index 17e9c1f..0000000 --- a/TC/utc/visual/utc_minfo_delete_bookmark_func.c +++ /dev/null @@ -1,94 +0,0 @@ -/* - * libmedia-service - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko , Haejeong Kim - * - * 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_minfo_delete_bookmark_func.c -* @brief This is a suit of unit test cases to test minfo_delete_bookmark API function -* @author -* @version Initial Creation Version 0.1 -* @date 2010-10-13 -*/ - -#include "utc_minfo_delete_bookmark_func.h" - - -/** -* @brief This tests int minfo_delete_bookmark() API with valid parameter -* delete a bookmark to a media file. -* @par ID utc_minfo_delete_bookmark_func_01 -* @param [in] -* @return This function returns zero on success, or negative value with error code -*/ -void utc_minfo_delete_bookmark_func_01() -{ - int ret = -1; - - int bookmark_id = 1; - UTC_MINFO_INIT() - ret = minfo_delete_bookmark(bookmark_id); - - if (ret < MB_SVC_ERROR_NONE) - { - UTC_MM_LOG( "unable to delete a bookmark to a media file. error code->%d", ret); - UTC_MINFO_FINALIZE() - tet_result(TET_FAIL); - return; - } - - UTC_MINFO_FINALIZE() - tet_result(TET_PASS); - - return; -} - - -/** -* @brief This tests int minfo_delete_bookmark() API with invalid parameter -* delete a bookmark to a media file. -* @par ID utc_minfo_delete_bookmark_func_02 -* @param [in] -* @return error code on success -*/ -void utc_minfo_delete_bookmark_func_02() -{ - int ret = -1; - - int bookmark_id = -1; - UTC_MINFO_INIT() - ret = minfo_delete_bookmark(bookmark_id); - - - if (ret<0) - { - UTC_MM_LOG("abnormal condition test for null, error code->%d", ret); - UTC_MINFO_FINALIZE() - tet_result(TET_PASS); - } - else - { - UTC_MM_LOG("delete a bookmark to a media file should be failed because of the bookmark_id parameter -1."); - UTC_MINFO_FINALIZE() - tet_result(TET_FAIL); - } - - return ; -} diff --git a/TC/utc/visual/utc_minfo_delete_bookmark_func.h b/TC/utc/visual/utc_minfo_delete_bookmark_func.h deleted file mode 100644 index a6dcc86..0000000 --- a/TC/utc/visual/utc_minfo_delete_bookmark_func.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * libmedia-service - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko , Haejeong Kim - * - * 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_minfo_delete_bookmark_func.h -* @author -* @brief This is the implementaion file for the test case of minfo_delete_bookmark API function -* @version Initial Creation Version 0.1 -* @date 2010-10-13 -*/ - -#ifndef __UTS_minfo_delete_bookmark_FUNC_H_ -#define __UTS_minfo_delete_bookmark_FUNC_H_ - - -#include "utc_visual_svc_common.h" - -/* Initialize TCM data structures */ -void (*tet_startup)() = NULL; -void (*tet_cleanup)() = NULL; - -void utc_minfo_delete_bookmark_func_01(); -void utc_minfo_delete_bookmark_func_02(); - -struct tet_testlist tet_testlist[] = { - {utc_minfo_delete_bookmark_func_01, 1}, - {utc_minfo_delete_bookmark_func_02, 2}, - {NULL, 0} -}; - - -#endif //__UTS_minfo_delete_bookmark_FUNC_H_ diff --git a/TC/utc/visual/utc_minfo_delete_cluster_func.c b/TC/utc/visual/utc_minfo_delete_cluster_func.c deleted file mode 100644 index ecebd25..0000000 --- a/TC/utc/visual/utc_minfo_delete_cluster_func.c +++ /dev/null @@ -1,106 +0,0 @@ -/* - * libmedia-service - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko , Haejeong Kim - * - * 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_minfo_delete_cluster_func.c -* @brief This is a suit of unit test cases to test minfo_delete_cluster API function -* @author -* @version Initial Creation Version 0.1 -* @date 2010-10-13 -*/ - -#include "utc_minfo_delete_cluster_func.h" - -int _get_id_by_url(const char* url) -{ - int id; - if( minfo_get_cluster_id_by_url(url, &id) < 0 ) - { - UTC_MM_LOG("minfo_get_cluster_id_by_url failed"); - return -1; - } - - return id; -} - - -/** -* @brief This tests int minfo_delete_cluster() API with valid parameter -* delete a cluster/folder identified by folder id. -* @par ID utc_minfo_delete_cluster_func_01 -* @param [in] -* @return This function returns zero on success, or negative value with error code -*/ -void utc_minfo_delete_cluster_func_01() -{ - int ret = -1; - - UTC_MINFO_INIT() - - int cluster_id = _get_id_by_url("/opt/media/Images and videos/ForTC"); - ret = minfo_delete_cluster(cluster_id); - - if (ret < MB_SVC_ERROR_NONE) - { - UTC_MM_LOG( "failed to delete a cluster/folder identified by folder id. error code->%d", ret); - UTC_MINFO_FINALIZE() - tet_result(TET_FAIL); - return; - } - - UTC_MINFO_FINALIZE() - tet_result(TET_PASS); - - return; -} - - -/** -* @brief This tests int minfo_delete_cluster() API with invalid parameter -* delete a cluster/folder identified by folder id. -* @par ID utc_minfo_delete_cluster_func_02 -* @param [in] -* @return error code on success -*/ -void utc_minfo_delete_cluster_func_02() -{ - int ret = -1; - - int cluster_id = -1; - UTC_MINFO_INIT() - ret = minfo_delete_cluster(cluster_id); - - if (ret<0) - { - UTC_MM_LOG("abnormal condition test for null, error code->%d", ret); - UTC_MINFO_FINALIZE() - tet_result(TET_PASS); - } - else - { - UTC_MM_LOG("delete a cluster/folder identified by folder id should be failed because of the cluster_id -1."); - UTC_MINFO_FINALIZE() - tet_result(TET_FAIL); - } - - return ; -} diff --git a/TC/utc/visual/utc_minfo_delete_cluster_func.h b/TC/utc/visual/utc_minfo_delete_cluster_func.h deleted file mode 100644 index e4e8068..0000000 --- a/TC/utc/visual/utc_minfo_delete_cluster_func.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * libmedia-service - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko , Haejeong Kim - * - * 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_minfo_delete_cluster_func.h -* @author -* @brief This is the implementaion file for the test case of minfo_delete_cluster API function -* @version Initial Creation Version 0.1 -* @date 2010-10-13 -*/ - -#ifndef __UTS_minfo_delete_cluster_func_FUNC_H_ -#define __UTS_minfo_delete_cluster_func_FUNC_H_ - - -#include "utc_visual_svc_common.h" - -/* Initialize TCM data structures */ -void (*tet_startup)() = NULL; -void (*tet_cleanup)() = NULL; - -void utc_minfo_delete_cluster_func_01(); -void utc_minfo_delete_cluster_func_02(); - -struct tet_testlist tet_testlist[] = { - {utc_minfo_delete_cluster_func_01, 1}, - {utc_minfo_delete_cluster_func_02, 2}, - {NULL, 0} -}; - - -#endif //__UTS_minfo_delete_cluster_func_FUNC_H_ diff --git a/TC/utc/visual/utc_minfo_delete_media_func.c b/TC/utc/visual/utc_minfo_delete_media_func.c deleted file mode 100644 index de115ec..0000000 --- a/TC/utc/visual/utc_minfo_delete_media_func.c +++ /dev/null @@ -1,93 +0,0 @@ -/* - * libmedia-service - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko , Haejeong Kim - * - * 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_minfo_delete_media_func.c -* @brief This is a suit of unit test cases to test minfo_delete_media API function -* @author -* @version Initial Creation Version 0.1 -* @date 2010-10-13 -*/ - -#include "utc_minfo_delete_media_func.h" - - -/** -* @brief This tests int minfo_delete_media() API with valid parameter -* Delete a media content from media table. -* @par ID utc_minfo_delete_media_func_01 -* @param [in] -* @return This function returns zero on success, or negative value with error code -*/ -void utc_minfo_delete_media_func_01() -{ - int err = -1; - char *file_url = "/opt/media/Images and videos/Wallpapers/Home_01.png"; - - UTC_MINFO_INIT() - err = minfo_delete_media(file_url); - - if (err < MB_SVC_ERROR_NONE) - { - UTC_MM_LOG( "unable to Add a media content to media table. error code->%d", err); - UTC_MINFO_FINALIZE() - tet_result(TET_FAIL); - return; - } - - UTC_MINFO_FINALIZE() - tet_result(TET_PASS); - - return; -} - - -/** -* @brief This tests int minfo_delete_media() API with invalid parameter -* Delete a media content from media table. -* @par ID utc_minfo_delete_media_func_02 -* @param [in] -* @return error code on success -*/ -void utc_minfo_delete_media_func_02() -{ - int err = -1; - char *file_url = NULL; /*= "/opt/media/Images/Wallpapers/Home_01.png";*/ - - UTC_MINFO_INIT() - err = minfo_delete_media(file_url); - - if (err<0) - { - UTC_MM_LOG("abnormal condition test for null, error code->%d", err); - UTC_MINFO_FINALIZE() - tet_result(TET_PASS); - } - else - { - UTC_MM_LOG("Delete a media content from media table should be failed because of the file_url NULL."); - UTC_MINFO_FINALIZE() - tet_result(TET_FAIL); - } - - return ; -} diff --git a/TC/utc/visual/utc_minfo_delete_media_func.h b/TC/utc/visual/utc_minfo_delete_media_func.h deleted file mode 100644 index 9db8a5d..0000000 --- a/TC/utc/visual/utc_minfo_delete_media_func.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * libmedia-service - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko , Haejeong Kim - * - * 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_minfo_delete_media_func.h -* @author -* @brief This is the implementaion file for the test case of minfo_delete_media API function -* @version Initial Creation Version 0.1 -* @date 2010-10-13 -*/ - -#ifndef __UTS_minfo_delete_media_FUNC_H_ -#define __UTS_minfo_delete_media_FUNC_H_ - - -#include "utc_visual_svc_common.h" - -/* Initialize TCM data structures */ -void (*tet_startup)() = NULL; -void (*tet_cleanup)() = NULL; - -void utc_minfo_delete_media_func_01(); -void utc_minfo_delete_media_func_02(); - -struct tet_testlist tet_testlist[] = { - {utc_minfo_delete_media_func_01, 1}, - {utc_minfo_delete_media_func_02, 2}, - {NULL, 0} -}; - - -#endif //__UTS_minfo_delete_media_FUNC_H_ diff --git a/TC/utc/visual/utc_minfo_delete_media_id_func.c b/TC/utc/visual/utc_minfo_delete_media_id_func.c deleted file mode 100644 index 263e050..0000000 --- a/TC/utc/visual/utc_minfo_delete_media_id_func.c +++ /dev/null @@ -1,108 +0,0 @@ -/* - * libmedia-service - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko , Haejeong Kim - * - * 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_minfo_delete_media_id_func.c -* @brief This is a suit of unit test cases to test minfo_delete_media_id API function -* @author -* @version Initial Creation Version 0.1 -* @date 2010-10-13 -*/ - -#include "utc_minfo_delete_media_id_func.h" - -int _get_id_by_url(const char* url) -{ - int id; - int ret; - Mitem* item = NULL; - - ret = minfo_get_item( url, &item ); - if( ret < 0 ) { - UTC_MM_LOG("minfo_get_item failed : %d", ret ); - return -1; - } - - return item->_id; -} - - -/** -* @brief This tests int minfo_delete_media_id() API with valid parameter -* delete a record identified by media id from 'media' table. -* @par ID utc_minfo_delete_media_id_func_01 -* @param [in] -* @return This function returns zero on success, or negative value with error code -*/ -void utc_minfo_delete_media_id_func_01() -{ - int ret = -1; - - UTC_MINFO_INIT() - int media_id = _get_id_by_url("/opt/media/Images and videos/Wallpapers/Home_default_1.png"); - ret = minfo_delete_media_id(media_id); - - if (ret < MB_SVC_ERROR_NONE) - { - UTC_MM_LOG( "failed to delete a record identified by media id from 'media' table. error code->%d", ret); - UTC_MINFO_FINALIZE() - tet_result(TET_FAIL); - return; - } - - UTC_MINFO_FINALIZE() - tet_result(TET_PASS); - - return; -} - - -/** -* @brief This tests int minfo_delete_media_id() API with invalid parameter -* delete a record identified by media id from 'media' table. -* @par ID utc_minfo_delete_media_id_func_02 -* @param [in] -* @return error code on success -*/ -void utc_minfo_delete_media_id_func_02() -{ - int ret = -1; - - int media_id = -1; - UTC_MINFO_INIT() - ret = minfo_delete_media_id(media_id); - - if (ret<0) - { - UTC_MM_LOG("abnormal condition test for null, error code->%d", ret); - UTC_MINFO_FINALIZE() - tet_result(TET_PASS); - } - else - { - UTC_MM_LOG("delete a record identified by media id from 'media' table should be failed because of the media_id -1."); - UTC_MINFO_FINALIZE() - tet_result(TET_FAIL); - } - - return ; -} diff --git a/TC/utc/visual/utc_minfo_delete_media_id_func.h b/TC/utc/visual/utc_minfo_delete_media_id_func.h deleted file mode 100644 index 792af3f..0000000 --- a/TC/utc/visual/utc_minfo_delete_media_id_func.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * libmedia-service - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko , Haejeong Kim - * - * 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_minfo_delete_media_id_func.h -* @author -* @brief This is the implementaion file for the test case of minfo_delete_media_id API function -* @version Initial Creation Version 0.1 -* @date 2010-10-13 -*/ - -#ifndef __UTS_minfo_delete_media_id_FUNC_H_ -#define __UTS_minfo_delete_media_id_FUNC_H_ - - -#include "utc_visual_svc_common.h" - -/* Initialize TCM data structures */ -void (*tet_startup)() = NULL; -void (*tet_cleanup)() = NULL; - -void utc_minfo_delete_media_id_func_01(); -void utc_minfo_delete_media_id_func_02(); - -struct tet_testlist tet_testlist[] = { - {utc_minfo_delete_media_id_func_01, 1}, - {utc_minfo_delete_media_id_func_02, 2}, - {NULL, 0} -}; - - -#endif //__UTS_minfo_delete_media_id_FUNC_H_ diff --git a/TC/utc/visual/utc_minfo_finalize_func.c b/TC/utc/visual/utc_minfo_finalize_func.c deleted file mode 100644 index 25373f6..0000000 --- a/TC/utc/visual/utc_minfo_finalize_func.c +++ /dev/null @@ -1,66 +0,0 @@ -/* - * libmedia-service - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko , Haejeong Kim - * - * 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_minfo_finalize_func.c -* @brief This is a suit of unit test cases to test minfo_finalize API function -* @author -* @version Initial Creation Version 0.1 -* @date 2010-10-13 -*/ - -#include "utc_minfo_finalize_func.h" - - -/** -* @brief This tests int minfo_init() API with valid parameter -* Close media database file. -* @par ID utc_minfo_finalize_func_01 -* @param [in] -* @return This function returns zero on success, or negative value with error code -*/ -void utc_minfo_finalize_func_01() -{ - int ret = 0; - - UTC_MINFO_INIT(); - - ret = minfo_finalize(); - - dts_check_ge(API_NAME, ret, MB_SVC_ERROR_NONE, "unable to close media db. error code->%d", ret); -} - - -/** -* @brief This tests int minfo_finalize() API with invalid parameter -* Close media database file. -* @par ID utc_minfo_finalize_func_02 -* @param [in] -* @return error code on success -*/ -void utc_minfo_finalize_func_02() -{ - int ret = 0; - - ret = minfo_finalize(); - dts_check_lt(API_NAME, ret, MB_SVC_ERROR_NONE,"Closing media db should be failed because it's not open yet."); -} diff --git a/TC/utc/visual/utc_minfo_finalize_func.h b/TC/utc/visual/utc_minfo_finalize_func.h deleted file mode 100644 index 936a7ed..0000000 --- a/TC/utc/visual/utc_minfo_finalize_func.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * libmedia-service - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko , Haejeong Kim - * - * 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_minfo_finalize_func.h -* @author -* @brief This is the implementaion file for the test case of minfo_finalize API function -* @version Initial Creation Version 0.1 -* @date 2010-10-13 -*/ - -#ifndef __UTS_MINFO_FINALIZE_FUNC_H_ -#define __UTS_MINFO_FINALIZE_FUNC_H_ - - -#include "utc_visual_svc_common.h" - -/* Initialize TCM data structures */ -void (*tet_startup)() = NULL; -void (*tet_cleanup)() = NULL; - -void utc_minfo_finalize_func_01(); -void utc_minfo_finalize_func_02(); - -struct tet_testlist tet_testlist[] = { - {utc_minfo_finalize_func_01, 1}, - {utc_minfo_finalize_func_02, 2}, - {NULL, 0} -}; - - -#endif //__UTS_MINFO_FINALIZE_FUNC_H_ diff --git a/TC/utc/visual/utc_minfo_init_func.c b/TC/utc/visual/utc_minfo_init_func.c deleted file mode 100644 index c8b0d2c..0000000 --- a/TC/utc/visual/utc_minfo_init_func.c +++ /dev/null @@ -1,52 +0,0 @@ -/* - * libmedia-service - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko , Haejeong Kim - * - * 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_minfo_init_func.c -* @brief This is a suit of unit test cases to test minfo_init API function -* @author -* @version Initial Creation Version 0.1 -* @date 2010-10-13 -*/ - -#include "utc_minfo_init_func.h" - - -/** -* @brief This tests int minfo_init() API with valid parameter -* Open media, metadata, etc, database tables. -* @par ID utc_minfo_init_func_01 -* @param [in] -* @return This function returns zero on success, or negative value with error code -*/ -void utc_minfo_init_func_01() -{ - int ret = 0; - - ret = minfo_init(); - - dts_check_ge(API_NAME, ret, MB_SVC_ERROR_NONE, "unable to open media db. error code->%d", ret); - - return; -} - - diff --git a/TC/utc/visual/utc_minfo_init_func.h b/TC/utc/visual/utc_minfo_init_func.h deleted file mode 100644 index 11aa791..0000000 --- a/TC/utc/visual/utc_minfo_init_func.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * libmedia-service - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko , Haejeong Kim - * - * 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_minfo_init_func.h -* @author -* @brief This is the implementaion file for the test case of minfo_init API function -* @version Initial Creation Version 0.1 -* @date 2010-10-13 -*/ - -#ifndef __UTS_MINFO_INIT_FUNC_H_ -#define __UTS_MINFO_INIT_FUNC_H_ - - -#include "utc_visual_svc_common.h" - -/* Initialize TCM data structures */ -void (*tet_startup)() = NULL; -void (*tet_cleanup)() = NULL; - -void utc_minfo_init_func_01(); - -struct tet_testlist tet_testlist[] = { - {utc_minfo_init_func_01, 1}, - {NULL, 0} -}; - - -#endif //__UTS_MINFO_INIT_FUNC_H_ diff --git a/src/include/audio/md5_hash.h b/src/include/audio/md5_hash.h deleted file mode 100755 index 0a75d05..0000000 --- a/src/include/audio/md5_hash.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * libmedia-service - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hyunjun Ko , Haejeong Kim - * - * 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. - * - */ - - - -#ifndef __MD5_HASH_H__ -#define __MD5_HASH_H__ -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @brief Generate '\0'-terminated hashcode string of 'file'. - * The hashcode consists of 32-byte [0-9a-f] chars. - * You should not free returned result, it's internally - * static allocated. You may need to make a copy of result - * because the buffer will be modified by subsequent calling of - * this function. - * @param file Full pathname, or generally char string. - * @return Generated hashcode string, - * or NULL if parameter 'file' is NULL. - */ -char* _audio_svc_generate_hash(const char* file); - -/** - * @brief Generate corresponding thumbnail file's full pathname. - * You should not free returned result, it's internally - * static allocated. You may need to make a copy of result - * because the buffer will be modified by subsequent calling of - * this function. - * @param full_pathname Origin file full pathname. - * @return Generated thumbnail file's full pathname, or - * NULL if full_pathname is NULL or full_pathname is not valid - * for file manager service. - */ - - - -#ifdef __cplusplus -} -#endif - -#endif /*__MD5_HASH_H__*/