2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
20 static void startup(void);
21 static void cleanup(void);
23 void (*tet_startup)(void) = startup;
24 void (*tet_cleanup)(void) = cleanup;
26 static void utc_download_get_destination_positive1(void);
28 struct tet_testlist tet_testlist[] = {
29 {utc_download_get_destination_positive1, 1},
33 static void startup(void)
38 static void cleanup(void)
43 void utc_download_get_destination_positive1(void)
45 const char *TC_NAME = __FUNCTION__;
47 char *input = "/opt/usr/media/Downloads";
52 download_set_destination(id, input);
53 retcode = download_get_destination(id, &output);
56 if (retcode == DOWNLOAD_ERROR_NONE && !strcmp(input, output))
57 dts_pass(TC_NAME, "retcode has no error and the destination of set API is same to destination of get API ");
59 dts_fail(TC_NAME, "retcode has error or the destination of set API is not same to destination of get API");