Delete TC files 68/61568/1 accepted/tizen/common/20160310.080555 accepted/tizen/ivi/20160310.053227 accepted/tizen/mobile/20160310.053118 accepted/tizen/tv/20160310.053143 accepted/tizen/wearable/20160310.053204 submit/tizen/20160309.024338
authorsungwon2.han <sungwon2.han@samsung.com>
Wed, 9 Mar 2016 02:35:53 +0000 (11:35 +0900)
committersungwon2.han <sungwon2.han@samsung.com>
Wed, 9 Mar 2016 02:36:50 +0000 (11:36 +0900)
TC files are managed in other package separately.

Change-Id: I5ebe2a2e94d937df32f7cef1ccc7917eab94d094

100 files changed:
CMakeLists.txt
TC/_export_env.sh [deleted file]
TC/_export_target_env.sh [deleted file]
TC/build.sh [deleted file]
TC/clean.sh [deleted file]
TC/config [deleted file]
TC/execute.sh [deleted file]
TC/testcase/Makefile [deleted file]
TC/testcase/tslist [deleted file]
TC/testcase/utc_download_add_http_header_field_negative.c [deleted file]
TC/testcase/utc_download_add_http_header_field_positive.c [deleted file]
TC/testcase/utc_download_create_negative.c [deleted file]
TC/testcase/utc_download_create_positive.c [deleted file]
TC/testcase/utc_download_destroy_negative.c [deleted file]
TC/testcase/utc_download_destroy_positive.c [deleted file]
TC/testcase/utc_download_get_auto_download_negative.c [deleted file]
TC/testcase/utc_download_get_auto_download_positive.c [deleted file]
TC/testcase/utc_download_get_content_name_negative.c [deleted file]
TC/testcase/utc_download_get_content_name_positive.c [deleted file]
TC/testcase/utc_download_get_content_size_negative.c [deleted file]
TC/testcase/utc_download_get_content_size_positive.c [deleted file]
TC/testcase/utc_download_get_destination_negative.c [deleted file]
TC/testcase/utc_download_get_destination_positive.c [deleted file]
TC/testcase/utc_download_get_downloaded_file_path_negative.c [deleted file]
TC/testcase/utc_download_get_downloaded_file_path_positive.c [deleted file]
TC/testcase/utc_download_get_error_negative.c [deleted file]
TC/testcase/utc_download_get_error_positive.c [deleted file]
TC/testcase/utc_download_get_etag_negative.c [deleted file]
TC/testcase/utc_download_get_etag_positive.c [deleted file]
TC/testcase/utc_download_get_file_name_negative.c [deleted file]
TC/testcase/utc_download_get_file_name_positive.c [deleted file]
TC/testcase/utc_download_get_http_header_field_list_negative.c [deleted file]
TC/testcase/utc_download_get_http_header_field_list_positive.c [deleted file]
TC/testcase/utc_download_get_http_header_field_negative.c [deleted file]
TC/testcase/utc_download_get_http_header_field_positive.c [deleted file]
TC/testcase/utc_download_get_http_status_negative.c [deleted file]
TC/testcase/utc_download_get_http_status_positive.c [deleted file]
TC/testcase/utc_download_get_mime_type_negative.c [deleted file]
TC/testcase/utc_download_get_mime_type_positive.c [deleted file]
TC/testcase/utc_download_get_network_bonding_negative.c [deleted file]
TC/testcase/utc_download_get_network_bonding_positive.c [deleted file]
TC/testcase/utc_download_get_network_type_negative.c [deleted file]
TC/testcase/utc_download_get_network_type_positive.c [deleted file]
TC/testcase/utc_download_get_notification_bundle_negative.c [deleted file]
TC/testcase/utc_download_get_notification_bundle_positive.c [deleted file]
TC/testcase/utc_download_get_notification_description_negative.c [deleted file]
TC/testcase/utc_download_get_notification_description_positive.c [deleted file]
TC/testcase/utc_download_get_notification_title_negative.c [deleted file]
TC/testcase/utc_download_get_notification_title_positive.c [deleted file]
TC/testcase/utc_download_get_notification_type_negative.c [deleted file]
TC/testcase/utc_download_get_notification_type_positive.c [deleted file]
TC/testcase/utc_download_get_state_negative.c [deleted file]
TC/testcase/utc_download_get_state_positive.c [deleted file]
TC/testcase/utc_download_get_temp_path_negative.c [deleted file]
TC/testcase/utc_download_get_temp_path_positive.c [deleted file]
TC/testcase/utc_download_get_url_negative.c [deleted file]
TC/testcase/utc_download_get_url_positive.c [deleted file]
TC/testcase/utc_download_pause_negative.c [deleted file]
TC/testcase/utc_download_pause_positive.c [deleted file]
TC/testcase/utc_download_remove_http_header_field_negative.c [deleted file]
TC/testcase/utc_download_remove_http_header_field_positive.c [deleted file]
TC/testcase/utc_download_set_auto_download_negative.c [deleted file]
TC/testcase/utc_download_set_auto_download_positive.c [deleted file]
TC/testcase/utc_download_set_destination_negative.c [deleted file]
TC/testcase/utc_download_set_destination_positive.c [deleted file]
TC/testcase/utc_download_set_file_name_negative.c [deleted file]
TC/testcase/utc_download_set_file_name_positive.c [deleted file]
TC/testcase/utc_download_set_network_bonding_negative.c [deleted file]
TC/testcase/utc_download_set_network_bonding_positive.c [deleted file]
TC/testcase/utc_download_set_network_type_negative.c [deleted file]
TC/testcase/utc_download_set_network_type_positive.c [deleted file]
TC/testcase/utc_download_set_notification_bundle_negative.c [deleted file]
TC/testcase/utc_download_set_notification_bundle_positive.c [deleted file]
TC/testcase/utc_download_set_notification_description_negative.c [deleted file]
TC/testcase/utc_download_set_notification_description_positive.c [deleted file]
TC/testcase/utc_download_set_notification_title_negative.c [deleted file]
TC/testcase/utc_download_set_notification_title_positive.c [deleted file]
TC/testcase/utc_download_set_notification_type_negative.c [deleted file]
TC/testcase/utc_download_set_notification_type_positive.c [deleted file]
TC/testcase/utc_download_set_progress_cb_negative.c [deleted file]
TC/testcase/utc_download_set_progress_cb_positive.c [deleted file]
TC/testcase/utc_download_set_state_changed_cb_negative.c [deleted file]
TC/testcase/utc_download_set_state_changed_cb_positive.c [deleted file]
TC/testcase/utc_download_set_temp_file_path_negative.c [deleted file]
TC/testcase/utc_download_set_temp_file_path_positive.c [deleted file]
TC/testcase/utc_download_set_url_negative.c [deleted file]
TC/testcase/utc_download_set_url_positive.c [deleted file]
TC/testcase/utc_download_start_negative.c [deleted file]
TC/testcase/utc_download_start_positive.c [deleted file]
TC/testcase/utc_download_unset_progress_cb_negative.c [deleted file]
TC/testcase/utc_download_unset_progress_cb_positive.c [deleted file]
TC/testcase/utc_download_unset_state_changed_cb_negative.c [deleted file]
TC/testcase/utc_download_unset_state_changed_cb_positive.c [deleted file]
TC/tet_scen [deleted file]
TC/tetbuild.cfg [deleted file]
TC/tetclean.cfg [deleted file]
TC/tetexec.cfg [deleted file]
packaging/capi-web-url-download.spec
testcase/CMakeLists.txt [deleted file]
testcase/url-download-tc.c [deleted file]

index 322d368..2417ee4 100644 (file)
@@ -97,5 +97,3 @@ ADD_CUSTOM_COMMAND(
 )
 
 ENDIF(UNIX)
