code clean up
authorHaejeong Kim <backto.kim@samsung.com>
Fri, 10 Feb 2012 00:03:37 +0000 (09:03 +0900)
committerHaejeong Kim <backto.kim@samsung.com>
Fri, 10 Feb 2012 00:03:37 +0000 (09:03 +0900)
24 files changed:
TC/_export_env.sh
TC/utc/visual/utc_minfo_add_bookmark_func.c [deleted file]
TC/utc/visual/utc_minfo_add_bookmark_func.h [deleted file]
TC/utc/visual/utc_minfo_add_cluster_func.c [deleted file]
TC/utc/visual/utc_minfo_add_cluster_func.h [deleted file]
TC/utc/visual/utc_minfo_add_media_func.c [deleted file]
TC/utc/visual/utc_minfo_add_media_func.h [deleted file]
TC/utc/visual/utc_minfo_copy_media_func.c [deleted file]
TC/utc/visual/utc_minfo_copy_media_func.h [deleted file]
TC/utc/visual/utc_minfo_cp_media_func.c [deleted file]
TC/utc/visual/utc_minfo_cp_media_func.h [deleted file]
TC/utc/visual/utc_minfo_delete_bookmark_func.c [deleted file]
TC/utc/visual/utc_minfo_delete_bookmark_func.h [deleted file]
TC/utc/visual/utc_minfo_delete_cluster_func.c [deleted file]
TC/utc/visual/utc_minfo_delete_cluster_func.h [deleted file]
TC/utc/visual/utc_minfo_delete_media_func.c [deleted file]
TC/utc/visual/utc_minfo_delete_media_func.h [deleted file]
TC/utc/visual/utc_minfo_delete_media_id_func.c [deleted file]
TC/utc/visual/utc_minfo_delete_media_id_func.h [deleted file]
TC/utc/visual/utc_minfo_finalize_func.c [deleted file]
TC/utc/visual/utc_minfo_finalize_func.h [deleted file]
TC/utc/visual/utc_minfo_init_func.c [deleted file]
TC/utc/visual/utc_minfo_init_func.h [deleted file]
src/include/audio/md5_hash.h [deleted file]

