summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyunjun Ko <zzoon.ko@samsung.com>2012-08-23 13:30:35 +0900
committerHyunjun Ko <zzoon.ko@samsung.com>2012-08-23 13:30:35 +0900
commit2b7dd9e0874a86f5ac4cff404c03d3ed3808967d (patch)
tree054ede03fbe7367e4f0acf9396b23b51eb0fca4e
parent198987b2e1fcc91d4da409017f870801e0d06664 (diff)
downloadmedia-content-2b7dd9e0874a86f5ac4cff404c03d3ed3808967d.tar.gz
media-content-2b7dd9e0874a86f5ac4cff404c03d3ed3808967d.tar.bz2
media-content-2b7dd9e0874a86f5ac4cff404c03d3ed3808967d.zip
Remove debian and TC directories
-rwxr-xr-xTC/_export_env.sh9
-rwxr-xr-xTC/_export_target_env.sh8
-rwxr-xr-xTC/build.sh16
-rwxr-xr-xTC/clean.sh11
-rw-r--r--TC/config2
-rwxr-xr-xTC/execute.sh15
-rw-r--r--TC/testcase/Makefile23
-rw-r--r--TC/testcase/tet_captured1
-rwxr-xr-xTC/testcase/tslist10
-rwxr-xr-xTC/testcase/utc_media_audio.c756
-rwxr-xr-xTC/testcase/utc_media_content.c78
-rwxr-xr-xTC/testcase/utc_media_filter.c303
-rwxr-xr-xTC/testcase/utc_media_folder.c552
-rwxr-xr-xTC/testcase/utc_media_group.c401
-rwxr-xr-xTC/testcase/utc_media_image.c362
-rwxr-xr-xTC/testcase/utc_media_info.c1573
-rwxr-xr-xTC/testcase/utc_media_playlist.c519
-rwxr-xr-xTC/testcase/utc_media_tag.c472
-rwxr-xr-xTC/testcase/utc_media_video.c758
-rw-r--r--TC/tet_scen7
-rw-r--r--TC/tetbuild.cfg5
-rw-r--r--TC/tetclean.cfg5
-rw-r--r--TC/tetexec.cfg5
-rw-r--r--debian/README0
-rw-r--r--debian/capi-content-media-content-dev.install4
-rw-r--r--debian/capi-content-media-content-dev.postinst1
-rw-r--r--debian/capi-content-media-content.install1
-rw-r--r--debian/capi-content-media-content.postinst1
-rwxr-xr-xdebian/changelog261
-rw-r--r--debian/compat1
-rwxr-xr-xdebian/control21
-rwxr-xr-xdebian/rules68
-rwxr-xr-xpackaging/capi-content-media-content.spec1
33 files changed, 0 insertions, 6250 deletions
diff --git a/TC/_export_env.sh b/TC/_export_env.sh
deleted file mode 100755
index 85deee1..0000000
--- a/TC/_export_env.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-. ./config
-export TET_INSTALL_PATH=$TET_INSTALL_HOST_PATH # tetware root path
-#export TET_TARGET_PATH=$TET_INSTALL_PATH/tetware-simulator # tetware target 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
-export TET_ROOT=$TET_TARGET_PATH
diff --git a/TC/_export_target_env.sh b/TC/_export_target_env.sh
deleted file mode 100755
index 79666a1..0000000
--- a/TC/_export_target_env.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-. ./config
-export TET_INSTALL_PATH=$TET_INSTALL_TARGET_PATH # path to path
-#export TET_TARGET_PATH=$TET_INSTALL_PATH/tetware-simulator
-export TET_TARGET_PATH=$TET_INSTALL_PATH/tetware-target
-export PATH=$TET_TARGET_PATH/bin:$PATH
-export LD_LIBRARY_PATH=$TET_TARGET_PATH/lib/tet3:$LD_LIBRARY_PATH
-export TET_ROOT=$TET_TARGET_PATH
diff --git a/TC/build.sh b/TC/build.sh
deleted file mode 100755
index 72aad6c..0000000
--- a/TC/build.sh
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-. ./_export_env.sh # setting environment variables
-
-export TET_SUITE_ROOT=`pwd`
-FILE_NAME_EXTENSION=`date +%s`
-
-RESULT_DIR=results
-HTML_RESULT=$RESULT_DIR/build-tar-result-$FILE_NAME_EXTENSION.html
-JOURNAL_RESULT=$RESULT_DIR/build-tar-result-$FILE_NAME_EXTENSION.journal
-
-mkdir -p $RESULT_DIR
-
-tcc -c -p ./
-tcc -b -j $JOURNAL_RESULT -p ./
-grw -c 7 -f chtml -o $HTML_RESULT $JOURNAL_RESULT
diff --git a/TC/clean.sh b/TC/clean.sh
deleted file mode 100755
index 29743e0..0000000
--- a/TC/clean.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-. ./_export_env.sh # setting environment variables
-
-export TET_SUITE_ROOT=`pwd`
-RESULT_DIR=results
-
-tcc -c -p ./ # executing tcc, with clean option (-c)
-rm -r $RESULT_DIR
-rm -r tet_tmp_dir
-rm testcase/tet_captured
diff --git a/TC/config b/TC/config
deleted file mode 100644
index 64713a4..0000000
--- a/TC/config
+++ /dev/null
@@ -1,2 +0,0 @@
-TET_INSTALL_HOST_PATH=/home/dydot1kim/project/dts/SLP_DTS_v1.3/TETware
-TET_INSTALL_TARGET_PATH=/mnt/nfs/project/dts/SLP_DTS_v1.3/TETware
diff --git a/TC/execute.sh b/TC/execute.sh
deleted file mode 100755
index 0fe02e2..0000000
--- a/TC/execute.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-. ./_export_target_env.sh # setting environment variables
-
-export TET_SUITE_ROOT=`pwd`
-FILE_NAME_EXTENSION=`date +%s`
-
-RESULT_DIR=results
-HTML_RESULT=$RESULT_DIR/exec-tar-result-$FILE_NAME_EXTENSION.html
-JOURNAL_RESULT=$RESULT_DIR/exec-tar-result-$FILE_NAME_EXTENSION.journal
-
-mkdir -p $RESULT_DIR
-
-tcc -e -j $JOURNAL_RESULT -p ./
-grw -c 7 -f chtml -o $HTML_RESULT $JOURNAL_RESULT
diff --git a/TC/testcase/Makefile b/TC/testcase/Makefile
deleted file mode 100644
index fa03d3a..0000000
--- a/TC/testcase/Makefile
+++ /dev/null
@@ -1,23 +0,0 @@
-CC ?= gcc
-
-C_FILES = $(shell ls *.c)
-
-PKGS = capi-content-media-content
-LDFLAGS = `pkg-config --libs $(PKGS)`
-LDFLAGS += $(TET_ROOT)/lib/tet3/tcm_s.o
-LDFLAGS += -L$(TET_ROOT)/lib/tet3 -ltcm_s
-LDFLAGS += -L$(TET_ROOT)/lib/tet3 -lapi_s
-
-CFLAGS = -I. `pkg-config --cflags $(PKGS)`
-CFLAGS += -I$(TET_ROOT)/inc/tet3
-CFLAGS += -Wall
-
-TCS := $(shell ls -1 *.c | cut -d. -f1)
-
-all: $(TCS)
-
-%: %.c
- $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
-
-clean:
- rm -f $(TCS)
diff --git a/TC/testcase/tet_captured b/TC/testcase/tet_captured
deleted file mode 100644
index 409eaf3..0000000
--- a/TC/testcase/tet_captured
+++ /dev/null
@@ -1 +0,0 @@
-make: `utc_media_tag' is up to date.
diff --git a/TC/testcase/tslist b/TC/testcase/tslist
deleted file mode 100755
index ecea559..0000000
--- a/TC/testcase/tslist
+++ /dev/null
@@ -1,10 +0,0 @@
-/testcase/utc_media_content
-/testcase/utc_media_folder
-/testcase/utc_media_filter
-/testcase/utc_media_image
-/testcase/utc_media_video
-/testcase/utc_media_info
-/testcase/utc_media_audio
-/testcase/utc_media_tag
-/testcase/utc_media_group
-/testcase/utc_media_playlist
diff --git a/TC/testcase/utc_media_audio.c b/TC/testcase/utc_media_audio.c
deleted file mode 100755
index efe5e06..0000000
--- a/TC/testcase/utc_media_audio.c
+++ /dev/null
@@ -1,756 +0,0 @@
-/*
-* Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* 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.
-*/
-
-
-#include <tet_api.h>
-#include <stdlib.h>
-#include <media_content.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_audio_meta_destroy_n(void);
-static void utc_audio_meta_destroy_p(void);
-static void utc_audio_meta_clone_n(void);
-static void utc_audio_meta_clone_p(void);
-static void utc_audio_meta_get_media_id_n(void);
-static void utc_audio_meta_get_media_id_p(void);
-static void utc_audio_meta_get_title_n(void);
-static void utc_audio_meta_get_title_p(void);
-static void utc_audio_meta_get_album_n(void);
-static void utc_audio_meta_get_album_p(void);
-static void utc_audio_meta_get_artist_n(void);
-static void utc_audio_meta_get_artist_p(void);
-static void utc_audio_meta_get_genre_n(void);
-static void utc_audio_meta_get_genre_p(void);
-static void utc_audio_meta_get_composer_n(void);
-static void utc_audio_meta_get_composer_p(void);
-static void utc_audio_meta_get_year_n(void);
-static void utc_audio_meta_get_year_p(void);
-static void utc_audio_meta_get_recorded_date_n(void);
-static void utc_audio_meta_get_recorded_date_p(void);
-static void utc_audio_meta_get_copyright_n(void);
-static void utc_audio_meta_get_copyright_p(void);
-static void utc_audio_meta_get_track_num_n(void);
-static void utc_audio_meta_get_track_num_p(void);
-static void utc_audio_meta_get_bit_rate_n(void);
-static void utc_audio_meta_get_bit_rate_p(void);
-static void utc_audio_meta_get_sample_rate_n(void);
-static void utc_audio_meta_get_sample_rate_p(void);
-static void utc_audio_meta_get_channel_n(void);
-static void utc_audio_meta_get_channel_p(void);
-static void utc_audio_meta_get_duration_n(void);
-static void utc_audio_meta_get_duration_p(void);
-static void utc_audio_meta_get_played_count_n(void);
-static void utc_audio_meta_get_played_count_p(void);
-static void utc_audio_meta_get_played_time_n(void);
-static void utc_audio_meta_get_played_time_p(void);
-static void utc_audio_meta_get_played_position_n(void);
-static void utc_audio_meta_get_played_position_p(void);
-static void utc_audio_meta_update_to_db_n(void);
-static void utc_audio_meta_update_to_db_p(void);
-static void utc_audio_meta_set_played_count_n(void);
-static void utc_audio_meta_set_played_count_p(void);
-static void utc_audio_meta_set_played_time_n(void);
-static void utc_audio_meta_set_played_time_p(void);
-static void utc_audio_meta_set_played_position_n(void);
-static void utc_audio_meta_set_played_position_p(void);
-
-
-struct tet_testlist tet_testlist[] = {
- { utc_audio_meta_destroy_n, 5 },
- { utc_audio_meta_destroy_p, 5 },
- { utc_audio_meta_clone_n, 4 },
- { utc_audio_meta_clone_p, 4 },
- { utc_audio_meta_get_media_id_n, 1 },
- { utc_audio_meta_get_media_id_p, 1 },
- { utc_audio_meta_get_title_n, 1 },
- { utc_audio_meta_get_title_p, 1 },
- { utc_audio_meta_get_album_n, 1 },
- { utc_audio_meta_get_album_p, 1 },
- { utc_audio_meta_get_artist_n, 1 },
- { utc_audio_meta_get_artist_p, 1 },
- { utc_audio_meta_get_genre_n, 1 },
- { utc_audio_meta_get_genre_p, 1 },
- { utc_audio_meta_get_composer_n, 1 },
- { utc_audio_meta_get_composer_p, 1 },
- { utc_audio_meta_get_year_n, 1 },
- { utc_audio_meta_get_year_p, 1 },
- { utc_audio_meta_get_recorded_date_n, 1 },
- { utc_audio_meta_get_recorded_date_p, 1 },
- { utc_audio_meta_get_copyright_n, 1 },
- { utc_audio_meta_get_copyright_p, 1 },
- { utc_audio_meta_get_track_num_n, 1 },
- { utc_audio_meta_get_track_num_p, 1 },
- { utc_audio_meta_get_bit_rate_n, 1 },
- { utc_audio_meta_get_bit_rate_p, 1 },
- { utc_audio_meta_get_sample_rate_n, 1 },
- { utc_audio_meta_get_sample_rate_p, 1 },
- { utc_audio_meta_get_channel_n, 1 },
- { utc_audio_meta_get_channel_p, 1 },
- { utc_audio_meta_get_duration_n, 1 },
- { utc_audio_meta_get_duration_p, 1 },
- { utc_audio_meta_get_played_count_n, 1 },
- { utc_audio_meta_get_played_count_p, 1 },
- { utc_audio_meta_get_played_time_n, 1 },
- { utc_audio_meta_get_played_time_p, 1 },
- { utc_audio_meta_get_played_position_n, 1 },
- { utc_audio_meta_get_played_position_p, 1 },
- { utc_audio_meta_set_played_count_n, 2 },
- { utc_audio_meta_set_played_count_p, 2 },
- { utc_audio_meta_set_played_time_n, 2 },
- { utc_audio_meta_set_played_time_p, 2 },
- { utc_audio_meta_set_played_position_n, 2 },
- { utc_audio_meta_set_played_position_p, 2 },
- { utc_audio_meta_update_to_db_n, 3 },
- { utc_audio_meta_update_to_db_p, 3 },
- { NULL, 0 },
-};
-
-static audio_meta_h g_audio;
-static audio_meta_h g_audio_dst;
-static char *g_media_id = NULL;
-
-bool media_item_cb(media_info_h media, void *user_data)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_get_media_id(media, &g_media_id);
- if((ret != MEDIA_CONTENT_ERROR_NONE) || (g_media_id == NULL))
- {
- tet_printf("\n get media_id failed");
- return false;
- }
-
- ret = media_info_get_audio(media, &g_audio);
- if((ret != MEDIA_CONTENT_ERROR_NONE) || (g_audio == NULL))
- {
- tet_printf("\n get audio_meta failed");
- return false;
- }
-
- return true;
-}
-
-static void startup(void)
-{
- /* start of TC */
- tet_printf("\n TC start");
- filter_h filter;
- g_audio = NULL;
- g_audio_dst = NULL;
-
- int ret = media_content_connect();
- if(ret != MEDIA_CONTENT_ERROR_NONE)
- {
- tet_printf("\n database connection is failed");
- return;
- }
- else
- {
- tet_printf("\n database connection is success");
- }
-
- char *condition = "MEDIA_TYPE=3"; //Music
-
- media_filter_create(&filter);
- media_filter_set_condition(filter, condition, MEDIA_CONTENT_COLLATE_DEFAULT);
- media_filter_set_order(filter, MEDIA_CONTENT_ORDER_ASC, MEDIA_TITLE, MEDIA_CONTENT_COLLATE_DEFAULT);
- if(filter == NULL)
- {
- tet_printf("\n filter create failed");
- return;
- }
-
- ret = media_info_foreach_media_from_db(filter, media_item_cb, NULL);
- if(ret != MEDIA_CONTENT_ERROR_NONE)
- {
- tet_printf("\n get media_info failed");
- return;
- }
-
- media_filter_destroy(filter);
-
- tet_printf("\n TC start END");
-}
-
-static void cleanup(void)
-{
- /* end of TC */
- tet_printf("\n TC end");
-
- if(g_media_id != NULL)
- free(g_media_id);
-
- if(g_audio != NULL)
- audio_meta_destroy(g_audio);
-
- int ret = media_content_disconnect();
-
- if(ret != MEDIA_CONTENT_ERROR_NONE)
- tet_printf("\n database disconnection is failed");
- else
- tet_printf("\n database disconnection is success");
-}
-
-/**
- * @brief Negative test case of content_imageinfo_destroy()
- */
-static void utc_audio_meta_destroy_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = audio_meta_destroy(NULL);
-
- dts_check_eq("utc_audio_meta_destroy_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of content_imageinfo_destroy()
- */
-static void utc_audio_meta_destroy_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = audio_meta_destroy(g_audio_dst);
-
- dts_check_eq("utc_audio_meta_destroy_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to destroy audio_meta object");
-}
-
-/**
- * @brief Negative test case of imageinfo_clone()
- */
-static void utc_audio_meta_clone_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = audio_meta_clone(&g_audio_dst, NULL);
- dts_check_eq("utc_audio_meta_clone_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of imageinfo_clone()
- */
-static void utc_audio_meta_clone_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = audio_meta_clone(&g_audio_dst, g_audio);
-
- dts_check_eq("utc_audio_meta_clone_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to clone audio_meta object");
-}
-
-/**
- * @brief Negative test case of audio_meta_get_media_id()
- */
-static void utc_audio_meta_get_media_id_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *media_id = NULL;
-
- ret = audio_meta_get_media_id(NULL, &media_id);
-
- dts_check_eq("utc_audio_meta_get_media_id_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of audio_meta_get_media_id()
- */
-static void utc_audio_meta_get_media_id_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *media_id = NULL;
-
- ret = audio_meta_get_media_id(g_audio, &media_id);
-
- dts_check_eq("utc_audio_meta_get_media_id_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get album");
-}
-
-/**
- * @brief Negative test case of imageinfo_get_latitude()
- */
-static void utc_audio_meta_get_title_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *title = NULL;
-
- ret = audio_meta_get_title(NULL, &title);
-
- dts_check_eq("utc_audio_meta_get_album_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of imageinfo_get_latitude()
- */
-static void utc_audio_meta_get_title_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *title = NULL;
-
- ret = audio_meta_get_title(g_audio, &title);
-
- if(title)
- free(title);
-
- dts_check_eq("utc_audio_meta_get_album_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get album");
-}
-
-/**
- * @brief Negative test case of imageinfo_get_latitude()
- */
-static void utc_audio_meta_get_album_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *album = NULL;
-
- ret = audio_meta_get_album(NULL, &album);
-
- dts_check_eq("utc_audio_meta_get_album_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of imageinfo_get_latitude()
- */
-static void utc_audio_meta_get_album_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *album = NULL;
-
- ret = audio_meta_get_album(g_audio, &album);
-
- if(album)
- free(album);
-
- dts_check_eq("utc_audio_meta_get_album_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get album");
-}
-
-/**
- * @brief Negative test case of imageinfo_get_description()
- */
-static void utc_audio_meta_get_artist_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *artist = NULL;
-
- ret = audio_meta_get_artist(NULL, &artist);
-
- dts_check_eq("utc_audio_meta_get_artist_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of imageinfo_get_description()
- */
-static void utc_audio_meta_get_artist_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *artist = NULL;
-
- ret = audio_meta_get_artist(g_audio, &artist);
-
- if(artist)
- free(artist);
-
- dts_check_eq("utc_audio_meta_get_artist_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get artist");
-}
-
-/**
- * @brief Negative test case of audio_meta_get_genre()
- */
-static void utc_audio_meta_get_genre_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *genre = NULL;
-
- ret = audio_meta_get_genre(NULL, &genre);
- dts_check_eq("utc_audio_meta_get_genre_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of audio_meta_get_genre()
- */
-static void utc_audio_meta_get_genre_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *genre = NULL;
-
- ret = audio_meta_get_genre(g_audio, &genre);
-
- if(genre)
- free(genre);
-
- dts_check_eq("utc_audio_meta_get_genre_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get genre");
-}
-
-/**
- * @brief Negative test case of audio_meta_get_composer()
- */
-static void utc_audio_meta_get_composer_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *composer = NULL;
-
- ret = audio_meta_get_composer(NULL, &composer);
- dts_check_eq("utc_audio_meta_get_composer_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-
-/**
- * @brief Positive test case of audio_meta_get_composer()
- */
-static void utc_audio_meta_get_composer_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *composer = NULL;
-
- ret = audio_meta_get_composer(g_audio, &composer);
-
- if(composer)
- free(composer);
-
- dts_check_eq("utc_audio_meta_get_composer_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the composer");
-}
-
-/**
- * @brief Negative test case of sim_get_imageinfo_get_height()
- */
-static void utc_audio_meta_get_year_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *year = NULL;
-
- ret = audio_meta_get_year(NULL, &year);
-
- dts_check_eq("utc_audio_meta_get_year_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of sim_get_imageinfo_get_height()
- */
-static void utc_audio_meta_get_year_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *year = NULL;
-
- ret = audio_meta_get_year(g_audio, &year);
-
- if(year)
- free(year);
-
- dts_check_eq("utc_audio_meta_get_year_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get year");
-}
-
-/**
- * @brief Negative test case of audio_meta_get_recorded_date()
- */
-static void utc_audio_meta_get_recorded_date_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *recorded_date = NULL;
-
- ret = audio_meta_get_recorded_date(NULL, &recorded_date);
-
- dts_check_eq("utc_audio_meta_get_recorded_date_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Failed to get recorded_date");
-}
-
-/**
- * @brief Positive test case of audio_meta_get_recorded_date()
- */
-static void utc_audio_meta_get_recorded_date_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *recorded_date = NULL;
-
- ret = audio_meta_get_year(g_audio, &recorded_date);
-
- if(recorded_date)
- free(recorded_date);
-
- dts_check_eq("utc_audio_meta_get_recorded_date_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get recorded_date");
-}
-
-/**
- * @brief Negative test case of audio_meta_get_copyright()
- */
-static void utc_audio_meta_get_copyright_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *copyright = NULL;
-
- ret = audio_meta_get_copyright(NULL, &copyright);
-
- dts_check_eq("utc_audio_meta_get_copyright_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of audio_meta_get_copyright()
- */
-static void utc_audio_meta_get_copyright_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *copyright = NULL;
-
- ret = audio_meta_get_copyright(g_audio, &copyright);
-
- if(copyright)
- free(copyright);
-
- dts_check_eq("utc_audio_meta_get_copyright_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get copyright");
-}
-
-static void utc_audio_meta_get_track_num_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *tracknum = NULL;
-
- ret = audio_meta_get_track_num(NULL, &tracknum);
-
- dts_check_eq("utc_audio_meta_get_track_num_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_audio_meta_get_track_num_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *tracknum = NULL;
-
- ret = audio_meta_get_track_num(g_audio, &tracknum);
-
- if(tracknum)
- free(tracknum);
-
- dts_check_eq("utc_audio_meta_get_track_num_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get track num");
-}
-
-static void utc_audio_meta_get_bit_rate_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int bit_rate = 0;
-
- ret = audio_meta_get_bit_rate(NULL, &bit_rate);
-
- dts_check_eq("utc_audio_meta_get_bit_rate_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_audio_meta_get_bit_rate_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int bit_rate = 0;
-
- ret = audio_meta_get_bit_rate(g_audio, &bit_rate);
-
- dts_check_eq("utc_audio_meta_get_bit_rate_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the bit_rate");
-}
-
-static void utc_audio_meta_get_sample_rate_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int sample_rate = 0;
-
- ret = audio_meta_get_sample_rate(NULL, &sample_rate);
-
- dts_check_eq("utc_audio_meta_get_sample_rate_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_audio_meta_get_sample_rate_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int sample_rate = 0;
-
- ret = audio_meta_get_sample_rate(g_audio, &sample_rate);
-
- dts_check_eq("utc_audio_meta_get_sample_rate_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the sample_rate");
-}
-
-static void utc_audio_meta_get_channel_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int channel = 0;
-
- ret = audio_meta_get_channel(NULL, &channel);
-
- dts_check_eq("utc_audio_meta_get_sample_rate_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_audio_meta_get_channel_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int channel = 0;
-
- ret = audio_meta_get_channel(g_audio, &channel);
-
- dts_check_eq("utc_audio_meta_get_sample_rate_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the channel");
-}
-
-static void utc_audio_meta_get_duration_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int duration = 0;
-
- ret = audio_meta_get_duration(NULL, &duration);
-
- dts_check_eq("utc_audio_meta_get_duration_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_audio_meta_get_duration_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int duration = 0;
-
- ret = audio_meta_get_duration(g_audio, &duration);
-
- dts_check_eq("utc_audio_meta_get_duration_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get duration");
-}
-
-static void utc_audio_meta_get_played_count_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int count = 0;
-
- ret = audio_meta_get_played_count(NULL, &count);
-
- dts_check_eq("utc_audio_meta_get_played_count_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_audio_meta_get_played_count_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int count = 0;
-
- ret = audio_meta_get_played_count(g_audio, &count);
-
- dts_check_eq("utc_audio_meta_get_played_count_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get played count");
-}
-
-static void utc_audio_meta_get_played_time_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- time_t played_time = 0;
-
- ret = audio_meta_get_played_time(NULL, &played_time);
-
- dts_check_eq("utc_audio_meta_get_played_time_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_audio_meta_get_played_time_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- time_t played_time = 0;
-
- ret = audio_meta_get_played_time(g_audio, &played_time);
-
- dts_check_eq("utc_audio_meta_get_played_time_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get played time");
-}
-
-static void utc_audio_meta_get_played_position_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int position = 0;
-
- ret = audio_meta_get_played_position(NULL, &position);
-
- dts_check_eq("utc_audio_meta_get_played_position_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_audio_meta_get_played_position_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int position = 0;
-
- ret = audio_meta_get_played_position(g_audio, &position);
-
- dts_check_eq("utc_audio_meta_get_played_position_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get played position");
-}
-
-static void utc_audio_meta_set_played_count_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int played_count = 3;
-
- ret = audio_meta_set_played_count(NULL, played_count);
-
- dts_check_eq("utc_audio_meta_set_played_count_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_audio_meta_set_played_count_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int played_count = 3;
-
- ret = audio_meta_set_played_count(g_audio, played_count);
-
- dts_check_eq("utc_audio_meta_set_played_count_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set played count");
-}
-
-static void utc_audio_meta_set_played_time_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- time_t played_time = 0;
-
- ret = audio_meta_set_played_time(NULL, played_time);
-
- dts_check_eq("utc_audio_meta_set_played_time_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_audio_meta_set_played_time_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- time_t played_time = 0;
-
- ret = audio_meta_set_played_time(g_audio, played_time);
-
- dts_check_eq("utc_audio_meta_set_played_time_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set played time");
-}
-
-static void utc_audio_meta_set_played_position_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int played_position = 0;
-
- ret = audio_meta_set_played_position(NULL, played_position);
-
- dts_check_eq("audio_meta_set_played_position", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_audio_meta_set_played_position_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int played_position = 0;
-
- ret = audio_meta_set_played_position(g_audio, played_position);
-
- dts_check_eq("utc_audio_meta_set_played_position_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set playedposition");
-}
-
-static void utc_audio_meta_update_to_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = audio_meta_update_to_db(NULL);
-
- dts_check_eq("utc_audio_meta_update_to_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_audio_meta_update_to_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- tet_printf("audio : 0x%x\n", g_audio);
- ret = audio_meta_update_to_db(g_audio);
-
- dts_check_eq("utc_audio_meta_update_to_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to update metadata");
-}
diff --git a/TC/testcase/utc_media_content.c b/TC/testcase/utc_media_content.c
deleted file mode 100755
index 8eb44fe..0000000
--- a/TC/testcase/utc_media_content.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
-* Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* 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.
-*/
-
-
-#include <tet_api.h>
-#include <media_content.h>
-#include <stdlib.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_media_content_connect_p(void);
-static void utc_media_content_disconnect_p(void);
-
-
-
-struct tet_testlist tet_testlist[] = {
- { utc_media_content_connect_p, 1 },
- { utc_media_content_disconnect_p, 1 },
- { NULL, 0 },
-};
-
-
-static void startup(void)
-{
- /* start of TC */
- tet_printf("\n TC start");
-
-}
-
-
-static void cleanup(void)
-{
- /* end of TC */
- tet_printf("\n TC end");
-}
-
-
-/**
- * @brief Positive test case of utc_media_content_connect_p()
- */
-static void utc_media_content_connect_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_content_connect();
-
- dts_check_eq("utc_media_content_connect_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to connect database");
-}
-
-
-/**
- * @brief Positive test case of utc_media_content_disconnect_p()
- */
-static void utc_media_content_disconnect_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_content_disconnect();
-
- dts_check_eq("utc_content_imageinfo_destroy", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to disconnect database");
-}
diff --git a/TC/testcase/utc_media_filter.c b/TC/testcase/utc_media_filter.c
deleted file mode 100755
index 72ce5a1..0000000
--- a/TC/testcase/utc_media_filter.c
+++ /dev/null
@@ -1,303 +0,0 @@
-/*
-* Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* 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.
-*/
-
-
-#include <tet_api.h>
-#include <media_content.h>
-#include <stdlib.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_media_filter_create_n(void);
-static void utc_media_filter_create_p(void);
-static void utc_media_filter_destroy_n(void);
-static void utc_media_filter_destroy_p(void);
-static void utc_media_filter_set_offset_n(void);
-static void utc_media_filter_set_offset_p(void);
-static void utc_media_filter_set_condition_n(void);
-static void utc_media_filter_set_condition_p(void);
-static void utc_media_filter_set_order_n(void);
-static void utc_media_filter_set_order_p(void);
-//static void utc_media_filter_set_collate_n(void);
-//static void utc_media_filter_set_collate_p(void);
-static void utc_media_filter_get_offset_n(void);
-static void utc_media_filter_get_offset_p(void);
-static void utc_media_filter_get_condition_n(void);
-static void utc_media_filter_get_condition_p(void);
-static void utc_media_filter_get_order_n(void);
-static void utc_media_filter_get_order_p(void);
-//static void utc_media_filter_get_collate_n(void);
-//static void utc_media_filter_get_collate_p(void);
-
-
-struct tet_testlist tet_testlist[] = {
- { utc_media_filter_create_n, 1 },
- { utc_media_filter_create_p, 1 },
- { utc_media_filter_destroy_n, 4 },
- { utc_media_filter_destroy_p, 4 },
- { utc_media_filter_set_offset_n, 2 },
- { utc_media_filter_set_offset_p, 2},
- { utc_media_filter_set_condition_n, 2 },
- { utc_media_filter_set_condition_p, 2 },
- { utc_media_filter_set_order_n, 2 },
- { utc_media_filter_set_order_p, 2 },
-// { utc_media_filter_set_collate_n, 2 },
-// { utc_media_filter_set_collate_p, 2 },
- { utc_media_filter_get_offset_n, 3 },
- { utc_media_filter_get_offset_p, 3},
- { utc_media_filter_get_condition_n, 3 },
- { utc_media_filter_get_condition_p, 3 },
- { utc_media_filter_get_order_n, 3 },
- { utc_media_filter_get_order_p, 3 },
-// { utc_media_filter_get_collate_n, 3 },
-// { utc_media_filter_get_collate_p, 3 },
- { NULL, 0 },
-};
-
-
-//media_folder_h g_folder = NULL;
-static filter_h g_filter = NULL;
-
-static void startup(void)
-{
- /* start of TC */
- tet_printf("\n TC start");
-}
-
-
-static void cleanup(void)
-{
- /* end of TC */
- tet_printf("\n TC end");
-}
-
-
-
-/**
- * @brief Negative test case of media_filter_create()
- */
-static void utc_media_filter_create_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_filter_create(NULL);
-
- dts_check_eq("utc_media_filter_create_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of media_filter_create()
- */
-static void utc_media_filter_create_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_filter_create(&g_filter);
-
- dts_check_eq("utc_media_filter_create_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to create the filter");
-}
-
-/**
- * @brief Negative test case of media_filter_destroy()
- */
-static void utc_media_filter_destroy_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_filter_destroy(NULL);
-
- dts_check_eq("utc_media_filter_destroy_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of media_filter_destroy()
- */
-static void utc_media_filter_destroy_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_filter_destroy(g_filter);
-
- dts_check_eq("utc_media_filter_destroy_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to destroy filter");
-}
-
-/**
- * @brief Negative test case of media_filter_get_offset()
- */
-static void utc_media_filter_set_offset_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_filter_set_offset(NULL, 0, 3);
-
- dts_check_eq("utc_media_filter_set_offset_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of media_filter_get_offset()
- */
-static void utc_media_filter_set_offset_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_filter_set_offset(g_filter, 0, 3);
-
- dts_check_eq("utc_media_filter_set_offset_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set the offset");
-}
-
-/**
- * @brief Negative test case of utc_media_filter_get_display_name()
- */
-static void utc_media_filter_set_condition_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_filter_set_condition(NULL, "MEDIA_TYPE=3", MEDIA_CONTENT_COLLATE_DEFAULT);
-
- dts_check_eq("utc_media_filter_set_condition_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of utc_media_filter_get_display_name()
- */
-static void utc_media_filter_set_condition_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_filter_set_condition(g_filter, "MEDIA_TYPE=3", MEDIA_CONTENT_COLLATE_DEFAULT);
-
- dts_check_eq("utc_media_filter_set_condition_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set display name");
-}
-
-/**
- * @brief Negative test case of media_filter_set_order()
- */
-static void utc_media_filter_set_order_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_filter_set_order(NULL, MEDIA_CONTENT_ORDER_ASC, MEDIA_TITLE, MEDIA_CONTENT_COLLATE_DEFAULT);
-
- dts_check_eq("utc_media_filter_set_order_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of media_filter_set_order()
- */
-static void utc_media_filter_set_order_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_filter_set_order(g_filter, MEDIA_CONTENT_ORDER_ASC, MEDIA_TITLE, MEDIA_CONTENT_COLLATE_DEFAULT);
-
- dts_check_eq("utc_media_filter_set_order_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set the order");
-}
-
-/**
- * @brief Negative test case of media_filter_get_offset()
- */
-static void utc_media_filter_get_offset_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int offset = 0;
- int count = 0;
-
- ret = media_filter_get_offset(NULL, &offset, &count);
-
- dts_check_eq("utc_media_filter_get_offset_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of media_filter_get_offset()
- */
-static void utc_media_filter_get_offset_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int offset = 0;
- int count = 0;
-
- ret = media_filter_get_offset(g_filter, &offset, &count);
-
- dts_check_eq("utc_media_filter_get_offset_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the offset");
-}
-
-/**
- * @brief Negative test case of utc_media_filter_get_display_name()
- */
-static void utc_media_filter_get_condition_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *condition = NULL;
- media_content_collation_e collate_type = -1;
-
- ret = media_filter_get_condition(NULL, &condition, &collate_type);
-
- dts_check_eq("utc_media_filter_get_display_name_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of utc_media_filter_get_display_name()
- */
-static void utc_media_filter_get_condition_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *condition = NULL;
- media_content_collation_e collate_type = -1;
-
- ret = media_filter_get_condition(g_filter, &condition, &collate_type);
-
- if(condition != NULL)
- free(condition);
-
- dts_check_eq("utc_media_filter_get_display_name_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get display name");
-}
-
-/**
- * @brief Negative test case of media_filter_get_order()
- */
-static void utc_media_filter_get_order_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- media_content_order_e order;
- char *order_keyword = NULL;
- media_content_collation_e collate_type = -1;
-
- ret = media_filter_get_order(NULL, &order, &order_keyword, &collate_type);
-
- dts_check_eq("utc_media_filter_get_order_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of media_filter_get_order()
- */
-static void utc_media_filter_get_order_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- media_content_order_e order = 0;
- char *order_keyword = NULL;
- media_content_collation_e collate_type = -1;
-
- ret = media_filter_get_order(g_filter, &order, &order_keyword, &collate_type);
-
- if(order_keyword != NULL)
- free(order_keyword);
-
- dts_check_eq("utc_media_filter_get_order_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the order");
-}
diff --git a/TC/testcase/utc_media_folder.c b/TC/testcase/utc_media_folder.c
deleted file mode 100755
index 262b46e..0000000
--- a/TC/testcase/utc_media_folder.c
+++ /dev/null
@@ -1,552 +0,0 @@
-/*
-* Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* 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.
-*/
-
-
-#include <tet_api.h>
-#include <media_content.h>
-#include <stdlib.h>
-
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_media_folder_foreach_folder_from_db_n(void);
-static void utc_media_folder_foreach_folder_from_db_p(void);
-static void utc_media_folder_get_media_count_from_db_n(void);
-static void utc_media_folder_get_media_count_from_db_p(void);
-static void utc_media_folder_foreach_media_from_db_n(void);
-static void utc_media_folder_foreach_media_from_db_p(void);
-static void utc_media_folder_destroy_n(void);
-static void utc_media_folder_destroy_p(void);
-static void utc_media_folder_clone_n(void);
-static void utc_media_folder_clone_p(void);
-static void utc_media_folder_get_path_n(void);
-static void utc_media_folder_get_path_p(void);
-static void utc_media_folder_get_name_n(void);
-static void utc_media_folder_get_name_p(void);
-static void utc_media_folder_get_date_modified_n(void);
-static void utc_media_folder_get_date_modified_p(void);
-static void utc_media_folder_get_storage_type_n(void);
-static void utc_media_folder_get_storage_type_p(void);
-static void utc_media_folder_update_to_db_n(void);
-static void utc_media_folder_update_to_db_p(void);
-static void utc_media_folder_set_name_n(void);
-static void utc_media_folder_set_name_p(void);
-static void utc_media_folder_get_folder_id_n(void);
-static void utc_media_folder_get_folder_id_p(void);
-static void utc_media_folder_get_folder_from_db_n(void);
-static void utc_media_folder_get_folder_from_db_p(void);
-static void utc_media_folder_get_folder_count_from_db_n(void);
-static void utc_media_folder_get_folder_count_from_db_p(void);
-
-struct tet_testlist tet_testlist[] = {
- { utc_media_folder_foreach_folder_from_db_n, 1 },
- { utc_media_folder_foreach_folder_from_db_p, 1 },
- { utc_media_folder_get_media_count_from_db_n, 2 },
- { utc_media_folder_get_media_count_from_db_p, 2 },
- { utc_media_folder_foreach_media_from_db_n, 2 },
- { utc_media_folder_foreach_media_from_db_p, 2 },
- { utc_media_folder_destroy_n, 3 },
- { utc_media_folder_destroy_p, 3 },
- { utc_media_folder_clone_n, 2 },
- { utc_media_folder_clone_p, 2 },
- { utc_media_folder_get_path_n, 2 },
- { utc_media_folder_get_path_p, 2 },
- { utc_media_folder_get_path_p, 2 },
- { utc_media_folder_get_name_n, 2 },
- { utc_media_folder_get_name_p, 2 },
- { utc_media_folder_get_date_modified_n, 2 },
- { utc_media_folder_get_date_modified_p, 2 },
- { utc_media_folder_get_storage_type_n, 2 },
- { utc_media_folder_get_storage_type_p, 2 },
- { utc_media_folder_set_name_n, 2 },
- { utc_media_folder_set_name_p, 2 },
- { utc_media_folder_update_to_db_n, 2 },
- { utc_media_folder_update_to_db_p, 2 },
- { utc_media_folder_get_folder_id_n, 2 },
- { utc_media_folder_get_folder_id_p, 2 },
- { utc_media_folder_get_folder_from_db_n, 2 },
- { utc_media_folder_get_folder_from_db_p, 2 },
- { utc_media_folder_get_folder_count_from_db_n, 2 },
- { utc_media_folder_get_folder_count_from_db_p, 2 },
- { NULL, 0 },
-};
-
-
-media_folder_h g_folder = NULL;
-media_folder_h g_test_folder = NULL;
-const char *g_test_folder_path = "/opt/media/Images/test";
-const char *g_default_folder_path = "/opt/media/Images";
-const char *g_origin_item_path = "/opt/media/Images/Default.jpg";
-const char *g_test_item_path = "/opt/media/Images/test/test.jpg";
-char *g_folder_path = NULL;
-
-static void startup(void)
-{
- /* start of TC */
- tet_printf("\n TC start");
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_content_connect();
-
- char mkdir_str[256] = {0, };
- char test_copy[256] = {0, };
- snprintf(mkdir_str, sizeof(mkdir_str), "/bin/mkdir %s", g_test_folder_path);
- snprintf(test_copy, sizeof(test_copy), "/bin/cp %s %s", g_origin_item_path, g_test_item_path);
-
- system(mkdir_str);
- system(test_copy);
-
- sleep(1);
-}
-
-static void cleanup(void)
-{
- /* end of TC */
- int ret = MEDIA_CONTENT_ERROR_NONE;
- ret = media_content_disconnect();
-
- unlink(g_test_item_path);
-
- char rmdir_str[256] = {0, };
- snprintf(rmdir_str, sizeof(rmdir_str), "/bin/rmdir %s", g_test_folder_path);
- system(rmdir_str);
- tet_printf("\n TC end");
-
- media_folder_destroy(g_folder);
- media_folder_destroy(g_test_folder);
-
- if (g_folder_path) free(g_folder_path);
- g_folder_path = NULL;
-}
-
-bool capi_folder_list_cb(media_folder_h folder, void *user_data)
-{
- if(folder != NULL)
- {
- media_folder_get_path(folder, &g_folder_path);
-
- tet_printf("folder path : %s\n", g_folder_path);
-
- if(strcmp(g_folder_path, g_test_folder_path) == 0) {
- tet_printf("TEST folder\n");
- media_folder_clone(&g_test_folder, folder);
- } else if(strcmp(g_folder_path, g_default_folder_path) == 0) {
- tet_printf("DEFAULT folder\n");
- media_folder_clone(&g_folder, folder);
- }
- }
-
- if (g_folder_path) free(g_folder_path);
- g_folder_path = NULL;
-
- return true;
-}
-
-/**
- * @brief Negative test case of media_folder_foreach_folder_from_db()
- */
-static void utc_media_folder_foreach_folder_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_folder_foreach_folder_from_db(NULL, NULL, NULL);
-
- dts_check_eq("utc_media_folder_foreach_folder_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of media_folder_foreach_folder_from_db()
- */
-static void utc_media_folder_foreach_folder_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- filter_h filter;
-
- media_filter_create(&filter);
-
- ret = media_folder_foreach_folder_from_db(filter, capi_folder_list_cb, NULL);
- dts_check_eq("utc_media_folder_foreach_folder_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to iterate the folder");
-}
-
-/**
- * @brief Negative test case of media_folder_get_media_count_from_db()
- */
-static void utc_media_folder_get_media_count_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int cnt;
-
- ret = media_folder_get_media_count_from_db(NULL, NULL, &cnt);
-
- dts_check_eq("utc_media_folder_get_media_count_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of media_folder_get_media_count_from_db()
- */
-static void utc_media_folder_get_media_count_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int cnt;
-
- filter_h filter;
- media_filter_create(&filter);
- media_filter_set_condition(filter, "MEDIA_TYPE=0", MEDIA_CONTENT_COLLATE_DEFAULT);
-
- char *folder_id = NULL;
- media_folder_get_folder_id(g_folder, &folder_id);
-
- ret = media_folder_get_media_count_from_db(folder_id, filter, &cnt);
-
- dts_check_eq("utc_media_folder_get_media_count_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the count of media");
-}
-
-bool sub_media_cb(media_info_h media, void *user_data)
-{
- return true;
-}
-
-/**
- * @brief Negative test case of media_folder_foreach_media_from_db()
- */
-static void utc_media_folder_foreach_media_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- filter_h filter;
- media_filter_create(&filter);
- media_filter_set_condition(filter, "MEDIA_TYPE=0", MEDIA_CONTENT_COLLATE_DEFAULT);
-
- ret = media_folder_foreach_media_from_db(NULL, filter, sub_media_cb, NULL);
-
- media_filter_destroy(filter);
-
- dts_check_eq("utc_media_folder_foreach_media_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of media_folder_foreach_media_from_db()
- */
-static void utc_media_folder_foreach_media_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- filter_h filter;
- media_filter_create(&filter);
- media_filter_set_condition(filter, "MEDIA_TYPE=0", MEDIA_CONTENT_COLLATE_DEFAULT);
-
- char *folder_id = NULL;
- media_folder_get_folder_id(g_folder, &folder_id);
-
- ret = media_folder_foreach_media_from_db(folder_id, filter, sub_media_cb, NULL);
-
- media_filter_destroy(filter);
-
- dts_check_eq("utc_media_folder_foreach_media_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to iterate the media");
-}
-
-/**
- * @brief Negative test case of media_folder_destroy()
- */
-static void utc_media_folder_destroy_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_folder_destroy(NULL);
-
- dts_check_eq("utc_media_folder_destroy_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of media_folder_destroy()
- */
-static void utc_media_folder_destroy_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_folder_destroy(g_folder);
-
- dts_check_eq("utc_media_folder_destroy_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to destroy the folder");
-}
-
-/**
- * @brief Negative test case of media_folder_clone()
- */
-static void utc_media_folder_clone_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- media_folder_h dst_folder = NULL;
-
- ret = media_folder_clone(&dst_folder, NULL);
-
- dts_check_eq("utc_media_folder_clone_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of media_folder_clone()
- */
-static void utc_media_folder_clone_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- media_folder_h dst_folder = NULL;
-
- ret = media_folder_clone(&dst_folder, g_folder);
-
- if(dst_folder != NULL)
- media_folder_destroy(dst_folder);
-
- dts_check_eq("utc_media_folder_clone_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to clone the folder");
-}
-
-/**
- * @brief Negative test case of media_folder_get_path()
- */
-static void utc_media_folder_get_path_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *path = NULL;
- ret = media_folder_get_path(NULL, &path);
-
- dts_check_eq("utc_media_folder_get_path_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of media_folder_get_path()
- */
-static void utc_media_folder_get_path_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *path = NULL;
- ret = media_folder_get_path(g_folder, &path);
-
- if(path != NULL)
- free(path);
-
- dts_check_eq("utc_media_folder_get_path_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the path");
-}
-
-/**
- * @brief Negative test case of media_folder_get_name()
- */
-static void utc_media_folder_get_name_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *name = NULL;
- ret = media_folder_get_name(NULL, &name);
-
- if(name != NULL)
- free(name);
-
- dts_check_eq("utc_media_folder_get_name_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of media_folder_get_name()
- */
-static void utc_media_folder_get_name_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *name = NULL;
- ret = media_folder_get_name(g_folder, &name);
-
- if(name != NULL)
- free(name);
-
- dts_check_eq("utc_media_folder_get_name_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the name");
-}
-
-/**
- * @brief Negative test case of media_folder_get_storage_type()
- */
-static void utc_media_folder_get_date_modified_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- time_t date_modifed = 0;
-
- ret = media_folder_get_modified_time(NULL, &date_modifed);
-
- dts_check_eq("utc_media_folder_get_storage_type_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of media_folder_get_storage_type()
- */
-static void utc_media_folder_get_date_modified_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- time_t date_modifed = 0;
- ret = media_folder_get_modified_time(g_folder, &date_modifed);
-
- dts_check_eq("utc_media_folder_get_storage_type_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the storage type");
-}
-
-/**
- * @brief Negative test case of media_folder_get_storage_type()
- */
-static void utc_media_folder_get_storage_type_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- media_content_storage_e type;
-
- ret = media_folder_get_storage_type(NULL, &type);
-
- dts_check_eq("utc_media_folder_get_storage_type_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of media_folder_get_storage_type()
- */
-static void utc_media_folder_get_storage_type_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- media_content_storage_e type;
-
- ret = media_folder_get_storage_type(g_folder, &type);
-
- dts_check_eq("utc_media_folder_get_storage_type_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the storage type");
-}
-
-/**
- * @brief Negative test case of media_folder_set_name()
- */
-static void utc_media_folder_set_name_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_folder_set_name(NULL, NULL);
-
- dts_check_eq("utc_media_folder_set_name_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of media_folder_set_name()
- */
-static void utc_media_folder_set_name_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_folder_set_name(g_test_folder, "new test");
-
- dts_check_eq("utc_media_folder_set_name_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the storage type");
-}
-
-/**
- * @brief Negative test case of media_folder_update_to_db()
- */
-static void utc_media_folder_update_to_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_folder_update_to_db(NULL);
-
- dts_check_eq("utc_media_folder_update_to_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of media_folder_update_to_db()
- */
-static void utc_media_folder_update_to_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_folder_update_to_db(g_test_folder);
-
- dts_check_eq("utc_media_folder_update_to_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the storage type");
-}
-
-/**
- * @brief Negative test case of media_folder_get_folder_id()
- */
-static void utc_media_folder_get_folder_id_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_folder_get_folder_id(NULL, NULL);
-
- dts_check_eq("utc_media_folder_get_folder_id_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of media_folder_get_folder_id()
- */
-static void utc_media_folder_get_folder_id_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *folder_id = NULL;
- ret = media_folder_get_folder_id(g_folder, &folder_id);
-
- dts_check_eq("utc_media_folder_get_folder_id_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the storage type");
-}
-
-/**
- * @brief Negative test case of media_folder_get_folder_from_db()
- */
-static void utc_media_folder_get_folder_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_folder_get_folder_from_db(NULL, NULL);
-
- dts_check_eq("utc_media_folder_get_folder_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of media_folder_get_folder_from_db()
- */
-static void utc_media_folder_get_folder_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *folder_id = NULL;
- media_folder_get_folder_id(g_folder, &folder_id);
- media_folder_h folder_info;
-
- ret = media_folder_get_folder_from_db(folder_id, &folder_info);
-
- dts_check_eq("utc_media_folder_get_folder_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the storage type");
-}
-
-/**
- * @brief Negative test case of media_folder_get_folder_count_from_db()
- */
-static void utc_media_folder_get_folder_count_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_folder_get_folder_count_from_db(NULL, NULL);
-
- dts_check_eq("utc_media_folder_get_folder_count_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of media_folder_get_folder_count_from_db()
- */
-static void utc_media_folder_get_folder_count_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int cnt = 0;
-
- filter_h filter;
- media_filter_create(&filter);
- media_filter_set_condition(filter, "MEDIA_TYPE=0", MEDIA_CONTENT_COLLATE_DEFAULT);
-
- ret = media_folder_get_folder_count_from_db(filter, &cnt);
-
- dts_check_eq("utc_media_folder_get_folder_count_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the storage type");
-}
diff --git a/TC/testcase/utc_media_group.c b/TC/testcase/utc_media_group.c
deleted file mode 100755
index eb692bc..0000000
--- a/TC/testcase/utc_media_group.c
+++ /dev/null
@@ -1,401 +0,0 @@
-/*
-* Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* 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.
-*/
-
-
-#include <tet_api.h>
-#include <stdlib.h>
-#include <media_content.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_media_album_get_album_count_from_db_n(void);
-static void utc_media_album_get_album_count_from_db_p(void);
-static void utc_media_album_foreach_album_from_db_n(void);
-static void utc_media_album_foreach_album_from_db_p(void);
-static void utc_media_album_get_media_count_from_db_n(void);
-static void utc_media_album_get_media_count_from_db_p(void);
-static void utc_media_album_foreach_media_from_db_n(void);
-static void utc_media_album_foreach_media_from_db_p(void);
-static void utc_media_album_get_album_from_db_n(void);
-static void utc_media_album_get_album_from_db_p(void);
-static void utc_media_album_get_album_id_n(void);
-static void utc_media_album_get_album_id_p(void);
-static void utc_media_album_get_name_n(void);
-static void utc_media_album_get_name_p(void);
-static void utc_media_album_get_artist_n(void);
-static void utc_media_album_get_artist_p(void);
-static void utc_media_album_get_album_art_n(void);
-static void utc_media_album_get_album_art_p(void);
-static void utc_media_album_clone_n(void);
-static void utc_media_album_clone_p(void);
-static void utc_media_album_destroy_n(void);
-static void utc_media_album_destroy_p(void);
-
-struct tet_testlist tet_testlist[] = {
- { utc_media_album_get_album_count_from_db_n, 1 },
- { utc_media_album_get_album_count_from_db_p, 1 },
- { utc_media_album_foreach_album_from_db_n, 1 },
- { utc_media_album_foreach_album_from_db_p, 1 },
- { utc_media_album_get_media_count_from_db_n, 1 },
- { utc_media_album_get_media_count_from_db_p, 1 },
- { utc_media_album_foreach_media_from_db_n, 1 },
- { utc_media_album_foreach_media_from_db_p, 1 },
- { utc_media_album_get_album_from_db_n, 2},
- { utc_media_album_get_album_from_db_p, 2},
- { utc_media_album_get_album_id_n, 3},
- { utc_media_album_get_album_id_p, 3},
- { utc_media_album_get_name_n, 3},
- { utc_media_album_get_name_p, 3},
- { utc_media_album_get_artist_n, 3},
- { utc_media_album_get_artist_p, 3},
- { utc_media_album_get_album_art_n, 3},
- { utc_media_album_get_album_art_p, 3},
- { utc_media_album_clone_n, 3},
- { utc_media_album_clone_p, 3},
- { utc_media_album_destroy_n, 4},
- { utc_media_album_destroy_p, 4},
- { NULL, 0 },
-};
-
-static media_album_h g_album;
-static media_album_h g_album_dst;
-static filter_h g_filter;
-static int g_album_id = 0;
-static char *g_album_name = NULL;
-static char *g_artist_name = NULL;
-static char *g_genre_name = NULL;
-static char *g_composer_name = NULL;
-static char *g_year_name = NULL;
-
-bool media_item_cb(media_info_h media, void *user_data)
-{
- return true;
-}
-
-bool album_cb(media_album_h album, void *user_data)
-{
- if(album != NULL)
- {
- media_album_get_album_id(album, &g_album_id);
- media_album_get_name(album, &g_album_name);
- }
-
- return true;
-}
-
-bool group_cb(const char *name, void *user_data)
-{
- if(name != NULL)
- {
- if(!strcmp((char*)user_data, "artist"))
- g_artist_name = strdup(name);
- else if(!strcmp((char*)user_data, "genre"))
- g_genre_name = strdup(name);
- else if(!strcmp((char*)user_data, "composer"))
- g_composer_name = strdup(name);
- else if(!strcmp((char*)user_data, "year"))
- g_year_name = strdup(name);
-
- tet_printf("\n get group name success");
- }
-
- return true;
-}
-
-static void startup(void)
-{
- /* start of TC */
- tet_printf("\n TC start");
-
- int ret = media_content_connect();
- if(ret != MEDIA_CONTENT_ERROR_NONE)
- {
- tet_printf("\n database connection is failed");
- return;
- }
- else
- {
- tet_printf("\n database connection is success");
- }
-
- char *condition = "MEDIA_TYPE=3"; //Music
-
- media_filter_create(&g_filter);
- media_filter_set_condition(g_filter, condition, MEDIA_CONTENT_COLLATE_DEFAULT);
- media_filter_set_order(g_filter, MEDIA_CONTENT_ORDER_ASC, "MEDIA_TITLE", MEDIA_CONTENT_COLLATE_DEFAULT);
- if(g_filter == NULL)
- {
- tet_printf("\n filter create failed");
- return;
- }
-
- tet_printf("\n TC start END");
-}
-
-
-static void cleanup(void)
-{
- /* end of TC */
- tet_printf("\n TC end");
-
- if(g_album_name != NULL)
- free(g_album_name);
-
- if(g_artist_name != NULL)
- free(g_artist_name);
-
- if(g_genre_name != NULL)
- free(g_genre_name);
-
- if(g_composer_name != NULL)
- free(g_composer_name);
-
- if(g_year_name != NULL)
- free(g_year_name);
-
- if(g_filter != NULL)
- media_filter_destroy(g_filter);
-
- if(g_album != NULL)
- media_album_destroy(g_album);
-
- int ret = media_content_disconnect();
-
- if(ret != MEDIA_CONTENT_ERROR_NONE)
- tet_printf("\n database disconnection is failed");
- else
- tet_printf("\n database disconnection is success");
-
-}
-
-
-static void utc_media_album_get_album_count_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_album_get_album_count_from_db(g_filter, NULL);
-
- dts_check_eq("utc_media_album_get_album_count_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_album_get_album_count_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int album_count = 0;
-
- ret = media_album_get_album_count_from_db(g_filter, &album_count);
-
- dts_check_eq("utc_media_album_get_album_count_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get album count");
-}
-
-static void utc_media_album_foreach_album_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_album_foreach_album_from_db(g_filter, NULL, NULL);
-
- dts_check_eq("utc_media_album_foreach_album_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_album_foreach_album_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_album_foreach_album_from_db(g_filter, album_cb, NULL);
-
- dts_check_eq("utc_media_album_foreach_album_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get album media");
-}
-
-static void utc_media_album_get_media_count_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int media_count = 0;
-
- ret = media_album_get_media_count_from_db(0, g_filter, &media_count);
-
- dts_check_eq("utc_media_album_get_media_count_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_album_get_media_count_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int media_count = 0;
-
- ret = media_album_get_media_count_from_db(g_album_id, g_filter, &media_count);
-
- dts_check_eq("utc_media_album_get_media_count_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get album media count");
-}
-
-static void utc_media_album_foreach_media_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_album_foreach_media_from_db(0, g_filter, media_item_cb, NULL);
-
- dts_check_eq("utc_media_album_foreach_media_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_album_foreach_media_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_album_foreach_media_from_db(g_album_id, g_filter, media_item_cb, NULL);
-
- dts_check_eq("utc_media_album_foreach_media_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get album media count");
-}
-
-static void utc_media_album_get_album_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_album_get_album_from_db(-1, &g_album);
-
- dts_check_eq("utc_media_album_get_album_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_album_get_album_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_album_get_album_from_db(g_album_id, &g_album);
-
- dts_check_eq("utc_media_album_get_album_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get album by album_id");
-}
-
-static void utc_media_album_get_album_id_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_album_get_album_id(g_album, NULL);
-
- dts_check_eq("utc_media_album_get_album_id_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_album_get_album_id_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int album_id = 0;
-
- ret = media_album_get_album_id(g_album, &album_id);
-
- dts_check_eq("utc_media_album_get_album_id_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get album id");
-}
-
-static void utc_media_album_get_name_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_album_get_name(NULL, NULL);
-
- dts_check_eq("utc_media_album_get_name_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_album_get_name_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *album_name = NULL;
-
- ret = media_album_get_name(g_album, &album_name);
-
- if(album_name)
- free(album_name);
-
- dts_check_eq("utc_media_album_get_album_id_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get album name");
-}
-
-static void utc_media_album_get_artist_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_album_get_artist(NULL, NULL);
-
- dts_check_eq("utc_media_album_get_artist_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_album_get_artist_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *artist_name = NULL;
-
- ret = media_album_get_artist(g_album, &artist_name);
-
- if(artist_name)
- free(artist_name);
-
- dts_check_eq("utc_media_album_get_artist_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get artist name");
-}
-
-static void utc_media_album_get_album_art_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_album_get_album_art(NULL, NULL);
-
- dts_check_eq("utc_media_album_get_album_art_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_album_get_album_art_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *album_art = NULL;
-
- ret = media_album_get_album_art(g_album, &album_art);
-
- if(album_art)
- free(album_art);
-
- dts_check_eq("utc_media_album_get_album_art_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get album_art path");
-}
-
-static void utc_media_album_clone_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_album_clone(NULL, NULL);
-
- dts_check_eq("utc_media_album_clone_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_album_clone_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_album_clone(&g_album_dst, g_album);
-
- dts_check_eq("utc_media_album_clone_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to clone album");
-}
-
-static void utc_media_album_destroy_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_album_destroy(NULL);
-
- dts_check_eq("utc_media_album_destroy_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_album_destroy_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_album_destroy(g_album_dst);
-
- dts_check_eq("utc_media_album_destroy_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to destroy album");
-}
diff --git a/TC/testcase/utc_media_image.c b/TC/testcase/utc_media_image.c
deleted file mode 100755
index 0808f57..0000000
--- a/TC/testcase/utc_media_image.c
+++ /dev/null
@@ -1,362 +0,0 @@
-/*
-* Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* 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.
-*/
-
-
-#include <tet_api.h>
-#include <media_content.h>
-#include <stdlib.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_image_meta_destroy_n(void);
-static void utc_image_meta_destroy_p(void);
-static void utc_image_meta_clone_n(void);
-static void utc_image_meta_clone_p(void);
-static void utc_image_meta_get_media_id_n(void);
-static void utc_image_meta_get_media_id_p(void);
-static void utc_image_meta_get_width_n(void);
-static void utc_image_meta_get_width_p(void);
-static void utc_image_meta_get_height_n(void);
-static void utc_image_meta_get_height_p(void);
-static void utc_image_meta_get_orientation_n(void);
-static void utc_image_meta_get_orientation_p(void);
-static void utc_image_meta_get_date_taken_n(void);
-static void utc_image_meta_get_date_taken_p(void);
-static void utc_image_meta_set_orientation_n(void);
-static void utc_image_meta_set_orientation_p(void);
-static void utc_image_meta_update_to_db_n(void);
-static void utc_image_meta_update_to_db_p(void);
-
-
-struct tet_testlist tet_testlist[] = {
- { utc_image_meta_destroy_n, 5 },
- { utc_image_meta_destroy_p, 5 },
- { utc_image_meta_clone_n, 4 },
- { utc_image_meta_clone_p, 4 },
- { utc_image_meta_get_media_id_n, 1 },
- { utc_image_meta_get_media_id_p, 1 },
- { utc_image_meta_get_width_n, 1 },
- { utc_image_meta_get_width_p, 1 },
- { utc_image_meta_get_height_n, 1 },
- { utc_image_meta_get_height_p, 1 },
- { utc_image_meta_get_orientation_n, 1 },
- { utc_image_meta_get_orientation_p, 1 },
- { utc_image_meta_get_date_taken_n, 1 },
- { utc_image_meta_get_date_taken_p, 1 },
- { utc_image_meta_set_orientation_n, 2 },
- { utc_image_meta_set_orientation_p, 2 },
- { utc_image_meta_update_to_db_n, 3 },
- { utc_image_meta_update_to_db_p, 3 },
- { NULL, 0 },
-};
-
-static image_meta_h g_image;
-static image_meta_h g_image_dst;
-static char *g_media_id = NULL;
-
-bool media_item_cb(media_info_h media, void *user_data)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_get_media_id(media, &g_media_id);
- if((ret != MEDIA_CONTENT_ERROR_NONE) || (g_media_id == NULL))
- {
- tet_printf("\n get media_id failed");
- return false;
- }
-
- ret = media_info_get_image(media, &g_image);
- if((ret != MEDIA_CONTENT_ERROR_NONE) || (g_image == NULL))
- {
- tet_printf("\n get image_meta failed");
- return false;
- }
-
- return true;
-}
-
-static void startup(void)
-{
- /* start of TC */
- tet_printf("\n TC start");
- filter_h filter;
- g_image = NULL;
-
- int ret = media_content_connect();
- if(ret != MEDIA_CONTENT_ERROR_NONE)
- {
- tet_printf("\n database connection is failed");
- return;
- }
- else
- tet_printf("\n database connection is success");
-
- char *condition = "MEDIA_TYPE=0"; //Image
-
- media_filter_create(&filter);
- media_filter_set_condition(filter, condition, MEDIA_CONTENT_COLLATE_DEFAULT);
- media_filter_set_order(filter, MEDIA_CONTENT_ORDER_ASC, MEDIA_DISPLAY_NAME, MEDIA_CONTENT_COLLATE_DEFAULT);
- if(filter == NULL)
- {
- tet_printf("\n filter create failed");
- return;
- }
-
- ret = media_info_foreach_media_from_db(filter, media_item_cb, NULL);
- if(ret != MEDIA_CONTENT_ERROR_NONE)
- {
- tet_printf("\n get media_info failed");
- return;
- }
-
- media_filter_destroy(filter);
-
- tet_printf("\n TC start END");
-}
-
-
-static void cleanup(void)
-{
- /* end of TC */
- tet_printf("\n TC end");
-
- if(g_media_id != NULL)
- free(g_media_id);
-
- if(g_image != NULL)
- image_meta_destroy(g_image);
-
- int ret = media_content_disconnect();
-
- if(ret != MEDIA_CONTENT_ERROR_NONE)
- tet_printf("\n database disconnection is failed");
- else
- tet_printf("\n database disconnection is success");
-}
-
-
-/**
- * @brief Negative test case of content_image_meta_destroy()
- */
-static void utc_image_meta_destroy_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = image_meta_destroy(NULL);
-
- dts_check_eq("utc_image_meta_destroy", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-
-/**
- * @brief Positive test case of content_image_meta_destroy()
- */
-static void utc_image_meta_destroy_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = image_meta_destroy(g_image_dst);
-
- dts_check_eq("utc_image_meta_destroy", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to destroy imageinfo object");
-}
-
-/**
- * @brief Negative test case of image_meta_clone()
- */
-static void utc_image_meta_clone_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = image_meta_clone(&g_image_dst, NULL);
-
- dts_check_eq("utc_image_meta_clone", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of image_meta_clone()
- */
-static void utc_image_meta_clone_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = image_meta_clone(&g_image_dst, g_image);
-
- dts_check_eq("utc_image_meta_clone", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to clone imageinfo object");
-}
-
-/**
- * @brief Negative test case of image_meta_get_media_id()
- */
-static void utc_image_meta_get_media_id_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *media_id = NULL;
-
- ret = image_meta_get_media_id(NULL, &media_id);
-
- dts_check_eq("utc_image_meta_get_media_id", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of image_meta_get_media_id()
- */
-static void utc_image_meta_get_media_id_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *media_id = NULL;
-
- ret = image_meta_get_media_id(g_image, &media_id);
-
- dts_check_eq("utc_image_meta_get_media_id", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the media_id");
-}
-
-/**
- * @brief Negative test case of image_meta_get_width()
- */
-static void utc_image_meta_get_width_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int width = 0;
-
- ret = image_meta_get_width(NULL, &width);
-
- dts_check_eq("utc_image_meta_get_width", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of image_meta_get_width()
- */
-static void utc_image_meta_get_width_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int width = 0;
-
- ret = image_meta_get_width(g_image, &width);
-
- dts_check_eq("utc_image_meta_get_width", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the width");
-}
-
-/**
- * @brief Negative test case of sim_get_image_meta_get_height()
- */
-static void utc_image_meta_get_height_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int height = 0;
-
- ret = image_meta_get_height(NULL, &height);
-
- dts_check_eq("utc_image_meta_get_height", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of sim_get_image_meta_get_height()
- */
-static void utc_image_meta_get_height_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int height = 0;
-
- ret = image_meta_get_height(g_image, &height);
-
- dts_check_eq("utc_image_meta_get_height", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get height");
-}
-
-/**
- * @brief Negative test case of sim_get_image_meta_get_orientation()
- */
-static void utc_image_meta_get_orientation_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- media_content_orientation_e orientation = 0;
-
- ret = image_meta_get_orientation(NULL, &orientation);
-
- dts_check_eq("utc_image_meta_get_orientation", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of sim_get_image_meta_get_orientation()
- */
-static void utc_image_meta_get_orientation_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- media_content_orientation_e orientation = 0;
-
- ret = image_meta_get_orientation(g_image, &orientation);
-
- dts_check_eq("utc_image_meta_get_orientation", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get orientation");
-}
-
-static void utc_image_meta_get_date_taken_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *date_taken = NULL;
-
- ret = image_meta_get_date_taken(NULL, &date_taken);
-
- dts_check_eq("utc_image_meta_get_date_taken", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_image_meta_get_date_taken_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *date_taken = NULL;
-
- ret = image_meta_get_date_taken(g_image, &date_taken);
-
- dts_check_eq("utc_image_meta_get_date_taken", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get date_taken");
-}
-
-static void utc_image_meta_set_orientation_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = image_meta_set_orientation(NULL, MEDIA_CONTENT_ORIENTATION_NORMAL);
-
- dts_check_eq("utc_image_meta_set_orientation_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_image_meta_set_orientation_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = image_meta_set_orientation(g_image, MEDIA_CONTENT_ORIENTATION_NORMAL);
-
- dts_check_eq("utc_image_meta_set_orientation_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get date_taken");
-}
-
-static void utc_image_meta_update_to_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = image_meta_update_to_db(NULL);
-
- dts_check_eq("utc_image_meta_update_to_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_image_meta_update_to_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = image_meta_update_to_db(g_image);
-
- dts_check_eq("utc_image_meta_update_to_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get date_taken");
-}
diff --git a/TC/testcase/utc_media_info.c b/TC/testcase/utc_media_info.c
deleted file mode 100755
index 0c8051d..0000000
--- a/TC/testcase/utc_media_info.c
+++ /dev/null
@@ -1,1573 +0,0 @@
-/*
-* Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* 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.
-*/
-
-
-#include <tet_api.h>
-#include <media_content.h>
-#include <stdlib.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_media_info_insert_to_db_n(void);
-static void utc_media_info_insert_to_db_p(void);
-static void utc_media_info_set_display_name_n(void);
-static void utc_media_info_set_display_name_p(void);
-static void utc_media_info_set_favorite_n(void);
-static void utc_media_info_set_favorite_p(void);
-static void utc_media_info_set_rating_n(void);
-static void utc_media_info_set_rating_p(void);
-static void utc_media_info_set_category_n(void);
-static void utc_media_info_set_category_p(void);
-static void utc_media_info_set_location_tag_n(void);
-static void utc_media_info_set_location_tag_p(void);
-static void utc_media_info_set_provider_n(void);
-static void utc_media_info_set_provider_p(void);
-static void utc_media_info_set_content_name_n(void);
-static void utc_media_info_set_content_name_p(void);
-static void utc_media_info_set_description_n(void);
-static void utc_media_info_set_description_p(void);
-static void utc_media_info_set_author_n(void);
-static void utc_media_info_set_author_p(void);
-static void utc_media_info_set_age_rating_n(void);
-static void utc_media_info_set_age_rating_p(void);
-static void utc_media_info_set_added_time_n(void);
-static void utc_media_info_set_added_time_p(void);
-static void utc_media_info_set_keyword_n(void);
-static void utc_media_info_set_keyword_p(void);
-static void utc_media_info_set_altitude_n(void);
-static void utc_media_info_set_altitude_p(void);
-static void utc_media_info_set_latitude_n(void);
-static void utc_media_info_set_latitude_p(void);
-static void utc_media_info_set_longitude_n(void);
-static void utc_media_info_set_longitude_p(void);
-static void utc_media_info_update_to_db_n(void);
-static void utc_media_info_update_to_db_p(void);
-static void utc_media_info_move_media_to_db_n(void);
-static void utc_media_info_move_media_to_db_p(void);
-static void utc_media_info_delete_from_db_n(void);
-static void utc_media_info_delete_from_db_p(void);
-static void utc_media_info_foreach_media_from_db_n(void);
-static void utc_media_info_foreach_media_from_db_p(void);
-static void utc_media_info_refresh_metadata_to_db_n(void);
-static void utc_media_info_refresh_metadata_to_db_p(void);
-static void utc_media_info_destroy_n(void);
-static void utc_media_info_destroy_p(void);
-static void utc_media_info_clone_n(void);
-static void utc_media_info_clone_p(void);
-static void utc_media_info_get_media_id_n(void);
-static void utc_media_info_get_media_id_p(void);
-static void utc_media_info_get_file_path_n(void);
-static void utc_media_info_get_file_path_p(void);
-static void utc_media_info_get_display_name_n(void);
-static void utc_media_info_get_display_name_p(void);
-static void utc_media_info_get_media_type_n(void);
-static void utc_media_info_get_media_type_p(void);
-static void utc_media_info_get_mime_type_n(void);
-static void utc_media_info_get_mime_type_p(void);
-static void utc_media_info_get_thumbnail_path_n(void);
-static void utc_media_info_get_thumbnail_path_p(void);
-static void utc_media_info_get_modified_time_n(void);
-static void utc_media_info_get_modified_time_p(void);
-static void utc_media_info_get_size_n(void);
-static void utc_media_info_get_size_p(void);
-static void utc_media_info_get_description_n(void);
-static void utc_media_info_get_description_p(void);
-static void utc_media_info_get_rating_n(void);
-static void utc_media_info_get_rating_p(void);
-static void utc_media_info_get_location_tag_n(void);
-static void utc_media_info_get_location_tag_p(void);
-static void utc_media_info_get_provider_n(void);
-static void utc_media_info_get_provider_p(void);
-static void utc_media_info_get_content_name_n(void);
-static void utc_media_info_get_content_name_p(void);
-static void utc_media_info_get_category_n(void);
-static void utc_media_info_get_category_p(void);
-static void utc_media_info_get_age_rating_n(void);
-static void utc_media_info_get_age_rating_p(void);
-static void utc_media_info_get_keyword_n(void);
-static void utc_media_info_get_keyword_p(void);
-static void utc_media_info_get_author_n(void);
-static void utc_media_info_get_author_p(void);
-static void utc_media_info_get_added_time_n(void);
-static void utc_media_info_get_added_time_p(void);
-static void utc_media_info_get_altitude_n(void);
-static void utc_media_info_get_altitude_p(void);
-static void utc_media_info_get_latitude_n(void);
-static void utc_media_info_get_latitude_p(void);
-static void utc_media_info_get_longitude_n(void);
-static void utc_media_info_get_longitude_p(void);
-static void utc_media_info_get_storage_type_n(void);
-static void utc_media_info_get_storage_type_p(void);
-static void utc_media_info_is_drm_n(void);
-static void utc_media_info_is_drm_p(void);
-static void utc_media_info_get_media_from_db_n(void);
-static void utc_media_info_get_media_from_db_p(void);
-static void utc_media_info_get_image_n(void);
-static void utc_media_info_get_image_p(void);
-static void utc_media_info_get_video_n(void);
-static void utc_media_info_get_video_p(void);
-static void utc_media_info_get_audio_n(void);
-static void utc_media_info_get_audio_p(void);
-static void utc_media_info_foreach_tag_from_db_n(void);
-static void utc_media_info_foreach_tag_from_db_p(void);
-static void utc_media_info_get_favorite_n(void);
-static void utc_media_info_get_favorite_p(void);
-static void utc_media_info_foreach_bookmark_from_db_n(void);
-static void utc_media_info_foreach_bookmark_from_db_p(void);
-static void utc_media_info_get_bookmark_count_from_db_n(void);
-static void utc_media_info_get_bookmark_count_from_db_p(void);
-static void utc_media_info_get_media_count_from_db_n(void);
-static void utc_media_info_get_media_count_from_db_p(void);
-static void utc_media_info_get_tag_count_from_db_n(void);
-static void utc_media_info_get_tag_count_from_db_p(void);
-
-
-struct tet_testlist tet_testlist[] = {
- { utc_media_info_insert_to_db_n, 1 },
- { utc_media_info_insert_to_db_p, 1 },
- { utc_media_info_set_display_name_n, 1 },
- { utc_media_info_set_display_name_p, 1 },
- { utc_media_info_set_favorite_n, 1 },
- { utc_media_info_set_favorite_p, 1 },
- { utc_media_info_set_rating_n, 1 },
- { utc_media_info_set_rating_p, 1 },
- { utc_media_info_set_category_n, 1 },
- { utc_media_info_set_category_p, 1 },
- { utc_media_info_set_location_tag_n, 1 },
- { utc_media_info_set_location_tag_p, 1 },
- { utc_media_info_set_provider_n, 1 },
- { utc_media_info_set_provider_p, 1 },
- { utc_media_info_set_content_name_n, 1 },
- { utc_media_info_set_content_name_p, 1 },
- { utc_media_info_set_description_n, 1 },
- { utc_media_info_set_description_p, 1 },
- { utc_media_info_set_author_n, 1 },
- { utc_media_info_set_author_p, 1 },
- { utc_media_info_set_age_rating_n, 1 },
- { utc_media_info_set_age_rating_p, 1 },
- { utc_media_info_set_added_time_n, 1 },
- { utc_media_info_set_added_time_p, 1 },
- { utc_media_info_set_keyword_n, 1 },
- { utc_media_info_set_keyword_p, 1 },
- { utc_media_info_set_altitude_n, 1 },
- { utc_media_info_set_altitude_p, 1 },
- { utc_media_info_set_longitude_n, 1 },
- { utc_media_info_set_longitude_p, 1 },
- { utc_media_info_set_latitude_n, 1 },
- { utc_media_info_set_latitude_p, 1 },
- { utc_media_info_update_to_db_n, 1 },
- { utc_media_info_update_to_db_p, 1 },
- { utc_media_info_move_media_to_db_n, 1 },
- { utc_media_info_move_media_to_db_p, 1 },
- { utc_media_info_delete_from_db_n, 1 },
- { utc_media_info_delete_from_db_p, 1 },
- { utc_media_info_foreach_media_from_db_n, 1 },
- { utc_media_info_foreach_media_from_db_p, 1 },
- { utc_media_info_refresh_metadata_to_db_n, 1 },
- { utc_media_info_refresh_metadata_to_db_p, 1 },
- { utc_media_info_clone_n, 2 },
- { utc_media_info_clone_p, 2 },
- { utc_media_info_destroy_n, 5 },
- { utc_media_info_destroy_p, 5 },
- { utc_media_info_get_media_id_n, 2 },
- { utc_media_info_get_media_id_p, 2 },
- { utc_media_info_get_file_path_n, 2 },
- { utc_media_info_get_file_path_p, 2 },
- { utc_media_info_get_display_name_n, 2 },
- { utc_media_info_get_display_name_p, 2 },
- { utc_media_info_get_thumbnail_path_n, 2 },
- { utc_media_info_get_thumbnail_path_p, 2 },
- { utc_media_info_get_modified_time_n, 2 },
- { utc_media_info_get_modified_time_p, 2 },
- { utc_media_info_get_media_type_n, 2 },
- { utc_media_info_get_media_type_p, 2 },
- { utc_media_info_get_size_n, 2 },
- { utc_media_info_get_size_p, 2 },
- { utc_media_info_get_description_n, 2 },
- { utc_media_info_get_description_p, 2 },
- { utc_media_info_get_rating_n, 2 },
- { utc_media_info_get_rating_p, 2 },
- { utc_media_info_get_location_tag_n, 2 },
- { utc_media_info_get_location_tag_p, 2 },
- { utc_media_info_get_provider_n, 2 },
- { utc_media_info_get_provider_p, 2 },
- { utc_media_info_get_content_name_n, 2 },
- { utc_media_info_get_content_name_p, 2 },
- { utc_media_info_get_category_n, 2 },
- { utc_media_info_get_category_p, 2 },
- { utc_media_info_get_age_rating_n, 2 },
- { utc_media_info_get_age_rating_p, 2 },
- { utc_media_info_get_keyword_n, 2 },
- { utc_media_info_get_keyword_p, 2 },
- { utc_media_info_get_author_n, 2 },
- { utc_media_info_get_author_p, 2 },
- { utc_media_info_get_altitude_n, 2 },
- { utc_media_info_get_altitude_p, 2 },
- { utc_media_info_get_longitude_n, 2 },
- { utc_media_info_get_longitude_p, 2 },
- { utc_media_info_get_latitude_n, 2 },
- { utc_media_info_get_latitude_p, 2 },
- { utc_media_info_get_storage_type_n, 2 },
- { utc_media_info_get_storage_type_p, 2 },
- { utc_media_info_get_added_time_n, 2 },
- { utc_media_info_get_added_time_p, 2 },
- { utc_media_info_get_mime_type_n, 2 },
- { utc_media_info_get_mime_type_p, 2 },
- { utc_media_info_is_drm_n, 2 },
- { utc_media_info_is_drm_p, 2 },
- { utc_media_info_get_media_from_db_n, 2 },
- { utc_media_info_get_media_from_db_p, 2 },
- { utc_media_info_get_image_n, 2 },
- { utc_media_info_get_image_p, 2 },
- { utc_media_info_get_video_n, 2 },
- { utc_media_info_get_video_p, 2 },
- { utc_media_info_get_audio_n, 2 },
- { utc_media_info_get_audio_p, 2 },
- { utc_media_info_get_favorite_n, 2 },
- { utc_media_info_get_favorite_p, 2 },
- { utc_media_info_foreach_tag_from_db_n, 3 },
- { utc_media_info_foreach_tag_from_db_p, 3 },
- { utc_media_info_foreach_bookmark_from_db_n, 3 },
- { utc_media_info_foreach_bookmark_from_db_p, 3 },
- { utc_media_info_get_bookmark_count_from_db_n, 3 },
- { utc_media_info_get_bookmark_count_from_db_p, 3 },
- { utc_media_info_get_media_count_from_db_n, 3 },
- { utc_media_info_get_media_count_from_db_p, 3 },
- { utc_media_info_get_tag_count_from_db_n, 3 },
- { utc_media_info_get_tag_count_from_db_p, 3 },
- { NULL, 0 },
-};
-
-static media_info_h g_item;
-static media_info_h g_vitem;
-static media_info_h g_aitem;
-static media_info_h g_inserted_media_handle;
-
-
-char *g_item_media_id = NULL;
-char *g_inserted_media_id = NULL;
-const char *g_insert_path = "/opt/media/Downloads/test.jpg";
-const char *g_origin_path = "/opt/media/Images/Default.jpg";
-const char *g_move_dst_path = "/opt/media/Downloads/test1.jpg";
-
-static void startup(void)
-{
- /* start of TC */
- tet_printf("\n TC start");
-
- g_item = NULL;
- g_vitem = NULL;
- g_aitem = NULL;
- g_inserted_media_handle = NULL;
-
- int ret = media_content_connect();
- if(ret != MEDIA_CONTENT_ERROR_NONE)
- {
- tet_printf("\n database connection is failed");
- return;
- }
- else
- tet_printf("\n database connection is success");
-
- char test_copy[256] = {0, };
- snprintf(test_copy, sizeof(test_copy), "/bin/cp %s %s", g_origin_path, g_insert_path);
- system(test_copy);
-}
-
-static void cleanup(void)
-{
- /* end of TC */
- tet_printf("\n TC end");
- int ret = media_content_disconnect();
-
- if(ret != MEDIA_CONTENT_ERROR_NONE)
- tet_printf("\n database disconnection is failed");
- else
- tet_printf("\n database disconnection is success");
-
- if(g_item_media_id != NULL)
- free(g_item_media_id);
-
- if(g_inserted_media_id != NULL)
- free(g_inserted_media_id);
-
- unlink(g_insert_path);
-}
-
-
-static void utc_media_info_insert_to_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_insert_to_db(NULL, NULL);
-
- dts_check_eq("utc_media_info_insert_to_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_insert_to_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_insert_to_db(g_insert_path, &g_inserted_media_handle);
- media_info_get_media_id(g_inserted_media_handle, &g_inserted_media_id);
-
- dts_check_eq("utc_media_info_insert_to_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to insert a item");
-}
-
-static void utc_media_info_set_display_name_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_display_name(NULL, "new name");
-
- dts_check_eq("utc_media_info_set_display_name_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_set_display_name_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_display_name(g_inserted_media_handle, "new name");
-
- dts_check_eq("utc_media_info_set_display_name_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set display name");
-}
-
-static void utc_media_info_set_favorite_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_favorite(NULL, true);
-
- dts_check_eq("utc_media_info_set_favorite_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_set_favorite_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_favorite(g_inserted_media_handle, true);
-
- dts_check_eq("utc_media_info_set_favorite_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set favorite ");
-}
-
-static void utc_media_info_set_altitude_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_altitude(NULL, 1000.0);
-
- dts_check_eq("utc_media_info_set_altitude_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_set_altitude_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_altitude(g_inserted_media_handle, 1000.0);
-
- dts_check_eq("utc_media_info_set_altitude_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set favorite ");
-}
-
-static void utc_media_info_set_latitude_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_latitude(NULL, 1000.0);
-
- dts_check_eq("utc_media_info_set_latitude_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_set_latitude_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_latitude(g_inserted_media_handle, 1000.0);
-
- dts_check_eq("utc_media_info_set_latitude_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set favorite ");
-}
-
-static void utc_media_info_set_longitude_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_longitude(NULL, 1000.0);
-
- dts_check_eq("utc_media_info_set_longitude_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_set_longitude_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_longitude(g_inserted_media_handle, 1000.0);
-
- dts_check_eq("utc_media_info_set_longitude_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set favorite ");
-}
-
-static void utc_media_info_set_rating_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_rating(NULL, 5);
-
- dts_check_eq("utc_media_info_set_rating_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_set_rating_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_rating(g_inserted_media_handle, 5);
-
- dts_check_eq("utc_media_info_set_rating_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set rating ");
-}
-
-static void utc_media_info_set_category_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_category(NULL, "new cate");
-
- dts_check_eq("utc_media_info_set_category_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_set_category_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_category(g_inserted_media_handle, "new cate");
-
- dts_check_eq("utc_media_info_set_category_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set category ");
-}
-
-static void utc_media_info_set_location_tag_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_favorite(NULL, "new location");
-
- dts_check_eq("utc_media_info_set_location_tag_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_set_location_tag_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_location_tag(g_inserted_media_handle, "new location");
-
- dts_check_eq("utc_media_info_set_location_tag_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set location tag ");
-}
-
-static void utc_media_info_set_provider_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_provider(NULL, "new provider");
-
- dts_check_eq("utc_media_info_set_provider_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_set_provider_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_provider(g_inserted_media_handle, "new provider");
-
- dts_check_eq("utc_media_info_set_provider_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set provider ");
-}
-
-static void utc_media_info_set_content_name_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_content_name(NULL, "new content");
-
- dts_check_eq("utc_media_info_set_content_name_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_set_content_name_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_content_name(g_inserted_media_handle, "new content");
- dts_check_eq("utc_media_info_set_content_name_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set content name ");
-}
-
-static void utc_media_info_set_description_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_description(NULL, "new description");
-
- dts_check_eq("utc_media_info_set_description_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_set_description_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_description(g_inserted_media_handle, "new description");
-
- dts_check_eq("utc_media_info_set_description_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set description ");
-}
-
-static void utc_media_info_set_author_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_author(NULL, "new author");
-
- dts_check_eq("utc_media_info_set_author_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_set_author_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_author(g_inserted_media_handle, "new author");
-
- dts_check_eq("utc_media_info_set_description_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set author ");
-}
-
-static void utc_media_info_set_age_rating_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_age_rating(NULL, "new rating");
-
- dts_check_eq("utc_media_info_set_age_rating_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_set_age_rating_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_age_rating(g_inserted_media_handle, "new rating");
-
- dts_check_eq("utc_media_info_set_age_rating_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set age rating ");
-}
-
-static void utc_media_info_set_added_time_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_added_time(NULL, 0);
-
- dts_check_eq("utc_media_info_set_added_time_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_set_added_time_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- time_t added_time;
- time(&added_time);
-
- ret = media_info_set_added_time(g_inserted_media_handle, added_time);
-
- dts_check_eq("utc_media_info_set_added_time_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set added time");
-}
-
-static void utc_media_info_set_keyword_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_keyword(NULL, "new keyword");
-
- dts_check_eq("utc_media_info_set_keyword_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_set_keyword_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_set_keyword(g_inserted_media_handle, "new keyword");
-
- dts_check_eq("utc_media_info_set_keyword_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set keyword ");
-}
-
-static void utc_media_info_update_to_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_update_to_db(NULL);
-
- dts_check_eq("utc_media_info_update_to_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_update_to_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_update_to_db(g_inserted_media_handle);
- tet_printf("Media Handle : 0x%x \n", g_inserted_media_handle);
-
- dts_check_eq("utc_media_info_update_to_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to update a item");
-}
-
-static void utc_media_info_move_media_to_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_move_media_to_db(NULL, g_move_dst_path);
-
- dts_check_eq("utc_media_info_move_media_to_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_move_media_to_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_move_media_to_db(g_inserted_media_handle, g_move_dst_path);
- tet_printf("Media Handle : 0x%x \n", g_inserted_media_handle);
-
- dts_check_eq("utc_media_info_move_media_to_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to update a item");
-}
-
-static void utc_media_info_delete_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_delete_from_db(NULL);
-
- dts_check_eq("utc_media_info_delete_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_delete_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- tet_printf("Media ID : %s \n", g_inserted_media_id);
- ret = media_info_delete_from_db(g_inserted_media_id);
-
- dts_check_eq("utc_media_info_delete_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to delete a item");
-}
-
-bool sub_item_cb(media_info_h media, void *user_data)
-{
- media_content_type_e type = 0;
- char *name = NULL;
-
- media_info_get_media_type(media, &type);
- media_info_get_display_name(media, &name);
- if(g_item == NULL && type == MEDIA_CONTENT_TYPE_IMAGE)
- {
- media_info_clone(&g_item, media);
- media_info_get_media_id(media, &g_item_media_id);
- tet_printf("content name: %s \n", name);
- }
-
- if(g_vitem == NULL && type == MEDIA_CONTENT_TYPE_VIDEO)
- {
- tet_printf("MEDIA_CONTENT_TYPE_VIDEO \n");
- tet_printf("media name: %s \n", name);
- media_info_clone(&g_vitem, media);
- media_info_get_media_id(media, &g_item_media_id);
- }
- if(g_aitem == NULL && type == MEDIA_CONTENT_TYPE_MUSIC)
- {
- tet_printf("MEDIA_CONTENT_TYPE_MUSIC \n");
- tet_printf("media name: %s \n", name);
- media_info_clone(&g_aitem, media);
- media_info_get_media_id(media, &g_item_media_id);
- }
- return true;
-}
-
-static void utc_media_info_foreach_media_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- filter_h filter = NULL;
- media_filter_create(&filter);
- media_filter_set_condition(filter, "MEDIA_TYPE=0 OR MEDIA_TYPE=1", MEDIA_CONTENT_COLLATE_DEFAULT);
-
- ret = media_info_foreach_media_from_db(NULL, NULL, NULL);
-
- if(filter != NULL)
- media_filter_destroy(filter);
-
-
- dts_check_eq("utc_media_info_foreach_media_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_foreach_media_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- filter_h filter = NULL;
-
- media_filter_create(&filter);
- media_filter_set_condition(filter, "MEDIA_TYPE=0 OR MEDIA_TYPE=1 OR MEDIA_TYPE=3", MEDIA_CONTENT_COLLATE_DEFAULT);
-
- ret = media_info_foreach_media_from_db(filter, sub_item_cb, NULL);
-
- if(filter != NULL)
- media_filter_destroy(filter);
-
- dts_check_eq("utc_media_info_foreach_media_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to call callback fuction");
-}
-
-static void utc_media_info_destroy_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_destroy(NULL);
-
- dts_check_eq("utc_media_info_destroy_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_destroy_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_destroy(g_item);
-
- dts_check_eq("utc_media_info_destroy_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to destroy iteminfo object");
-}
-
-static void utc_media_info_clone_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- media_info_h dst;
-
- ret = media_info_clone(&dst, NULL);
-
- dts_check_eq("utc_media_info_clone_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_clone_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- media_info_h dst;
-
- ret = media_info_clone(&dst, g_item);
-
- if(ret == MEDIA_CONTENT_ERROR_NONE)
- media_info_destroy(dst);
-
- dts_check_eq("utc_media_info_clone_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to clone iteminfo object");
-}
-
-static void utc_media_info_get_media_id_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *media_id = NULL;
-
- ret = media_info_get_media_id(NULL, &media_id);
-
- if(media_id != NULL)
- free(media_id);
-
- dts_check_eq("utc_media_info_get_media_id_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_media_id_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- char *media_id = NULL;
- ret = media_info_get_media_id(g_item, &media_id);
- if(media_id != NULL)
- free(media_id);
-
- dts_check_eq("utc_media_info_get_media_id_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get media id ");
-}
-
-static void utc_media_info_get_file_path_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *path = NULL;
- ret = media_info_get_file_path(NULL, &path);
-
- if(path != NULL)
- free(path);
-
- dts_check_eq("utc_media_info_get_file_path_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_file_path_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- char *path = NULL;
- ret = media_info_get_file_path(g_item, &path);
- tet_printf("\n get_file_path : %s\n", path);
- if(path != NULL)
- free(path);
-
- dts_check_eq("utc_media_info_get_file_path_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get file path");
-}
-
-static void utc_media_info_get_display_name_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- char *name = NULL;
- ret = media_info_get_display_name(NULL, &name);
-
- if(name != NULL)
- free(name);
-
- dts_check_eq("utc_media_info_get_display_name_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_display_name_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *name = NULL;
- ret = media_info_get_display_name(g_item, &name);
- tet_printf("\n media_info_get_display_name : %s\n", name);
-
- if(name != NULL)
- free(name);
-
- dts_check_eq("utc_media_info_get_display_name_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get display_name");
-}
-
-static void utc_media_info_get_media_type_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- media_content_type_e type = 0;
-
- ret = media_info_get_media_type(NULL, &type);
-
- dts_check_eq("utc_media_info_get_media_type_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_media_type_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- media_content_type_e type = 0;
- tet_printf("item : %p\n", g_item);
-
- ret = media_info_get_media_type(g_item, &type);
-
- dts_check_eq("utc_media_info_get_media_type_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get content type");
-}
-
-static void utc_media_info_get_mime_type_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *mime_type;
-
- ret = media_info_get_author(NULL, &mime_type);
- if(mime_type != NULL)
- free(mime_type);
-
- dts_check_eq("utc_media_info_get_mime_type_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_mime_type_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *mime_type;
-
- ret = media_info_get_mime_type(g_item, &mime_type);
- if(mime_type != NULL)
- free(mime_type);
-
- dts_check_eq("utc_media_info_get_mime_type_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get mime_type ");
-}
-
-static void utc_media_info_get_thumbnail_path_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *thumbnail_path = NULL;
- ret = media_info_get_thumbnail_path(NULL, &thumbnail_path);
-
- if(thumbnail_path != NULL)
- free(thumbnail_path);
-
- dts_check_eq("utc_media_info_get_thumbnail_path_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_thumbnail_path_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *thumbnail_path = NULL;
- ret = media_info_get_thumbnail_path(g_item, &thumbnail_path);
- tet_printf("\n media_info_get_thumbnail_path : %s\n", thumbnail_path);
-
- if(thumbnail_path != NULL)
- free(thumbnail_path);
-
- dts_check_eq("utc_media_info_get_thumbnail_path_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get thumbail path");
-}
-
-static void utc_media_info_get_modified_time_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- time_t date_modi;
- ret = media_info_get_modified_time(NULL, &date_modi);
-
- dts_check_eq("utc_media_info_get_modified_time_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_modified_time_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- tet_printf("item : %p\n", g_item);
- time_t date_modi;
- ret = media_info_get_modified_time(g_item, &date_modi);
-
- dts_check_eq("utc_media_info_get_modified_time_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get date modified");
-}
-
-static void utc_media_info_get_size_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- unsigned long long size;
-
- ret = media_info_get_size(NULL, &size);
-
- dts_check_eq("utc_media_info_get_size_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_size_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- unsigned long long size;
-
- ret = media_info_get_size(g_item, &size);
-
- dts_check_eq("utc_media_info_get_size_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get size ");
-
-}
-
-static void utc_media_info_get_storage_type_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- media_content_storage_e storage_type;
-
- ret = media_info_get_storage_type(NULL, &storage_type);
-
- dts_check_eq("utc_media_info_get_storage_type_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_storage_type_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- media_content_storage_e storage_type;
-
- ret = media_info_get_storage_type(g_item, &storage_type);
-
- dts_check_eq("utc_media_info_get_storage_type_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get size ");
-
-}
-
-static void utc_media_info_is_drm_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- bool is_drm;
-
- ret = media_info_is_drm(NULL, &is_drm);
-
- dts_check_eq("utc_media_info_is_drm_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_is_drm_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- bool is_drm;
-
- ret = media_info_is_drm(g_item, &is_drm);
-
- dts_check_eq("utc_media_info_get_is_drm_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get size ");
-
-}
-
-static void utc_media_info_get_altitude_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- double altitude;
-
- ret = media_info_get_altitude(NULL, &altitude);
-
- dts_check_eq("utc_media_info_get_altitude_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_altitude_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- double altitude;
-
- ret = media_info_get_altitude(g_item, &altitude);
-
- dts_check_eq("utc_media_info_get_altitude_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get size ");
-
-}
-
-static void utc_media_info_get_latitude_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- double latitude;
-
- ret = media_info_get_altitude(NULL, &latitude);
-
- dts_check_eq("utc_media_info_get_latitude_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_latitude_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- double latitude;
-
- ret = media_info_get_latitude(g_item, &latitude);
-
- dts_check_eq("utc_media_info_get_latitude_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get size ");
-
-}
-
-static void utc_media_info_get_longitude_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- double longitude;
-
- ret = media_info_get_longitude(NULL, &longitude);
-
- dts_check_eq("utc_media_info_get_longitude_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_longitude_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- double longitude;
-
- ret = media_info_get_longitude(g_item, &longitude);
-
- dts_check_eq("utc_media_info_get_longitude_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get size ");
-
-}
-static void utc_media_info_get_description_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *description;
-
- ret = media_info_get_description(NULL, &description);
- if(description != NULL)
- free(description);
-
- dts_check_eq("utc_media_info_get_description_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_description_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *description;
-
- ret = media_info_get_description(g_item, &description);
- if(description != NULL)
- free(description);
-
- dts_check_eq("utc_media_info_get_description_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get description ");
-
-}
-
-static void utc_media_info_get_rating_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int raitng;
-
- ret = media_info_get_rating(NULL, &raitng);
-
- dts_check_eq("utc_media_info_get_rating_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_rating_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int raitng;
-
- ret = media_info_get_rating(g_item, &raitng);
-
- dts_check_eq("utc_media_info_get_rating_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get raitng ");
-}
-
-
-static void utc_media_info_get_location_tag_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *location;
-
- ret = media_info_get_location_tag(NULL, &location);
- if(location != NULL)
- free(location);
-
- dts_check_eq("utc_media_info_get_location_tag_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_location_tag_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *location;
-
- ret = media_info_get_location_tag(g_item, &location);
- if(location != NULL)
- free(location);
-
- dts_check_eq("utc_media_info_get_location_tag_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get location ");
-}
-
-static void utc_media_info_get_provider_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *provider;
-
- ret = media_info_get_provider(NULL, &provider);
- if(provider != NULL)
- free(provider);
-
- dts_check_eq("utc_media_info_get_provider_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_provider_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *provider;
-
- ret = media_info_get_provider(g_item, &provider);
- if(provider != NULL)
- free(provider);
-
- dts_check_eq("utc_media_info_get_provider_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get provider ");
-}
-
-static void utc_media_info_get_content_name_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *content_name;
-
- ret = media_info_get_content_name(NULL, &content_name);
- if(content_name != NULL)
- free(content_name);
-
- dts_check_eq("utc_media_info_get_content_name_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_content_name_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *content_name;
-
- ret = media_info_get_content_name(g_item, &content_name);
- if(content_name != NULL)
- free(content_name);
-
- dts_check_eq("utc_media_info_get_content_name_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get content_name ");
-}
-
-static void utc_media_info_get_category_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *category;
-
- ret = media_info_get_category(NULL, &category);
- if(category != NULL)
- free(category);
-
- dts_check_eq("utc_media_info_get_category_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_category_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *category;
-
- ret = media_info_get_category(g_item, &category);
- if(category != NULL)
- free(category);
-
- dts_check_eq("utc_media_info_get_category_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get category ");
-}
-
-static void utc_media_info_get_age_rating_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *age_rating;
-
- ret = media_info_get_age_rating(NULL, &age_rating);
- if(age_rating != NULL)
- free(age_rating);
-
- dts_check_eq("utc_media_info_get_age_rating_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_age_rating_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *age_rating;
-
- ret = media_info_get_age_rating(g_item, &age_rating);
- if(age_rating != NULL)
- free(age_rating);
-
- dts_check_eq("utc_media_info_get_age_rating_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get age_rating ");
-}
-
-static void utc_media_info_get_keyword_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *keyword;
-
- ret = media_info_get_keyword(NULL, &keyword);
- if(keyword != NULL)
- free(keyword);
-
- dts_check_eq("utc_media_info_get_keyword_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_keyword_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *keyword;
-
- ret = media_info_get_keyword(g_item, &keyword);
- if(keyword != NULL)
- free(keyword);
-
- dts_check_eq("utc_media_info_get_keyword_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get keyword ");
-}
-
-static void utc_media_info_get_author_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *author;
-
- ret = media_info_get_author(NULL, &author);
- if(author != NULL)
- free(author);
-
- dts_check_eq("utc_media_info_get_author_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_author_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *author;
-
- ret = media_info_get_author(g_item, &author);
- if(author != NULL)
- free(author);
-
- dts_check_eq("utc_media_info_get_author_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get author ");
-}
-
-static void utc_media_info_get_added_time_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- time_t added_time;
-
- ret = media_info_get_added_time(NULL, &added_time);
-
- dts_check_eq("utc_media_info_get_added_time_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_added_time_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- time_t added_time;
-
- ret = media_info_get_added_time(g_item, &added_time);
-
- dts_check_eq("utc_media_info_get_added_time_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get added_time ");
-
-}
-
-static void utc_media_info_get_favorite_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- bool fav;
- ret = media_info_get_favorite(NULL, &fav);
-
- dts_check_eq("utc_media_info_get_favorite_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_favorite_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- tet_printf("item : %p\n", g_item);
- bool fav;
- ret = media_info_get_favorite(g_item, &fav);
-
- dts_check_eq("utc_media_info_get_favorite_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get favorite");
-}
-
-static void utc_media_info_get_media_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- media_info_h media = NULL;
-
- ret = media_info_get_media_from_db(NULL, &media);
-
- if(media != NULL)
- media_info_destroy(media);
-
- dts_check_eq("utc_media_info_get_media_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_media_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- media_info_h media = NULL;
-
- ret = media_info_get_media_from_db(g_item_media_id, &media);
-
- if(media != NULL)
- media_info_destroy(media);
-
- dts_check_eq("utc_media_info_get_media_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get mediainfo ");
-}
-
-static void utc_media_info_get_image_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- image_meta_h image = NULL;
-
- ret = media_info_get_image(NULL, &image);
-
- if(image != NULL)
- image_meta_destroy(image);
-
- dts_check_eq("utc_media_info_get_image_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_image_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- image_meta_h image = NULL;
-
- ret = media_info_get_image(g_item, &image);
-
- if(image != NULL)
- image_meta_destroy(image);
-
- dts_check_eq("utc_media_info_get_image_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get imageinfo ");
-}
-
-static void utc_media_info_get_video_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- video_meta_h video = NULL;
-
- ret = media_info_get_video(NULL, &video);
-
- if(video != NULL)
- video_meta_destroy(video);
-
- dts_check_eq("utc_media_info_get_video_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_video_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- video_meta_h video = NULL;
-
- ret = media_info_get_video(g_vitem, &video);
-
- if(video != NULL)
- video_meta_destroy(video);
-
- dts_check_eq("utc_media_info_get_video_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get videoinfo");
-}
-
-static void utc_media_info_get_audio_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- audio_meta_h audio = NULL;
-
- ret = media_info_get_audio(NULL, &audio);
-
- if(audio != NULL)
- audio_meta_destroy(audio);
-
- dts_check_eq("utc_media_info_get_audio_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_audio_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- audio_meta_h audio = NULL;
-
- ret = media_info_get_audio(g_aitem, &audio);
-
- if(audio != NULL)
- audio_meta_destroy(audio);
-
-
- dts_check_eq("utc_media_info_get_audio_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get audio");
-}
-
-static void utc_media_info_refresh_metadata_to_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_refresh_metadata_to_db(NULL);
-
- dts_check_eq("utc_media_info_refresh_metadata_to_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_refresh_metadata_to_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- ret = media_info_refresh_metadata_to_db(g_item_media_id);
-
- dts_check_eq("utc_media_info_refresh_metadata_to_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to refresh metadata");
-}
-
-bool sub_tag_cb(media_tag_h tag, void *user_data)
-{
- char *name;
- if(tag != NULL)
- {
- media_tag_get_name(tag, &name);
- tet_printf("tag name : %s \n", name);
- }
-
- return false;
-}
-
-bool sub_bookmark_cb(media_bookmark_h bookmark, void *user_data)
-{
- int bm_id;
-
- if(bookmark != NULL)
- {
- media_bookmark_get_bookmark_id(bookmark, &bm_id);
- tet_printf("bookmark id : %d \n", bm_id);
- }
-
- return false;
-}
-
-static void utc_media_info_foreach_tag_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- filter_h filter = NULL;
-
- ret = media_info_foreach_tag_from_db(NULL, filter, NULL, NULL);
-
- dts_check_eq("utc_media_info_foreach_tag_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_foreach_tag_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- filter_h filter = NULL;
-
- media_filter_create(&filter);
-
- ret = media_info_foreach_tag_from_db(g_item_media_id, filter, sub_tag_cb, NULL);
-
- dts_check_eq("utc_media_info_foreach_tag_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to call callback function");
-}
-
-static void utc_media_info_foreach_bookmark_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- filter_h filter = NULL;
-
- ret = media_info_foreach_tag_from_db(NULL, filter, NULL, NULL);
-
- dts_check_eq("utc_media_info_foreach_bookmark_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_foreach_bookmark_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- filter_h filter = NULL;
-
- media_filter_create(&filter);
-
- ret = media_info_foreach_bookmark_from_db(g_item_media_id, filter, sub_bookmark_cb, NULL);
-
- dts_check_eq("utc_media_info_foreach_bookmark_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to call callback function");
-}
-
-static void utc_media_info_get_bookmark_count_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- filter_h filter = NULL;
- int count;
-
- ret = media_info_get_bookmark_count_from_db(NULL, filter, &count);
-
- dts_check_eq("utc_media_info_get_bookmark_count_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_bookmark_count_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- filter_h filter = NULL;
- int count;
-
- media_filter_create(&filter);
-
- ret = media_info_get_bookmark_count_from_db(g_item_media_id, filter, &count);
-
- dts_check_eq("utc_media_info_get_bookmark_count_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to call callback function");
-}
-
-static void utc_media_info_get_media_count_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- filter_h filter = NULL;
-
- ret = media_info_get_media_count_from_db(filter, NULL);
-
- dts_check_eq("utc_media_info_get_media_count_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_media_count_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- filter_h filter = NULL;
- int count;
-
- media_filter_create(&filter);
-
- ret = media_info_get_media_count_from_db(filter, &count);
-
- dts_check_eq("utc_media_info_get_media_count_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to call callback function");
-}
-
-static void utc_media_info_get_tag_count_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- filter_h filter = NULL;
- int count;
-
- ret = media_info_get_tag_count_from_db(NULL, filter, &count);
-
- dts_check_eq("utc_media_info_get_tag_count_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_info_get_tag_count_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- filter_h filter = NULL;
- int count;
-
- media_filter_create(&filter);
-
- ret = media_info_get_tag_count_from_db(g_item_media_id, filter, &count);
-
- dts_check_eq("utc_media_info_get_tag_count_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to call callback function");
-}
-
diff --git a/TC/testcase/utc_media_playlist.c b/TC/testcase/utc_media_playlist.c
deleted file mode 100755
index a0f9e50..0000000
--- a/TC/testcase/utc_media_playlist.c
+++ /dev/null
@@ -1,519 +0,0 @@
-/*
-* Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* 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.
-*/
-
-
-#include <tet_api.h>
-#include <stdlib.h>
-#include <media_content.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-
-static void utc_media_playlist_insert_to_db_n(void);
-static void utc_media_playlist_insert_to_db_p(void);
-static void utc_media_playlist_delete_from_db_n(void);
-static void utc_media_playlist_delete_from_db_p(void);
-static void utc_media_playlist_get_playlist_count_from_db_n(void);
-static void utc_media_playlist_get_playlist_count_from_db_p(void);
-static void utc_media_playlist_foreach_playlist_from_db_n(void);
-static void utc_media_playlist_foreach_playlist_from_db_p(void);
-static void utc_media_playlist_get_media_count_from_db_n(void);
-static void utc_media_playlist_get_media_count_from_db_p(void);
-static void utc_media_playlist_foreach_media_from_db_n(void);
-static void utc_media_playlist_foreach_media_from_db_p(void);
-static void utc_media_playlist_destroy_n(void);
-static void utc_media_playlist_destroy_p(void);
-static void utc_media_playlist_clone_n(void);
-static void utc_media_playlist_clone_p(void);
-static void utc_media_playlist_get_playlist_from_db_n(void);
-static void utc_media_playlist_get_playlist_from_db_p(void);
-static void utc_media_playlist_get_playlist_id_n(void);
-static void utc_media_playlist_get_playlist_id_p(void);
-static void utc_media_playlist_get_name_n(void);
-static void utc_media_playlist_get_name_p(void);
-static void utc_media_playlist_get_play_order_n(void);
-static void utc_media_playlist_get_play_order_p(void);
-static void utc_media_playlist_update_to_db_n(void);
-static void utc_media_playlist_update_to_db_p(void);
-static void utc_media_playlist_set_name_n(void);
-static void utc_media_playlist_set_name_p(void);
-static void utc_media_playlist_set_play_order_n(void);
-static void utc_media_playlist_set_play_order_p(void);
-
-static void utc_media_playlist_add_media_n(void);
-static void utc_media_playlist_add_media_p(void);
-static void utc_media_playlist_remove_media_n(void);
-static void utc_media_playlist_remove_media_p(void);
-
-
-struct tet_testlist tet_testlist[] = {
- { utc_media_playlist_insert_to_db_n, 1 },
- { utc_media_playlist_insert_to_db_p, 1 },
- { utc_media_playlist_get_playlist_count_from_db_n, 4 },
- { utc_media_playlist_get_playlist_count_from_db_p, 4 },
- { utc_media_playlist_foreach_playlist_from_db_n, 4 },
- { utc_media_playlist_foreach_playlist_from_db_p, 4 },
- { utc_media_playlist_get_media_count_from_db_n, 4 },
- { utc_media_playlist_get_media_count_from_db_p, 4 },
- { utc_media_playlist_foreach_media_from_db_n, 4 },
- { utc_media_playlist_foreach_media_from_db_p, 4 },
- { utc_media_playlist_get_playlist_from_db_n, 4 },
- { utc_media_playlist_get_playlist_from_db_p, 4 },
- { utc_media_playlist_get_playlist_id_n, 4 },
- { utc_media_playlist_get_playlist_id_p, 4 },
- { utc_media_playlist_get_name_n, 4 },
- { utc_media_playlist_get_name_p, 4 },
- { utc_media_playlist_get_play_order_n, 5 },
- { utc_media_playlist_get_play_order_p, 5 },
- { utc_media_playlist_update_to_db_n, 3 },
- { utc_media_playlist_update_to_db_p, 3 },
- { utc_media_playlist_set_name_n, 2 },
- { utc_media_playlist_set_name_p, 2 },
- { utc_media_playlist_set_play_order_n, 5 },
- { utc_media_playlist_set_play_order_p, 5 },
- { utc_media_playlist_add_media_n, 2 },
- { utc_media_playlist_add_media_p, 2 },
- { utc_media_playlist_remove_media_n, 6 },
- { utc_media_playlist_remove_media_p, 6 },
- { utc_media_playlist_clone_n, 7 },
- { utc_media_playlist_clone_p, 7 },
- { utc_media_playlist_delete_from_db_n, 8 },
- { utc_media_playlist_delete_from_db_p, 8 },
- { utc_media_playlist_destroy_n, 8 },
- { utc_media_playlist_destroy_p, 8 },
- { NULL, 0 },
-};
-
-static media_playlist_h g_playlist;
-static media_playlist_h g_playlist_dst;
-
-static filter_h g_filter;
-static char *g_media_id = NULL;
-static int g_playlist_id = 0;
-static int g_playlist_member_id = 0;
-
-bool media_item_cb(media_info_h media, void *user_data)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_get_media_id(media, &g_media_id);
- if((ret != MEDIA_CONTENT_ERROR_NONE) || (g_media_id == NULL))
- {
- tet_printf("\n get media_id failed");
- return false;
- }
-
- return true;
-}
-
-bool playlist_item_cb(int playlist_member_id, media_info_h media, void *user_data)
-{
- g_playlist_member_id = playlist_member_id;
-
- tet_printf("cb - member id : %d", g_playlist_member_id);
- return true;
-}
-
-bool playlist_cb(media_playlist_h playlist, void *user_data)
-{
- return true;
-}
-
-static void startup(void)
-{
- /* start of TC */
- tet_printf("\n TC start");
-
- int ret = media_content_connect();
- if(ret != MEDIA_CONTENT_ERROR_NONE)
- {
- tet_printf("\n database connection is failed");
- return;
- }
- else
- {
- tet_printf("\n database connection is success");
- }
-
- char *condition = "MEDIA_TYPE=3"; //Music
-
- media_filter_create(&g_filter);
- media_filter_set_condition(g_filter, condition, MEDIA_CONTENT_COLLATE_DEFAULT);
- //media_filter_set_order(g_filter, MEDIA_CONTENT_ORDER_ASC, "MEDIA_TITLE", MEDIA_CONTENT_COLLATE_DEFAULT);
-
- if(g_filter == NULL)
- {
- tet_printf("\n filter create failed");
- return;
- }
-
- ret = media_info_foreach_media_from_db(g_filter, media_item_cb, NULL);
- if(ret != MEDIA_CONTENT_ERROR_NONE)
- {
- tet_printf("\n get media_info failed");
- return;
- }
-
- tet_printf("\n TC start END");
-}
-
-
-static void cleanup(void)
-{
- /* end of TC */
- tet_printf("\n TC end");
-
- if(g_media_id != NULL)
- free(g_media_id);
-
- if(g_filter != NULL)
- media_filter_destroy(g_filter);
-
- if(g_playlist != NULL)
- media_playlist_destroy(g_playlist);
-
- int ret = media_content_disconnect();
-
- if(ret != MEDIA_CONTENT_ERROR_NONE)
- tet_printf("\n database disconnection is failed");
- else
- tet_printf("\n database disconnection is success");
-
-}
-
-static void utc_media_playlist_insert_to_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_insert_to_db(NULL, &g_playlist);
-
- dts_check_eq("utc_media_playlist_insert_to_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_playlist_insert_to_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_insert_to_db("test_playlist_1", &g_playlist);
-
- ret = media_playlist_get_playlist_id(g_playlist, &g_playlist_id);
-
- dts_check_eq("utc_media_playlist_insert_to_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to insert the playlist");
-}
-
-static void utc_media_playlist_delete_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_delete_from_db(-1);
-
- dts_check_eq("utc_media_playlist_delete_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_playlist_delete_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_delete_from_db(g_playlist_id);
-
- dts_check_eq("utc_media_playlist_delete_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to delete the playlist");
-}
-
-static void utc_media_playlist_get_playlist_count_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_get_playlist_count_from_db(g_filter, NULL);
-
- dts_check_eq("utc_media_playlist_get_playlist_count_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_playlist_get_playlist_count_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int playlist_count = 0;
-
- ret = media_playlist_get_playlist_count_from_db(g_filter, &playlist_count);
-
- dts_check_eq("utc_media_playlist_get_playlist_count_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get playlist count");
-}
-
-static void utc_media_playlist_foreach_playlist_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_foreach_playlist_from_db(g_filter, NULL, NULL);
-
- dts_check_eq("utc_media_playlist_foreach_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_playlist_foreach_playlist_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_foreach_playlist_from_db(g_filter, playlist_cb, NULL);
-
- dts_check_eq("utc_media_playlist_foreach_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get list of playlist");
-}
-
-static void utc_media_playlist_get_media_count_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_get_media_count_from_db(0, g_filter, NULL);
-
- dts_check_eq("utc_media_playlist_get_media_count_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_playlist_get_media_count_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int media_count = 0;
-
- ret = media_playlist_get_media_count_from_db(g_playlist_id, g_filter, &media_count);
-
- dts_check_eq("utc_media_playlist_get_media_count_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the item count");
-}
-
-static void utc_media_playlist_foreach_media_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_foreach_media_from_db(0, g_filter, playlist_item_cb, NULL);
-
- dts_check_eq("utc_media_playlist_foreach_media_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_playlist_foreach_media_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_foreach_media_from_db(g_playlist_id, g_filter, playlist_item_cb, NULL);
-
- dts_check_eq("utc_media_playlist_foreach_media_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the list of item");
-}
-
-static void utc_media_playlist_destroy_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_destroy(NULL);
-
- dts_check_eq("utc_media_playlist_destroy_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_playlist_destroy_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_destroy(g_playlist_dst);
-
- dts_check_eq("utc_media_playlist_destroy_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to destory the playlist");
-}
-
-static void utc_media_playlist_clone_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_clone(&g_playlist_dst, NULL);
-
- dts_check_eq("utc_media_playlist_clone_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_playlist_clone_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_clone(&g_playlist_dst, g_playlist);
-
- dts_check_eq("utc_media_playlist_clone_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to clone the playlist");
-}
-
-static void utc_media_playlist_get_playlist_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- media_playlist_h playlist;
-
- ret = media_playlist_get_playlist_from_db(0, g_filter, &playlist);
-
- dts_check_eq("utc_media_playlist_get_playlist_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_playlist_get_playlist_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- media_playlist_h playlist;
-
- ret = media_playlist_get_playlist_from_db(g_playlist_id, g_filter, &playlist);
-
- dts_check_eq("utc_media_playlist_get_playlist_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get playlist");
-}
-
-static void utc_media_playlist_get_playlist_id_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_get_playlist_id(NULL, NULL);
-
- dts_check_eq("utc_media_playlist_get_id_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_playlist_get_playlist_id_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int playlist_id = 0;
-
- ret = media_playlist_get_playlist_id(g_playlist, &playlist_id);
-
- dts_check_eq("utc_media_playlist_get_id_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the name of playlist");
-}
-
-static void utc_media_playlist_get_name_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *name = NULL;
-
- ret = media_playlist_get_name(NULL, &name);
-
- dts_check_eq("utc_media_playlist_get_name_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_playlist_get_name_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *name = NULL;
-
- ret = media_playlist_get_name(g_playlist, &name);
-
- if(name != NULL)
- free(name);
-
- dts_check_eq("utc_media_playlist_get_name_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the name of playlist");
-}
-
-static void utc_media_playlist_get_play_order_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_get_play_order(NULL, g_playlist_member_id, NULL);
-
- dts_check_eq("utc_media_playlist_get_play_order_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_playlist_get_play_order_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int playlist_order = 0;
-
- ret = media_playlist_get_play_order(g_playlist, g_playlist_member_id, &playlist_order);
-
- dts_check_eq("utc_media_playlist_get_play_order_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the name of playlist");
-}
-
-static void utc_media_playlist_update_to_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_update_to_db(NULL);
-
- dts_check_eq("media_playlist_update_to_db", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_playlist_update_to_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_update_to_db(g_playlist);
-
- dts_check_eq("utc_media_playlist_update_to_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to update name of playlist");
-}
-
-static void utc_media_playlist_set_name_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_set_name(NULL, NULL);
-
- dts_check_eq("utc_media_playlist_set_name_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_playlist_set_name_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_set_name(g_playlist, "myPlaylist");
-
- dts_check_eq("utc_media_playlist_set_name_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set name of playlist");
-}
-
-static void utc_media_playlist_set_play_order_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_set_play_order(NULL, g_playlist_member_id, 3);
-
- dts_check_eq("utc_media_playlist_set_name_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_playlist_set_play_order_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_set_play_order(g_playlist, g_playlist_member_id, 3);
-
- dts_check_eq("utc_media_playlist_set_play_order_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set name of playlist");
-}
-
-static void utc_media_playlist_add_media_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_add_media(NULL, g_media_id);
-
- dts_check_eq("utc_media_playlist_add_media_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_playlist_add_media_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_add_media(g_playlist, g_media_id);
-
- dts_check_eq("utc_media_playlist_add_media_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to add the item to playlist");
-}
-
-static void utc_media_playlist_remove_media_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- tet_printf("member id : %d", g_playlist_member_id);
- ret = media_playlist_remove_media(NULL, g_playlist_member_id);
-
- dts_check_eq("utc_media_playlist_remove_media_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_playlist_remove_media_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_playlist_remove_media(g_playlist, g_playlist_member_id);
-
- dts_check_eq("utc_media_playlist_remove_media_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to remove the item in playlist");
-}
diff --git a/TC/testcase/utc_media_tag.c b/TC/testcase/utc_media_tag.c
deleted file mode 100755
index 0f8cd79..0000000
--- a/TC/testcase/utc_media_tag.c
+++ /dev/null
@@ -1,472 +0,0 @@
-/*
-* Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* 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.
-*/
-
-
-#include <tet_api.h>
-#include <media_content.h>
-#include <stdlib.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-
-static void utc_media_tag_insert_to_db_n(void);
-static void utc_media_tag_insert_to_db_p(void);
-static void utc_media_tag_delete_from_db_n(void);
-static void utc_media_tag_delete_from_db_p(void);
-static void utc_media_tag_get_tag_count_from_db_n(void);
-static void utc_media_tag_get_tag_count_from_db_p(void);
-static void utc_media_tag_foreach_tag_from_db_n(void);
-static void utc_media_tag_foreach_tag_from_db_p(void);
-static void utc_media_tag_get_media_count_from_db_n(void);
-static void utc_media_tag_get_media_count_from_db_p(void);
-static void utc_media_tag_foreach_media_from_db_n(void);
-static void utc_media_tag_foreach_media_from_db_p(void);
-static void utc_media_tag_destroy_n(void);
-static void utc_media_tag_destroy_p(void);
-static void utc_media_tag_clone_n(void);
-static void utc_media_tag_clone_p(void);
-static void utc_media_tag_update_to_db_n(void);
-static void utc_media_tag_update_to_db_p(void);
-static void utc_media_tag_add_media_n(void);
-static void utc_media_tag_add_media_p(void);
-static void utc_media_tag_remove_media_n(void);
-static void utc_media_tag_remove_media_p(void);
-static void utc_media_tag_set_name_n(void);
-static void utc_media_tag_set_name_p(void);
-static void utc_media_tag_get_tag_id_n(void);
-static void utc_media_tag_get_tag_id_p(void);
-static void utc_media_tag_get_name_n(void);
-static void utc_media_tag_get_name_p(void);
-static void utc_media_tag_get_tag_from_db_n(void);
-static void utc_media_tag_get_tag_from_db_p(void);
-
-
-struct tet_testlist tet_testlist[] = {
- { utc_media_tag_insert_to_db_n, 1 },
- { utc_media_tag_insert_to_db_p, 1 },
- { utc_media_tag_delete_from_db_n, 5 },
- { utc_media_tag_delete_from_db_p, 5 },
- { utc_media_tag_get_tag_count_from_db_n, 2 },
- { utc_media_tag_get_tag_count_from_db_p, 2 },
- { utc_media_tag_foreach_tag_from_db_n, 2 },
- { utc_media_tag_foreach_tag_from_db_p, 2 },
- { utc_media_tag_get_media_count_from_db_n, 4 },
- { utc_media_tag_get_media_count_from_db_p, 4 },
- { utc_media_tag_foreach_media_from_db_n, 4 },
- { utc_media_tag_foreach_media_from_db_p, 4 },
- { utc_media_tag_destroy_n, 7 },
- { utc_media_tag_destroy_p, 7 },
- { utc_media_tag_clone_n, 6 },
- { utc_media_tag_clone_p, 6 },
- { utc_media_tag_update_to_db_n, 4 },
- { utc_media_tag_update_to_db_p, 4 },
- { utc_media_tag_add_media_n, 3 },
- { utc_media_tag_add_media_p, 3 },
- { utc_media_tag_remove_media_n, 2 },
- { utc_media_tag_remove_media_p, 2 },
- { utc_media_tag_set_name_n, 3 },
- { utc_media_tag_set_name_p, 3 },
- { utc_media_tag_get_tag_id_n, 2 },
- { utc_media_tag_get_tag_id_p, 2 },
- { utc_media_tag_get_name_n, 2 },
- { utc_media_tag_get_name_p, 2 },
- { utc_media_tag_get_tag_from_db_n, 5 },
- { utc_media_tag_get_tag_from_db_p, 5 },
- { NULL, 0 },
-};
-
-static media_tag_h g_tag;
-static media_tag_h g_tag_dst;
-static int g_tag_id;
-static char *g_media_id = NULL;
-
-bool media_item_cb(media_info_h media, void *user_data)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_get_media_id(media, &g_media_id);
- if((ret != MEDIA_CONTENT_ERROR_NONE) || (g_media_id == NULL))
- {
- tet_printf("\n get media_id failed");
- return false;
- }
-
- return true;
-}
-
-static void startup(void)
-{
- /* start of TC */
- tet_printf("\n TC start");
- filter_h filter;
- g_tag = NULL;
- g_tag_dst = NULL;
-
- int ret = media_content_connect();
- if(ret != MEDIA_CONTENT_ERROR_NONE)
- {
- tet_printf("\n database connection is failed");
- return;
- }
- else
- {
- tet_printf("\n database connection is success");
- }
-
- char *condition = "MEDIA_TYPE=1"; //Video
-
- media_filter_create(&filter);
- media_filter_set_condition(filter, condition, MEDIA_CONTENT_COLLATE_DEFAULT);
- media_filter_set_order(filter, MEDIA_CONTENT_ORDER_ASC, MEDIA_TITLE, MEDIA_CONTENT_COLLATE_DEFAULT);
- if(filter == NULL)
- {
- tet_printf("\n filter create failed");
- return;
- }
-
- ret = media_info_foreach_media_from_db(filter, media_item_cb, NULL);
- if(ret != MEDIA_CONTENT_ERROR_NONE)
- {
- tet_printf("\n get media_info failed");
- return;
- }
-
- media_filter_destroy(filter);
-
- tet_printf("\n TC start END");
-
-}
-
-static void cleanup(void)
-{
- /* end of TC */
- tet_printf("\n TC end");
-
- if(g_tag != NULL)
- media_tag_destroy(g_tag);
-
- int ret = media_content_disconnect();
-
- if(ret != MEDIA_CONTENT_ERROR_NONE)
- tet_printf("\n database disconnection is failed");
- else
- tet_printf("\n database disconnection is success");
-}
-
-bool tag_cb(media_tag_h tag, void *user_data)
-{
- char *name = NULL;
-
- if(tag != NULL)
- {
- media_tag_get_name(tag, &name);
-
- if(name != NULL)
- {
- printf(" tag name : %s \n", name);
- free(name);
- }
-
- }
-
- return true;
-}
-
-static void utc_media_tag_insert_to_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_tag_insert_to_db(NULL, &g_tag);
-
- dts_check_eq("utc_media_tag_insert_to_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_tag_insert_to_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_tag_insert_to_db("tag_test_1", &g_tag);
- media_tag_get_tag_id(g_tag, &g_tag_id);
-
- dts_check_eq("utc_media_tag_insert_to_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to insert the tag");
-}
-
-static void utc_media_tag_delete_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_tag_delete_from_db(-1);
-
- dts_check_eq("utc_media_tag_delete_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_tag_delete_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_tag_delete_from_db(g_tag_id);
-
- dts_check_eq("utc_media_tag_delete_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to delete the name");
-}
-
-static void utc_media_tag_get_tag_count_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_tag_get_tag_count_from_db(NULL, NULL);
-
- dts_check_eq("utc_media_tag_get_tag_count_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-static void utc_media_tag_get_tag_count_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int tag_count = 0;
-
- ret = media_tag_get_tag_count_from_db(NULL, &tag_count);
- dts_check_eq("utc_media_tag_get_tag_count_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get tag count");
-}
-
-static void utc_media_tag_foreach_tag_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_tag_foreach_tag_from_db(NULL, NULL, NULL);
-
- dts_check_eq("utc_media_tag_foreach_tag_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_tag_foreach_tag_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_tag_foreach_tag_from_db(NULL, tag_cb, NULL);
-
- dts_check_eq("utc_media_tag_foreach_tag_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the tag lists");
-}
-
-static void utc_media_tag_get_media_count_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_tag_get_media_count_from_db(g_tag_id, NULL, NULL);
-
- dts_check_eq("utc_media_tag_get_media_count_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_tag_get_media_count_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int media_count = 0;
-
- ret = media_tag_get_media_count_from_db(g_tag_id, NULL, &media_count);
-
- dts_check_eq("utc_media_tag_get_media_count_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get media count");
-}
-
-static void utc_media_tag_foreach_media_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_tag_foreach_media_from_db(g_tag_id, NULL, NULL, NULL);
-
- dts_check_eq("utc_media_tag_foreach_media_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_tag_foreach_media_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_tag_foreach_media_from_db(g_tag_id, NULL, media_item_cb, NULL);
-
- dts_check_eq("utc_media_tag_foreach_media_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the media list in tag");
-}
-
-static void utc_media_tag_destroy_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_tag_destroy(NULL);
-
- dts_check_eq("utc_media_tag_destroy_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_tag_destroy_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_tag_destroy(g_tag_dst);
-
- dts_check_eq("utc_media_tag_destroy_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to destory the tag");
-}
-
-static void utc_media_tag_clone_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_tag_clone(&g_tag_dst, NULL);
-
- dts_check_eq("utc_media_tag_clone_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_tag_clone_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_tag_clone(&g_tag_dst, g_tag);
-
- dts_check_eq("utc_media_tag_clone_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to clone the tag");
-}
-
-static void utc_media_tag_update_to_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_tag_update_to_db(NULL);
-
- dts_check_eq("utc_media_tag_clone_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_tag_update_to_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_tag_update_to_db(g_tag);
-
- dts_check_eq("utc_media_tag_clone_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to update tag");
-}
-
-static void utc_media_tag_add_media_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_tag_add_media(NULL, g_media_id);
-
- dts_check_eq("utc_media_tag_add_media_to_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_tag_add_media_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_tag_add_media(g_tag, g_media_id);
-
- dts_check_eq("utc_media_tag_add_media_to_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to add the tag to media");
-}
-
-static void utc_media_tag_remove_media_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_tag_remove_media(NULL, g_media_id);
-
- dts_check_eq("utc_media_tag_remove_media_from_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_tag_remove_media_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_tag_remove_media(g_tag, g_media_id);
-
- dts_check_eq("utc_media_tag_remove_media_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to remove the media from tag");
-
-}
-
-static void utc_media_tag_set_name_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_tag_set_name(NULL, "myTag");
-
- dts_check_eq("utc_media_tag_set_name_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_tag_set_name_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_tag_set_name(g_tag, "myTag");
-
- dts_check_eq("utc_media_tag_set_name_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to remove set tag name");
-}
-
-static void utc_media_tag_get_tag_id_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int tag_id = 0;
-
- ret = media_tag_get_tag_id(NULL, &tag_id);
-
- dts_check_eq("utc_media_tag_set_name_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_tag_get_tag_id_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int tag_id = 0;
-
- ret = media_tag_get_tag_id(g_tag, &tag_id);
-
- dts_check_eq("utc_media_tag_get_tag_id_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get tag id");
-}
-
-static void utc_media_tag_get_name_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *name = NULL;
-
- ret = media_tag_get_name(NULL, &name);
-
- dts_check_eq("utc_media_tag_get_name_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_tag_get_name_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *name = NULL;
-
- ret = media_tag_get_name(g_tag, &name);
-
- if(name != NULL)
- free(name);
-
- dts_check_eq("utc_media_tag_get_name_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the tag name");
-}
-
-static void utc_media_tag_get_tag_from_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- media_tag_h tag;
-
- ret = media_tag_get_tag_from_db(0, &tag);
-
- dts_check_eq("utc_media_tag_get_name_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_media_tag_get_tag_from_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- media_tag_h tag = NULL;
-
- ret = media_tag_get_tag_from_db(g_tag_id, &tag);
- media_tag_destroy(tag);
-
- dts_check_eq("utc_media_tag_get_tag_from_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the tag");
-}
diff --git a/TC/testcase/utc_media_video.c b/TC/testcase/utc_media_video.c
deleted file mode 100755
index b58296d..0000000
--- a/TC/testcase/utc_media_video.c
+++ /dev/null
@@ -1,758 +0,0 @@
-/*
-* Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* 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.
-*/
-
-
-#include <tet_api.h>
-#include <media_content.h>
-
-#include <stdlib.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_video_meta_destroy_n(void);
-static void utc_video_meta_destroy_p(void);
-static void utc_video_meta_clone_n(void);
-static void utc_video_meta_clone_p(void);
-static void utc_video_meta_get_media_id_n(void);
-static void utc_video_meta_get_media_id_p(void);
-static void utc_video_meta_get_title_n(void);
-static void utc_video_meta_get_title_p(void);
-static void utc_video_meta_get_album_n(void);
-static void utc_video_meta_get_album_p(void);
-static void utc_video_meta_get_artist_n(void);
-static void utc_video_meta_get_artist_p(void);
-static void utc_video_meta_get_genre_n(void);
-static void utc_video_meta_get_genre_p(void);
-static void utc_video_meta_get_composer_n(void);
-static void utc_video_meta_get_composer_p(void);
-static void utc_video_meta_get_year_n(void);
-static void utc_video_meta_get_year_p(void);
-static void utc_video_meta_get_recorded_date_n(void);
-static void utc_video_meta_get_recorded_date_p(void);
-static void utc_video_meta_get_copyright_n(void);
-static void utc_video_meta_get_copyright_p(void);
-static void utc_video_meta_get_track_num_n(void);
-static void utc_video_meta_get_track_num_p(void);
-static void utc_video_meta_get_bit_rate_n(void);
-static void utc_video_meta_get_bit_rate_p(void);
-static void utc_video_meta_get_duration_n(void);
-static void utc_video_meta_get_duration_p(void);
-static void utc_video_meta_get_width_n(void);
-static void utc_video_meta_get_width_p(void);
-static void utc_video_meta_get_height_n(void);
-static void utc_video_meta_get_height_p(void);
-static void utc_video_meta_get_played_count_n(void);
-static void utc_video_meta_get_played_count_p(void);
-static void utc_video_meta_get_played_time_n(void);
-static void utc_video_meta_get_played_time_p(void);
-static void utc_video_meta_get_played_position_n(void);
-static void utc_video_meta_get_played_position_p(void);
-static void utc_video_meta_update_to_db_n(void);
-static void utc_video_meta_update_to_db_p(void);
-static void utc_video_meta_set_played_count_n(void);
-static void utc_video_meta_set_played_count_p(void);
-static void utc_video_meta_set_played_time_n(void);
-static void utc_video_meta_set_played_time_p(void);
-static void utc_video_meta_set_played_position_n(void);
-static void utc_video_meta_set_played_position_p(void);
-
-
-struct tet_testlist tet_testlist[] = {
- { utc_video_meta_destroy_n, 5 },
- { utc_video_meta_destroy_p, 5 },
- { utc_video_meta_clone_n, 4 },
- { utc_video_meta_clone_p, 4 },
- { utc_video_meta_get_media_id_n, 1 },
- { utc_video_meta_get_media_id_p, 1 },
- { utc_video_meta_get_title_n, 1 },
- { utc_video_meta_get_title_p, 1 },
- { utc_video_meta_get_album_n, 1 },
- { utc_video_meta_get_album_p, 1 },
- { utc_video_meta_get_artist_n, 1 },
- { utc_video_meta_get_artist_p, 1 },
- { utc_video_meta_get_genre_n, 1 },
- { utc_video_meta_get_genre_p, 1 },
- { utc_video_meta_get_composer_n, 1 },
- { utc_video_meta_get_composer_p, 1 },
- { utc_video_meta_get_year_n, 1 },
- { utc_video_meta_get_year_p, 1 },
- { utc_video_meta_get_recorded_date_n, 1 },
- { utc_video_meta_get_recorded_date_p, 1 },
- { utc_video_meta_get_copyright_n, 1 },
- { utc_video_meta_get_copyright_p, 1 },
- { utc_video_meta_get_track_num_n, 1 },
- { utc_video_meta_get_track_num_p, 1 },
- { utc_video_meta_get_bit_rate_n, 1 },
- { utc_video_meta_get_bit_rate_p, 1 },
- { utc_video_meta_get_duration_n, 1 },
- { utc_video_meta_get_duration_p, 1 },
- { utc_video_meta_get_width_n, 1 },
- { utc_video_meta_get_width_p, 1 },
- { utc_video_meta_get_height_n, 1 },
- { utc_video_meta_get_height_p, 1 },
- { utc_video_meta_get_played_count_n, 1 },
- { utc_video_meta_get_played_count_p, 1 },
- { utc_video_meta_get_played_time_n, 1 },
- { utc_video_meta_get_played_time_p, 1 },
- { utc_video_meta_get_played_position_n, 1 },
- { utc_video_meta_get_played_position_p, 1 },
- { utc_video_meta_set_played_count_n, 2 },
- { utc_video_meta_set_played_count_p, 2 },
- { utc_video_meta_set_played_time_n, 2 },
- { utc_video_meta_set_played_time_p, 2 },
- { utc_video_meta_set_played_position_n, 2 },
- { utc_video_meta_set_played_position_p, 2 },
- { utc_video_meta_update_to_db_n, 3 },
- { utc_video_meta_update_to_db_p, 3 },
- { NULL, 0 },
-};
-
-static video_meta_h g_video;
-static video_meta_h g_video_dst;
-char *g_media_id = NULL;
-
-bool media_item_cb(media_info_h media, void *user_data)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_info_get_media_id(media, &g_media_id);
- if((ret != MEDIA_CONTENT_ERROR_NONE) || (g_media_id == NULL))
- {
- tet_printf("\n get media_id failed");
- return false;
- }
-
- ret = media_info_get_video(media, &g_video);
- if((ret != MEDIA_CONTENT_ERROR_NONE) || (g_video == NULL))
- {
- tet_printf("\n get video_meta failed");
- return false;
- }
-
- return true;
-}
-
-static void startup(void)
-{
- /* start of TC */
- tet_printf("\n TC start");
- filter_h filter;
- g_video = NULL;
-
- int ret = media_content_connect();
- if(ret != MEDIA_CONTENT_ERROR_NONE)
- {
- tet_printf("\n database connection is failed");
- return;
- }
- else
- {
- tet_printf("\n database connection is success");
- }
-
- char *condition = "MEDIA_TYPE=1"; //Video
-
- media_filter_create(&filter);
- media_filter_set_condition(filter, condition, MEDIA_CONTENT_COLLATE_DEFAULT);
- media_filter_set_order(filter, MEDIA_CONTENT_ORDER_ASC, MEDIA_TITLE, MEDIA_CONTENT_COLLATE_DEFAULT);
- if(filter == NULL)
- {
- tet_printf("\n filter create failed");
- return;
- }
-
- ret = media_info_foreach_media_from_db(filter, media_item_cb, NULL);
- if(ret != MEDIA_CONTENT_ERROR_NONE)
- {
- tet_printf("\n get media_info failed");
- return;
- }
-
- media_filter_destroy(filter);
-
- tet_printf("\n TC start END");
-}
-
-
-static void cleanup(void)
-{
- /* end of TC */
- tet_printf("\n TC end");
-
- if(g_media_id != NULL)
- free(g_media_id);
-
- if(g_video != NULL)
- video_meta_destroy(g_video);
-
- int ret = media_content_disconnect();
-
- if(ret != MEDIA_CONTENT_ERROR_NONE)
- tet_printf("\n database disconnection is failed");
- else
- tet_printf("\n database disconnection is success");
-}
-
-
-/**
- * @brief Negative test case of content_imageinfo_destroy()
- */
-static void utc_video_meta_destroy_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = video_meta_destroy(NULL);
-
- dts_check_eq("utc_video_meta_destroy", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-
-/**
- * @brief Positive test case of content_imageinfo_destroy()
- */
-static void utc_video_meta_destroy_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = video_meta_destroy(g_video_dst);
-
- dts_check_eq("utc_video_meta_destroy", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to destroy videoinfo object");
-
-}
-
-/**
- * @brief Negative test case of imageinfo_clone()
- */
-static void utc_video_meta_clone_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = video_meta_clone(&g_video_dst, NULL);
-
- dts_check_eq("utc_video_meta_clone", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of imageinfo_clone()
- */
-static void utc_video_meta_clone_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = video_meta_clone(&g_video_dst, g_video);
-
- dts_check_eq("utc_video_meta_clone", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to clone videoinfo object");
-}
-
-static void utc_video_meta_get_media_id_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *media_id = NULL;
-
- ret = video_meta_get_media_id(NULL, &media_id);
-
- dts_check_eq("utc_video_meta_get_media_id_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_video_meta_get_media_id_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *media_id = NULL;
-
- ret = video_meta_get_media_id(g_video, &media_id);
-
- dts_check_eq("utc_video_meta_get_media_id_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get video id");
-}
-
-/**
- * @brief Negative test case of sim_get_imageinfo_get_height()
- */
-static void utc_video_meta_get_title_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *title = NULL;
-
- ret = video_meta_get_title(NULL, &title);
-
- dts_check_eq("utc_video_meta_get_title", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of sim_get_imageinfo_get_height()
- */
-static void utc_video_meta_get_title_p(void)
-{
-
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *title = NULL;
-
- ret = video_meta_get_title(g_video, &title);
-
- if(title)
- free(title);
-
- dts_check_eq("utc_video_meta_get_title", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the title");
-}
-
-/**
- * @brief Negative test case of imageinfo_get_description()
- */
-static void utc_video_meta_get_album_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *album = NULL;
-
- ret = video_meta_get_album(NULL, &album);
-
- dts_check_eq("utc_video_meta_get_album", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of imageinfo_get_description()
- */
-static void utc_video_meta_get_album_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *album = NULL;
-
- ret = video_meta_get_album(g_video, &album);
-
- if(album)
- free(album);
-
- dts_check_eq("utc_video_meta_get_album", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the album");
-}
-
-/**
- * @brief Negative test case of imageinfo_get_width()
- */
-static void utc_video_meta_get_artist_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *artist = NULL;
-
- ret = video_meta_get_artist(NULL, &artist);
-
- dts_check_eq("utc_video_meta_get_artist", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of imageinfo_get_width()
- */
-static void utc_video_meta_get_artist_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *artist = NULL;
-
- ret = video_meta_get_artist(g_video, &artist);
-
- if(artist)
- free(artist);
-
- dts_check_eq("utc_video_meta_get_artist", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the artist");
-}
-
-/**
- * @brief Negative test case of video_meta_get_genre()
- */
-static void utc_video_meta_get_genre_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *genre = NULL;
-
- ret = video_meta_get_genre(NULL, &genre);
-
- dts_check_eq("utc_video_meta_get_genre_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-
-/**
- * @brief Positive test case of video_meta_get_genre()
- */
-static void utc_video_meta_get_genre_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *genre = NULL;
-
- ret = video_meta_get_genre(g_video, &genre);
-
- if(genre)
- free(genre);
-
- dts_check_eq("utc_video_meta_get_genre_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get genre");
-}
-
-/**
- * @brief Negative test case of video_meta_get_composer()
- */
-static void utc_video_meta_get_composer_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *composer = NULL;
-
- ret = video_meta_get_composer(NULL, &composer);
-
- dts_check_eq("utc_video_meta_get_composer_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of video_meta_get_composer()
- */
-static void utc_video_meta_get_composer_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *composer = NULL;
-
- ret = video_meta_get_composer(g_video, &composer);
-
- if(composer)
- free(composer);
-
- dts_check_eq("utc_video_meta_get_composer_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the composer");
-}
-
-/**
- * @brief Negative test case of sim_get_imageinfo_get_height()
- */
-static void utc_video_meta_get_year_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *year = NULL;
-
- ret = video_meta_get_year(NULL, &year);
-
- dts_check_eq("utc_video_meta_get_year_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-
-/**
- * @brief Positive test case of sim_get_imageinfo_get_height()
- */
-static void utc_video_meta_get_year_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *year = NULL;
-
- ret = video_meta_get_year(g_video, &year);
-
- if(year)
- free(year);
-
- dts_check_eq("utc_video_meta_get_year_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get year");
-}
-
-/**
- * @brief Negative test case of video_meta_get_recorded_date()
- */
-static void utc_video_meta_get_recorded_date_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *recorded_date = NULL;
-
- ret = video_meta_get_recorded_date(NULL, &recorded_date);
-
- dts_check_eq("utc_video_meta_get_recorded_date_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Failed to get recorded_date");
-}
-
-/**
- * @brief Positive test case of video_meta_get_recorded_date()
- */
-static void utc_video_meta_get_recorded_date_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *recorded_date = NULL;
-
- ret = video_meta_get_year(g_video, &recorded_date);
-
- if(recorded_date)
- free(recorded_date);
-
- dts_check_eq("utc_video_meta_get_recorded_date_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get recorded_date");
-}
-
-/**
- * @brief Negative test case of video_meta_get_copyright()
- */
-static void utc_video_meta_get_copyright_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *copyright = NULL;
-
- ret = video_meta_get_copyright(NULL, &copyright);
-
- dts_check_eq("utc_video_meta_get_copyright_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-/**
- * @brief Positive test case of video_meta_get_copyright()
- */
-static void utc_video_meta_get_copyright_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *copyright = NULL;
-
- ret = video_meta_get_copyright(g_video, &copyright);
-
- if(copyright)
- free(copyright);
-
- dts_check_eq("utc_video_meta_get_copyright_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get copyright");
-}
-
-static void utc_video_meta_get_track_num_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *track_num = NULL;
-
- ret = video_meta_get_track_num(NULL, &track_num);
-
- dts_check_eq("utc_video_meta_get_track_num_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_video_meta_get_track_num_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- char *track_num = NULL;
-
- ret = video_meta_get_track_num(g_video, &track_num);
-
- if(track_num)
- free(track_num);
-
- dts_check_eq("utc_video_meta_get_track_num_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get track num");
-}
-
-static void utc_video_meta_get_bit_rate_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int bit_rate = 0;
-
- ret = video_meta_get_bit_rate(NULL, &bit_rate);
-
- dts_check_eq("utc_video_meta_get_bit_rate_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_video_meta_get_bit_rate_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int bit_rate = 0;
-
- ret = video_meta_get_bit_rate(g_video, &bit_rate);
-
- dts_check_eq("utc_video_meta_get_bit_rate_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get the bit_rate");
-}
-
-static void utc_video_meta_get_duration_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int duration = 0;
-
- ret = video_meta_get_duration(NULL, &duration);
-
- dts_check_eq("utc_video_meta_get_duration", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_video_meta_get_duration_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int duration = 0;
-
- ret = video_meta_get_duration(g_video, &duration);
-
- dts_check_eq("utc_video_meta_get_duration", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get a duration");
-}
-
-static void utc_video_meta_get_width_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int width = 0;
- ret = video_meta_get_width(NULL, &width);
-
- dts_check_eq("utc_video_meta_get_width", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_video_meta_get_width_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int width = 0;
-
- ret = video_meta_get_width(g_video, &width);
-
- dts_check_eq("utc_video_meta_get_width", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get a width");
-}
-
-
-static void utc_video_meta_get_height_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int height = 0;
-
- ret = video_meta_get_height(NULL, &height);
-
- dts_check_eq("utc_video_meta_get_height", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_video_meta_get_height_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int height = 0;
-
- ret = video_meta_get_height(g_video, &height);
-
- dts_check_eq("utc_video_meta_get_height", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get a height");
-}
-
-static void utc_video_meta_get_played_count_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int count = 0;
-
- ret = video_meta_get_played_count(NULL, &count);
-
- dts_check_eq("utc_video_meta_get_played_count_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_video_meta_get_played_count_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int count = 0;
-
- ret = video_meta_get_played_count(g_video, &count);
-
- dts_check_eq("utc_video_meta_get_played_count_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get played count");
-}
-
-static void utc_video_meta_get_played_time_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- time_t played_time = 0;
-
- ret = video_meta_get_played_time(NULL, &played_time);
-
- dts_check_eq("utc_video_meta_get_played_time_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_video_meta_get_played_time_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- time_t played_time = 0;
-
- ret = video_meta_get_played_time(g_video, &played_time);
-
- dts_check_eq("utc_video_meta_get_played_time_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get played time");
-}
-
-static void utc_video_meta_get_played_position_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int position = 0;
-
- ret = video_meta_get_played_position(NULL, &position);
-
- dts_check_eq("utc_video_meta_get_played_position_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_video_meta_get_played_position_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int position = 0;
-
- ret = video_meta_get_played_position(g_video, &position);
-
- dts_check_eq("utc_video_meta_get_played_position_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to get played position");
-}
-
-static void utc_video_meta_set_played_count_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int played_count = 3;
-
- ret = video_meta_set_played_count(NULL, played_count);
-
- dts_check_eq("utc_video_meta_set_played_count_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_video_meta_set_played_count_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int played_count = 3;
-
- ret = video_meta_set_played_count(g_video, played_count);
-
- dts_check_eq("utc_video_meta_set_played_count_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set played count");
-}
-
-static void utc_video_meta_set_played_time_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- time_t played_time = 0;
-
- ret = video_meta_set_played_time(NULL, played_time);
-
- dts_check_eq("utc_video_meta_set_played_time_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_video_meta_set_played_time_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- time_t played_time = 0;
-
- ret = video_meta_set_played_time(g_video, played_time);
-
- dts_check_eq("utc_video_meta_set_played_time_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set played time");
-}
-
-static void utc_video_meta_set_played_position_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int played_position = 0;
-
- ret = video_meta_set_played_position(NULL, played_position);
-
- dts_check_eq("video_meta_set_played_position", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_video_meta_set_played_position_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- int played_position = 0;
-
- ret = video_meta_set_played_position(g_video, played_position);
-
- dts_check_eq("utc_video_meta_set_played_position_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to set playedposition");
-}
-
-static void utc_video_meta_update_to_db_n(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = video_meta_update_to_db(NULL);
-
- dts_check_eq("utc_video_meta_update_to_db_n", ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Must return MEDIA_CONTENT_ERROR_INVALID_PARAMETER in case of invalid parameter");
-}
-
-static void utc_video_meta_update_to_db_p(void)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = video_meta_update_to_db(g_video);
-
- dts_check_eq("utc_video_meta_update_to_db_p", ret, MEDIA_CONTENT_ERROR_NONE, "Failed to update metadata");
-}
diff --git a/TC/tet_scen b/TC/tet_scen
deleted file mode 100644
index 03f029a..0000000
--- a/TC/tet_scen
+++ /dev/null
@@ -1,7 +0,0 @@
-all
- ^TEST
-##### Scenarios for TEST #####
-
-# Test scenario
-TEST
- :include:/testcase/tslist
diff --git a/TC/tetbuild.cfg b/TC/tetbuild.cfg
deleted file mode 100644
index f7eda55..0000000
--- a/TC/tetbuild.cfg
+++ /dev/null
@@ -1,5 +0,0 @@
-TET_OUTPUT_CAPTURE=True # capture option for build operation checking
-TET_BUILD_TOOL=make # build with using make command
-TET_BUILD_FILE=-f Makefile # execution file (Makefile) for build
-TET_API_COMPLIANT=True # use TET API in Test Case ?
-TET_PASS_TC_NAME=True # report passed TC name in Journal file?
diff --git a/TC/tetclean.cfg b/TC/tetclean.cfg
deleted file mode 100644
index 02d7030..0000000
--- a/TC/tetclean.cfg
+++ /dev/null
@@ -1,5 +0,0 @@
-TET_OUTPUT_CAPTURE=True # capture option
-TET_CLEAN_TOOL= make clean # clean tool
-TET_CLEAN_FILE= Makefile # file for clean
-TET_API_COMPLIANT=True # TET API useage
-TET_PASS_TC_NAME=True # showing name , passed TC
diff --git a/TC/tetexec.cfg b/TC/tetexec.cfg
deleted file mode 100644
index ef3e452..0000000
--- a/TC/tetexec.cfg
+++ /dev/null
@@ -1,5 +0,0 @@
-TET_OUTPUT_CAPTURE=True # capturing execution or not
-TET_EXEC_TOOL= # ex) exec : execution tool set up/ Optional
-TET_EXEC_FILE= # ex) exectool : execution file/ Optional
-TET_API_COMPLIANT=True # Test case or Tool usesTET API?
-TET_PASS_TC_NAME=True # showing Passed TC name ?
diff --git a/debian/README b/debian/README
deleted file mode 100644
index e69de29..0000000
--- a/debian/README
+++ /dev/null
diff --git a/debian/capi-content-media-content-dev.install b/debian/capi-content-media-content-dev.install
deleted file mode 100644
index 761a28b..0000000
--- a/debian/capi-content-media-content-dev.install
+++ /dev/null
@@ -1,4 +0,0 @@
-/usr/include/*
-/usr/include/*/*
-/usr/lib/pkgconfig/*.pc
-
diff --git a/debian/capi-content-media-content-dev.postinst b/debian/capi-content-media-content-dev.postinst
deleted file mode 100644
index 1a24852..0000000
--- a/debian/capi-content-media-content-dev.postinst
+++ /dev/null
@@ -1 +0,0 @@
-#!/bin/sh
diff --git a/debian/capi-content-media-content.install b/debian/capi-content-media-content.install
deleted file mode 100644
index 4a755a4..0000000
--- a/debian/capi-content-media-content.install
+++ /dev/null
@@ -1 +0,0 @@
-/usr/lib/lib*.so*
diff --git a/debian/capi-content-media-content.postinst b/debian/capi-content-media-content.postinst
deleted file mode 100644
index 1a24852..0000000
--- a/debian/capi-content-media-content.postinst
+++ /dev/null
@@ -1 +0,0 @@
-#!/bin/sh
diff --git a/debian/changelog b/debian/changelog
deleted file mode 100755
index 1b30821..0000000
--- a/debian/changelog
+++ /dev/null
@@ -1,261 +0,0 @@
-capi-content-media-content (0.2.13-0) unstable; urgency=low
-
- * media_info_get_size change to use unsigned long long type
- * Git: slp-source.sec.samsung.net:slp/api/media-content
- * Tag: capi-content-media-content_0.2.13-0
-
- -- Hyunjun Ko <zzoon.ko@samsung.com> Thu, 16 Aug 2012 20:00:00 +0900
-
-capi-content-media-content (0.2.12-0) unstable; urgency=low
-
- * Bug fix in tag/playlist count
- * Git: slp-source.sec.samsung.net:slp/api/media-content
- * Tag: capi-content-media-content_0.2.12-0
-
- -- Hyunjun Ko <zzoon.ko@samsung.com> Tue, 7 Aug 2012 20:00:00 +0900
-
-capi-content-media-content (0.2.11-0) unstable; urgency=low
-
- * Create tag view
- * Fix to return valid error type
- * Git: slp-source.sec.samsung.net:slp/api/media-content
- * Tag: capi-content-media-content_0.2.11-0
-
- -- Hyunjun Ko <zzoon.ko@samsung.com> Mon, 30 Jul 2012 20:00:00 +0900
-
-capi-content-media-content (0.2.10-0) unstable; urgency=low
-
- * Create playlist view
- * Git: slp-source.sec.samsung.net:slp/api/media-content
- * Tag: capi-content-media-content_0.2.10-0
-
- -- Hyunjun Ko <zzoon.ko@samsung.com> Wed, 25 Jul 2012 20:00:00 +0900
-
-capi-content-media-content (0.2.7-0) unstable; urgency=low
-
- * Packaging
- * Git: slp-source.sec.samsung.net:slp/api/media-content
- * Tag: capi-content-media-content_0.2.6-0
-
- -- Hyunjun Ko <zzoon.ko@samsung.com> Wed, 1 Jul 2012 12:00:00 +0900
-
-capi-content-media-content (0.2.6-0) unstable; urgency=low
-
- * bug fix of memory leak
- * Modify TCs
- * Git: slp-source.sec.samsung.net:slp/api/media-content
- * Tag: capi-content-media-content_0.2.6-0
-
- -- Hyunjun Ko <zzoon.ko@samsung.com> Wed, 1 Jul 2012 12:00:00 +0900
-
-capi-content-media-content (0.2.0-5) unstable; urgency=low
-
- * bug fix of memory leak
- * bug fix of getting audio meta
- * Git: slp-source.sec.samsung.net:slp/api/media-content
- * Tag: capi-content-media-content_0.2.0-5
-
- -- Haejeong kim <backto.kim@samsung.com> Mon, 09 Jul 2012 17:08:35 +0900
-
-capi-content-media-content (0.2.0-4) unstable; urgency=low
-
- * Modify media_folder_update_to_db
- * Git: slp-source.sec.samsung.net:slp/api/media-content
- * Tag: capi-content-media-content_0.2.0-4
-
- -- Hyunjun Ko <zzoon.ko@samsung.com> Fri, 6 Jul 2012 19:00:00 +0900
-
-capi-content-media-content (0.2.0-3) unstable; urgency=low
-
- * bug fix of playlist
- * Git: slp-source.sec.samsung.net:slp/api/media-content
- * Tag: capi-content-media-content_0.2.0-3
-
- -- root <backto.kim@samsung.com> Thu, 05 Jul 2012 17:32:25 +0900
-
-capi-content-media-content (0.2.0-2) unstable; urgency=low
-
- * added time value is time_t
- * Git: slp-source.sec.samsung.net:slp/api/media-content
- * Tag: capi-content-media-content_0.2.0-2
-
- -- Haejeong Kim <backto.kim@samsung.com> Wed, 20 Jun 2012 11:56:20 +0900
-
-capi-content-media-content (0.2.0-1) unstable; urgency=low
-
- * new Media-Content released
- * Git: slp-source.sec.samsung.net:slp/api/media-content
- * Tag: capi-content-media-content_0.2.0-1
-
- -- Haejeong Kim <backto.kim@samsung.com> Mon, 18 Jun 2012 10:06:18 +0900
-
-capi-content-media-content (0.1.0-20) unstable; urgency=low
-
- * Change DRM apis
- * Git: slp-source.sec.samsung.net:slp/api/media-content
- * Tag: capi-content-media-content_0.1.0-20
-
- -- Hyunjun Ko <zzoon.ko@samsung.com> Fri, 1 Jun 2012 15:00:00 +0900
-
-capi-content-media-content (0.1.0-19) unstable; urgency=low
-
- * Fix dependency
- * Git: slp-source.sec.samsung.net:slp/api/media-content
- * Tag: capi-content-media-content_0.1.0-19
-
- -- Dongyoung Kim <dydot1.kim@samsung.com> Thu, 15 Mar 2012 14:34:54 +0900
-
-capi-content-media-content (0.1.0-18) unstable; urgency=low
-
- * change the clone function
- * Git: slp/api/media-content
- * Tag: capi-content-media-content_0.1.0-18
-
- -- Dongyoung Kim <dydot1.kim@samsung.com> Tue, 21 Feb 2012 10:24:53 +0900
-
-capi-content-media-content (0.1.0-17) unstable; urgency=low
-
- * change the CMakefile for test code
- * Git: slp/api/media-content
- * Tag: capi-content-media-content_0.1.0-17
-
- -- Dongyoung Kim <dydot1.kim@samsung.com> Mon, 20 Feb 2012 18:35:05 +0900
-
-capi-content-media-content (0.1.0-16) unstable; urgency=low
-
- * hide the db handle to avoid conflict
- * Git: slp/api/media-content
- * Tag: capi-content-media-content_0.1.0-16
-
- -- Dongyoung Kim <dydot1.kim@samsung.com> Mon, 20 Feb 2012 18:17:15 +0900
-
-capi-content-media-content (0.1.0-15) unstable; urgency=low
-
- * changed the query
- * Git: slp/api/media-content
- * Tag: capi-content-media-content_0.1.0-15
-
- -- Dongyoung Kim <dydot1.kim@samsung.com> Wed, 15 Feb 2012 10:54:39 +0900
-
-capi-content-media-content (0.1.0-14) unstable; urgency=low
-
- * fix an error for updating favorite
- * Git: slp/api/media-content
- * Tag: capi-content-media-content_0.1.0-14
-
- -- Dongyoung Kim <dydot1.kim@samsung.com> Tue, 14 Feb 2012 19:13:07 +0900
-
-capi-content-media-content (0.1.0-13) unstable; urgency=low
-
- * change the query as framework is changed
- * Git: slp/api/media-content
- * Tag: capi-content-media-content_0.1.0-13
-
- -- Dongyoung Kim <dydot1.kim@samsung.com> Fri, 10 Feb 2012 16:27:25 +0900
-
-capi-content-media-content (0.1.0-12) unstable; urgency=low
-
- * change the code as framework is changed
- * Git: slp/api/media-content
- * Tag: capi-content-media-content_0.1.0-12
-
- -- Dongyoung Kim <dydot1.kim@samsung.com> Wed, 18 Jan 2012 18:10:16 +0900
-
-capi-content-media-content (0.1.0-11) unstable; urgency=low
-
- * change the code by bug report
- * Git: slp/api/media-content
- * Tag: capi-content-media-content_0.1.0-11
-
- -- Dongyoung Kim <dydot1.kim@samsung.com> Wed, 11 Jan 2012 13:49:07 +0900
-
-capi-content-media-content (0.1.0-10) unstable; urgency=low
-
- * change the name of internal library
- * Git: slp/api/media-content
- * Tag: capi-content-media-content_0.1.0-10
-
- -- Dongyoung Kim <dydot1.kim@samsung.com> Wed, 07 Dec 2011 13:25:20 +0900
-
-capi-content-media-content (0.1.0-9) unstable; urgency=low
-
- * Replace the Error type
- * Git: slp-source.sec.samsung.net:slp/api/media-content
- * Tag: capi-content-media-content_0.1.0-9
-
-
- -- Dongyoung Kim <dydot1.kim@samsung.com> Mon, 05 Dec 2011 13:30:20 +0900
-
-capi-content-media-content (0.1.0-8) unstable; urgency=low
-
- * Add the log
- * Git: slp-source.sec.samsung.net:slp/api/media-content
- * Tag: capi-content-media-content_0.1.0-8
-
- -- Dongyoung Kim <dydot1.kim@samsung.com> Wed, 30 Nov 2011 20:19:43 +0900
-
-capi-content-media-content (0.1.0-7) unstable; urgency=low
-
- * change the code by code review
- * Git: slp-source.sec.samsung.net:slp/api/media-content
- * Tag: capi-content-media-content_0.1.0-7
-
- -- Dongyoung Kim <dydot1.kim@samsung.com> Thu, 24 Nov 2011 15:55:16 +0900
-
-capi-content-media-content (0.1.0-6) unstable; urgency=low
-
- * Convert SLP into TIZEN
- * Git: slp-source.sec.samsung.net:slp/api/media-content
- * Tag: capi-content-media-content_0.1.0-6
- -- Dongyoung Kim <dydot1.kim@samsung.com> Wed, 23 Nov 2011 14:00:33 +0900
-
-capi-content-media-content (0.1.0-5) unstable; urgency=low
-
- * change the TC code
- * Git: slp-source.sec.samsung.net:slp/api/media-content
- * Tag: capi-content-media-content_0.1.0-5
-
- -- Dongyoung Kim <dydot1.kim@samsung.com> Fri, 04 Nov 2011 16:12:19 +0900
-
-capi-content-media-content (0.1.0-4) unstable; urgency=low
-
- * change the type of internal id
- * Git: slp-source.sec.samsung.net:slp/api/media-content
- * Tag: capi-content-media-content_0.1.0-4
-
- -- Dongyoung Kim <dydot1.kim@samsung.com> Wed, 02 Nov 2011 18:06:27 +0900
-
-capi-content-media-content (0.1.0-3) unstable; urgency=low
-
- * change the query for audio
- * Git: slp-source.sec.samsung.net:slp/api/media-content
- * Tag: capi-content-media-content_0.1.0-3
-
-
- -- Dongyoung Kim <dydot1.kim@samsung.com> Mon, 10 Oct 2011 18:41:43 +0900
-
-capi-content-media-content (0.1.0-2) unstable; urgency=low
-
- * change the name of function in TC
- * Git: slp-source.sec.samsung.net:slp/api/media-content
- * Tag: capi-content-media-content_0.1.0-2
-
-
- -- Dongyoung Kim <dydot1.kim@samsung.com> Wed, 05 Oct 2011 18:41:24 +0900
-
-capi-content-media-content (0.1.0-1) unstable; urgency=low
-
- * Development 1.0
- * Git: slp-source.sec.samsung.net:slp/api/media-content
- * Tag: capi-content-media-content_0.1.0-1
-
- -- Dongyoung Kim <dydot1.kim@samsung.com> Wed, 05 Oct 2011 13:39:25 +0900
-
-capi-content-media-content (0.0.1-1) unstable; urgency=low
-
- * Initial Upload
- * Git: slp-source.sec.samsung.net:slp/api/media-content
- * Tag: capi-content-media-content_0.0.1-1
-
-
- -- Dongyoung Kim <dydot1.kim@samsung.com> Thu, 22 Sep 2011 17:37:04 +0900
diff --git a/debian/compat b/debian/compat
deleted file mode 100644
index 7ed6ff8..0000000
--- a/debian/compat
+++ /dev/null
@@ -1 +0,0 @@
-5
diff --git a/debian/control b/debian/control
deleted file mode 100755
index 867a279..0000000
--- a/debian/control
+++ /dev/null
@@ -1,21 +0,0 @@
-Source: capi-content-media-content
-Section: libs
-Priority: extra
-Maintainer: Dongyoung Kim <dydot1.kim@samsung.com>
-Build-Depends: debhelper (>= 5), dlog-dev, libmedia-service-dev, capi-base-common-dev, libmedia-utils-dev
-
-Package: capi-content-media-content
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: A Media content library in Tizen Native API
-
-Package: capi-content-media-content-dev
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, capi-content-media-content (= ${Source-Version}), dlog-dev, libmedia-service-dev, capi-base-common-dev, libmedia-utils-dev
-Description: A Media content library in Tizen Native API (DEV)
-
-Package: capi-content-media-content-dbg
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, capi-content-media-content (= ${Source-Version})
-Description: A Media content library in Tizen Native API (DBG)
-
diff --git a/debian/rules b/debian/rules
deleted file mode 100755
index 635cbb5..0000000
--- a/debian/rules
+++ /dev/null
@@ -1,68 +0,0 @@
-#!/usr/bin/make -f
-
-CFLAGS = -Wall -g
-
-FULLVER ?= $(shell dpkg-parsechangelog | grep Version: | cut -d ' ' -f 2 | cut -d '-' -f 1)
-MAJORVER ?= $(shell echo $(FULLVER) | cut -d '.' -f 1)
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
-else
- CFLAGS += -O2
-endif
-CMAKE_ROOT_DIR ?= $(CURDIR)
-CMAKE_BUILD_DIR ?= $(CURDIR)/cmake_build_tmp
-
-configure: configure-stamp
-configure-stamp:
- dh_testdir
- mkdir -p $(CMAKE_BUILD_DIR) && cd $(CMAKE_BUILD_DIR) && cmake .. -DFULLVER=${FULLVER} -DMAJORVER=${MAJORVER}
- touch configure-stamp
-
-
-build: build-stamp
-build-stamp: configure-stamp
- dh_testdir
- cd $(CMAKE_BUILD_DIR) && $(MAKE)
- touch $@
-
-clean:
- cd $(CMAKE_ROOT_DIR)
- dh_testdir
- dh_testroot
- rm -f build-stamp configure-stamp
- rm -f `find . -name *.pc`
- rm -rf $(CMAKE_BUILD_DIR)
- dh_clean
-
-install: build
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
-
- cd $(CMAKE_BUILD_DIR) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
-
-binary-indep: build install
-
-binary-arch: build install
- dh_testdir
- dh_testroot
- dh_installchangelogs
- dh_installdocs
- dh_installexamples
- dh_install --sourcedir=debian/tmp
- dh_installman
- dh_link
- dh_strip --dbg-package=capi-content-media-content-dbg
- dh_fixperms
- dh_makeshlibs
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
-
diff --git a/packaging/capi-content-media-content.spec b/packaging/capi-content-media-content.spec
index b29ecc8..c9fa611 100755
--- a/packaging/capi-content-media-content.spec
+++ b/packaging/capi-content-media-content.spec
@@ -1,4 +1,3 @@
-#sbs-git:slp/api/media-content capi-content-media-content 0.1.0 718ef86b8c37cf9e8f110ada62eed01ab9d9e2f6
Name: capi-content-media-content
Summary: A Media content library in SLP C API
Version: 0.2.13