-
-ADD_SUBDIRECTORY(testcase/)
diff --git a/TC/_export_env.sh b/TC/_export_env.sh
deleted file mode 100644 (file)
index b8d2ea9..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-# Customize below path information 
-TET_INSTALL_PATH=/home/warmtree/git_private/DTS/TETware
-TET_TARGET_PATH=$TET_INSTALL_PATH/tetware-target
-
-export ARCH=target
-export TET_ROOT=$TET_TARGET_PATH
-export PATH=$TET_ROOT/bin:$PATH
-export LD_LIBRARY_PATH=$TET_ROOT/lib/tet3:$LD_LIBRARY_PATH
diff --git a/TC/_export_target_env.sh b/TC/_export_target_env.sh
deleted file mode 100644 (file)
index b48c54b..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-# Customize below path information 
-TET_INSTALL_PATH=/mnt/dts/TETware
-TET_TARGET_PATH=$TET_INSTALL_PATH/tetware-target
-
-export ARCH=target
-export TET_ROOT=$TET_TARGET_PATH
-export PATH=$TET_ROOT/bin:$PATH
-export LD_LIBRARY_PATH=$TET_ROOT/lib/tet3:$LD_LIBRARY_PATH
diff --git a/TC/build.sh b/TC/build.sh
deleted file mode 100644 (file)
index 72aad6c..0000000
+++ /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 100644 (file)
index 29743e0..0000000
+++ /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 (file)
index f3e2091..0000000
--- a/TC/config
+++ /dev/null
@@ -1,3 +0,0 @@
-PKG_NAME=capi-web-url-download
-TET_INSTALL_HOST_PATH=/var/tmp/dts_fw/TC/TETware
-TET_INSTALL_TARGET_PATH=/opt/home/$PKG_NAME/TETware
diff --git a/TC/execute.sh b/TC/execute.sh
deleted file mode 100644 (file)
index a4f6095..0000000
+++ /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 3 -f chtml -o $HTML_RESULT $JOURNAL_RESULT
diff --git a/TC/testcase/Makefile b/TC/testcase/Makefile
deleted file mode 100644 (file)
index 97e14c4..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-include ../config
-
-CC ?= gcc
-
-C_FILES = $(shell ls *.c)
-       
-PKGS = $(PKG_NAME)
-PKGS += glib-2.0
-PKGS += gobject-2.0 
-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/tslist b/TC/testcase/tslist
deleted file mode 100644 (file)
index 1fc0d45..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-/testcase/utc_download_set_auto_download_negative
-/testcase/utc_download_set_auto_download_positive
-/testcase/utc_download_get_auto_download_negative
-/testcase/utc_download_get_auto_download_positive
-/testcase/utc_download_get_http_header_field_list_negative
-/testcase/utc_download_get_http_header_field_list_positive
-/testcase/utc_download_get_mime_type_negative
-/testcase/utc_download_get_mime_type_positive
-/testcase/utc_download_get_downloaded_file_path_negative
-/testcase/utc_download_get_downloaded_file_path_positive
-/testcase/utc_download_get_file_name_negative
-/testcase/utc_download_get_file_name_positive
-/testcase/utc_download_set_file_name_negative
-/testcase/utc_download_set_file_name_positive
-/testcase/utc_download_get_temp_path_negative
-/testcase/utc_download_get_temp_path_positive
-/testcase/utc_download_get_content_name_negative
-/testcase/utc_download_get_content_name_positive
-/testcase/utc_download_get_content_size_negative
-/testcase/utc_download_get_content_size_positive
-/testcase/utc_download_get_error_negative
-/testcase/utc_download_get_error_positive
-/testcase/utc_download_get_http_status_negative
-/testcase/utc_download_get_http_status_positive
-/testcase/utc_download_set_network_type_negative
-/testcase/utc_download_set_network_type_positive
-/testcase/utc_download_get_network_type_negative
-/testcase/utc_download_get_network_type_positive
-/testcase/utc_download_set_network_bonding_negative
-/testcase/utc_download_set_network_bonding_positive
-/testcase/utc_download_get_network_bonding_negative
-/testcase/utc_download_get_network_bonding_positive
-/testcase/utc_download_start_negative
-/testcase/utc_download_start_positive
-/testcase/utc_download_create_negative
-/testcase/utc_download_create_positive
-/testcase/utc_download_destroy_negative
-/testcase/utc_download_destroy_positive
-/testcase/utc_download_add_http_header_field_negative
-/testcase/utc_download_add_http_header_field_positive
-/testcase/utc_download_get_destination_negative
-/testcase/utc_download_get_destination_positive
-/testcase/utc_download_get_http_header_field_negative
-/testcase/utc_download_get_http_header_field_positive
-/testcase/utc_download_get_state_negative
-/testcase/utc_download_get_state_positive
-/testcase/utc_download_get_url_negative
-/testcase/utc_download_get_url_positive
-/testcase/utc_download_pause_negative
-/testcase/utc_download_pause_positive
-/testcase/utc_download_remove_http_header_field_negative
-/testcase/utc_download_remove_http_header_field_positive
-/testcase/utc_download_set_destination_negative
-/testcase/utc_download_set_destination_positive
-/testcase/utc_download_set_url_negative
-/testcase/utc_download_set_url_positive
-/testcase/utc_download_set_notification_title_negative
-/testcase/utc_download_set_notification_title_positive
-/testcase/utc_download_get_notification_title_negative
-/testcase/utc_download_get_notification_title_positive
-/testcase/utc_download_set_notification_description_negative
-/testcase/utc_download_set_notification_description_positive
-/testcase/utc_download_get_notification_description_negative
-/testcase/utc_download_get_notification_description_positive
-/testcase/utc_download_set_notification_type_negative
-/testcase/utc_download_set_notification_type_positive
-/testcase/utc_download_get_notification_type_negative
-/testcase/utc_download_get_notification_type_positive
-/testcase/utc_download_set_notification_bundle_negative
-/testcase/utc_download_set_notification_bundle_positive
-/testcase/utc_download_get_notification_bundle_negative
-/testcase/utc_download_get_notification_bundle_positive
-/testcase/utc_download_set_state_changed_cb_negative
-/testcase/utc_download_set_state_changed_cb_positive 
-/testcase/utc_download_set_progress_cb_negative
-/testcase/utc_download_set_progress_cb_positive
-/testcase/utc_download_unset_state_changed_cb_negative
-/testcase/utc_download_unset_state_changed_cb_positive
-/testcase/utc_download_unset_progress_cb_negative
-/testcase/utc_download_unset_progress_cb_positive
-/testcase/utc_download_get_etag_positive
-/testcase/utc_download_get_etag_negative
-/testcase/utc_download_set_temp_file_path_negative
-/testcase/utc_download_set_temp_file_path_positive
diff --git a/TC/testcase/utc_download_add_http_header_field_negative.c b/TC/testcase/utc_download_add_http_header_field_negative.c
deleted file mode 100644 (file)
index f854ba6..0000000
+++ /dev/null
@@ -1,91 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_add_http_header_field_negative1(void);
-static void utc_download_add_http_header_field_negative2(void);
-static void utc_download_add_http_header_field_negative3(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_add_http_header_field_negative1, 1},
-       {utc_download_add_http_header_field_negative2, 2},
-       {utc_download_add_http_header_field_negative3, 3},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_add_http_header_field_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_add_http_header_field(-1, "field", "value");
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_add_http_header_field_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_add_http_header_field(id, NULL, "value");
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_add_http_header_field_negative3(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_add_http_header_field(id, "field", NULL);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
diff --git a/TC/testcase/utc_download_add_http_header_field_positive.c b/TC/testcase/utc_download_add_http_header_field_positive.c
deleted file mode 100644 (file)
index c9dbe58..0000000
+++ /dev/null
@@ -1,58 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_add_http_header_field_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_add_http_header_field_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_add_http_header_field_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_add_http_header_field(id, "field", "value");
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has no error");
-       else
-               dts_fail(TC_NAME, "retcode has error");
-}
-
diff --git a/TC/testcase/utc_download_create_negative.c b/TC/testcase/utc_download_create_negative.c
deleted file mode 100644 (file)
index 16b34ad..0000000
+++ /dev/null
@@ -1,55 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_create_negative1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_create_negative1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_create_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_create(NULL);
-
-       if (retcode != DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
diff --git a/TC/testcase/utc_download_create_positive.c b/TC/testcase/utc_download_create_positive.c
deleted file mode 100644 (file)
index 6965efc..0000000
+++ /dev/null
@@ -1,58 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_create_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_create_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_create_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       retcode = download_create(&id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE)     {
-               download_destroy(id);
-               dts_pass(TC_NAME, "retcode has no error");
-       }
-       else
-               dts_fail(TC_NAME, "retcode has error");
-}
-
diff --git a/TC/testcase/utc_download_destroy_negative.c b/TC/testcase/utc_download_destroy_negative.c
deleted file mode 100644 (file)
index a7194ec..0000000
+++ /dev/null
@@ -1,53 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_destroy_negative1(void);
-struct tet_testlist tet_testlist[] = {
-       {utc_download_destroy_negative1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_destroy_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       retcode = download_destroy(-1);
-
-       if (retcode != DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
diff --git a/TC/testcase/utc_download_destroy_positive.c b/TC/testcase/utc_download_destroy_positive.c
deleted file mode 100644 (file)
index 166eedf..0000000
+++ /dev/null
@@ -1,63 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_destroy_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_destroy_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_destroy_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       retcode = download_create(&id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               retcode = download_destroy(id);
-       else {
-               dts_fail(TC_NAME, "create failed");
-               return;
-       }
-
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has no error");
-       else
-               dts_fail(TC_NAME, "retcode has error");
-}
-
diff --git a/TC/testcase/utc_download_get_auto_download_negative.c b/TC/testcase/utc_download_get_auto_download_negative.c
deleted file mode 100644 (file)
index 4c033a2..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-/*\r
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the License);\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an AS IS BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-#include <tet_api.h>\r
-#include <download.h>\r
-\r
-static void startup(void);\r
-static void cleanup(void);\r
-\r
-void (*tet_startup)(void) = startup;\r
-void (*tet_cleanup)(void) = cleanup;\r
-\r
-static void utc_download_get_auto_download_negative1(void);\r
-static void utc_download_get_auto_download_negative2(void);\r
-static void utc_download_get_auto_download_negative3(void);\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_download_get_auto_download_negative1, 1},\r
-       {utc_download_get_auto_download_negative2, 2},\r
-       {utc_download_get_auto_download_negative3, 3},\r
-       {NULL, 0},\r
-};\r
-\r
-static void startup(void)\r
-{\r
-\r
-}\r
-\r
-static void cleanup(void)\r
-{\r
-       /* end of TC */\r
-}\r
-\r
-void utc_download_get_auto_download_negative1(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       bool get_enable = false;\r
-\r
-       retcode = download_get_auto_download(-1, &get_enable);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)\r
-               dts_pass(TC_NAME, "retcode has invalid parameter");\r
-       else\r
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");\r
-}\r
-\r
-void utc_download_get_auto_download_negative2(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       int id = 0;\r
-       \r
-       download_create(&id);\r
-       retcode = download_get_auto_download(id, NULL);\r
-       download_destroy(id);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)\r
-               dts_pass(TC_NAME, "retcode has invalid parameter");\r
-       else\r
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");\r
-}\r
-\r
-void utc_download_get_auto_download_negative3(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-\r
-       retcode = download_get_auto_download(-1, NULL);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)\r
-               dts_pass(TC_NAME, "retcode has invalid parameter");\r
-       else\r
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");\r
-}\r
-\r
diff --git a/TC/testcase/utc_download_get_auto_download_positive.c b/TC/testcase/utc_download_get_auto_download_positive.c
deleted file mode 100644 (file)
index d1823f5..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-/*\r
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the License);\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an AS IS BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-#include <tet_api.h>\r
-#include <download.h>\r
-\r
-static void startup(void);\r
-static void cleanup(void);\r
-\r
-void (*tet_startup)(void) = startup;\r
-void (*tet_cleanup)(void) = cleanup;\r
-\r
-static void utc_download_get_auto_download_positive1(void);\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_download_get_auto_download_positive1, 1},\r
-       {NULL, 0},\r
-};\r
-\r
-static void startup(void)\r
-{\r
-\r
-}\r
-\r
-static void cleanup(void)\r
-{\r
-       /* end of TC */\r
-}\r
-\r
-void utc_download_get_auto_download_positive1(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       bool enable = true;\r
-       bool getenable = false;\r
-       int id = 0;\r
-\r
-       download_create(&id);\r
-       download_set_auto_download(id, enable);\r
-       retcode = download_get_auto_download(id, &getenable);\r
-       download_destroy(id);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_NONE && (enable == getenable))\r
-               dts_pass(TC_NAME, "retcode has no error and the auto nofication status of set API is same as of get API ");\r
-       else\r
-               dts_fail(TC_NAME, "retcode has error or the auto notification status of set API is not same as of get API");\r
-}\r
-\r
diff --git a/TC/testcase/utc_download_get_content_name_negative.c b/TC/testcase/utc_download_get_content_name_negative.c
deleted file mode 100644 (file)
index c6f9717..0000000
+++ /dev/null
@@ -1,89 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_content_name_negative1(void);
-static void utc_download_get_content_name_negative2(void);
-static void utc_download_get_content_name_negative3(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_content_name_negative1, 1},
-       {utc_download_get_content_name_negative2, 2},
-       {utc_download_get_content_name_negative3, 3},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_get_content_name_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *output = NULL;
-
-       retcode = download_get_content_name(-1, &output);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_content_name_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-       
-       download_create(&id);
-       retcode = download_get_content_name(id, NULL);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_content_name_negative3(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_get_content_name(-1, NULL);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
diff --git a/TC/testcase/utc_download_get_content_name_positive.c b/TC/testcase/utc_download_get_content_name_positive.c
deleted file mode 100644 (file)
index 9a850ea..0000000
+++ /dev/null
@@ -1,107 +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 <download.h>
-#include <glib.h>
-#include <glib-object.h>
-
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_content_name_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_content_name_positive1, 1},
-       {NULL, 0},
-};
-
-static GMainLoop* gloop = NULL;
-#define TEST_URL "http://static.campaign.naver.com/0/hangeul/2011/img/img_family.gif"
-
-static void state_cb (int download_id, download_state_e state, void *user_data)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       download_error_e err = DOWNLOAD_ERROR_NONE;
-       if (state == DOWNLOAD_STATE_DOWNLOADING)
-               g_main_loop_quit(gloop);
-       
-       retcode = download_get_error(download_id, &err);
-       if (retcode != DOWNLOAD_ERROR_NONE) {
-               dts_fail(TC_NAME, "Fail to get error");
-               g_main_loop_quit(gloop);
-               return;
-       }
-       dts_message(TC_NAME, "err[%d]", err);
-       if (err == DOWNLOAD_ERROR_INVALID_URL)
-               dts_message(TC_NAME, "invaild url err");
-       else
-               dts_message(TC_NAME, "another error[%d]", err);
-}
-
-static void startup(void)
-{
-       g_type_init();
-       gloop = g_main_loop_new (NULL, 0);
-}
-
-static void cleanup(void)
-{
-       g_main_loop_unref(gloop);
-       gloop = NULL;
-}
-
-void utc_download_get_content_name_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *output = NULL;
-       int id = 0;
-
-       retcode = download_create(&id);
-       if (retcode != DOWNLOAD_ERROR_NONE)     {
-               dts_fail(TC_NAME,"Fail to create download handle");
-               return;
-       }
-       retcode = download_set_url(id, TEST_URL);
-       if ( retcode != DOWNLOAD_ERROR_NONE ) {
-               dts_fail(TC_NAME,"Fail to set url");
-               return;
-       }
-       retcode = download_set_state_changed_cb(id, state_cb, NULL);
-       if (retcode != DOWNLOAD_ERROR_NONE)
-               dts_fail(TC_NAME, "Fail to set callback");
-
-       retcode = download_start(id);
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               g_main_loop_run(gloop);
-       
-       retcode = download_get_content_name(id, &output);
-               
-       download_unset_state_changed_cb(id);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE && output)
-               dts_pass(TC_NAME, "retcode has no error and content exists");
-       else
-               dts_fail(TC_NAME, "retcode has error or content does not exists");
-}
-
diff --git a/TC/testcase/utc_download_get_content_size_negative.c b/TC/testcase/utc_download_get_content_size_negative.c
deleted file mode 100644 (file)
index 8e8ba46..0000000
+++ /dev/null
@@ -1,89 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_content_size_negative1(void);
-static void utc_download_get_content_size_negative2(void);
-static void utc_download_get_content_size_negative3(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_content_size_negative1, 1},
-       {utc_download_get_content_size_negative2, 2},
-       {utc_download_get_content_size_negative3, 3},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_get_content_size_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       unsigned long long output = 0;
-
-       retcode = download_get_content_size(-1, &output);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_content_size_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-       
-       download_create(&id);
-       retcode = download_get_content_size(id, NULL);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_content_size_negative3(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_get_content_size(-1, NULL);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
diff --git a/TC/testcase/utc_download_get_content_size_positive.c b/TC/testcase/utc_download_get_content_size_positive.c
deleted file mode 100644 (file)
index b0cdd1e..0000000
+++ /dev/null
@@ -1,112 +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 <download.h>
-#include <glib.h>
-#include <glib-object.h>
-
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_content_size_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_content_size_positive1, 1},
-       {NULL, 0},
-};
-
-static GMainLoop* gloop = NULL;
-#define TEST_URL "http://static.campaign.naver.com/0/hangeul/2011/img/img_family.gif"
-
-static void state_cb (int download_id, download_state_e state, void *user_data)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       download_error_e err = DOWNLOAD_ERROR_NONE;
-       if (state == DOWNLOAD_STATE_DOWNLOADING)
-               g_main_loop_quit(gloop);
-       
-       retcode = download_get_error(download_id, &err);
-       if (retcode != DOWNLOAD_ERROR_NONE) {
-               dts_fail(TC_NAME, "Fail to get error");
-               g_main_loop_quit(gloop);
-               return;
-       }
-       dts_message(TC_NAME, "err[%d]", err);
-       if (err == DOWNLOAD_ERROR_INVALID_URL)
-               dts_message(TC_NAME, "invaild url err");
-       else
-               dts_message(TC_NAME, "another error[%d]", err);
-}
-
-static void startup(void)
-{
-       g_type_init();
-       gloop = g_main_loop_new (NULL, 0);
-}
-
-static void cleanup(void)
-{
-       g_main_loop_unref(gloop);
-       gloop = NULL;
-}
-
-void utc_download_get_content_size_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       unsigned long long output = 0;
-       int id = 0;
-
-       retcode = download_create(&id);
-       if (retcode != DOWNLOAD_ERROR_NONE)     {
-               dts_fail(TC_NAME,"Fail to create download handle");
-               return;
-       }
-       retcode = download_set_url(id, TEST_URL);
-       if ( retcode != DOWNLOAD_ERROR_NONE ) {
-               dts_fail(TC_NAME,"Fail to set url");
-               return;
-       }
-       retcode = download_set_state_changed_cb(id, state_cb, NULL);
-       if (retcode != DOWNLOAD_ERROR_NONE)
-               dts_fail(TC_NAME, "Fail to set callback");
-
-       retcode = download_start(id);
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               g_main_loop_run(gloop);
-       
-       retcode = download_get_content_size(id, &output);
-       if ( retcode != DOWNLOAD_ERROR_NONE )
-               dts_message(TC_NAME,"Fail to get content name");
-       
-       retcode = download_unset_state_changed_cb(id);
-       if ( retcode != DOWNLOAD_ERROR_NONE )
-               dts_message(TC_NAME,"Fail to unset callback");
-
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE && (output > 0))
-               dts_pass(TC_NAME, "retcode has no error and size is valid");
-       else
-               dts_fail(TC_NAME, "retcode has error or size not valid");
-}
-
diff --git a/TC/testcase/utc_download_get_destination_negative.c b/TC/testcase/utc_download_get_destination_negative.c
deleted file mode 100644 (file)
index 28b28dc..0000000
+++ /dev/null
@@ -1,92 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_destination_negative1(void);
-static void utc_download_get_destination_negative2(void);
-static void utc_download_get_destination_negative3(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_destination_negative1, 1},
-       {utc_download_get_destination_negative2, 2},
-       {utc_download_get_destination_negative3, 3},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_get_destination_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *output = NULL;
-
-       retcode = download_get_destination(-1, &output);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_destination_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *input = "URL";
-       int id = 0;
-       
-       download_create(&id);
-       download_set_destination(id, input);
-       retcode = download_get_destination(id, NULL);
-
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_destination_negative3(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_get_destination(-1, NULL);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
diff --git a/TC/testcase/utc_download_get_destination_positive.c b/TC/testcase/utc_download_get_destination_positive.c
deleted file mode 100644 (file)
index 52f4b88..0000000
+++ /dev/null
@@ -1,61 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_destination_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_destination_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_get_destination_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *input = "/opt/usr/media/Downloads";
-       char *output = NULL;
-       int id = 0;
-
-       download_create(&id);
-       download_set_destination(id, input);
-       retcode = download_get_destination(id, &output);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE && !strcmp(input, output))
-               dts_pass(TC_NAME, "retcode has no error and the destination of set API is same to destination of get API ");
-       else
-               dts_fail(TC_NAME, "retcode has error or the destination of set API is not same to destination of get API");
-}
-
diff --git a/TC/testcase/utc_download_get_downloaded_file_path_negative.c b/TC/testcase/utc_download_get_downloaded_file_path_negative.c
deleted file mode 100644 (file)
index c2151da..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-/*\r
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the License);\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an AS IS BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-#include <tet_api.h>\r
-#include <download.h>\r
-\r
-static void startup(void);\r
-static void cleanup(void);\r
-\r
-void (*tet_startup)(void) = startup;\r
-void (*tet_cleanup)(void) = cleanup;\r
-\r
-static void utc_download_get_downloaded_file_path_negative1(void);\r
-static void utc_download_get_downloaded_file_path_negative2(void);\r
-static void utc_download_get_downloaded_file_path_negative3(void);\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_download_get_downloaded_file_path_negative1, 1},\r
-       {utc_download_get_downloaded_file_path_negative2, 2},\r
-       {utc_download_get_downloaded_file_path_negative3, 3},\r
-       {NULL, 0},\r
-};\r
-\r
-static void startup(void)\r
-{\r
-\r
-}\r
-\r
-static void cleanup(void)\r
-{\r
-       /* end of TC */\r
-}\r
-\r
-void utc_download_get_downloaded_file_path_negative1(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       char *output = NULL;\r
-\r
-       retcode = download_get_downloaded_file_path(-1, &output);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)\r
-               dts_pass(TC_NAME, "retcode has invalid parameter");\r
-       else\r
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");\r
-}\r
-\r
-void utc_download_get_downloaded_file_path_negative2(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       int id = 0;\r
-       \r
-       download_create(&id);\r
-       retcode = download_get_downloaded_file_path(id, NULL);\r
-\r
-       download_destroy(id);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)\r
-               dts_pass(TC_NAME, "retcode has invalid parameter");\r
-       else\r
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");\r
-}\r
-\r
-void utc_download_get_downloaded_file_path_negative3(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-\r
-       retcode = download_get_downloaded_file_path(-1, NULL);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)\r
-               dts_pass(TC_NAME, "retcode has invalid parameter");\r
-       else\r
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");\r
-}\r
-\r
diff --git a/TC/testcase/utc_download_get_downloaded_file_path_positive.c b/TC/testcase/utc_download_get_downloaded_file_path_positive.c
deleted file mode 100644 (file)
index b510776..0000000
+++ /dev/null
@@ -1,111 +0,0 @@
-/*\r
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the License);\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an AS IS BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-#include <tet_api.h>\r
-#include <download.h>\r
-#include <glib.h>\r
-#include <glib-object.h>\r
-\r
-\r
-static void startup(void);\r
-static void cleanup(void);\r
-\r
-void (*tet_startup)(void) = startup;\r
-void (*tet_cleanup)(void) = cleanup;\r
-\r
-static void utc_download_get_downloaded_file_path_positive1(void);\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_download_get_downloaded_file_path_positive1, 1},\r
-       {NULL, 0},\r
-};\r
-\r
-static GMainLoop* gloop = NULL;\r
-#define TEST_URL "http://static.campaign.naver.com/0/hangeul/2011/img/img_family.gif"\r
-\r
-static void state_cb (int download_id, download_state_e state, void *user_data)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       download_error_e err = DOWNLOAD_ERROR_NONE;\r
-       if (state == DOWNLOAD_STATE_COMPLETED)\r
-               g_main_loop_quit(gloop);\r
-       \r
-       retcode = download_get_error(download_id, &err);\r
-       if (retcode != DOWNLOAD_ERROR_NONE) {\r
-               dts_fail(TC_NAME, "Fail to get error");\r
-               g_main_loop_quit(gloop);\r
-               return;\r
-       }\r
-       dts_message(TC_NAME, "err[%d]", err);\r
-       if (err == DOWNLOAD_ERROR_INVALID_URL)\r
-               dts_message(TC_NAME, "invaild url err");\r
-       else\r
-               dts_message(TC_NAME, "another error[%d]", err);\r
-}\r
-\r
-\r
-static void startup(void)\r
-{\r
-       g_type_init();\r
-       gloop = g_main_loop_new (NULL, 0);\r
-}\r
-\r
-static void cleanup(void)\r
-{\r
-       g_main_loop_unref(gloop);\r
-       gloop = NULL;\r
-}\r
-\r
-\r
-void utc_download_get_downloaded_file_path_positive1(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       char *output = NULL;\r
-       int id = 0;\r
-\r
-       retcode = download_create(&id);\r
-       if (retcode != DOWNLOAD_ERROR_NONE)     {\r
-               dts_fail(TC_NAME,"Fail to create download handle");\r
-               return;\r
-       }\r
-       retcode = download_set_url(id, TEST_URL);\r
-       if ( retcode != DOWNLOAD_ERROR_NONE ) {\r
-               dts_fail(TC_NAME,"Fail to set url");\r
-               return;\r
-       }\r
-       retcode = download_set_state_changed_cb(id, state_cb, NULL);\r
-       if (retcode != DOWNLOAD_ERROR_NONE)\r
-               dts_fail(TC_NAME, "Fail to set callback");\r
-\r
-       retcode = download_start(id);\r
-       if (retcode == DOWNLOAD_ERROR_NONE)\r
-               g_main_loop_run(gloop);\r
-\r
-       retcode = download_get_downloaded_file_path(id, &output);\r
-       if ( retcode != DOWNLOAD_ERROR_NONE )\r
-               dts_message(TC_NAME,"Fail to get content name");\r
-\r
-       download_unset_state_changed_cb(id);\r
-       download_destroy(id);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_NONE)\r
-               dts_pass(TC_NAME, "retcode has no error");\r
-       else\r
-               dts_fail(TC_NAME, "retcode has error");\r
-}\r
-\r
diff --git a/TC/testcase/utc_download_get_error_negative.c b/TC/testcase/utc_download_get_error_negative.c
deleted file mode 100644 (file)
index 90ef410..0000000
+++ /dev/null
@@ -1,89 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_error_negative1(void);
-static void utc_download_get_error_negative2(void);
-static void utc_download_get_error_negative3(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_error_negative1, 1},
-       {utc_download_get_error_negative2, 2},
-       {utc_download_get_error_negative3, 3},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_get_error_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       download_error_e err = DOWNLOAD_ERROR_NONE;
-
-       retcode = download_get_error(-1, &err);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_error_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-       
-       download_create(&id);
-       retcode = download_get_error(id, NULL);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_error_negative3(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_get_error(-1, NULL);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
diff --git a/TC/testcase/utc_download_get_error_positive.c b/TC/testcase/utc_download_get_error_positive.c
deleted file mode 100644 (file)
index 39064d0..0000000
+++ /dev/null
@@ -1,59 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_error_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_error_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_get_error_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       download_error_e err = DOWNLOAD_ERROR_NONE;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_get_error(id, &err);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has no error and temp path exists");
-       else
-               dts_fail(TC_NAME, "retcode has error or temp path does not exists");
-}
-
diff --git a/TC/testcase/utc_download_get_etag_negative.c b/TC/testcase/utc_download_get_etag_negative.c
deleted file mode 100644 (file)
index 510ff32..0000000
+++ /dev/null
@@ -1,74 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_etag_negative1(void);
-static void utc_download_get_etag_negative2(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_etag_negative1, 1},
-       {utc_download_get_etag_negative2, 2},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_get_etag_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *etag = NULL;
-
-       retcode = download_get_etag(-1,&etag);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_etag_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_get_etag(id, NULL);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
diff --git a/TC/testcase/utc_download_get_etag_positive.c b/TC/testcase/utc_download_get_etag_positive.c
deleted file mode 100644 (file)
index 5f70d41..0000000
+++ /dev/null
@@ -1,102 +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 <download.h>
-#include <glib.h>
-#include <glib-object.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_etag_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_etag_positive1, 1},
-       {NULL, 0},
-};
-
-static GMainLoop* gloop = NULL;
-#define TEST_URL "http://download.tizen.org/sdk/InstallManager/tizen-sdk-2.2.1/tizen-sdk-ubuntu32-v2.2.71.bin"
-
-static void state_cb (int download_id, download_state_e state, void *user_data)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       download_error_e err = DOWNLOAD_ERROR_NONE;
-       if (state == DOWNLOAD_STATE_DOWNLOADING)
-               g_main_loop_quit(gloop);
-       retcode = download_get_error(download_id, &err);
-       if (retcode != DOWNLOAD_ERROR_NONE) {
-               dts_fail(TC_NAME, "Fail to get error");
-               g_main_loop_quit(gloop);
-               return;
-       }
-       dts_message(TC_NAME, "err[%d]", err);
-}
-
-static void startup(void)
-{
-       g_type_init();
-       gloop = g_main_loop_new (NULL, 0);
-}
-
-static void cleanup(void)
-{
-       g_main_loop_unref(gloop);
-       gloop = NULL;
-       /* end of TC */
-}
-
-void utc_download_get_etag_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *etag = NULL;
-       int id = 0;
-
-       retcode = download_create(&id);
-       if (retcode != DOWNLOAD_ERROR_NONE)     {
-               dts_fail(TC_NAME,"Fail to create download handle");
-               return;
-       }
-       retcode = download_set_url(id, TEST_URL);
-       if ( retcode != DOWNLOAD_ERROR_NONE ) {
-               dts_fail(TC_NAME,"Fail to set url");
-               return;
-       }
-       retcode = download_set_state_changed_cb(id, state_cb, NULL);
-       if (retcode != DOWNLOAD_ERROR_NONE)
-               dts_fail(TC_NAME, "Fail to set callback");
-
-       retcode = download_start(id);
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               g_main_loop_run(gloop);
-
-       retcode = download_get_etag(id, &etag);
-       download_cancel(id);
-       download_unset_state_changed_cb(id);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has no error");
-       else
-               dts_fail(TC_NAME, "retcode has error");
-}
-
diff --git a/TC/testcase/utc_download_get_file_name_negative.c b/TC/testcase/utc_download_get_file_name_negative.c
deleted file mode 100644 (file)
index cfe4011..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-/*\r
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the License);\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an AS IS BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-#include <tet_api.h>\r
-#include <download.h>\r
-\r
-static void startup(void);\r
-static void cleanup(void);\r
-\r
-void (*tet_startup)(void) = startup;\r
-void (*tet_cleanup)(void) = cleanup;\r
-\r
-static void utc_download_get_file_name_negative1(void);\r
-static void utc_download_get_file_name_negative2(void);\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_download_get_file_name_negative1, 1},\r
-       {utc_download_get_file_name_negative2, 2},\r
-       {NULL, 0},\r
-};\r
-\r
-static void startup(void)\r
-{\r
-\r
-}\r
-\r
-static void cleanup(void)\r
-{\r
-       /* end of TC */\r
-}\r
-\r
-void utc_download_get_file_name_negative1(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       char *file_name = NULL;\r
-\r
-       retcode = download_get_file_name(-1,&file_name);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)\r
-               dts_pass(TC_NAME, "retcode has invalid parameter");\r
-       else\r
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");\r
-}\r
-\r
-void utc_download_get_file_name_negative2(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       int id = 0;\r
-\r
-       download_create(&id);\r
-       retcode = download_get_file_name(id, NULL);\r
-       download_destroy(id);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)\r
-               dts_pass(TC_NAME, "retcode has invalid parameter");\r
-       else\r
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");\r
-}\r
-\r
diff --git a/TC/testcase/utc_download_get_file_name_positive.c b/TC/testcase/utc_download_get_file_name_positive.c
deleted file mode 100644 (file)
index 085872e..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-/*\r
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the License);\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an AS IS BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-#include <tet_api.h>\r
-#include <download.h>\r
-\r
-static void startup(void);\r
-static void cleanup(void);\r
-\r
-void (*tet_startup)(void) = startup;\r
-void (*tet_cleanup)(void) = cleanup;\r
-\r
-static void utc_download_get_file_name_positive1(void);\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_download_get_file_name_positive1, 1},\r
-       {NULL, 0},\r
-};\r
-\r
-static void startup(void)\r
-{\r
-\r
-}\r
-\r
-static void cleanup(void)\r
-{\r
-       /* end of TC */\r
-}\r
-\r
-void utc_download_get_file_name_positive1(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       char *file_name1 = "file";\r
-       char *file_name2 = NULL;\r
-       int id = 0;\r
-\r
-       download_create(&id);\r
-       download_set_file_name(id, file_name1);\r
-       retcode = download_get_file_name(id, &file_name2);\r
-       download_destroy(id);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_NONE &&  !strcmp(file_name1,file_name2))\r
-               dts_pass(TC_NAME, "retcode has no error and file name of set API is same as file name of get API");\r
-       else\r
-               dts_fail(TC_NAME, "retcode has error or file_name of set API and  get API are not same");\r
-}\r
-\r
diff --git a/TC/testcase/utc_download_get_http_header_field_list_negative.c b/TC/testcase/utc_download_get_http_header_field_list_negative.c
deleted file mode 100644 (file)
index ed45176..0000000
+++ /dev/null
@@ -1,101 +0,0 @@
-/*\r
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the License);\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an AS IS BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-#include <tet_api.h>\r
-#include <download.h>\r
-\r
-static void startup(void);\r
-static void cleanup(void);\r
-\r
-void (*tet_startup)(void) = startup;\r
-void (*tet_cleanup)(void) = cleanup;\r
-\r
-static void utc_download_get_http_header_field_list_negative1(void);\r
-static void utc_download_get_http_header_field_list_negative2(void);\r
-static void utc_download_get_http_header_field_list_negative3(void);\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_download_get_http_header_field_list_negative1, 1},\r
-       {utc_download_get_http_header_field_list_negative2, 2},\r
-       {utc_download_get_http_header_field_list_negative3, 3},\r
-       {NULL, 0},\r
-};\r
-\r
-static void startup(void)\r
-{\r
-\r
-}\r
-\r
-static void cleanup(void)\r
-{\r
-       /* end of TC */\r
-}\r
-\r
-void utc_download_get_http_header_field_list_negative1(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       int id = 0;\r
-       int length=0;\r
-       \r
-       download_create(&id);\r
-       download_add_http_header_field(id, "field1","value1");\r
-       retcode = download_get_http_header_field_list(id, NULL, &length);\r
-       download_destroy(id);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)\r
-               dts_pass(TC_NAME, "retcode has invalid parameter");\r
-       else\r
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");\r
-}\r
-\r
-void utc_download_get_http_header_field_list_negative2(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       int id = 0;\r
-       char **fields = NULL;\r
-       \r
-       download_create(&id);\r
-       download_add_http_header_field(id, "field1","value1");\r
-       retcode = download_get_http_header_field_list(id, &fields, NULL);\r
-       download_destroy(id);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)\r
-               dts_pass(TC_NAME, "retcode has invalid parameter");\r
-       else\r
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");\r
-}\r
-\r
-void utc_download_get_http_header_field_list_negative3(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       char **fields = NULL;\r
-       int length = 0;\r
-       int id = 0;\r
-\r
-       download_create(&id);\r
-       download_add_http_header_field(id, "field1","value1");\r
-       retcode = download_get_http_header_field_list(-1, &fields, &length);\r
-       download_destroy(id);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)\r
-               dts_pass(TC_NAME, "retcode has invalid parameter");\r
-       else\r
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");\r
-}\r
-\r
diff --git a/TC/testcase/utc_download_get_http_header_field_list_positive.c b/TC/testcase/utc_download_get_http_header_field_list_positive.c
deleted file mode 100644 (file)
index 763d5c4..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-/*\r
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the License);\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an AS IS BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-#include <tet_api.h>\r
-#include <download.h>\r
-\r
-static void startup(void);\r
-static void cleanup(void);\r
-\r
-void (*tet_startup)(void) = startup;\r
-void (*tet_cleanup)(void) = cleanup;\r
-\r
-static void utc_download_get_http_header_field_list_positive1(void);\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_download_get_http_header_field_list_positive1, 1},\r
-       {NULL, 0},\r
-};\r
-\r
-static void startup(void)\r
-{\r
-\r
-}\r
-\r
-static void cleanup(void)\r
-{\r
-       /* end of TC */\r
-}\r
-\r
-void utc_download_get_http_header_field_list_positive1(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       char **fields = NULL;\r
-       int length = 0;\r
-       int id = 0;\r
-\r
-       download_create(&id);\r
-       download_add_http_header_field(id, "field1","value1");\r
-       download_add_http_header_field(id, "field2","value2");\r
-       retcode =download_get_http_header_field_list(id, &fields,&length);\r
-       download_destroy(id);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_NONE)\r
-               dts_pass(TC_NAME, "retcode has no error");\r
-       else\r
-               dts_fail(TC_NAME, "retcode has error");\r
-}\r
diff --git a/TC/testcase/utc_download_get_http_header_field_negative.c b/TC/testcase/utc_download_get_http_header_field_negative.c
deleted file mode 100644 (file)
index fd39560..0000000
+++ /dev/null
@@ -1,105 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_http_header_field_negative1(void);
-static void utc_download_get_http_header_field_negative2(void);
-static void utc_download_get_http_header_field_negative3(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_http_header_field_negative1, 1},
-       {utc_download_get_http_header_field_negative2, 2},
-       {utc_download_get_http_header_field_negative3, 3},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_get_http_header_field_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *field = "field";
-       char *input = "input";
-       char *output = NULL;
-       int id = 0;
-
-       download_create(&id);
-       download_add_http_header_field(id, field, input);
-       retcode = download_get_http_header_field(id, NULL, &output);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_http_header_field_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *field = "field";
-       char *input = "input";
-       int id = 0;
-
-       download_create(&id);
-       download_add_http_header_field(id, field, input);
-       retcode = download_get_http_header_field(id, field, NULL);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_http_header_field_negative3(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *field = "field";
-       char *input = "input";
-       char *output = NULL;
-       int id = 0;
-
-       download_create(&id);
-       download_add_http_header_field(id, field, input);
-       retcode = download_get_http_header_field(-1, field, &output);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
diff --git a/TC/testcase/utc_download_get_http_header_field_positive.c b/TC/testcase/utc_download_get_http_header_field_positive.c
deleted file mode 100644 (file)
index 1b46816..0000000
+++ /dev/null
@@ -1,62 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_http_header_field_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_http_header_field_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_get_http_header_field_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *field = "field";
-       char *input = "input";
-       char *output = NULL;
-       int id = 0;
-
-       download_create(&id);
-       download_add_http_header_field(id, field, input);
-       retcode = download_get_http_header_field(id, field, &output);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE && !strcmp(input, output))
-               dts_pass(TC_NAME, "retcode has no error and the http header of set API is same to http header of get API ");
-       else
-               dts_fail(TC_NAME, "retcode has error or the http header of set API is not same to http header of get API");
-}
-
diff --git a/TC/testcase/utc_download_get_http_status_negative.c b/TC/testcase/utc_download_get_http_status_negative.c
deleted file mode 100644 (file)
index 4ebb88e..0000000
+++ /dev/null
@@ -1,89 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_http_status_negative1(void);
-static void utc_download_get_http_status_negative2(void);
-static void utc_download_get_http_status_negative3(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_http_status_negative1, 1},
-       {utc_download_get_http_status_negative2, 2},
-       {utc_download_get_http_status_negative3, 3},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_get_http_status_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int status = 0;
-
-       retcode = download_get_http_status(-1, &status);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_http_status_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-       
-       download_create(&id);
-       retcode = download_get_http_status(id, NULL);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_http_status_negative3(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_get_http_status(-1, NULL);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
diff --git a/TC/testcase/utc_download_get_http_status_positive.c b/TC/testcase/utc_download_get_http_status_positive.c
deleted file mode 100644 (file)
index cccde62..0000000
+++ /dev/null
@@ -1,107 +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 <download.h>
-#include <glib.h>
-#include <glib-object.h>
-
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_http_status_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_http_status_positive1, 1},
-       {NULL, 0},
-};
-
-static GMainLoop* gloop = NULL;
-#define TEST_URL "http://static.campaign.naver.com/0/hangeul/2011/img/img_family.gif"
-
-static void state_cb (int download_id, download_state_e state, void *user_data)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       download_error_e err = DOWNLOAD_ERROR_NONE;
-       if (state == DOWNLOAD_STATE_DOWNLOADING)
-               g_main_loop_quit(gloop);
-       
-       retcode = download_get_error(download_id, &err);
-       if (retcode != DOWNLOAD_ERROR_NONE) {
-               dts_fail(TC_NAME, "Fail to get error");
-               g_main_loop_quit(gloop);
-               return;
-       }
-       dts_message(TC_NAME, "err[%d]", err);
-       if (err == DOWNLOAD_ERROR_INVALID_URL)
-               dts_message(TC_NAME, "invaild url err");
-       else
-               dts_message(TC_NAME, "another error[%d]", err);
-}
-
-static void startup(void)
-{
-       g_type_init();
-       gloop = g_main_loop_new (NULL, 0);
-}
-
-static void cleanup(void)
-{
-       g_main_loop_unref(gloop);
-       gloop = NULL;
-}
-
-void utc_download_get_http_status_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int status = 0;
-       int id = 0;
-
-       retcode = download_create(&id);
-       if (retcode != DOWNLOAD_ERROR_NONE)     {
-               dts_fail(TC_NAME,"Fail to create download handle");
-               return;
-       }
-       retcode = download_set_url(id, TEST_URL);
-       if ( retcode != DOWNLOAD_ERROR_NONE ) {
-               dts_fail(TC_NAME,"Fail to set url");
-               return;
-       }
-       retcode = download_set_state_changed_cb(id, state_cb, NULL);
-       if (retcode != DOWNLOAD_ERROR_NONE)
-               dts_fail(TC_NAME, "Fail to set callback");
-
-       retcode = download_start(id);
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               g_main_loop_run(gloop);
-       
-       retcode = download_get_http_status(id, &status);
-
-       download_unset_state_changed_cb(id);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has no error");
-       else
-               dts_fail(TC_NAME, "retcode has error");
-}
-
diff --git a/TC/testcase/utc_download_get_mime_type_negative.c b/TC/testcase/utc_download_get_mime_type_negative.c
deleted file mode 100644 (file)
index 77e3059..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-/*\r
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the License);\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an AS IS BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-#include <tet_api.h>\r
-#include <download.h>\r
-\r
-static void startup(void);\r
-static void cleanup(void);\r
-\r
-void (*tet_startup)(void) = startup;\r
-void (*tet_cleanup)(void) = cleanup;\r
-\r
-static void utc_download_get_mime_type_negative1(void);\r
-static void utc_download_get_mime_type_negative2(void);\r
-static void utc_download_get_mime_type_negative3(void);\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_download_get_mime_type_negative1, 1},\r
-       {utc_download_get_mime_type_negative2, 2},\r
-       {utc_download_get_mime_type_negative3, 3},\r
-       {NULL, 0},\r
-};\r
-\r
-static void startup(void)\r
-{\r
-\r
-}\r
-\r
-static void cleanup(void)\r
-{\r
-       /* end of TC */\r
-}\r
-\r
-void utc_download_get_mime_type_negative1(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       char *output = NULL;\r
-\r
-       retcode = download_get_mime_type(-1, &output);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)\r
-               dts_pass(TC_NAME, "retcode has invalid parameter");\r
-       else\r
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");\r
-}\r
-\r
-void utc_download_get_mime_type_negative2(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       int id = 0;\r
-       \r
-       download_create(&id);\r
-       retcode = download_get_mime_type(id, NULL);\r
-       download_destroy(id);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)\r
-               dts_pass(TC_NAME, "retcode has invalid parameter");\r
-       else\r
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");\r
-}\r
-\r
-void utc_download_get_mime_type_negative3(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-\r
-       retcode = download_get_mime_type(-1, NULL);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)\r
-               dts_pass(TC_NAME, "retcode has invalid parameter");\r
-       else\r
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");\r
-}\r
-\r
diff --git a/TC/testcase/utc_download_get_mime_type_positive.c b/TC/testcase/utc_download_get_mime_type_positive.c
deleted file mode 100644 (file)
index 5cebbfc..0000000
+++ /dev/null
@@ -1,110 +0,0 @@
-/*\r
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the License);\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an AS IS BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-#include <tet_api.h>\r
-#include <download.h>\r
-#include <glib.h>\r
-#include <glib-object.h>\r
-\r
-\r
-static void startup(void);\r
-static void cleanup(void);\r
-\r
-void (*tet_startup)(void) = startup;\r
-void (*tet_cleanup)(void) = cleanup;\r
-\r
-static void utc_download_get_mime_type_positive1(void);\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_download_get_mime_type_positive1, 1},\r
-       {NULL, 0},\r
-};\r
-\r
-static GMainLoop* gloop = NULL;\r
-#define TEST_URL "http://static.campaign.naver.com/0/hangeul/2011/img/img_family.gif"\r
-\r
-static void state_cb (int download_id, download_state_e state, void *user_data)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       download_error_e err = DOWNLOAD_ERROR_NONE;\r
-       if (state == DOWNLOAD_STATE_DOWNLOADING)\r
-               g_main_loop_quit(gloop);\r
-       \r
-       retcode = download_get_error(download_id, &err);\r
-       if (retcode != DOWNLOAD_ERROR_NONE) {\r
-               dts_fail(TC_NAME, "Fail to get error");\r
-               g_main_loop_quit(gloop);\r
-               return;\r
-       }\r
-       dts_message(TC_NAME, "err[%d]", err);\r
-       if (err == DOWNLOAD_ERROR_INVALID_URL)\r
-               dts_message(TC_NAME, "invaild url err");\r
-       else\r
-               dts_message(TC_NAME, "another error[%d]", err);\r
-}\r
-\r
-\r
-static void startup(void)\r
-{\r
-       g_type_init();\r
-       gloop = g_main_loop_new (NULL, 0);\r
-}\r
-\r
-static void cleanup(void)\r
-{\r
-       g_main_loop_unref(gloop);\r
-       gloop = NULL;\r
-}\r
-\r
-void utc_download_get_mime_type_positive1(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       char *output = NULL;\r
-       int id = 0;\r
-\r
-       retcode = download_create(&id);\r
-       if (retcode != DOWNLOAD_ERROR_NONE)     {\r
-               dts_fail(TC_NAME,"Fail to create download handle");\r
-               return;\r
-       }\r
-       retcode = download_set_url(id, TEST_URL);\r
-       if ( retcode != DOWNLOAD_ERROR_NONE ) {\r
-               dts_fail(TC_NAME,"Fail to set url");\r
-               return;\r
-       }\r
-       retcode = download_set_state_changed_cb(id, state_cb, NULL);\r
-       if (retcode != DOWNLOAD_ERROR_NONE)\r
-               dts_fail(TC_NAME, "Fail to set callback");\r
-\r
-       retcode = download_start(id);\r
-       if (retcode == DOWNLOAD_ERROR_NONE)\r
-               g_main_loop_run(gloop);\r
-       \r
-       retcode = download_get_mime_type(id, &output);\r
-       if ( retcode != DOWNLOAD_ERROR_NONE )\r
-               dts_message(TC_NAME,"Fail to get content name");\r
-       \r
-       download_unset_state_changed_cb(id);\r
-       download_destroy(id);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_NONE)\r
-               dts_pass(TC_NAME, "retcode has no error");\r
-       else\r
-               dts_fail(TC_NAME, "retcode has error");\r
-}\r
-\r
diff --git a/TC/testcase/utc_download_get_network_bonding_negative.c b/TC/testcase/utc_download_get_network_bonding_negative.c
deleted file mode 100644 (file)
index 90c0802..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-/*\r
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the License);\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an AS IS BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-#include <tet_api.h>\r
-#include <download.h>\r
-\r
-static void startup(void);\r
-static void cleanup(void);\r
-\r
-void (*tet_startup)(void) = startup;\r
-void (*tet_cleanup)(void) = cleanup;\r
-\r
-static void utc_download_get_network_bonding_negative1(void);\r
-static void utc_download_get_network_bonding_negative2(void);\r
-static void utc_download_get_network_bonding_negative3(void);\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_download_get_network_bonding_negative1, 1},\r
-       {utc_download_get_network_bonding_negative2, 2},\r
-       {utc_download_get_network_bonding_negative3, 3},\r
-       {NULL, 0},\r
-};\r
-\r
-static void startup(void)\r
-{\r
-\r
-}\r
-\r
-static void cleanup(void)\r
-{\r
-       /* end of TC */\r
-}\r
-\r
-void utc_download_get_network_bonding_negative1(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       bool get_enable = false;\r
-\r
-       retcode = download_get_network_bonding(-1, &get_enable);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)\r
-               dts_pass(TC_NAME, "retcode has invalid parameter");\r
-       else\r
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");\r
-}\r
-\r
-void utc_download_get_network_bonding_negative2(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       int id = 0;\r
-       \r
-       download_create(&id);\r
-       retcode = download_get_network_bonding(id, NULL);\r
-       download_destroy(id);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)\r
-               dts_pass(TC_NAME, "retcode has invalid parameter");\r
-       else\r
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");\r
-}\r
-\r
-void utc_download_get_network_bonding_negative3(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-\r
-       retcode = download_get_network_bonding(-1, NULL);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)\r
-               dts_pass(TC_NAME, "retcode has invalid parameter");\r
-       else\r
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");\r
-}\r
-\r
diff --git a/TC/testcase/utc_download_get_network_bonding_positive.c b/TC/testcase/utc_download_get_network_bonding_positive.c
deleted file mode 100644 (file)
index 3084072..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-/*\r
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the License);\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an AS IS BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-#include <tet_api.h>\r
-#include <download.h>\r
-\r
-static void startup(void);\r
-static void cleanup(void);\r
-\r
-void (*tet_startup)(void) = startup;\r
-void (*tet_cleanup)(void) = cleanup;\r
-\r
-static void utc_download_get_network_bonding_positive1(void);\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_download_get_network_bonding_positive1, 1},\r
-       {NULL, 0},\r
-};\r
-\r
-static void startup(void)\r
-{\r
-\r
-}\r
-\r
-static void cleanup(void)\r
-{\r
-       /* end of TC */\r
-}\r
-\r
-void utc_download_get_network_bonding_positive1(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       bool enable = true;\r
-       bool getenable = false;\r
-       int id = 0;\r
-\r
-       download_create(&id);\r
-       download_set_network_bonding(id, enable);\r
-       retcode = download_get_network_bonding(id, &getenable);\r
-       download_destroy(id);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_NONE && (enable == getenable))\r
-               dts_pass(TC_NAME, "retcode has no error and the network bonding status of set API is same as of get API ");\r
-       else\r
-               dts_fail(TC_NAME, "retcode has error or the network bonding status of set API is not same as of get API");\r
-}\r
-\r
diff --git a/TC/testcase/utc_download_get_network_type_negative.c b/TC/testcase/utc_download_get_network_type_negative.c
deleted file mode 100644 (file)
index 97874dc..0000000
+++ /dev/null
@@ -1,74 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_network_type_negative1(void);
-static void utc_download_get_network_type_negative2(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_network_type_negative1, 1},
-       {utc_download_get_network_type_negative2, 2},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_get_network_type_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       download_network_type_e type = DOWNLOAD_NETWORK_DATA_NETWORK;
-
-       retcode = download_get_network_type(-1, &type);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_network_type_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-       
-       download_create(&id);
-       retcode = download_get_network_type(id, NULL);
-       download_destroy(id);
-
-       if (retcode != DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has error");
-       else
-               dts_fail(TC_NAME, "retcode does not have error");
-}
-
diff --git a/TC/testcase/utc_download_get_network_type_positive.c b/TC/testcase/utc_download_get_network_type_positive.c
deleted file mode 100644 (file)
index 517233d..0000000
+++ /dev/null
@@ -1,60 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_network_type_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_network_type_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_get_network_type_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       download_network_type_e output;
-       int id = 0;
-
-       download_create(&id);
-       download_set_network_type(id, DOWNLOAD_NETWORK_DATA_NETWORK);
-       retcode = download_get_network_type(id, &output);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE && (output == DOWNLOAD_NETWORK_DATA_NETWORK))
-               dts_pass(TC_NAME, "retcode has no error and the type of set API is same to type of get API ");
-       else
-               dts_fail(TC_NAME, "retcode has error or the type of set API is not same to type of get API");
-}
-
diff --git a/TC/testcase/utc_download_get_notification_bundle_negative.c b/TC/testcase/utc_download_get_notification_bundle_negative.c
deleted file mode 100644 (file)
index 0524418..0000000
+++ /dev/null
@@ -1,92 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_notification_bundle_negative1(void);
-static void utc_download_get_notification_bundle_negative2(void);
-static void utc_download_get_notification_bundle_negative3(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_notification_bundle_negative1, 1},
-       {utc_download_get_notification_bundle_negative2, 2},
-       {utc_download_get_notification_bundle_negative3, 3},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_get_notification_bundle_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       bundle *b = NULL;
-
-       retcode = download_get_notification_bundle(-1, DOWNLOAD_NOTIFICATION_BUNDLE_TYPE_ONGOING, &b);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_notification_bundle_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-       
-       download_create(&id);
-       retcode = download_get_notification_bundle(id, DOWNLOAD_NOTIFICATION_BUNDLE_TYPE_ONGOING, NULL);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_notification_bundle_negative3(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-       bundle *b = NULL;
-       
-       download_create(&id);
-       retcode = download_get_notification_bundle(id, 4, &b);
-
-       if (retcode != DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has error");
-       else
-               dts_fail(TC_NAME, "retcode does not have error");
-}
-
diff --git a/TC/testcase/utc_download_get_notification_bundle_positive.c b/TC/testcase/utc_download_get_notification_bundle_positive.c
deleted file mode 100644 (file)
index e1b73df..0000000
+++ /dev/null
@@ -1,67 +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 <download.h>
-#include <bundle_internal.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_notification_bundle_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_notification_bundle_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_get_notification_bundle_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *input = "ongoing";
-       char *output = NULL;
-       int id = 0;
-       bundle *b = bundle_create();
-       bundle *b_db = NULL;
-       bundle_add(b, "key", input);
-
-       download_create(&id);
-       download_set_notification_bundle(id, DOWNLOAD_NOTIFICATION_BUNDLE_TYPE_ONGOING, b);
-       retcode = download_get_notification_bundle(id, DOWNLOAD_NOTIFICATION_BUNDLE_TYPE_ONGOING, &b_db);
-       output = bundle_get_val(b_db, "key");
-       download_destroy(id);
-       if (retcode == DOWNLOAD_ERROR_NONE && !strcmp(input, output))
-               dts_pass(TC_NAME, "retcode has no error and the bundle of set API is same to bundle of get API ");
-       else
-               dts_fail(TC_NAME, "retcode has error or the bundle of set API is not same to bundle of get API");
-       bundle_free(b);
-       bundle_free(b_db);
-}
-
diff --git a/TC/testcase/utc_download_get_notification_description_negative.c b/TC/testcase/utc_download_get_notification_description_negative.c
deleted file mode 100644 (file)
index c4f566a..0000000
+++ /dev/null
@@ -1,89 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_notification_description_negative1(void);
-static void utc_download_get_notification_description_negative2(void);
-static void utc_download_get_notification_description_negative3(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_notification_description_negative1, 1},
-       {utc_download_get_notification_description_negative2, 2},
-       {utc_download_get_notification_description_negative3, 3},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_get_notification_description_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *output = NULL;
-
-       retcode = download_get_notification_description(-1, &output);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_notification_description_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-       
-       download_create(&id);
-       retcode = download_get_notification_description(id, NULL);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_notification_description_negative3(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_get_notification_description(-1, NULL);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
diff --git a/TC/testcase/utc_download_get_notification_description_positive.c b/TC/testcase/utc_download_get_notification_description_positive.c
deleted file mode 100644 (file)
index c1f34ba..0000000
+++ /dev/null
@@ -1,61 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_notification_description_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_notification_description_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_get_notification_description_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *input = "description";
-       char *output = NULL;
-       int id = 0;
-
-       download_create(&id);
-       download_set_notification_description(id, input);
-       retcode = download_get_notification_description(id, &output);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE && !strcmp(input, output))
-               dts_pass(TC_NAME, "retcode has no error and the description of set API is same to description of get API ");
-       else
-               dts_fail(TC_NAME, "retcode has error or the description of set API is not same to description of get API");
-}
-
diff --git a/TC/testcase/utc_download_get_notification_title_negative.c b/TC/testcase/utc_download_get_notification_title_negative.c
deleted file mode 100644 (file)
index e5c7a41..0000000
+++ /dev/null
@@ -1,89 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_notification_title_negative1(void);
-static void utc_download_get_notification_title_negative2(void);
-static void utc_download_get_notification_title_negative3(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_notification_title_negative1, 1},
-       {utc_download_get_notification_title_negative2, 2},
-       {utc_download_get_notification_title_negative3, 3},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_get_notification_title_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *output = NULL;
-
-       retcode = download_get_notification_title(-1, &output);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_notification_title_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-       
-       download_create(&id);
-       retcode = download_get_notification_title(id, NULL);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_notification_title_negative3(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_get_notification_title(-1, NULL);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
diff --git a/TC/testcase/utc_download_get_notification_title_positive.c b/TC/testcase/utc_download_get_notification_title_positive.c
deleted file mode 100644 (file)
index 8dd15ce..0000000
+++ /dev/null
@@ -1,61 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_notification_title_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_notification_title_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_get_notification_title_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *input = "title";
-       char *output = NULL;
-       int id = 0;
-
-       download_create(&id);
-       download_set_notification_title(id, input);
-       retcode = download_get_notification_title(id, &output);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE && !strcmp(input, output))
-               dts_pass(TC_NAME, "retcode has no error and the title of set API is same to title of get API ");
-       else
-               dts_fail(TC_NAME, "retcode has error or the title of set API is not same to title of get API");
-}
-
diff --git a/TC/testcase/utc_download_get_notification_type_negative.c b/TC/testcase/utc_download_get_notification_type_negative.c
deleted file mode 100644 (file)
index 470fc0e..0000000
+++ /dev/null
@@ -1,73 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_notification_type_negative1(void);
-static void utc_download_get_notification_type_negative2(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_notification_type_negative1, 1},
-       {utc_download_get_notification_type_negative2, 2},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_get_notification_type_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       download_notification_type_e *type = NULL;
-
-       retcode = download_get_notification_type(-1, &type);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_notification_type_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-       
-       download_create(&id);
-       retcode = download_get_notification_type(id, NULL);
-       download_destroy(id);
-
-       if (retcode != DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has error");
-       else
-               dts_fail(TC_NAME, "retcode does not have error");
-}
diff --git a/TC/testcase/utc_download_get_notification_type_positive.c b/TC/testcase/utc_download_get_notification_type_positive.c
deleted file mode 100644 (file)
index 8522edf..0000000
+++ /dev/null
@@ -1,60 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_notification_type_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_notification_type_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_get_notification_type_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       download_notification_type_e output;
-       int id = 0;
-
-       download_create(&id);
-       download_set_notification_type(id, DOWNLOAD_NOTIFICATION_TYPE_NONE);
-       retcode = download_get_notification_type(id, &output);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE && (output == DOWNLOAD_NOTIFICATION_TYPE_NONE))
-               dts_pass(TC_NAME, "retcode has no error and the type of set API is same to type of get API ");
-       else
-               dts_fail(TC_NAME, "retcode has error or the type of set API is not same to type of get API");
-}
-
diff --git a/TC/testcase/utc_download_get_state_negative.c b/TC/testcase/utc_download_get_state_negative.c
deleted file mode 100644 (file)
index dfbc8f7..0000000
+++ /dev/null
@@ -1,74 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_state_negative1(void);
-static void utc_download_get_state_negative2(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_state_negative1, 1},
-       {utc_download_get_state_negative2, 2},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-static void utc_download_get_state_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       download_state_e state = 0;
-
-       retcode = download_get_state(-1, &state);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-static void utc_download_get_state_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_get_state(id, NULL);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
diff --git a/TC/testcase/utc_download_get_state_positive.c b/TC/testcase/utc_download_get_state_positive.c
deleted file mode 100644 (file)
index d6351d3..0000000
+++ /dev/null
@@ -1,59 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_state_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_state_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-static void utc_download_get_state_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-       download_state_e state = 0;
-
-       download_create(&id);
-       retcode = download_get_state(id, &state);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE && state == DOWNLOAD_STATE_READY)
-               dts_pass(TC_NAME, "retcode has no error and the url of set API is same to url of get API");
-       else
-               dts_fail(TC_NAME, "retcode has error or the url of set API is not same to url of get API");
-}
-
diff --git a/TC/testcase/utc_download_get_temp_path_negative.c b/TC/testcase/utc_download_get_temp_path_negative.c
deleted file mode 100644 (file)
index 7a3eadb..0000000
+++ /dev/null
@@ -1,89 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_temp_path_negative1(void);
-static void utc_download_get_temp_path_negative2(void);
-static void utc_download_get_temp_path_negative3(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_temp_path_negative1, 1},
-       {utc_download_get_temp_path_negative2, 2},
-       {utc_download_get_temp_path_negative3, 3},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_get_temp_path_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *output = NULL;
-
-       retcode = download_get_temp_path(-1, &output);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_temp_path_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-       
-       download_create(&id);
-       retcode = download_get_temp_path(id, NULL);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_temp_path_negative3(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_get_temp_path(-1, NULL);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
diff --git a/TC/testcase/utc_download_get_temp_path_positive.c b/TC/testcase/utc_download_get_temp_path_positive.c
deleted file mode 100644 (file)
index 394975d..0000000
+++ /dev/null
@@ -1,109 +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 <download.h>
-#include <glib.h>
-#include <glib-object.h>
-
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_temp_path_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_temp_path_positive1, 1},
-       {NULL, 0},
-};
-
-static GMainLoop* gloop = NULL;
-#define TEST_URL "http://static.campaign.naver.com/0/hangeul/2011/img/img_family.gif"
-
-static void state_cb (int download_id, download_state_e state, void *user_data)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       download_error_e err = DOWNLOAD_ERROR_NONE;
-       if (state == DOWNLOAD_STATE_DOWNLOADING)
-               g_main_loop_quit(gloop);
-       
-       retcode = download_get_error(download_id, &err);
-       if (retcode != DOWNLOAD_ERROR_NONE) {
-               dts_fail(TC_NAME, "Fail to get error");
-               g_main_loop_quit(gloop);
-               return;
-       }
-       dts_message(TC_NAME, "err[%d]", err);
-       if (err == DOWNLOAD_ERROR_INVALID_URL)
-               dts_message(TC_NAME, "invaild url err");
-       else
-               dts_message(TC_NAME, "another error[%d]", err);
-}
-
-
-static void startup(void)
-{
-       g_type_init();
-       gloop = g_main_loop_new (NULL, 0);
-}
-
-static void cleanup(void)
-{
-       g_main_loop_unref(gloop);
-       gloop = NULL;
-}
-
-
-void utc_download_get_temp_path_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *output = NULL;
-       int id = 0;
-
-       retcode = download_create(&id);
-       if (retcode != DOWNLOAD_ERROR_NONE) {
-               dts_fail(TC_NAME,"Fail to create download handle");
-               return;
-       }
-       retcode = download_set_url(id, TEST_URL);
-       if ( retcode != DOWNLOAD_ERROR_NONE ) {
-               dts_fail(TC_NAME,"Fail to set url");
-               return;
-       }
-       retcode = download_set_state_changed_cb(id, state_cb, NULL);
-       if (retcode != DOWNLOAD_ERROR_NONE)
-               dts_fail(TC_NAME, "Fail to set callback");
-
-       retcode = download_start(id);
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               g_main_loop_run(gloop);
-
-       retcode = download_get_temp_path(id, &output);
-
-       download_unset_state_changed_cb(id);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has no error");
-       else
-               dts_fail(TC_NAME, "retcode has error");
-}
-
diff --git a/TC/testcase/utc_download_get_url_negative.c b/TC/testcase/utc_download_get_url_negative.c
deleted file mode 100644 (file)
index 4f1575a..0000000
+++ /dev/null
@@ -1,91 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_url_negative1(void);
-static void utc_download_get_url_negative2(void);
-static void utc_download_get_url_negative3(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_url_negative1, 1},
-       {utc_download_get_url_negative2, 2},
-       {utc_download_get_url_negative3, 3},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_get_url_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *output = NULL;
-
-       retcode = download_get_url(NULL, &output);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_url_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *input = "URL";
-       int id = 0;
-       
-       download_create(&id);
-       download_set_url(id, input);
-       retcode = download_get_url(id, NULL);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_get_url_negative3(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_get_url(NULL, NULL);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
diff --git a/TC/testcase/utc_download_get_url_positive.c b/TC/testcase/utc_download_get_url_positive.c
deleted file mode 100644 (file)
index d46fffe..0000000
+++ /dev/null
@@ -1,61 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_get_url_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_get_url_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_get_url_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *input = "URL";
-       char *output = NULL;
-       int id = 0;
-
-       download_create(&id);
-       download_set_url(id, input);
-       retcode = download_get_url(id, &output);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE && !strcmp(input, output))
-               dts_pass(TC_NAME, "retcode has no error and the url of set API is same to url of get API ");
-       else
-               dts_fail(TC_NAME, "retcode has error or the url of set API is not same to url of get API");
-}
-
diff --git a/TC/testcase/utc_download_pause_negative.c b/TC/testcase/utc_download_pause_negative.c
deleted file mode 100644 (file)
index 9ce109b..0000000
+++ /dev/null
@@ -1,55 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_pause_negative1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_pause_negative1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-static void utc_download_pause_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_pause(-1);
-
-       if (retcode != DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
diff --git a/TC/testcase/utc_download_pause_positive.c b/TC/testcase/utc_download_pause_positive.c
deleted file mode 100644 (file)
index ce918e3..0000000
+++ /dev/null
@@ -1,131 +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 <download.h>
-#include <glib.h>
-#include <glib-object.h>
-#include <unistd.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_pause_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_pause_positive1, 1},
-       {NULL, 0},
-};
-
-static GMainLoop* gloop = NULL;
-static int is_pause_success = false;
-static int is_started = false;
-
-#define TEST_URL "http://cdn.naver.com/naver/NanumFont/setup/NanumFontSetup_TTF_GOTHIC_hangeulcamp.exe"
-
-static void state_cb (int download_id, download_state_e state, void *user_data)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       download_error_e err = DOWNLOAD_ERROR_NONE;
-       if (state == DOWNLOAD_STATE_COMPLETED)
-               g_main_loop_quit(gloop);
-       else if(state == DOWNLOAD_STATE_PAUSED) {
-               is_pause_success = true;
-               g_main_loop_quit(gloop);
-       } else if(state == DOWNLOAD_STATE_DOWNLOADING)
-               is_started = true;
-       
-       retcode = download_get_error(download_id, &err);
-       if (retcode != DOWNLOAD_ERROR_NONE) {
-               dts_fail(TC_NAME, "Fail to get error");
-               g_main_loop_quit(gloop);
-               return;
-       }
-       dts_message(TC_NAME, "err[%d]", err);
-       if (err == DOWNLOAD_ERROR_INVALID_URL)
-               dts_message(TC_NAME, "invaild url err");
-       else
-               dts_message(TC_NAME, "another error[%d]", err);
-}
-
-static void startup(void)
-{
-       g_type_init();
-       gloop = g_main_loop_new (NULL, 0);
-       is_pause_success = true;
-}
-
-static void cleanup(void)
-{
-       is_pause_success = false;
-       g_main_loop_unref(gloop);
-       gloop = NULL;
-}
-
-static void utc_download_pause_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       
-       retcode = download_create(&id);
-       if (retcode != DOWNLOAD_ERROR_NONE) {
-               dts_fail(TC_NAME,"Fail to create download handle");
-               return;
-       }
-       retcode = download_set_url(id, TEST_URL);
-       if ( retcode != DOWNLOAD_ERROR_NONE ) {
-               dts_fail(TC_NAME,"Fail to set url");
-               return;
-       }
-       retcode = download_set_state_changed_cb(id, state_cb, NULL);
-       if (retcode != DOWNLOAD_ERROR_NONE)
-               dts_fail(TC_NAME, "Fail to set callback");
-
-       retcode = download_start(id);
-       if (retcode != DOWNLOAD_ERROR_NONE) {
-               dts_message(TC_NAME,"Fail to start download");
-               is_started = false;
-       }
-
-       if (is_started) {
-               sleep(1);
-               retcode = download_pause(id);
-               if (retcode == DOWNLOAD_ERROR_NONE)
-                       g_main_loop_run(gloop);
-               else {
-                       dts_message(TC_NAME,"Fail to pause download");
-                       is_pause_success = false;
-               }
-       }
-
-       retcode = download_unset_state_changed_cb(id);
-       if ( retcode != DOWNLOAD_ERROR_NONE )
-               dts_message(TC_NAME,"Fail to unset callback");
-
-       download_destroy(id);
-       
-       if (is_pause_success)
-               dts_pass(TC_NAME, "It is success to pause download content");
-       else
-               dts_fail(TC_NAME, "It is not success to pause download content");
-}
-
diff --git a/TC/testcase/utc_download_remove_http_header_field_negative.c b/TC/testcase/utc_download_remove_http_header_field_negative.c
deleted file mode 100644 (file)
index e85c021..0000000
+++ /dev/null
@@ -1,98 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_remove_http_header_field_negative1(void);
-static void utc_download_remove_http_header_field_negative2(void);
-static void utc_download_remove_http_header_field_negative3(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_remove_http_header_field_negative1, 1},
-       {utc_download_remove_http_header_field_negative2, 2},
-       {utc_download_remove_http_header_field_negative3, 3},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_remove_http_header_field_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *field = "negativefield1";
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_remove_http_header_field(id, field);
-       download_destroy(id);
-       
-       dts_message(TC_NAME, "retcode[%d]",retcode);
-       if (retcode != DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has error about no found field");
-       else
-               dts_fail(TC_NAME, "retcode does not have error about no found field");
-}
-
-void utc_download_remove_http_header_field_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *field = "negativefield2";
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_remove_http_header_field(-1, field);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_remove_http_header_field_negative3(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_remove_http_header_field(id, NULL);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-
diff --git a/TC/testcase/utc_download_remove_http_header_field_positive.c b/TC/testcase/utc_download_remove_http_header_field_positive.c
deleted file mode 100644 (file)
index 8d5cd3e..0000000
+++ /dev/null
@@ -1,61 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_remove_http_header_field_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_remove_http_header_field_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_remove_http_header_field_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       char *field = "field";
-       char *input = "input";
-       int id = 0;
-
-       download_create(&id);
-       download_add_http_header_field(id, field, input);
-       retcode = download_remove_http_header_field(id, field);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has no error");
-       else
-               dts_fail(TC_NAME, "retcode has error");
-}
-
diff --git a/TC/testcase/utc_download_set_auto_download_negative.c b/TC/testcase/utc_download_set_auto_download_negative.c
deleted file mode 100644 (file)
index 8e3358d..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*\r
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the License);\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an AS IS BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-#include <tet_api.h>\r
-#include <download.h>\r
-\r
-static void startup(void);\r
-static void cleanup(void);\r
-\r
-void (*tet_startup)(void) = startup;\r
-void (*tet_cleanup)(void) = cleanup;\r
-\r
-static void utc_download_set_auto_download_negative1(void);\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_download_set_auto_download_negative1, 1},\r
-       {NULL, 0},\r
-};\r
-\r
-static void startup(void)\r
-{\r
-\r
-}\r
-\r
-static void cleanup(void)\r
-{\r
-       /* end of TC */\r
-}\r
-\r
-void utc_download_set_auto_download_negative1(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       bool enable = false;\r
-\r
-       retcode = download_set_auto_download(-1,enable );\r
-\r
-       if (retcode != DOWNLOAD_ERROR_NONE)\r
-               dts_pass(TC_NAME, "retcode has invalid parameter");\r
-       else\r
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");\r
-}\r
-\r
diff --git a/TC/testcase/utc_download_set_auto_download_positive.c b/TC/testcase/utc_download_set_auto_download_positive.c
deleted file mode 100644 (file)
index 7b127c5..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-/*\r
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the License);\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an AS IS BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-#include <tet_api.h>\r
-#include <download.h>\r
-\r
-static void startup(void);\r
-static void cleanup(void);\r
-\r
-void (*tet_startup)(void) = startup;\r
-void (*tet_cleanup)(void) = cleanup;\r
-\r
-static void utc_download_set_auto_download_positive1(void);\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_download_set_auto_download_positive1, 1},\r
-       {NULL, 0},\r
-};\r
-\r
-static void startup(void)\r
-{\r
-\r
-}\r
-\r
-static void cleanup(void)\r
-{\r
-       /* end of TC */\r
-}\r
-\r
-void utc_download_set_auto_download_positive1(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       int id = 0;\r
-       bool enable = true;\r
-\r
-       download_create(&id);\r
-       retcode = download_set_auto_download(id, enable);\r
-       download_destroy(id);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_NONE)\r
-               dts_pass(TC_NAME, "retcode has no error");\r
-       else\r
-               dts_fail(TC_NAME, "retcode has error");\r
-}\r
-\r
diff --git a/TC/testcase/utc_download_set_destination_negative.c b/TC/testcase/utc_download_set_destination_negative.c
deleted file mode 100644 (file)
index 71c9761..0000000
+++ /dev/null
@@ -1,70 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_set_destination_negative1(void);
-static void utc_download_set_destination_negative2(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_set_destination_negative1, 1},
-       {utc_download_set_destination_negative2, 2},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_set_destination_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_set_destination(-1, "destination");
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_set_destination_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_set_destination(-1, NULL);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
diff --git a/TC/testcase/utc_download_set_destination_positive.c b/TC/testcase/utc_download_set_destination_positive.c
deleted file mode 100644 (file)
index d84d47f..0000000
+++ /dev/null
@@ -1,57 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_set_destination_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_set_destination_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_set_destination_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_set_destination(id, "/opt/usr/media/Downloads");
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has no error");
-       else
-               dts_fail(TC_NAME, "retcode has error");
-}
diff --git a/TC/testcase/utc_download_set_file_name_negative.c b/TC/testcase/utc_download_set_file_name_negative.c
deleted file mode 100644 (file)
index bdeaf76..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-/*\r
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the License);\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an AS IS BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-#include <tet_api.h>\r
-#include <download.h>\r
-\r
-static void startup(void);\r
-static void cleanup(void);\r
-\r
-void (*tet_startup)(void) = startup;\r
-void (*tet_cleanup)(void) = cleanup;\r
-\r
-static void utc_download_set_file_name_negative1(void);\r
-static void utc_download_set_file_name_negative2(void);\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_download_set_file_name_negative1, 1},\r
-       {utc_download_set_file_name_negative2, 2},\r
-       {NULL, 0},\r
-};\r
-\r
-static void startup(void)\r
-{\r
-\r
-}\r
-\r
-static void cleanup(void)\r
-{\r
-       /* end of TC */\r
-}\r
-\r
-void utc_download_set_file_name_negative1(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-\r
-       retcode = download_set_file_name(-1, "file1");\r
-\r
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)\r
-               dts_pass(TC_NAME, "retcode has invalid parameter");\r
-       else\r
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");\r
-}\r
-\r
-void utc_download_set_file_name_negative2(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       int id = 0;\r
-\r
-       download_create(&id);\r
-       retcode = download_set_file_name(id, NULL);\r
-       download_destroy(id);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)\r
-               dts_pass(TC_NAME, "retcode has invalid parameter");\r
-       else\r
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");\r
-}\r
-\r
diff --git a/TC/testcase/utc_download_set_file_name_positive.c b/TC/testcase/utc_download_set_file_name_positive.c
deleted file mode 100644 (file)
index 556f5b3..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-/*\r
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the License);\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an AS IS BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-#include <tet_api.h>\r
-#include <download.h>\r
-\r
-static void startup(void);\r
-static void cleanup(void);\r
-\r
-void (*tet_startup)(void) = startup;\r
-void (*tet_cleanup)(void) = cleanup;\r
-\r
-static void utc_download_set_file_name_positive1(void);\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_download_set_file_name_positive1, 1},\r
-       {NULL, 0},\r
-};\r
-\r
-static void startup(void)\r
-{\r
-\r
-}\r
-\r
-static void cleanup(void)\r
-{\r
-       /* end of TC */\r
-}\r
-\r
-void utc_download_set_file_name_positive1(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       int id = 0;\r
-\r
-       download_create(&id);\r
-       retcode = download_set_file_name(id, "file1");\r
-       download_destroy(id);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_NONE)\r
-               dts_pass(TC_NAME, "retcode has no error");\r
-       else\r
-               dts_fail(TC_NAME, "retcode has error");\r
-}\r
-\r
diff --git a/TC/testcase/utc_download_set_network_bonding_negative.c b/TC/testcase/utc_download_set_network_bonding_negative.c
deleted file mode 100644 (file)
index 66cc77d..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*\r
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the License);\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an AS IS BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-#include <tet_api.h>\r
-#include <download.h>\r
-\r
-static void startup(void);\r
-static void cleanup(void);\r
-\r
-void (*tet_startup)(void) = startup;\r
-void (*tet_cleanup)(void) = cleanup;\r
-\r
-static void utc_download_set_network_bonding_negative1(void);\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_download_set_network_bonding_negative1, 1},\r
-       {NULL, 0},\r
-};\r
-\r
-static void startup(void)\r
-{\r
-\r
-}\r
-\r
-static void cleanup(void)\r
-{\r
-       /* end of TC */\r
-}\r
-\r
-void utc_download_set_network_bonding_negative1(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       bool enable = false;\r
-\r
-       retcode = download_set_network_bonding(-1,enable );\r
-\r
-       if (retcode != DOWNLOAD_ERROR_NONE)\r
-               dts_pass(TC_NAME, "retcode has invalid parameter");\r
-       else\r
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");\r
-}\r
-\r
diff --git a/TC/testcase/utc_download_set_network_bonding_positive.c b/TC/testcase/utc_download_set_network_bonding_positive.c
deleted file mode 100644 (file)
index cadbef9..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-/*\r
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the License);\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an AS IS BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-#include <tet_api.h>\r
-#include <download.h>\r
-\r
-static void startup(void);\r
-static void cleanup(void);\r
-\r
-void (*tet_startup)(void) = startup;\r
-void (*tet_cleanup)(void) = cleanup;\r
-\r
-static void utc_download_set_network_bonding_positive1(void);\r
-\r
-struct tet_testlist tet_testlist[] = {\r
-       {utc_download_set_network_bonding_positive1, 1},\r
-       {NULL, 0},\r
-};\r
-\r
-static void startup(void)\r
-{\r
-\r
-}\r
-\r
-static void cleanup(void)\r
-{\r
-       /* end of TC */\r
-}\r
-\r
-void utc_download_set_network_bonding_positive1(void)\r
-{\r
-       const char *TC_NAME = __FUNCTION__;\r
-       int retcode = 0;\r
-       int id = 0;\r
-       bool enable = true;\r
-\r
-       download_create(&id);\r
-       retcode = download_set_network_bonding(id, enable);\r
-       download_destroy(id);\r
-\r
-       if (retcode == DOWNLOAD_ERROR_NONE)\r
-               dts_pass(TC_NAME, "retcode has no error");\r
-       else\r
-               dts_fail(TC_NAME, "retcode has error");\r
-}\r
-\r
diff --git a/TC/testcase/utc_download_set_network_type_negative.c b/TC/testcase/utc_download_set_network_type_negative.c
deleted file mode 100644 (file)
index 677b159..0000000
+++ /dev/null
@@ -1,73 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_set_network_type_negative1(void);
-static void utc_download_set_network_type_negative2(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_set_network_type_negative1, 1},
-       {utc_download_set_network_type_negative2, 2},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_set_network_type_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_set_network_type(-1, DOWNLOAD_NETWORK_DATA_NETWORK);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_set_network_type_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_set_network_type(id, 10);
-       download_destroy(id);
-
-       if (retcode != DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has error");
-       else
-               dts_fail(TC_NAME, "retcode does not have error");
-}
-
diff --git a/TC/testcase/utc_download_set_network_type_positive.c b/TC/testcase/utc_download_set_network_type_positive.c
deleted file mode 100644 (file)
index f0df3f9..0000000
+++ /dev/null
@@ -1,58 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_set_network_type_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_set_network_type_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_set_network_type_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_set_network_type(id, DOWNLOAD_NETWORK_DATA_NETWORK);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has no error");
-       else
-               dts_fail(TC_NAME, "retcode has error");
-}
-
diff --git a/TC/testcase/utc_download_set_notification_bundle_negative.c b/TC/testcase/utc_download_set_notification_bundle_negative.c
deleted file mode 100644 (file)
index e6ce44f..0000000
+++ /dev/null
@@ -1,97 +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 <download.h>
-#include <bundle_internal.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_set_notification_bundle_negative1(void);
-static void utc_download_set_notification_bundle_negative2(void);
-static void utc_download_set_notification_bundle_negative3(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_set_notification_bundle_negative1, 1},
-       {utc_download_set_notification_bundle_negative2, 2},
-       {utc_download_set_notification_bundle_negative3, 3},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_set_notification_bundle_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       bundle *b = bundle_create();
-
-       bundle_add(b, "key", "ongoing");
-       retcode = download_set_notification_bundle(-1, DOWNLOAD_NOTIFICATION_BUNDLE_TYPE_ONGOING, b);
-       bundle_free(b);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_set_notification_bundle_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_set_notification_bundle(id, DOWNLOAD_NOTIFICATION_BUNDLE_TYPE_ONGOING, NULL);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_set_notification_bundle_negative3(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-       bundle *b = bundle_create();
-       bundle_add(b, "key", "ongoing");
-
-       download_create(&id);
-       retcode = download_set_notification_bundle(id, 4, b);
-       download_destroy(id);
-       bundle_free(b);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
diff --git a/TC/testcase/utc_download_set_notification_bundle_positive.c b/TC/testcase/utc_download_set_notification_bundle_positive.c
deleted file mode 100644 (file)
index dc1a303..0000000
+++ /dev/null
@@ -1,62 +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 <download.h>
-#include <bundle_internal.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_set_notification_bundle_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_set_notification_bundle_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_set_notification_bundle_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-       bundle *b = bundle_create();
-       bundle_add(b, "key", "ongoing");
-
-       download_create(&id);
-       retcode = download_set_notification_bundle(id, DOWNLOAD_NOTIFICATION_BUNDLE_TYPE_ONGOING, b);
-       download_destroy(id);
-       bundle_free(b);
-
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has no error");
-       else
-               dts_fail(TC_NAME, "retcode has error");
-}
-
diff --git a/TC/testcase/utc_download_set_notification_description_negative.c b/TC/testcase/utc_download_set_notification_description_negative.c
deleted file mode 100644 (file)
index fdf51df..0000000
+++ /dev/null
@@ -1,90 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_set_notification_description_negative1(void);
-static void utc_download_set_notification_description_negative2(void);
-static void utc_download_set_notification_description_negative3(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_set_notification_description_negative1, 1},
-       {utc_download_set_notification_description_negative2, 2},
-       {utc_download_set_notification_description_negative3, 3},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_set_notification_description_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_set_notification_description(-1, "description");
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_set_notification_description_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_set_notification_description(id, NULL);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_set_notification_description_negative3(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_set_notification_description(id, "");
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
diff --git a/TC/testcase/utc_download_set_notification_description_positive.c b/TC/testcase/utc_download_set_notification_description_positive.c
deleted file mode 100644 (file)
index 890426e..0000000
+++ /dev/null
@@ -1,58 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_set_notification_description_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_set_notification_description_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_set_notification_description_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_set_notification_title(id, "description");
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has no error");
-       else
-               dts_fail(TC_NAME, "retcode has error");
-}
-
diff --git a/TC/testcase/utc_download_set_notification_title_negative.c b/TC/testcase/utc_download_set_notification_title_negative.c
deleted file mode 100644 (file)
index 6f493c7..0000000
+++ /dev/null
@@ -1,90 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_set_notification_title_negative1(void);
-static void utc_download_set_notification_title_negative2(void);
-static void utc_download_set_notification_title_negative3(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_set_notification_title_negative1, 1},
-       {utc_download_set_notification_title_negative2, 2},
-       {utc_download_set_notification_title_negative3, 3},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_set_notification_title_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_set_notification_title(-1, "title");
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_set_notification_title_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_set_notification_title(id, NULL);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_set_notification_title_negative3(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_set_notification_title(id, "");
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
diff --git a/TC/testcase/utc_download_set_notification_title_positive.c b/TC/testcase/utc_download_set_notification_title_positive.c
deleted file mode 100644 (file)
index 8996d9d..0000000
+++ /dev/null
@@ -1,58 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_set_notification_title_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_set_notification_title_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_set_notification_title_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_set_notification_title(id, "title");
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has no error");
-       else
-               dts_fail(TC_NAME, "retcode has error");
-}
-
diff --git a/TC/testcase/utc_download_set_notification_type_negative.c b/TC/testcase/utc_download_set_notification_type_negative.c
deleted file mode 100644 (file)
index 6f57ec2..0000000
+++ /dev/null
@@ -1,72 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_set_notification_type_negative1(void);
-static void utc_download_set_notification_type_negative2(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_set_notification_type_negative1, 1},
-       {utc_download_set_notification_type_negative2, 2},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_set_notification_type_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_set_notification_type(-1, DOWNLOAD_NOTIFICATION_TYPE_NONE);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_set_notification_type_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_set_notification_type(id, 5);
-       download_destroy(id);
-
-       if (retcode != DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has error");
-       else
-               dts_fail(TC_NAME, "retcode does not have error");
-}
diff --git a/TC/testcase/utc_download_set_notification_type_positive.c b/TC/testcase/utc_download_set_notification_type_positive.c
deleted file mode 100644 (file)
index 505aadd..0000000
+++ /dev/null
@@ -1,58 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_set_notification_type_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_set_notification_type_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_set_notification_type_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_set_notification_type(id, DOWNLOAD_NOTIFICATION_TYPE_NONE);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has no error");
-       else
-               dts_fail(TC_NAME, "retcode has error");
-}
-
diff --git a/TC/testcase/utc_download_set_progress_cb_negative.c b/TC/testcase/utc_download_set_progress_cb_negative.c
deleted file mode 100644 (file)
index b6520d1..0000000
+++ /dev/null
@@ -1,60 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_set_progress_cb_negative1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_set_progress_cb_negative1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-static void on_url_download_progess(int id, unsigned long long received, unsigned long long total, void *user_data)
-{
-
-}
-
-static void utc_download_set_progress_cb_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       
-       retcode = download_set_progress_cb(-1, on_url_download_progess, NULL);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
diff --git a/TC/testcase/utc_download_set_progress_cb_positive.c b/TC/testcase/utc_download_set_progress_cb_positive.c
deleted file mode 100644 (file)
index e7f0d9e..0000000
+++ /dev/null
@@ -1,63 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_set_progress_cb_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_set_progress_cb_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-static void on_url_download_progess(int id, unsigned long long received, unsigned long long total, void *user_data)
-{
-
-}
-
-static void utc_download_set_progress_cb_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_set_progress_cb(id, on_url_download_progess, NULL);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has no error");
-       else
-               dts_fail(TC_NAME, "retcode has error");
-}
-
diff --git a/TC/testcase/utc_download_set_state_changed_cb_negative.c b/TC/testcase/utc_download_set_state_changed_cb_negative.c
deleted file mode 100644 (file)
index 070fce8..0000000
+++ /dev/null
@@ -1,60 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_set_state_changed_cb_negative1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_set_state_changed_cb_negative1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-static void on_url_download_state_changed(int download_id, download_state_e state, void *user_data)
-{
-
-}
-
-static void utc_download_set_state_changed_cb_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_set_state_changed_cb(-1, on_url_download_state_changed, NULL);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-
-}
diff --git a/TC/testcase/utc_download_set_state_changed_cb_positive.c b/TC/testcase/utc_download_set_state_changed_cb_positive.c
deleted file mode 100644 (file)
index e05e598..0000000
+++ /dev/null
@@ -1,63 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_set_state_changed_cb_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_set_state_changed_cb_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-static void on_url_download_state_changed(int download_id, download_state_e state, void *user_data)
-{
-
-}
-
-static void utc_download_set_state_changed_cb_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_set_state_changed_cb(id, on_url_download_state_changed, NULL);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has no error");
-       else
-               dts_fail(TC_NAME, "retcode has error");
-}
-
diff --git a/TC/testcase/utc_download_set_temp_file_path_negative.c b/TC/testcase/utc_download_set_temp_file_path_negative.c
deleted file mode 100644 (file)
index 2f1f21a..0000000
+++ /dev/null
@@ -1,70 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_set_temp_file_path_negative1(void);
-static void utc_download_set_temp_file_path_negative2(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_set_temp_file_path_negative1, 1},
-       {utc_download_set_temp_file_path_negative2, 2},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_set_temp_file_path_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_set_temp_file_path(-1, "temp_file");
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_set_temp_file_path_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_set_temp_file_path(-1, NULL);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
diff --git a/TC/testcase/utc_download_set_temp_file_path_positive.c b/TC/testcase/utc_download_set_temp_file_path_positive.c
deleted file mode 100644 (file)
index cf442a7..0000000
+++ /dev/null
@@ -1,58 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_set_temp_file_path_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_set_temp_file_path_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_set_temp_file_path_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_set_temp_file_path(id,
-               "/opt/usr/media/Downloads/.temp_download/abc.txt");
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has no error");
-       else
-               dts_fail(TC_NAME, "retcode has error");
-}
diff --git a/TC/testcase/utc_download_set_url_negative.c b/TC/testcase/utc_download_set_url_negative.c
deleted file mode 100644 (file)
index 0f3e24c..0000000
+++ /dev/null
@@ -1,73 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_set_url_negative1(void);
-static void utc_download_set_url_negative2(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_set_url_negative1, 1},
-       {utc_download_set_url_negative2, 2},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_set_url_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_set_url(-1, "URL");
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
-void utc_download_set_url_negative2(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_set_url(id, NULL);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
diff --git a/TC/testcase/utc_download_set_url_positive.c b/TC/testcase/utc_download_set_url_positive.c
deleted file mode 100644 (file)
index e448e54..0000000
+++ /dev/null
@@ -1,58 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_set_url_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_set_url_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-void utc_download_set_url_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       retcode = download_set_url(id, "URL");
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has no error");
-       else
-               dts_fail(TC_NAME, "retcode has error");
-}
-
diff --git a/TC/testcase/utc_download_start_negative.c b/TC/testcase/utc_download_start_negative.c
deleted file mode 100644 (file)
index a0af182..0000000
+++ /dev/null
@@ -1,107 +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 <download.h>
-#include <glib.h>
-#include <glib-object.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_start_negative1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_start_negative1, 1},
-       {NULL, 0},
-};
-
-static GMainLoop *gloop = NULL;
-static int is_download_failed = 0;
-
-static void startup(void)
-{
-       g_type_init();
-       gloop = g_main_loop_new (NULL, 0);
-       is_download_failed = false;
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-       is_download_failed = false;
-       g_main_loop_quit(gloop);
-       g_main_loop_unref(gloop);
-       gloop = NULL;
-}
-static void state_cb (int download_id, download_state_e state, void *user_data)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       download_error_e err = DOWNLOAD_ERROR_NONE;
-       if (state == DOWNLOAD_STATE_FAILED || state == DOWNLOAD_STATE_CANCELED) {
-               is_download_failed = true;
-               g_main_loop_quit(gloop);
-       }
-       else
-               is_download_failed = false;
-       retcode = download_get_error(download_id, &err);
-       if (retcode != DOWNLOAD_ERROR_NONE) {
-               dts_fail(TC_NAME, "Fail to get error");
-               g_main_loop_quit(gloop);
-               return;
-       }
-       dts_message(TC_NAME, "err[%d]", err);
-       if (err == DOWNLOAD_ERROR_INVALID_URL)
-               dts_message(TC_NAME, "invaild url err");
-       else
-               dts_message(TC_NAME, "another error[%d]", err);
-}
-
-static void utc_download_start_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       retcode = download_create(&id);
-       if (retcode != DOWNLOAD_ERROR_NONE)
-               dts_fail(TC_NAME, "Fail to create download id");
-       retcode = download_set_url(id, "abc.com");
-       if (retcode != DOWNLOAD_ERROR_NONE)
-               dts_fail(TC_NAME, "Fail to set url");
-       retcode = download_set_state_changed_cb(id, state_cb, NULL);
-       if (retcode != DOWNLOAD_ERROR_NONE)
-               dts_fail(TC_NAME, "Fail to set callback");
-
-       retcode = download_start(id);
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               g_main_loop_run(gloop);
-
-       retcode = download_unset_state_changed_cb(id);
-       if ( retcode != DOWNLOAD_ERROR_NONE )
-               dts_message(TC_NAME,"Fail to unset callback");
-       download_destroy(id);
-       
-       if (is_download_failed)
-               dts_pass(TC_NAME, "retcode has invalid url");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid url");
-}
-
diff --git a/TC/testcase/utc_download_start_positive.c b/TC/testcase/utc_download_start_positive.c
deleted file mode 100644 (file)
index ff7ee76..0000000
+++ /dev/null
@@ -1,117 +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 <download.h>
-#include <glib.h>
-#include <glib-object.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_start_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_start_positive1, 1},
-       {NULL, 0},
-};
-
-//static url_download_h handle = NULL;
-static GMainLoop* gloop = NULL;
-static int is_download_success = true;
-
-#define TEST_URL "http://static.campaign.naver.com/0/hangeul/2011/img/img_family.gif"
-//#define TEST_URL "http://cdn.naver.com/naver/NanumFont/setup/NanumFontSetup_TTF_GOTHICLIGHT_hangeulcamp.exe"
-
-static void state_cb (int download_id, download_state_e state, void *user_data)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       download_error_e err = DOWNLOAD_ERROR_NONE;
-       if (state == DOWNLOAD_STATE_COMPLETED || state == DOWNLOAD_STATE_DOWNLOADING) {
-               is_download_success = true;
-               g_main_loop_quit(gloop);
-       } else
-               is_download_success = false;
-       
-       retcode = download_get_error(download_id, &err);
-       if (retcode != DOWNLOAD_ERROR_NONE) {
-               dts_fail(TC_NAME, "Fail to get error");
-               g_main_loop_quit(gloop);
-               return;
-       }
-       dts_message(TC_NAME, "err[%d]", err);
-       if (err == DOWNLOAD_ERROR_INVALID_URL)
-               dts_message(TC_NAME, "invaild url err");
-       else
-               dts_message(TC_NAME, "another error[%d]", err);
-}
-
-static void startup(void)
-{
-       g_type_init();
-       gloop = g_main_loop_new (NULL, 0);
-       is_download_success = true;
-}
-
-static void cleanup(void)
-{
-       is_download_success = false;
-       g_main_loop_unref(gloop);
-       gloop = NULL;
-}
-
-static void utc_download_start_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       retcode = download_create(&id);
-       if (retcode != DOWNLOAD_ERROR_NONE)     {
-               dts_fail(TC_NAME,"Fail to create download handle");
-               return;
-       }
-       retcode = download_set_url(id, TEST_URL);
-       if ( retcode != DOWNLOAD_ERROR_NONE ) {
-               dts_fail(TC_NAME,"Fail to set url");
-               return;
-       }
-       retcode = download_set_state_changed_cb(id, state_cb, NULL);
-       if (retcode != DOWNLOAD_ERROR_NONE)
-               dts_fail(TC_NAME, "Fail to set callback");
-
-       retcode = download_start(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               g_main_loop_run(gloop);
-       else
-               is_download_success = false;
-
-       retcode = download_unset_state_changed_cb(id);
-       if ( retcode != DOWNLOAD_ERROR_NONE )
-               dts_message(TC_NAME,"Fail to unset callback");
-       download_destroy(id);
-
-       if (is_download_success)
-               dts_pass(TC_NAME, "download content is success");
-       else
-               dts_fail(TC_NAME, "download content is not success");
-}
-
diff --git a/TC/testcase/utc_download_unset_progress_cb_negative.c b/TC/testcase/utc_download_unset_progress_cb_negative.c
deleted file mode 100644 (file)
index 6cf7c00..0000000
+++ /dev/null
@@ -1,55 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_unset_progress_cb_negative1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_unset_progress_cb_negative1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-static void utc_download_unset_progress_cb_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_unset_progress_cb(-1);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-}
-
diff --git a/TC/testcase/utc_download_unset_progress_cb_positive.c b/TC/testcase/utc_download_unset_progress_cb_positive.c
deleted file mode 100644 (file)
index 4b4e0f5..0000000
+++ /dev/null
@@ -1,64 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_download_unset_progress_cb_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_download_unset_progress_cb_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-static void on_url_download_progess(int id, unsigned long long received, unsigned long long total, void *user_data)
-{
-
-}
-
-static void utc_download_unset_progress_cb_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       download_set_progress_cb(id, on_url_download_progess, NULL);
-       retcode = download_unset_progress_cb(id);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has no error");
-       else
-               dts_fail(TC_NAME, "retcode has error");
-}
-
diff --git a/TC/testcase/utc_download_unset_state_changed_cb_negative.c b/TC/testcase/utc_download_unset_state_changed_cb_negative.c
deleted file mode 100644 (file)
index 7d82c65..0000000
+++ /dev/null
@@ -1,56 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_url_download_unset_state_changed_cb_negative1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_url_download_unset_state_changed_cb_negative1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-static void utc_url_download_unset_state_changed_cb_negative1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-
-       retcode = download_unset_state_changed_cb(-1);
-
-       if (retcode == DOWNLOAD_ERROR_INVALID_PARAMETER)
-               dts_pass(TC_NAME, "retcode has invalid parameter");
-       else
-               dts_fail(TC_NAME, "retcode does not have invalid parameter");
-
-}
-
diff --git a/TC/testcase/utc_download_unset_state_changed_cb_positive.c b/TC/testcase/utc_download_unset_state_changed_cb_positive.c
deleted file mode 100644 (file)
index be578dd..0000000
+++ /dev/null
@@ -1,64 +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 <download.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_url_download_unset_state_changed_cb_positive1(void);
-
-struct tet_testlist tet_testlist[] = {
-       {utc_url_download_unset_state_changed_cb_positive1, 1},
-       {NULL, 0},
-};
-
-static void startup(void)
-{
-
-}
-
-static void cleanup(void)
-{
-       /* end of TC */
-}
-
-static void on_url_download_state_changed(int download_id, download_state_e state, void *user_data)
-{
-
-}
-
-static void utc_url_download_unset_state_changed_cb_positive1(void)
-{
-       const char *TC_NAME = __FUNCTION__;
-       int retcode = 0;
-       int id = 0;
-
-       download_create(&id);
-       download_set_state_changed_cb(id, on_url_download_state_changed, NULL);
-       retcode = download_unset_state_changed_cb(id);
-       download_destroy(id);
-
-       if (retcode == DOWNLOAD_ERROR_NONE)
-               dts_pass(TC_NAME, "retcode has no error");
-       else
-               dts_fail(TC_NAME, "retcode has error");
-}
-
diff --git a/TC/tet_scen b/TC/tet_scen
deleted file mode 100644 (file)
index 03f029a..0000000
+++ /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 (file)
index f7eda55..0000000
+++ /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 (file)
index 02d7030..0000000
+++ /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 (file)
index ef3e452..0000000
+++ /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 ?
index 72da584..be25e2b 100755 (executable)
@@ -59,5 +59,4 @@ mkdir -p %{buildroot}/usr/share/license
 %{_includedir}/web/download.h
 %{_includedir}/web/download_product.h
 %{_includedir}/web/download_doc.h