index 8f5ecd4..56e2167 100755 (executable)
@@ -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 (file)
index f306742..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-/*\r
- * libmedia-service\r
- *\r
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
- *\r
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *\r
- */\r
-\r
-\r
-/**\r
-* @file        utc_minfo_add_bookmark_func.c\r
-* @brief       This is a suit of unit test cases to test minfo_add_bookmark API function\r
-* @author              \r
-* @version     Initial Creation Version 0.1\r
-* @date        2010-10-13\r
-*/\r
-\r
-#include "utc_minfo_add_bookmark_func.h"\r
-\r
-\r
-/**\r
-* @brief       This tests int minfo_add_bookmark() API with valid parameter\r
-*              add a bookmark to a media file.\r
-* @par ID      utc_minfo_add_bookmark_func_01\r
-* @param       [in] \r
-* @return      This function returns zero on success, or negative value with error code\r
-*/\r
-void utc_minfo_add_bookmark_func_01()\r
-{\r
-       int ret = -1;\r
-        \r
-       int position = 2346;\r
-       int media_id = 1;\r
-       char *thumb_path = "tmp1";\r
-\r
-       UTC_MINFO_INIT()\r
-\r
-       ret = minfo_add_bookmark(media_id, position, thumb_path);\r
-       \r
-       if (ret < MB_SVC_ERROR_NONE)\r
-       {\r
-               UTC_MM_LOG( "unable to add a bookmark to a media file. error code->%d", ret);\r
-       UTC_MINFO_FINALIZE()\r
-               tet_result(TET_FAIL);\r
-               return;\r
-       } else {\r
-       UTC_MINFO_FINALIZE()\r
-               tet_result(TET_PASS);\r
-       }\r
-       \r
-       \r
-       return;\r
-}\r
-\r
-\r
-/**\r
-* @brief               This tests int minfo_add_bookmark() API with invalid parameter\r
-*                      add a bookmark to a media file.\r
-* @par ID      utc_minfo_add_bookmark_func_02\r
-* @param       [in] \r
-* @return      error code on success \r
-*/\r
-void utc_minfo_add_bookmark_func_02()\r
-{      \r
-        int ret = -1;\r
-        \r
-        int position = 2346;\r
-        int media_id = 1;\r
-        char *thumb_path = NULL;\r
-\r
-        UTC_MINFO_INIT()\r
-\r
-        ret = minfo_add_bookmark(media_id,position,thumb_path);\r
-\r
-       if (ret<0)\r
-       {\r
-               UTC_MM_LOG("abnormal condition test for null, error code->%d", ret);\r
-       UTC_MINFO_FINALIZE()\r
-               tet_result(TET_PASS);\r
-       }\r
-       else\r
-       {\r
-               UTC_MM_LOG("add a bookmark to a media file should be failed because of the media_id parameter -1.");\r
-       UTC_MINFO_FINALIZE()\r
-               tet_result(TET_FAIL);\r
-       }\r
-\r
-\r
-       return ;\r
-}\r
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 (file)
index f385105..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*\r
- * libmedia-service\r
- *\r
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
- *\r
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *\r
- */\r
-\r
-\r
-/**\r
-* @file                utc_minfo_add_bookmark_func.h\r
-* @author      \r
-* @brief       This is the implementaion file for the test case of minfo_add_bookmark_ API function\r
-* @version     Initial Creation Version 0.1\r
-* @date                2010-10-13\r
-*/\r
-\r
-#ifndef __UTS_minfo_add_bookmark__FUNC_H_\r
-#define __UTS_minfo_add_bookmark__FUNC_H_\r
-\r
-\r
-#include "utc_visual_svc_common.h"\r
-\r
-/* Initialize TCM data structures */\r
-void (*tet_startup)() = NULL;\r
-void (*tet_cleanup)() = NULL;\r
-\r
-void utc_minfo_add_bookmark_func_01();\r
-void utc_minfo_add_bookmark_func_02();\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_minfo_add_bookmark_func_01, 1},\r
-       {utc_minfo_add_bookmark_func_02, 2},    \r
-       {NULL, 0}\r
-};\r
-\r
-\r
-#endif //__UTS_minfo_add_bookmark__FUNC_H_\r
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 (file)
index 5cf72e1..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-/*\r
- * libmedia-service\r
- *\r
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
- *\r
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *\r
- */\r
-\r
-\r
-/**\r
-* @file        utc_minfo_add_cluster_func.c\r
-* @brief       This is a suit of unit test cases to test minfo_add_cluster API function\r
-* @author              \r
-* @version     Initial Creation Version 0.1\r
-* @date        2010-10-13\r
-*/\r
-\r
-#include "utc_minfo_add_cluster_func.h"\r
-\r
-\r
-/**\r
-* @brief       This tests int minfo_add_cluster() API with valid parameter\r
-*              add a cluser record content in folder table.\r
-* @par ID      utc_minfo_add_cluster_func_01\r
-* @param       [in] \r
-* @return      This function returns zero on success, or negative value with error code\r
-*/\r
-void utc_minfo_add_cluster_func_01()\r
-{\r
-       int ret = -1;\r
-       char *cluster_url = "/opt/media/Images and videos/ForTC";\r
-       int id = 0;\r
-       \r
-       UTC_MINFO_INIT()\r
-       ret = minfo_add_cluster(cluster_url, &id);\r
-\r
-       if (ret < MB_SVC_ERROR_NONE)\r
-       {\r
-               UTC_MM_LOG( "failed to add a cluser record content in folder table. error code->%d", ret);\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_FAIL);\r
-               return;\r
-       }\r
-       \r
-       UTC_MINFO_FINALIZE()\r
-       tet_result(TET_PASS);\r
-       \r
-       return;\r
-}\r
-\r
-\r
-/**\r
-* @brief               This tests int minfo_add_cluster() API with invalid parameter\r
-*                      add a cluser record content in folder table.\r
-* @par ID      utc_minfo_add_cluster_func_02\r
-* @param       [in] \r
-* @return      error code on success \r
-*/\r
-void utc_minfo_add_cluster_func_02()\r
-{\r
-       int ret = -1;\r
-       char *cluster_url = NULL; /*= "/opt/media/Images/Wallpapers_1";*/\r
-       int id = 0;\r
-       \r
-       UTC_MINFO_INIT()\r
-       ret = minfo_add_cluster(cluster_url, &id);\r
-\r
-               \r
-       if (ret<0)\r
-       {\r
-               UTC_MM_LOG("abnormal condition test for null, error code->%d", ret);\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_PASS);\r
-       }\r
-       else\r
-       {\r
-               UTC_MM_LOG("add a cluser record content in folder table should be failed because of the cluster_url NULL.");\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_FAIL);\r
-       }\r
-\r
-\r
-       return ;\r
-}\r
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 (file)
index 6d3f5d0..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*\r
- * libmedia-service\r
- *\r
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
- *\r
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *\r
- */\r
-\r
-\r
-/**\r
-* @file                utc_minfo_add_cluster_func.h\r
-* @author      \r
-* @brief       This is the implementaion file for the test case of minfo_add_cluster API function\r
-* @version     Initial Creation Version 0.1\r
-* @date                2010-10-13\r
-*/\r
-\r
-#ifndef __UTS_minfo_add_cluster_FUNC_H_\r
-#define __UTS_minfo_add_cluster_FUNC_H_\r
-\r
-\r
-#include "utc_visual_svc_common.h"\r
-\r
-/* Initialize TCM data structures */\r
-void (*tet_startup)() = NULL;\r
-void (*tet_cleanup)() = NULL;\r
-\r
-void utc_minfo_add_cluster_func_01();\r
-void utc_minfo_add_cluster_func_02();\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_minfo_add_cluster_func_01, 1},\r
-       {utc_minfo_add_cluster_func_02, 2},     \r
-       {NULL, 0}\r
-};\r
-\r
-\r
-#endif //__UTS_minfo_add_cluster_FUNC_H_\r
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 (file)
index ff5d382..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
-/*\r
- * libmedia-service\r
- *\r
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
- *\r
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *\r
- */\r
-\r
-\r
-/**\r
-* @file        utc_minfo_free_glist_func.c\r
-* @brief       This is a suit of unit test cases to test minfo_add_media API function\r
-* @author              \r
-* @version     Initial Creation Version 0.1\r
-* @date        2010-10-13\r
-*/\r
-\r
-#include "utc_minfo_add_media_func.h"\r
-\r
-\r
-/**\r
-* @brief       This tests int minfo_add_media() API with valid parameter\r
-*              Add a media content to media table.\r
-* @par ID      utc_minfo_add_media_func_01\r
-* @param       [in] \r
-* @return      This function returns zero on success, or negative value with error code\r
-*/\r
-void utc_minfo_add_media_func_01()\r
-{\r
-       int err = -1;\r
-       char *file_url = "/opt/media/Images and videos/Wallpapers/Home_01.png";\r
-       int type = 1;\r
-\r
-       UTC_MINFO_INIT()\r
-\r
-       err = minfo_add_media(file_url, type);\r
-\r
-       if (err < MB_SVC_ERROR_NONE)\r
-       {\r
-               UTC_MM_LOG( "unable to Add a media content to media table. error code->%d", err);\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_FAIL);\r
-               return;\r
-       }\r
-       \r
-       UTC_MINFO_FINALIZE()\r
-       tet_result(TET_PASS);\r
-       \r
-       return;\r
-}\r
-\r
-\r
-/**\r
-* @brief               This tests int minfo_add_media() API with invalid parameter\r
-*                      Add a media content to media table.\r
-* @par ID      utc_minfo_add_media_func_02\r
-* @param       [in] \r
-* @return      error code on success \r
-*/\r
-void utc_minfo_add_media_func_02()\r
-{      \r
-       int err = -1;\r
-       char *file_url = NULL; /*= "/opt/media/Images/Wallpapers/Home_01.png";*/\r
-       int type = 1;\r
-\r
-       UTC_MINFO_INIT()\r
-       err = minfo_add_media(file_url, type);  \r
-               \r
-       if (err<0)\r
-       {\r
-               UTC_MM_LOG("abnormal condition test for null, error code->%d", err);\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_PASS);\r
-       }\r
-       else\r
-       {\r
-               UTC_MM_LOG("Add a media content to media table should be failed because of the file_url NULL.");\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_FAIL);\r
-       }\r
-\r
-       return ;\r
-}\r
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 (file)
index 1a2cf94..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*\r
- * libmedia-service\r
- *\r
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
- *\r
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *\r
- */\r
-\r
-\r
-/**\r
-* @file                utc_minfo_add_media_func.h\r
-* @author      \r
-* @brief       This is the implementaion file for the test case of minfo_add_media API function\r
-* @version     Initial Creation Version 0.1\r
-* @date                2010-10-13\r
-*/\r
-\r
-#ifndef __UTS_minfo_add_media_FUNC_H_\r
-#define __UTS_minfo_add_media_FUNC_H_\r
-\r
-\r
-#include "utc_visual_svc_common.h"\r
-\r
-/* Initialize TCM data structures */\r
-void (*tet_startup)() = NULL;\r
-void (*tet_cleanup)() = NULL;\r
-\r
-void utc_minfo_add_media_func_01();\r
-void utc_minfo_add_media_func_02();\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_minfo_add_media_func_01, 1},\r
-       {utc_minfo_add_media_func_02, 2},       \r
-       {NULL, 0}\r
-};\r
-\r
-\r
-#endif //__UTS_minfo_add_media_FUNC_H_\r
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 (file)
index d7041ff..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-/*\r
- * libmedia-service\r
- *\r
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
- *\r
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *\r
- */\r
-\r
-\r
-/**\r
-* @file        utc_minfo_copy_media_func.c\r
-* @brief       This is a suit of unit test cases to test minfo_copy_media API function\r
-* @author              \r
-* @version     Initial Creation Version 0.1\r
-* @date        2010-10-13\r
-*/\r
-\r
-#include "utc_minfo_copy_media_func.h"\r
-\r
-\r
-/**\r
-* @brief       This tests int minfo_copy_media() API with valid parameter\r
-*              Copy a media content from media table.\r
-* @par ID      utc_minfo_copy_media_func_01\r
-* @param       [in] \r
-* @return      This function returns zero on success, or negative value with error code\r
-*/\r
-void utc_minfo_copy_media_func_01()\r
-{\r
-       int err = -1;\r
-       char *old_file_url = "/opt/media/Images and videos/Wallpapers/Home_default.png";\r
-       char *new_file_url = "/opt/media/Images and videos/Wallpapers/Home_default_1.png";\r
-       int type = 1;\r
-\r
-       UTC_MINFO_INIT()\r
-       err = minfo_copy_media(old_file_url, new_file_url, type);\r
-\r
-       if (err < MB_SVC_ERROR_NONE)\r
-       {\r
-               UTC_MM_LOG( "unable to Copy a media content from media table.. error code->%d", err);\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_FAIL);\r
-               return;\r
-       }\r
-\r
-       UTC_MINFO_FINALIZE()\r
-       tet_result(TET_PASS);\r
-       \r
-       return;\r
-}\r
-\r
-\r
-/**\r
-* @brief               This tests int minfo_copy_media() API with invalid parameter\r
-*                      Copy a media content from media table.\r
-* @par ID      utc_minfo_copy_media_func_02\r
-* @param       [in] \r
-* @return      error code on success \r
-*/\r
-void utc_minfo_copy_media_func_02()\r
-{      \r
-       int err = -1;\r
-       char *old_file_url = NULL; /*= "/opt/media/Images and videos/Wallpapers/Home_default.png";*/\r
-       char *new_file_url = "/opt/media/Images and videos/Wallpapers/Home_default_1.png";\r
-       int type = 1;\r
-\r
-       UTC_MINFO_INIT()\r
-       err = minfo_copy_media(old_file_url, new_file_url, type);\r
-               \r
-       if (err<0)\r
-       {\r
-               UTC_MM_LOG("abnormal condition test for null, error code->%d", err);\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_PASS);\r
-       }\r
-       else\r
-       {\r
-               UTC_MM_LOG("Copy a media content from media table should be failed because of the file_url NULL.");\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_FAIL);\r
-       }\r
-\r
-       return ;\r
-}\r
-\r
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 (file)
index ca25e00..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*\r
- * libmedia-service\r
- *\r
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
- *\r
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *\r
- */\r
-\r
-\r
-/**\r
-* @file                utc_minfo_copy_media_func.h\r
-* @author      \r
-* @brief       This is the implementaion file for the test case of minfo_copy_media API function\r
-* @version     Initial Creation Version 0.1\r
-* @date                2010-10-13\r
-*/\r
-\r
-#ifndef __UTS_minfo_copy_media_FUNC_H_\r
-#define __UTS_minfo_copy_media_FUNC_H_\r
-\r
-\r
-#include "utc_visual_svc_common.h"\r
-\r
-/* Initialize TCM data structures */\r
-void (*tet_startup)() = NULL;\r
-void (*tet_cleanup)() = NULL;\r
-\r
-void utc_minfo_copy_media_func_01();\r
-void utc_minfo_copy_media_func_02();\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_minfo_copy_media_func_01, 1},\r
-       {utc_minfo_copy_media_func_02, 2},      \r
-       {NULL, 0}\r
-};\r
-\r
-\r
-#endif //__UTS_minfo_copy_media_FUNC_H_\r
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 (file)
index 1c3bd31..0000000
+++ /dev/null
@@ -1,150 +0,0 @@
-/*\r
- * libmedia-service\r
- *\r
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
- *\r
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *\r
- */\r
-\r
-\r
-/**\r
-* @file        utc_minfo_cp_media_func.c\r
-* @brief       This is a suit of unit test cases to test minfo_cp_media API function\r
-* @author              \r
-* @version     Initial Creation Version 0.1\r
-* @date        2010-10-13\r
-*/\r
-\r
-#include "utc_minfo_cp_media_func.h"\r
-\r
-static int _ite_fn( Mitem* item, void* user_data) \r
-{\r
-       GList** list = (GList**) user_data;\r
-       *list = g_list_append( *list, item );\r
-\r
-       return 0;\r
-}\r
-\r
-\r
-/**\r
-* @brief       This tests int minfo_cp_media() API with valid parameter\r
-*              copy a record identified by media id to destination folder identified by folder id.\r
-* @par ID      utc_minfo_cp_media_func_01\r
-* @param       [in] \r
-* @return      This function returns zero on success, or negative value with error code\r
-*/\r
-void utc_minfo_cp_media_func_01()\r
-{\r
-       int ret = -1;\r
-       \r
-       char *file_url = "/opt/media/Images and videos/Wallpapers/Home_default.png";\r
-       int src_media_id = 1;\r
-       int src_cluster_id = 2;\r
-       int dst_cluster_id = 2;\r
-       Mitem* item = NULL;\r
-       UTC_MINFO_INIT()\r
-\r
-       ret = minfo_get_item( file_url, &item );\r
-       if (ret < MB_SVC_ERROR_NONE)\r
-       {\r
-               UTC_MM_LOG( "unable to get a media content from media table. error code->%d", ret);\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_FAIL);\r
-               return;\r
-       }\r
-\r
-       src_media_id = item->_id;\r
-       src_cluster_id = item->cluster_id;\r
-       dst_cluster_id = item->cluster_id + 1;\r
-\r
-       minfo_destroy_mtype_item(item); \r
-\r
-       ret = minfo_cp_media(src_media_id, dst_cluster_id);\r
-\r
-       if (ret < MB_SVC_ERROR_NONE)\r
-       {\r
-               UTC_MM_LOG( "failed to copy a record identified by media id to destination folder identified by folder id. error code->%d", ret);\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_FAIL);\r
-               return;\r
-       }\r
-       \r
-       GList *p_list = NULL;\r
-       minfo_item_filter item_filter = {MINFO_ITEM_ALL,MINFO_MEDIA_SORT_BY_NONE,-1,-1,false,false};\r
-       Mitem* dest_item = NULL;\r
-\r
-       ret = minfo_get_item_list(dst_cluster_id, item_filter, _ite_fn, &p_list);\r
-       \r
-       if (ret < MB_SVC_ERROR_NONE)\r
-       {\r
-               UTC_MM_LOG( "unable to get media records. error code->%d", ret);\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_FAIL);\r
-               return;\r
-       }\r
-\r
-       int len = g_list_length( p_list );\r
-       dest_item = (Mitem*)g_list_nth_data(p_list, len-1);\r
-       ret = minfo_delete_media_id( dest_item->_id );\r
-\r
-       if (ret < MB_SVC_ERROR_NONE)\r
-       {\r
-               UTC_MM_LOG( "unable to delete media records. error code->%d", ret);\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_FAIL);\r
-               return;\r
-       }\r
-\r
-       minfo_destroy_mtype_item(dest_item);    \r
-\r
-       UTC_MINFO_FINALIZE()\r
-       tet_result(TET_PASS);\r
-\r
-       return;\r
-}\r
-\r
-\r
-/**\r
-* @brief               This tests int minfo_cp_media() API with invalid parameter\r
-*                      copy a record identified by media id to destination folder identified by folder id.\r
-* @par ID      utc_minfo_cp_media_func_02\r
-* @param       [in] \r
-* @return      error code on success \r
-*/\r
-void utc_minfo_cp_media_func_02()\r
-{\r
-       int ret = -1;\r
-       \r
-       int src_media_id = -1;\r
-       int dst_cluster_id = 2;\r
-       UTC_MINFO_INIT()\r
-       ret = minfo_cp_media(src_media_id, dst_cluster_id);\r
-               \r
-       if (ret<0)\r
-       {\r
-               UTC_MM_LOG("abnormal condition test for null, error code->%d", ret);\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_PASS);\r
-       }\r
-       else\r
-       {\r
-               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.");\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_FAIL);\r
-       }\r
-\r
-       return ;\r
-}\r
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 (file)
index bb64eb8..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*\r
- * libmedia-service\r
- *\r
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
- *\r
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *\r
- */\r
-\r
-\r
-/**\r
-* @file                utc_minfo_cp_media_func.h\r
-* @author      \r
-* @brief       This is the implementaion file for the test case of minfo_cp_media API function\r
-* @version     Initial Creation Version 0.1\r
-* @date                2010-10-13\r
-*/\r
-\r
-#ifndef __UTS_minfo_cp_media_func_FUNC_H_\r
-#define __UTS_minfo_cp_media_func_FUNC_H_\r
-\r
-\r
-#include "utc_visual_svc_common.h"\r
-\r
-/* Initialize TCM data structures */\r
-void (*tet_startup)() = NULL;\r
-void (*tet_cleanup)() = NULL;\r
-\r
-void utc_minfo_cp_media_func_01();\r
-void utc_minfo_cp_media_func_02();\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_minfo_cp_media_func_01, 1},\r
-       {utc_minfo_cp_media_func_02, 2},        \r
-       {NULL, 0}\r
-};\r
-\r
-\r
-#endif //__UTS_minfo_cp_media_func_FUNC_H_\r
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 (file)
index 17e9c1f..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-/*\r
- * libmedia-service\r
- *\r
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
- *\r
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *\r
- */\r
-\r
-\r
-/**\r
-* @file        utc_minfo_delete_bookmark_func.c\r
-* @brief       This is a suit of unit test cases to test minfo_delete_bookmark API function\r
-* @author              \r
-* @version     Initial Creation Version 0.1\r
-* @date        2010-10-13\r
-*/\r
-\r
-#include "utc_minfo_delete_bookmark_func.h"\r
-\r
-\r
-/**\r
-* @brief       This tests int minfo_delete_bookmark() API with valid parameter\r
-*              delete a bookmark to a media file.\r
-* @par ID      utc_minfo_delete_bookmark_func_01\r
-* @param       [in] \r
-* @return      This function returns zero on success, or negative value with error code\r
-*/\r
-void utc_minfo_delete_bookmark_func_01()\r
-{\r
-       int ret = -1;\r
-        \r
-       int bookmark_id = 1;\r
-       UTC_MINFO_INIT()\r
-       ret = minfo_delete_bookmark(bookmark_id);\r
-       \r
-       if (ret < MB_SVC_ERROR_NONE)\r
-       {\r
-               UTC_MM_LOG( "unable to delete a bookmark to a media file. error code->%d", ret);\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_FAIL);\r
-               return;\r
-       }\r
-       \r
-       UTC_MINFO_FINALIZE()\r
-       tet_result(TET_PASS);\r
-       \r
-       return;\r
-}\r
-\r
-\r
-/**\r
-* @brief               This tests int minfo_delete_bookmark() API with invalid parameter\r
-*                      delete a bookmark to a media file.\r
-* @par ID      utc_minfo_delete_bookmark_func_02\r
-* @param       [in] \r
-* @return      error code on success \r
-*/\r
-void utc_minfo_delete_bookmark_func_02()\r
-{      \r
-       int ret = -1;\r
-        \r
-       int bookmark_id = -1;\r
-       UTC_MINFO_INIT()\r
-       ret = minfo_delete_bookmark(bookmark_id);\r
-       \r
-\r
-       if (ret<0)\r
-       {\r
-               UTC_MM_LOG("abnormal condition test for null, error code->%d", ret);\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_PASS);\r
-       }\r
-       else\r
-       {\r
-               UTC_MM_LOG("delete a bookmark to a media file should be failed because of the bookmark_id parameter -1.");\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_FAIL);\r
-       }\r
-\r
-       return ;\r
-}\r
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 (file)
index a6dcc86..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * libmedia-service
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>
- *
- * 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 (file)
index ecebd25..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-/*\r
- * libmedia-service\r
- *\r
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
- *\r
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *\r
- */\r
-\r
-\r
-/**\r
-* @file        utc_minfo_delete_cluster_func.c\r
-* @brief       This is a suit of unit test cases to test minfo_delete_cluster API function\r
-* @author              \r
-* @version     Initial Creation Version 0.1\r
-* @date        2010-10-13\r
-*/\r
-\r
-#include "utc_minfo_delete_cluster_func.h"\r
-\r
-int _get_id_by_url(const char* url)\r
-{\r
-       int id;\r
-       if( minfo_get_cluster_id_by_url(url, &id) < 0 )\r
-       {\r
-               UTC_MM_LOG("minfo_get_cluster_id_by_url failed");\r
-               return -1;\r
-       }\r
-\r
-       return id;\r
-}\r
-\r
-\r
-/**\r
-* @brief       This tests int minfo_delete_cluster() API with valid parameter\r
-*              delete a cluster/folder identified by folder id.\r
-* @par ID      utc_minfo_delete_cluster_func_01\r
-* @param       [in] \r
-* @return      This function returns zero on success, or negative value with error code\r
-*/\r
-void utc_minfo_delete_cluster_func_01()\r
-{\r
-       int ret = -1;\r
-\r
-       UTC_MINFO_INIT()\r
-        \r
-       int cluster_id = _get_id_by_url("/opt/media/Images and videos/ForTC");\r
-       ret = minfo_delete_cluster(cluster_id);\r
-\r
-       if (ret < MB_SVC_ERROR_NONE)\r
-       {\r
-               UTC_MM_LOG( "failed to delete a cluster/folder identified by folder id. error code->%d", ret);\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_FAIL);\r
-               return;\r
-       }\r
-       \r
-       UTC_MINFO_FINALIZE()\r
-       tet_result(TET_PASS);\r
-\r
-       return;\r
-}\r
-\r
-\r
-/**\r
-* @brief               This tests int minfo_delete_cluster() API with invalid parameter\r
-*                      delete a cluster/folder identified by folder id.\r
-* @par ID      utc_minfo_delete_cluster_func_02\r
-* @param       [in] \r
-* @return      error code on success \r
-*/\r
-void utc_minfo_delete_cluster_func_02()\r
-{\r
-       int ret = -1;\r
-        \r
-       int cluster_id = -1;\r
-       UTC_MINFO_INIT()\r
-       ret = minfo_delete_cluster(cluster_id);\r
-               \r
-       if (ret<0)\r
-       {\r
-               UTC_MM_LOG("abnormal condition test for null, error code->%d", ret);\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_PASS);\r
-       }\r
-       else\r
-       {\r
-               UTC_MM_LOG("delete a cluster/folder identified by folder id should be failed because of the cluster_id -1.");\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_FAIL);\r
-       }\r
-\r
-       return ;\r
-}\r
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 (file)
index e4e8068..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*\r
- * libmedia-service\r
- *\r
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
- *\r
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *\r
- */\r
-\r
-\r
-/**\r
-* @file                utc_minfo_delete_cluster_func.h\r
-* @author      \r
-* @brief       This is the implementaion file for the test case of minfo_delete_cluster API function\r
-* @version     Initial Creation Version 0.1\r
-* @date                2010-10-13\r
-*/\r
-\r
-#ifndef __UTS_minfo_delete_cluster_func_FUNC_H_\r
-#define __UTS_minfo_delete_cluster_func_FUNC_H_\r
-\r
-\r
-#include "utc_visual_svc_common.h"\r
-\r
-/* Initialize TCM data structures */\r
-void (*tet_startup)() = NULL;\r
-void (*tet_cleanup)() = NULL;\r
-\r
-void utc_minfo_delete_cluster_func_01();\r
-void utc_minfo_delete_cluster_func_02();\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_minfo_delete_cluster_func_01, 1},\r
-       {utc_minfo_delete_cluster_func_02, 2},  \r
-       {NULL, 0}\r
-};\r
-\r
-\r
-#endif //__UTS_minfo_delete_cluster_func_FUNC_H_\r
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 (file)
index de115ec..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-/*\r
- * libmedia-service\r
- *\r
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
- *\r
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *\r
- */\r
-\r
-\r
-/**\r
-* @file        utc_minfo_delete_media_func.c\r
-* @brief       This is a suit of unit test cases to test minfo_delete_media API function\r
-* @author              \r
-* @version     Initial Creation Version 0.1\r
-* @date        2010-10-13\r
-*/\r
-\r
-#include "utc_minfo_delete_media_func.h"\r
-\r
-\r
-/**\r
-* @brief       This tests int minfo_delete_media() API with valid parameter\r
-*              Delete a media content from media table.\r
-* @par ID      utc_minfo_delete_media_func_01\r
-* @param       [in] \r
-* @return      This function returns zero on success, or negative value with error code\r
-*/\r
-void utc_minfo_delete_media_func_01()\r
-{\r
-       int err = -1;\r
-       char *file_url = "/opt/media/Images and videos/Wallpapers/Home_01.png";\r
-\r
-       UTC_MINFO_INIT()\r
-       err = minfo_delete_media(file_url);\r
-\r
-       if (err < MB_SVC_ERROR_NONE)\r
-       {\r
-               UTC_MM_LOG( "unable to Add a media content to media table. error code->%d", err);\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_FAIL);\r
-               return;\r
-       }\r
-       \r
-       UTC_MINFO_FINALIZE()\r
-       tet_result(TET_PASS);\r
-       \r
-       return;\r
-}\r
-\r
-\r
-/**\r
-* @brief               This tests int minfo_delete_media() API with invalid parameter\r
-*                      Delete a media content from media table.\r
-* @par ID      utc_minfo_delete_media_func_02\r
-* @param       [in] \r
-* @return      error code on success \r
-*/\r
-void utc_minfo_delete_media_func_02()\r
-{      \r
-       int err = -1;\r
-       char *file_url = NULL; /*= "/opt/media/Images/Wallpapers/Home_01.png";*/\r
-\r
-       UTC_MINFO_INIT()\r
-       err = minfo_delete_media(file_url);\r
-               \r
-       if (err<0)\r
-       {\r
-               UTC_MM_LOG("abnormal condition test for null, error code->%d", err);\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_PASS);\r
-       }\r
-       else\r
-       {\r
-               UTC_MM_LOG("Delete a media content from media table should be failed because of the file_url NULL.");\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_FAIL);\r
-       }\r
-\r
-       return ;\r
-}\r
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 (file)
index 9db8a5d..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*\r
- * libmedia-service\r
- *\r
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
- *\r
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *\r
- */\r
-\r
-\r
-/**\r
-* @file                utc_minfo_delete_media_func.h\r
-* @author      \r
-* @brief       This is the implementaion file for the test case of minfo_delete_media API function\r
-* @version     Initial Creation Version 0.1\r
-* @date                2010-10-13\r
-*/\r
-\r
-#ifndef __UTS_minfo_delete_media_FUNC_H_\r
-#define __UTS_minfo_delete_media_FUNC_H_\r
-\r
-\r
-#include "utc_visual_svc_common.h"\r
-\r
-/* Initialize TCM data structures */\r
-void (*tet_startup)() = NULL;\r
-void (*tet_cleanup)() = NULL;\r
-\r
-void utc_minfo_delete_media_func_01();\r
-void utc_minfo_delete_media_func_02();\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_minfo_delete_media_func_01, 1},\r
-       {utc_minfo_delete_media_func_02, 2},    \r
-       {NULL, 0}\r
-};\r
-\r
-\r
-#endif //__UTS_minfo_delete_media_FUNC_H_\r
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 (file)
index 263e050..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-/*\r
- * libmedia-service\r
- *\r
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
- *\r
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *\r
- */\r
-\r
-\r
-/**\r
-* @file        utc_minfo_delete_media_id_func.c\r
-* @brief       This is a suit of unit test cases to test minfo_delete_media_id API function\r
-* @author              \r
-* @version     Initial Creation Version 0.1\r
-* @date        2010-10-13\r
-*/\r
-\r
-#include "utc_minfo_delete_media_id_func.h"\r
-\r
-int _get_id_by_url(const char* url)\r
-{\r
-       int id;\r
-       int ret;\r
-       Mitem* item = NULL;\r
-\r
-       ret = minfo_get_item( url, &item );\r
-       if( ret < 0 ) {\r
-               UTC_MM_LOG("minfo_get_item failed : %d", ret );\r
-               return -1;\r
-       }\r
-\r
-       return item->_id;\r
-}\r
-       \r
-\r
-/**\r
-* @brief       This tests int minfo_delete_media_id() API with valid parameter\r
-*              delete a record identified by media id from 'media' table.\r
-* @par ID      utc_minfo_delete_media_id_func_01\r
-* @param       [in] \r
-* @return      This function returns zero on success, or negative value with error code\r
-*/\r
-void utc_minfo_delete_media_id_func_01()\r
-{\r
-       int ret = -1;\r
-       \r
-       UTC_MINFO_INIT()\r
-       int media_id = _get_id_by_url("/opt/media/Images and videos/Wallpapers/Home_default_1.png");\r
-       ret = minfo_delete_media_id(media_id);\r
-\r
-       if (ret < MB_SVC_ERROR_NONE)\r
-       {\r
-               UTC_MM_LOG( "failed to delete a record identified by media id from 'media' table. error code->%d", ret);\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_FAIL);\r
-               return;\r
-       }\r
-       \r
-       UTC_MINFO_FINALIZE()\r
-       tet_result(TET_PASS);\r
-\r
-       return;\r
-}\r
-\r
-\r
-/**\r
-* @brief               This tests int minfo_delete_media_id() API with invalid parameter\r
-*                      delete a record identified by media id from 'media' table.\r
-* @par ID      utc_minfo_delete_media_id_func_02\r
-* @param       [in] \r
-* @return      error code on success \r
-*/\r
-void utc_minfo_delete_media_id_func_02()\r
-{\r
-       int ret = -1;\r
-       \r
-       int media_id = -1;\r
-       UTC_MINFO_INIT()\r
-       ret = minfo_delete_media_id(media_id);\r
-               \r
-       if (ret<0)\r
-       {\r
-               UTC_MM_LOG("abnormal condition test for null, error code->%d", ret);\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_PASS);\r
-       }\r
-       else\r
-       {\r
-               UTC_MM_LOG("delete a record identified by media id from 'media' table should be failed because of the media_id -1.");\r
-               UTC_MINFO_FINALIZE()\r
-               tet_result(TET_FAIL);\r
-       }\r
-\r
-       return ;\r
-}\r
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 (file)
index 792af3f..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*\r
- * libmedia-service\r
- *\r
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
- *\r
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *\r
- */\r
-\r
-\r
-/**\r
-* @file                utc_minfo_delete_media_id_func.h\r
-* @author      \r
-* @brief       This is the implementaion file for the test case of minfo_delete_media_id API function\r
-* @version     Initial Creation Version 0.1\r
-* @date                2010-10-13\r
-*/\r
-\r
-#ifndef __UTS_minfo_delete_media_id_FUNC_H_\r
-#define __UTS_minfo_delete_media_id_FUNC_H_\r
-\r
-\r
-#include "utc_visual_svc_common.h"\r
-\r
-/* Initialize TCM data structures */\r
-void (*tet_startup)() = NULL;\r
-void (*tet_cleanup)() = NULL;\r
-\r
-void utc_minfo_delete_media_id_func_01();\r
-void utc_minfo_delete_media_id_func_02();\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_minfo_delete_media_id_func_01, 1},\r
-       {utc_minfo_delete_media_id_func_02, 2}, \r
-       {NULL, 0}\r
-};\r
-\r
-\r
-#endif //__UTS_minfo_delete_media_id_FUNC_H_\r
diff --git a/TC/utc/visual/utc_minfo_finalize_func.c b/TC/utc/visual/utc_minfo_finalize_func.c
deleted file mode 100644 (file)
index 25373f6..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-/*\r
- * libmedia-service\r
- *\r
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
- *\r
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *\r
- */\r
-\r
-\r
-/**\r
-* @file        utc_minfo_finalize_func.c\r
-* @brief       This is a suit of unit test cases to test minfo_finalize API function\r
-* @author              \r
-* @version     Initial Creation Version 0.1\r
-* @date        2010-10-13\r
-*/\r
-\r
-#include "utc_minfo_finalize_func.h"\r
-\r
-\r
-/**\r
-* @brief       This tests int minfo_init() API with valid parameter\r
-*              Close media database file.\r
-* @par ID      utc_minfo_finalize_func_01\r
-* @param       [in] \r
-* @return      This function returns zero on success, or negative value with error code\r
-*/\r
-void utc_minfo_finalize_func_01()\r
-{\r
-       int ret = 0;\r
-\r
-       UTC_MINFO_INIT();\r
-       \r
-       ret = minfo_finalize();\r
-       \r
-       dts_check_ge(API_NAME, ret, MB_SVC_ERROR_NONE, "unable to close media db. error code->%d", ret);\r
-}\r
-\r
-\r
-/**\r
-* @brief               This tests int minfo_finalize() API with invalid parameter\r
-*                      Close media database file.\r
-* @par ID      utc_minfo_finalize_func_02\r
-* @param       [in] \r
-* @return      error code on success \r
-*/\r
-void utc_minfo_finalize_func_02()\r
-{      \r
-       int ret = 0;\r
-\r
-       ret = minfo_finalize();\r
-       dts_check_lt(API_NAME, ret, MB_SVC_ERROR_NONE,"Closing media db should be failed because it's not open yet.");\r
-}\r
diff --git a/TC/utc/visual/utc_minfo_finalize_func.h b/TC/utc/visual/utc_minfo_finalize_func.h
deleted file mode 100644 (file)
index 936a7ed..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*\r
- * libmedia-service\r
- *\r
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
- *\r
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *\r
- */\r
-\r
-\r
-/**\r
-* @file                utc_minfo_finalize_func.h\r
-* @author      \r
-* @brief       This is the implementaion file for the test case of minfo_finalize API function\r
-* @version     Initial Creation Version 0.1\r
-* @date                2010-10-13\r
-*/\r
-\r
-#ifndef __UTS_MINFO_FINALIZE_FUNC_H_\r
-#define __UTS_MINFO_FINALIZE_FUNC_H_\r
-\r
-\r
-#include "utc_visual_svc_common.h"\r
-\r
-/* Initialize TCM data structures */\r
-void (*tet_startup)() = NULL;\r
-void (*tet_cleanup)() = NULL;\r
-\r
-void utc_minfo_finalize_func_01();\r
-void utc_minfo_finalize_func_02();\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_minfo_finalize_func_01, 1},\r
-       {utc_minfo_finalize_func_02, 2},        \r
-       {NULL, 0}\r
-};\r
-\r
-\r
-#endif //__UTS_MINFO_FINALIZE_FUNC_H_\r
diff --git a/TC/utc/visual/utc_minfo_init_func.c b/TC/utc/visual/utc_minfo_init_func.c
deleted file mode 100644 (file)
index c8b0d2c..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/*\r
- * libmedia-service\r
- *\r
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
- *\r
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *\r
- */\r
-\r
-\r
-/**\r
-* @file        utc_minfo_init_func.c\r
-* @brief       This is a suit of unit test cases to test minfo_init API function\r
-* @author              \r
-* @version     Initial Creation Version 0.1\r
-* @date        2010-10-13\r
-*/\r
-\r
-#include "utc_minfo_init_func.h"\r
-\r
-\r
-/**\r
-* @brief       This tests int minfo_init() API with valid parameter\r
-*              Open media, metadata, etc, database tables.\r
-* @par ID      utc_minfo_init_func_01\r
-* @param       [in] \r
-* @return      This function returns zero on success, or negative value with error code\r
-*/\r
-void utc_minfo_init_func_01()\r
-{\r
-       int ret = 0;\r
-       \r
-       ret = minfo_init();\r
-       \r
-       dts_check_ge(API_NAME, ret, MB_SVC_ERROR_NONE, "unable to open media db. error code->%d", ret);\r
-       \r
-       return;\r
-}\r
-\r
-\r
diff --git a/TC/utc/visual/utc_minfo_init_func.h b/TC/utc/visual/utc_minfo_init_func.h
deleted file mode 100644 (file)
index 11aa791..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/*\r
- * libmedia-service\r
- *\r
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
- *\r
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *\r
- */\r
-\r
-\r
-/**\r
-* @file                utc_minfo_init_func.h\r
-* @author      \r
-* @brief       This is the implementaion file for the test case of minfo_init API function\r
-* @version     Initial Creation Version 0.1\r
-* @date                2010-10-13\r
-*/\r
-\r
-#ifndef __UTS_MINFO_INIT_FUNC_H_\r
-#define __UTS_MINFO_INIT_FUNC_H_\r
-\r
-\r
-#include "utc_visual_svc_common.h"\r
-\r
-/* Initialize TCM data structures */\r
-void (*tet_startup)() = NULL;\r
-void (*tet_cleanup)() = NULL;\r
-\r
-void utc_minfo_init_func_01();\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_minfo_init_func_01, 1},\r
-       {NULL, 0}\r
-};\r
-\r
-\r
-#endif //__UTS_MINFO_INIT_FUNC_H_\r
diff --git a/src/include/audio/md5_hash.h b/src/include/audio/md5_hash.h
deleted file mode 100755 (executable)
index 0a75d05..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * libmedia-service
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>
- *
- * 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 <stdint.h>
-#include <sys/types.h>
-#include <stdlib.h>
-
-#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__*/