-/usr/bin/url-download-tc
 
diff --git a/testcase/CMakeLists.txt b/testcase/CMakeLists.txt
deleted file mode 100644 (file)
index 30bb6df..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
-
-## PROJECT NAME
-PROJECT(url-download-tc C)
-
-## INCLUDES
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../include)
-
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
-SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0 -Wall")
-
-ADD_EXECUTABLE(${PROJECT_NAME}
-       ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.c )
-TARGET_LINK_LIBRARIES(${PROJECT_NAME} capi-web-url-download)
-INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin)
-
diff --git a/testcase/url-download-tc.c b/testcase/url-download-tc.c
deleted file mode 100644 (file)
index ee9ff81..0000000
+++ /dev/null
@@ -1,463 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <errno.h>
-#include <unistd.h>
-#include <sys/stat.h>
-#include <string.h>
-#include <time.h>
-
-#include <download.h>
-#include <app_control.h>
-
-#define TRACE_DEBUG_MSG(format, ARG...)  \
-{ \
-printf("[url-download][%s:%d] "format"\n", __FUNCTION__, __LINE__, ##ARG); \
-}
-
-#define TRACE_ERROR_MSG(format, ARG...)  \
-{ \
-printf("[url-download][ERROR][%s:%d] "format"\n", __FUNCTION__, __LINE__, ##ARG); \
-}
-
-static char *g_tc_storage = "/opt/usr/media/.url-download-tc";
-
-static char *__print_state(int state)
-{
-       switch (state) {
-       case DOWNLOAD_STATE_READY:
-               return "READY";
-       case DOWNLOAD_STATE_QUEUED:
-               return "QUEUED";
-       case DOWNLOAD_STATE_DOWNLOADING:
-               return "DOWNLOADING";
-       case DOWNLOAD_STATE_PAUSED:
-               return "PAUSED";
-       case DOWNLOAD_STATE_COMPLETED:
-               return "COMPLETED";
-       case DOWNLOAD_STATE_FAILED:
-               return "FAILED";
-       case DOWNLOAD_STATE_CANCELED:
-               return "CANCELED";
-       default:
-               break;
-       }
-       return "UNKNOWN";
-}
-
-static char *__print_errorcode(int errorcode)
-{
-       switch (errorcode) {
-       case DOWNLOAD_ERROR_NONE:
-               return "NONE";
-       case DOWNLOAD_ERROR_INVALID_PARAMETER:
-               return "INVALID_PARAMETER";
-       case DOWNLOAD_ERROR_OUT_OF_MEMORY:
-               return "OUT_OF_MEMORY";
-       case DOWNLOAD_ERROR_IO_ERROR:
-               return "IO_ERROR";
-       case DOWNLOAD_ERROR_NETWORK_UNREACHABLE:
-               return "NETWORK_UNREACHABLE";
-       case DOWNLOAD_ERROR_NO_SPACE:
-               return "NO_SPACE";
-       case DOWNLOAD_ERROR_FIELD_NOT_FOUND:
-               return "FIELD_NOT_FOUND";
-       case DOWNLOAD_ERROR_INVALID_STATE:
-               return "INVALID_STATE";
-       case DOWNLOAD_ERROR_CONNECTION_TIMED_OUT:
-               return "CONNECTION_TIMED_OUT";
-       case DOWNLOAD_ERROR_INVALID_URL:
-               return "INVALID_URL";
-       case DOWNLOAD_ERROR_INVALID_DESTINATION:
-               return "INVALID_DESTINATION";
-       case DOWNLOAD_ERROR_PERMISSION_DENIED:
-               return "PERMISSION_DENIED";
-       case DOWNLOAD_ERROR_QUEUE_FULL:
-               return "QUEUE_FULL";
-       case DOWNLOAD_ERROR_ALREADY_COMPLETED:
-               return "ALREADY_COMPLETED";
-       case DOWNLOAD_ERROR_FILE_ALREADY_EXISTS:
-               return "FILE_ALREADY_EXISTS";
-       case DOWNLOAD_ERROR_TOO_MANY_DOWNLOADS:
-               return "TOO_MANY_DOWNLOADS";
-       case DOWNLOAD_ERROR_NO_DATA:
-               return "NO_DATA";
-       case DOWNLOAD_ERROR_UNHANDLED_HTTP_CODE:
-               return "UNHANDLED_HTTP_CODE";
-       case DOWNLOAD_ERROR_CANNOT_RESUME:
-               return "CANNOT_RESUME";
-       case DOWNLOAD_ERROR_ID_NOT_FOUND:
-               return "ID_NOT_FOUND";
-       default:
-               break;
-       }
-       return "UNKOWN";
-}
-
-static void __download_get_content_name(int download_id)
-{
-       char *str = NULL;
-       download_error_e errorcode = DOWNLOAD_ERROR_NONE;
-       errorcode = download_get_content_name(download_id, &str);
-       if (errorcode != DOWNLOAD_ERROR_NONE) {
-               TRACE_ERROR_MSG("download:%d content_name error:%s",download_id, __print_errorcode(errorcode));
-       } else {
-               TRACE_DEBUG_MSG("download:%d content_name (%s)", download_id, str);
-       }
-       free(str);
-}
-
-static void __download_get_mime_type(int download_id)
-{
-       char *str = NULL;
-       download_error_e errorcode = DOWNLOAD_ERROR_NONE;
-       errorcode = download_get_mime_type(download_id, &str);
-       if (errorcode != DOWNLOAD_ERROR_NONE) {
-               TRACE_ERROR_MSG("download:%d mime_type error:%s",download_id, __print_errorcode(errorcode));
-       } else {
-               TRACE_DEBUG_MSG("download:%d mime_type (%s)", download_id, str);
-       }
-       free(str);
-}
-
-static void __download_get_file_name(int download_id)
-{
-       char *str = NULL;
-       download_error_e errorcode = DOWNLOAD_ERROR_NONE;
-       errorcode = download_get_file_name(download_id, &str);
-       if (errorcode != DOWNLOAD_ERROR_NONE) {
-               TRACE_ERROR_MSG("download:%d file_name error:%s",download_id, __print_errorcode(errorcode));
-       } else {
-               TRACE_DEBUG_MSG("download:%d file_name (%s)", download_id, str);
-       }
-       free(str);
-}
-
-static void __download_get_temp_path(int download_id)
-{
-       char *str = NULL;
-       download_error_e errorcode = DOWNLOAD_ERROR_NONE;
-       errorcode = download_get_temp_path(download_id, &str);
-       if (errorcode != DOWNLOAD_ERROR_NONE) {
-               download_get_error(download_id, &errorcode);
-               TRACE_ERROR_MSG("download:%d temp_path error:%s",download_id, __print_errorcode(errorcode));
-       } else {
-               TRACE_DEBUG_MSG("download:%d temp_path (%s)", download_id, str);
-       }
-       free(str);
-}
-
-static void __download_get_destination(int download_id)
-{
-       char *str = NULL;
-       download_error_e errorcode = DOWNLOAD_ERROR_NONE;
-       errorcode = download_get_destination(download_id, &str);
-       if (errorcode != DOWNLOAD_ERROR_NONE) {
-               TRACE_ERROR_MSG("download:%d destination error:%s",download_id, __print_errorcode(errorcode));
-       } else {
-               TRACE_DEBUG_MSG("download:%d destination (%s)", download_id, str);
-       }
-       free(str);
-}
-
-static void __download_get_content_size(int download_id)
-{
-       unsigned long long content_size = 0;
-       download_error_e errorcode = DOWNLOAD_ERROR_NONE;
-       errorcode = download_get_content_size(download_id, &content_size);
-       if (errorcode != DOWNLOAD_ERROR_NONE) {
-               TRACE_ERROR_MSG("download:%d content_size error:%s",download_id, __print_errorcode(errorcode));
-       } else {
-               TRACE_DEBUG_MSG("download:%d content_size (%lld)", download_id, content_size);
-       }
-}
-
-static download_state_e __download_get_state(int download_id)
-{
-       download_state_e state = DOWNLOAD_STATE_NONE;
-       download_error_e errorcode = DOWNLOAD_ERROR_NONE;
-       errorcode = download_get_state(download_id, &state);
-       if (errorcode != DOWNLOAD_ERROR_NONE) {
-               TRACE_ERROR_MSG("download:%d state error:%s",download_id, __print_errorcode(errorcode));
-       } else {
-               TRACE_DEBUG_MSG("download:%d state(%s:%d)", download_id, __print_state(state), state);
-       }
-       return state;
-}
-
-static void __download_manager_progress_cb (int download_id, unsigned long long received, void *user_data)
-{
-       // ignore log. too many
-       //TRACE_DEBUG_MSG("download:%d progress(%lld)", download_id, received);
-}
-
-static void __download_manager_state_changed_cb (int download_id, download_state_e state, void *user_data)
-{
-       TRACE_DEBUG_MSG("download:%d state(%s:%d)", download_id, __print_state(state), state);
-       __download_get_state(download_id);
-       if (state == DOWNLOAD_STATE_FAILED) {
-               download_error_e errorcode = DOWNLOAD_ERROR_NONE;
-               download_get_error(download_id, &errorcode);
-               TRACE_DEBUG_MSG("download:%d check error:%s", download_id, __print_errorcode(errorcode));
-       }
-       if (state == DOWNLOAD_STATE_DOWNLOADING) {
-               __download_get_content_name(download_id);
-               __download_get_mime_type(download_id);
-               __download_get_content_size(download_id);
-       }
-       if (state == DOWNLOAD_STATE_PAUSED) {
-       }
-       if (state == DOWNLOAD_STATE_COMPLETED) {
-               __download_get_content_name(download_id);
-               __download_get_mime_type(download_id);
-               __download_get_temp_path(download_id);
-               __download_get_file_name(download_id);
-               __download_get_destination(download_id);
-               __download_get_content_size(download_id);
-       }
-       if (state == DOWNLOAD_STATE_FAILED || state == DOWNLOAD_STATE_COMPLETED || state == DOWNLOAD_STATE_CANCELED)
-       {
-               download_destroy(download_id);
-               TRACE_DEBUG_MSG("download:%d is finished", download_id);
-       }
-}
-
-static int __download_start(char *url, int force)
-{
-       int download_id = 0;
-       download_error_e errorcode = DOWNLOAD_ERROR_NONE;
-
-       errorcode = download_create(&download_id);
-       if (errorcode != DOWNLOAD_ERROR_NONE) {
-               TRACE_ERROR_MSG("download:%d create error:%s", download_id, __print_errorcode(errorcode));
-       } else {
-               errorcode = download_set_state_changed_cb(download_id, __download_manager_state_changed_cb, NULL);
-               if (errorcode != DOWNLOAD_ERROR_NONE) {
-                       TRACE_ERROR_MSG("download:%d set_state_changed_cb error:%s", download_id, __print_errorcode(errorcode));
-               }
-               errorcode = download_set_progress_cb(download_id, __download_manager_progress_cb, NULL);
-               if (errorcode != DOWNLOAD_ERROR_NONE) {
-                       TRACE_ERROR_MSG("download:%d set_progress_cb error:%s", download_id, __print_errorcode(errorcode));
-               }
-               errorcode = download_set_destination(download_id, g_tc_storage);
-               if (errorcode != DOWNLOAD_ERROR_NONE) {
-                       TRACE_ERROR_MSG("download:%d set_destination error:%s", download_id, __print_errorcode(errorcode));
-               }
-               errorcode = download_set_url(download_id, url);
-               if (errorcode != DOWNLOAD_ERROR_NONE) {
-                       TRACE_ERROR_MSG("download:%d set_url error:%s", download_id, __print_errorcode(errorcode));
-               }
-               if (force > 0) {
-                       errorcode = download_set_auto_download(download_id, 1);
-                       if (errorcode != DOWNLOAD_ERROR_NONE) {
-                               TRACE_ERROR_MSG("download:%d set_auto error:%s", download_id, __print_errorcode(errorcode));
-                       }
-               }
-               errorcode = download_set_notification_type(download_id, DOWNLOAD_NOTIFICATION_TYPE_ALL);
-               if (errorcode != DOWNLOAD_ERROR_NONE) {
-                       TRACE_ERROR_MSG("download:%d et_notification error:%s", download_id, __print_errorcode(errorcode));
-               }
-               errorcode = download_start(download_id);
-               if (errorcode != DOWNLOAD_ERROR_NONE) {
-                       TRACE_ERROR_MSG("download:%d start error:%s", download_id, __print_errorcode(errorcode));
-               }
-       }
-       return download_id;
-}
-
-
-int main(int argc, char** argv)
-{
-       download_error_e errorcode = DOWNLOAD_ERROR_NONE;
-       download_state_e state = DOWNLOAD_STATE_NONE;
-       int download_id_state = 0;
-       int download_id_api = 0;
-
-       TRACE_DEBUG_MSG("url-download-tc : start");
-
-       // video content, sometimes network error
-       __download_start("http://wap2.samsungmobile.com/weblogic/TestContentsDownload/avi__MP4_352x288_30fps_araw_2ch_44khz.avi/video_avi/MP4_352x288_30fps_araw_2ch_44khz.avi", 0);
-       // big binary 1.7G from tizen.org
-       download_id_api = __download_start("http://download.tizen.org/sdk/sdk-images/2.2/tizen-sdk-image-2.2.0-windows32.zip", 1);
-       // big tar file 1.2G from webkit.org
-       download_id_state = __download_start("http://nightly.webkit.org/files/WebKit-SVN-source.tar.bz2", 1);
-
-       //stop
-       errorcode = download_cancel(download_id_state);
-       if (errorcode != DOWNLOAD_ERROR_NONE) {
-               TRACE_ERROR_MSG("download:%d stop error:%s", download_id_state, __print_errorcode(errorcode));
-       } else {
-               // start again
-               errorcode = download_start(download_id_state);
-               if (errorcode != DOWNLOAD_ERROR_NONE) {
-                       TRACE_ERROR_MSG("download:%d start error:%s", download_id_state, __print_errorcode(errorcode));
-               } else {
-                       // pause
-                       errorcode = download_pause(download_id_state);
-                       if (errorcode != DOWNLOAD_ERROR_NONE) {
-                               TRACE_ERROR_MSG("download:%d pause error:%s", download_id_state, __print_errorcode(errorcode));
-                       } else {
-                               // resume
-                               errorcode = download_start(download_id_state);
-                               if (errorcode != DOWNLOAD_ERROR_NONE) {
-                                       TRACE_ERROR_MSG("download:%d resume error:%s", download_id_state, __print_errorcode(errorcode));
-                               }
-                       }
-               }
-       }
-
-
-       // API test.
-       errorcode = download_set_notification_type(download_id_api, DOWNLOAD_NOTIFICATION_TYPE_ALL);
-       if (errorcode != DOWNLOAD_ERROR_NONE) {
-               TRACE_ERROR_MSG("download:%d stop error:%s", download_id_api, __print_errorcode(errorcode));
-       }
-       const char *notivalues[3] = {"test1","test2","test3"};
-       app_control_h h;
-       if (app_control_create(&h) != APP_CONTROL_ERROR_NONE) {
-               TRACE_ERROR_MSG("download:%d fail to create app control handle", download_id_api);
-       }
-       if (app_control_add_extra_data(h, "__APP_SVC_PKG_NAME__", "com.samsung.test-app") < 0) {
-               TRACE_ERROR_MSG("download:%d fail to set test pkg name", download_id_api);
-       }
-       if (app_control_add_extra_data_array(h,(const char *)"test-notification-extra-param", notivalues, 3) < 0) {
-               TRACE_ERROR_MSG("download:%d fail to add data to app control handle", download_id_api);
-       }
-       errorcode = download_set_notification_app_control(download_id_api, DOWNLOAD_NOTIFICATION_APP_CONTROL_TYPE_ONGOING, h);
-       errorcode = download_set_notification_app_control(download_id_api, DOWNLOAD_NOTIFICATION_APP_CONTROL_TYPE_FAILED, h);
-       if (h != NULL)
-               app_control_destroy(h);
-       h = NULL;
-       if (errorcode != DOWNLOAD_ERROR_NONE) {
-               TRACE_ERROR_MSG("download:%d set_notification_app_control error:%s", download_id_api, __print_errorcode(errorcode));
-               download_set_notification_title(download_id_api, "test subject");
-               download_set_notification_description(download_id_api, "test description");
-       } else {
-               char **noti_value = NULL;
-               int values_count = 0;
-               errorcode = download_get_notification_app_control(download_id_api, DOWNLOAD_NOTIFICATION_APP_CONTROL_TYPE_ONGOING, &h);
-               if (errorcode != DOWNLOAD_ERROR_NONE) {
-                       TRACE_ERROR_MSG("download:%d get_notification_app_control error:%s", download_id_api, __print_errorcode(errorcode));
-               } else {
-                       app_control_get_extra_data_array(h, "test-notification-extra-param", &noti_value, &values_count);
-                       if (!noti_value) {
-                               TRACE_ERROR_MSG("download:%d fail to get data to app_control", download_id_api);
-                       } else {
-                               int i = 0;
-                               for (; i < values_count; i++) {
-                                       TRACE_DEBUG_MSG("noti_value[%d] : %s", i, noti_value[i]);
-                                       free(noti_value[i]);
-                               }
-                       }
-               }
-               app_control_destroy(h);
-               noti_value = NULL;
-       }
-       state = __download_get_state(download_id_api);
-       download_error_e download_errorcode = DOWNLOAD_ERROR_NONE;
-       errorcode = download_get_error(download_id_api, &download_errorcode);
-       if (errorcode != DOWNLOAD_ERROR_NONE) {
-               TRACE_ERROR_MSG("download:%d check error:%s", download_id_api, __print_errorcode(errorcode));
-       } else {
-               TRACE_DEBUG_MSG("download:%d check error:%s", download_id_api, __print_errorcode(download_errorcode));
-       }
-       errorcode = download_add_http_header_field(download_id_api, "test-header-field1", "test-header-data1");
-       if (errorcode != DOWNLOAD_ERROR_NONE) {
-               TRACE_ERROR_MSG("download:%d add_http_header_field error:%s", download_id_api, __print_errorcode(errorcode));
-       }
-       errorcode = download_add_http_header_field(download_id_api, "test-header-field3", "test-header-data3");
-       if (errorcode != DOWNLOAD_ERROR_NONE) {
-               TRACE_ERROR_MSG("download:%d add_http_header_field error:%s", download_id_api, __print_errorcode(errorcode));
-       }
-       errorcode = download_add_http_header_field(download_id_api, "test-header-field4", "test-header-data4");
-       if (errorcode != DOWNLOAD_ERROR_NONE) {
-               TRACE_ERROR_MSG("download:%d add_http_header_field error:%s", download_id_api, __print_errorcode(errorcode));
-       }
-       errorcode = download_add_http_header_field(download_id_api, "test-header-field2", "test-header-data2");
-       if (errorcode != DOWNLOAD_ERROR_NONE) {
-               TRACE_ERROR_MSG("download:%d add_http_header_field error:%s", download_id_api, __print_errorcode(errorcode));
-       } else {
-               char *header_value = NULL;
-               errorcode = download_get_http_header_field(download_id_api, "test-header-field2", &header_value);
-               if (errorcode != DOWNLOAD_ERROR_NONE) {
-                       TRACE_ERROR_MSG("download:%d get_http_header_field error:%s", download_id_api, __print_errorcode(errorcode));
-               } else {
-                       if (header_value == NULL)
-                               TRACE_ERROR_MSG("download:%d get_http_header_field value null", download_id_api);
-                       if (header_value != NULL && strncmp(header_value, "test-header-data2", strlen(header_value)) != 0) {
-                               TRACE_ERROR_MSG("download:%d get_http_header_field return wrong value", download_id_api);
-                       }
-               }
-               free(header_value);
-               header_value = NULL;
-               errorcode = download_remove_http_header_field(download_id_api, "test-header-field2");
-               if (errorcode != DOWNLOAD_ERROR_NONE) {
-                       TRACE_ERROR_MSG("download:%d remove_http_header_field error:%s", download_id_api, __print_errorcode(errorcode));
-               } else {
-                       // after removing , get_http_header_field must be failed. expected errorcode : DOWNLOAD_ERROR_NO_DATA
-                       errorcode = download_get_http_header_field(download_id_api, "test-header-field2", &header_value);
-                       if (errorcode != DOWNLOAD_ERROR_NONE) {
-                               TRACE_DEBUG_MSG("download:%d get_http_header_field error:%s", download_id_api, __print_errorcode(errorcode));
-                               if (errorcode != DOWNLOAD_ERROR_NO_DATA)
-                                       TRACE_DEBUG_MSG("download:%d get_http_header_field error:%s", download_id_api, __print_errorcode(errorcode));
-                       } else {
-                               TRACE_ERROR_MSG("download:%d get_http_header_field after deleting return value:%s", download_id_api, header_value);
-                       }
-               }
-       }
-
-       char **fields = NULL;
-       int length = 0;
-       errorcode = download_get_http_header_field_list(download_id_api, &fields, &length);
-       if (errorcode != DOWNLOAD_ERROR_NONE) {
-               TRACE_ERROR_MSG("download:%d get_http_header_field_list error:%s", download_id_api, __print_errorcode(errorcode));
-       } else {
-               if (fields == NULL) {
-                       TRACE_ERROR_MSG("download:%d get_http_header_field_list array null, length:%d", download_id_api, length);
-               } else {
-                       int i = 0;
-                       for (; i < length; i++) {
-                               TRACE_DEBUG_MSG("download:%d get_http_header_field_list %d:%s, length:%d", download_id_api, i, fields[i], length);
-                               free(fields[i]);
-                       }
-                       free(fields);
-               }
-       }
-
-       state = __download_get_state(download_id_api);
-       if (state == DOWNLOAD_STATE_DOWNLOADING) {
-               // in downloading, set_url api must be failed. expected errorcode : DOWNLOAD_ERROR_INVALID_STATE
-               errorcode = download_set_url(download_id_api, "http://test.com");
-               if (errorcode != DOWNLOAD_ERROR_NONE) {
-                       TRACE_DEBUG_MSG("download:%d set_url error:%s", download_id_api, __print_errorcode(errorcode));
-                       if (errorcode != DOWNLOAD_ERROR_INVALID_STATE)
-                               TRACE_ERROR_MSG("download:%d set_url error:%s", download_id_api, __print_errorcode(errorcode));
-               } else {
-                       TRACE_ERROR_MSG("download:%d set_url in doownloading wrong action", download_id_api);
-               }
-       }
-
-       // 3.8M from tizen.org
-       int download_id = __download_start("http://download.tizen.org/sdk/InstallManager/tizen-sdk-2.2/tizen-sdk-ubuntu32-v2.2.32.bin", 1);
-       struct timespec ts;
-       ts.tv_sec = 0;
-       ts.tv_nsec = 100000;
-       do {
-               nanosleep(&ts, NULL);
-               errorcode = download_get_state(download_id, &state);
-               if (errorcode != DOWNLOAD_ERROR_NONE) {
-                       TRACE_ERROR_MSG("download:%d state error:%s",download_id, __print_errorcode(errorcode));
-                       break;
-               }
-               if (state == DOWNLOAD_STATE_QUEUED || state == DOWNLOAD_STATE_DOWNLOADING) {
-                       sleep(1);
-               }
-       } while (!(state == DOWNLOAD_STATE_FAILED || state == DOWNLOAD_STATE_COMPLETED || state == DOWNLOAD_STATE_CANCELED));
-
-       download_destroy(download_id);
-       download_destroy(download_id_api);
-       download_destroy(download_id_state);
-
-       TRACE_DEBUG_MSG("url-download-tc : finished");
-       exit(EXIT_SUCCESS);
-}