diff options
Diffstat (limited to 'wearable/TC')
30 files changed, 0 insertions, 2587 deletions
diff --git a/wearable/TC/build.sh b/wearable/TC/build.sh deleted file mode 100755 index 1276482..0000000 --- a/wearable/TC/build.sh +++ /dev/null @@ -1,32 +0,0 @@ -#./_export_env.sh # setting environment variables -#!/bin/sh -export ARCH=target -export TET_INSTALL_PATH=/scratchbox/TETware/ -export TET_TARGET_PATH=$TET_INSTALL_PATH/tetware-target -export PATH=$TET_TARGET_PATH/bin:$PATH -export LD_LIBRARY_PATH=$TET_TARGET_PATH/lib/tet3:$LD_LIBRARY_PATH - -export TET_ROOT=$TET_TARGET_PATH - -set $(pwd) -export TET_SUITE_ROOT=$1 - -set $(date +%s) -FILE_NAME_EXTENSION=$1 - -echo PATH=$PATH -echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH -echo TET_ROOT=$TET_ROOT -echo TET_SUITE_ROOT=$TET_SUITE_ROOT -echo ARCH=$ARCH - -RESULT_DIR=results-$ARCH -HTML_RESULT=$RESULT_DIR/build-tar-result-$FILE_NAME_EXTENSION.html -JOURNAL_RESULT=$RESULT_DIR/build-tar-result-$FILE_NAME_EXTENSION.journal - -mkdir $RESULT_DIR - -tcc -c -p ./ # executing tcc, with clean option (-c) -tcc -b -j $JOURNAL_RESULT -p ./ # executing tcc to build test cases (-b) -grw -c 3 -f chtml -o $HTML_RESULT $JOURNAL_RESULT # reporting the result - diff --git a/wearable/TC/execute.sh b/wearable/TC/execute.sh deleted file mode 100755 index 8e414df..0000000 --- a/wearable/TC/execute.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -export ARCH=target - -export TET_INSTALL_PATH=/mnt/nfs/TETware # path to mount -export TET_TARGET_PATH=$TET_INSTALL_PATH/tetware-target -export PATH=$TET_TARGET_PATH/bin:$PATH -export LD_LIBRARY_PATH=$TET_TARGET_PATH/lib/tet3:$LD_LIBRARY_PATH - -export TET_ROOT=$TET_TARGET_PATH - -set $(pwd) -export TET_SUITE_ROOT=$1 - -set $(date +%s) -FILE_NAME_EXTENSION=$1 - -echo PATH=$PATH -echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH -echo TET_ROOT=$TET_ROOT -echo TET_SUITE_ROOT=$TET_SUITE_ROOT -echo ARCH=$ARCH - -RESULT_DIR=results-$ARCH -HTML_RESULT=$RESULT_DIR/build-tar-result-$FILE_NAME_EXTENSION.html -JOURNAL_RESULT=$RESULT_DIR/build-tar-result-$FILE_NAME_EXTENSION.journal - -mkdir $RESULT_DIR - -tcc -e -j $JOURNAL_RESULT -p ./ -grw -c 3 -f chtml -o $HTML_RESULT $JOURNAL_RESULT # reporting the result - diff --git a/wearable/TC/making_new_tet_scen.py b/wearable/TC/making_new_tet_scen.py deleted file mode 100755 index 6c5b845..0000000 --- a/wearable/TC/making_new_tet_scen.py +++ /dev/null @@ -1,69 +0,0 @@ -#!/usr/bin/python - -############################################# -# tet_scen auto generator -# -# ** argv[1] = TC root -############################################# - -import sys,string,os - - -write_file = open("tet_scen", 'w') - -# -# making new tet_scen -# -def making_tet_scen (filename): - #tmp_list = filename.strip().split('/') - n_filename = filename.replace(' ', '\\ ') - #print n_filename - #new_path = "/"+ sys.argv[1] +"/"+n_filename[2:-6] - new_path = "/"+n_filename[:-6] - #print new_path - file = open(filename, 'r') - lines = file.readlines() - for line in lines: - if len(line.strip()) > 1: - list = line.strip().split('/') - #print new_path + list[-1] - write_file.write("\t"+new_path+list[-1]+"\n") - -# -# usage() -# -def usage(): - print(" ") - print("./making_new_tet_scen.py tc_root") - print("Put the Test Case's root directory.") - print("Do not include '/' at the end") - print(" ") - -# -# main() -# -def main(): - if len(sys.argv) < 2: - usage() - sys.exit(0) - - os.system('find '+ sys.argv[1] +' -name "tslist" > tslist.txt') - - #write_file = open("tetscen", w) - write_file.write("# auto generated tet_scen\n") - write_file.write("all\n") - write_file.write("\t\"Starting Full Test Suite\"\n") - - for file in open("tslist.txt", 'r'): - #print file.strip() - making_tet_scen(file.strip()) - - write_file.write("\t\"Completed Full Test Suite\"\n") - write_file.write("# EOF\n") - write_file.close() - print(" ") - print("==============================") - print("New tet_scen file is made~~~~") - print("==============================") - print(" ") -main() diff --git a/wearable/TC/tet_scen b/wearable/TC/tet_scen deleted file mode 100644 index 1f95a23..0000000 --- a/wearable/TC/tet_scen +++ /dev/null @@ -1,23 +0,0 @@ -# auto generated tet_scen -all - "Starting Full Test Suite" - /utc/utc_mm_sound_volume_get_step_func - /utc/utc_mm_sound_volume_get_value_func - /utc/utc_mm_sound_volume_set_value_func - /utc/utc_mm_sound_volume_primary_type_set_func - /utc/utc_mm_sound_volume_primary_type_clear_func - /utc/utc_mm_sound_volume_add_callback_func - /utc/utc_mm_sound_volume_remove_callback_func - /utc/utc_mm_sound_volume_get_current_playing_type_func - /utc/utc_mm_sound_pcm_capture_open_func - /utc/utc_mm_sound_pcm_capture_read_func - /utc/utc_mm_sound_pcm_capture_close_func - /utc/utc_mm_sound_pcm_play_open_func - /utc/utc_mm_sound_pcm_play_write_func - /utc/utc_mm_sound_pcm_play_close_func - /utc/utc_mm_sound_play_sound_func - /utc/utc_mm_sound_stop_sound_func - /utc/utc_mm_sound_play_tone_func - /utc/utc_mm_sound_play_keysound_func - "Completed Full Test Suite" -# EOF diff --git a/wearable/TC/tetbuild.cfg b/wearable/TC/tetbuild.cfg deleted file mode 100755 index addcce9..0000000 --- a/wearable/TC/tetbuild.cfg +++ /dev/null @@ -1,7 +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/wearable/TC/tetclean.cfg b/wearable/TC/tetclean.cfg deleted file mode 100755 index 00d58d5..0000000 --- a/wearable/TC/tetclean.cfg +++ /dev/null @@ -1,6 +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/wearable/TC/tetexec.cfg b/wearable/TC/tetexec.cfg deleted file mode 100755 index e726ecc..0000000 --- a/wearable/TC/tetexec.cfg +++ /dev/null @@ -1,6 +0,0 @@ -TET_OUTPUT_CAPTURE=True # capturing execution or not -TET_EXEC_TOOL= # ex) exec : execution tool set up/ Optional -TET_EXEC_FILE= # ex) exectool : execution file/ Optional -TET_API_COMPLIANT=True # Test case or Tool usesTET API? -TET_PASS_TC_NAME=True # showing Passed TC name ? - diff --git a/wearable/TC/tslist.txt b/wearable/TC/tslist.txt deleted file mode 100644 index 24c0a1a..0000000 --- a/wearable/TC/tslist.txt +++ /dev/null @@ -1 +0,0 @@ -utc/tslist diff --git a/wearable/TC/utc/Makefile b/wearable/TC/utc/Makefile deleted file mode 100755 index b26be75..0000000 --- a/wearable/TC/utc/Makefile +++ /dev/null @@ -1,108 +0,0 @@ -ifeq ($(ARCH),target) - PKG_CONFIG_PATH=/usr/lib/pkgconfig - export PKG_CONFIG_PATH - CC=arm-linux-gcc -Wall - CXX=arm-linux-g++ -Wall -else - PKG_CONFIG_PATH=/usr/lib/pkgconfig - export PKG_CONFIG_PATH - CC=gcc -Wall - CXX=gcc -Wall -endif - -TS1 = utc_mm_sound_volume_get_step_func -TS2 = utc_mm_sound_volume_get_value_func -TS3 = utc_mm_sound_volume_set_value_func -TS4 = utc_mm_sound_volume_primary_type_set_func -TS5 = utc_mm_sound_volume_primary_type_clear_func -TS6 = utc_mm_sound_volume_add_callback_func -TS7 = utc_mm_sound_volume_remove_callback_func -TS8 = utc_mm_sound_volume_get_current_playing_type_func -TS9 = utc_mm_sound_pcm_capture_open_func -TS10 = utc_mm_sound_pcm_capture_read_func -TS11 = utc_mm_sound_pcm_capture_close_func -TS12 = utc_mm_sound_pcm_play_open_func -TS13 = utc_mm_sound_pcm_play_write_func -TS14 = utc_mm_sound_pcm_play_close_func -TS15 = utc_mm_sound_play_sound_func -TS16 = utc_mm_sound_stop_sound_func -TS17 = utc_mm_sound_play_tone_func -TS18 = utc_mm_sound_play_keysound_func - - - -LIBS = `pkg-config --libs mm-sound mm-keysound ` -LIBS +=-L/usr/lib/:/usr/lib/pkgconfig -LIBS +=$(TET_ROOT)/lib/tet3/tcm_s.o -LIBS +=-L$(TET_ROOT)/lib/tet3 -ltcm_s -LIBS +=-L$(TET_ROOT)/lib/tet3/ -lapi_s - -INCS = -I. `pkg-config --cflags mm-sound mm-keysound ` -INCS += -I$(TET_ROOT)/inc/tet3 -INCS += -I/usr/include/mmf - -CFLAGS = $(INCS) -CC += $(CFLAGS) -LDFLAGS = $(LIBS) - -all : $(TS1) $(TS2) $(TS3) $(TS4) $(TS5) $(TS6) $(TS7) $(TS8) $(TS9) $(TS10) $(TS11) $(TS12) $(TS13) $(TS14) $(TS15) $(TS16) $(TS17) $(TS18) - -$(TS1): $(TS1).c - $(CC) -o $(TS1) $(TS1).c $(LDFLAGS) - -$(TS2): $(TS2).c - $(CC) -o $(TS2) $(TS2).c $(LDFLAGS) - -$(TS3): $(TS3).c - $(CC) -o $(TS3) $(TS3).c $(LDFLAGS) - -$(TS4): $(TS4).c - $(CC) -o $(TS4) $(TS4).c $(LDFLAGS) - -$(TS5): $(TS5).c - $(CC) -o $(TS5) $(TS5).c $(LDFLAGS) - -$(TS6): $(TS6).c - $(CC) -o $(TS6) $(TS6).c $(LDFLAGS) - -$(TS7): $(TS7).c - $(CC) -o $(TS7) $(TS7).c $(LDFLAGS) - -$(TS8): $(TS8).c - $(CC) -o $(TS8) $(TS8).c $(LDFLAGS) - -$(TS9): $(TS9).c - $(CC) -o $(TS9) $(TS9).c $(LDFLAGS) - -$(TS10): $(TS10).c - $(CC) -o $(TS10) $(TS10).c $(LDFLAGS) - -$(TS11): $(TS11).c - $(CC) -o $(TS11) $(TS11).c $(LDFLAGS) - -$(TS12): $(TS12).c - $(CC) -o $(TS12) $(TS12).c $(LDFLAGS) - -$(TS13): $(TS13).c - $(CC) -o $(TS13) $(TS13).c $(LDFLAGS) - -$(TS14): $(TS14).c - $(CC) -o $(TS14) $(TS14).c $(LDFLAGS) - -$(TS15): $(TS15).c - $(CC) -o $(TS15) $(TS15).c $(LDFLAGS) - -$(TS16): $(TS16).c - $(CC) -o $(TS16) $(TS16).c $(LDFLAGS) - -$(TS17): $(TS17).c - $(CC) -o $(TS17) $(TS17).c $(LDFLAGS) - -$(TS18): $(TS18).c - $(CC) -o $(TS18) $(TS18).c $(LDFLAGS) - -clean: - rm -rf *~ *.o $(TS1) $(TS2) $(TS3) $(TS4) $(TS5) $(TS6) $(TS7) $(TS8) $(TS9) $(TS10) $(TS11) $(TS12) $(TS13) $(TS14) $(TS15) $(TS16) $(TS17) $(TS18) - - - diff --git a/wearable/TC/utc/tet_captured b/wearable/TC/utc/tet_captured deleted file mode 100644 index 8bb483b..0000000 --- a/wearable/TC/utc/tet_captured +++ /dev/null @@ -1 +0,0 @@ -make: `utc_mm_sound_play_keysound_func' is up to date. diff --git a/wearable/TC/utc/tslist b/wearable/TC/utc/tslist deleted file mode 100755 index d032132..0000000 --- a/wearable/TC/utc/tslist +++ /dev/null @@ -1,18 +0,0 @@ -./utc_mm_sound_volume_get_step_func -./utc_mm_sound_volume_get_value_func -./utc_mm_sound_volume_set_value_func -./utc_mm_sound_volume_primary_type_set_func -./utc_mm_sound_volume_primary_type_clear_func -./utc_mm_sound_volume_add_callback_func -./utc_mm_sound_volume_remove_callback_func -./utc_mm_sound_volume_get_current_playing_type_func -./utc_mm_sound_pcm_capture_open_func -./utc_mm_sound_pcm_capture_read_func -./utc_mm_sound_pcm_capture_close_func -./utc_mm_sound_pcm_play_open_func -./utc_mm_sound_pcm_play_write_func -./utc_mm_sound_pcm_play_close_func -./utc_mm_sound_play_sound_func -./utc_mm_sound_stop_sound_func -./utc_mm_sound_play_tone_func -./utc_mm_sound_play_keysound_func diff --git a/wearable/TC/utc/utc_mm_sound_common.h b/wearable/TC/utc/utc_mm_sound_common.h deleted file mode 100644 index 2e35992..0000000 --- a/wearable/TC/utc/utc_mm_sound_common.h +++ /dev/null @@ -1,124 +0,0 @@ -/* - * libmm-sound - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Seungbae Shin <seungbae.shin@samsung.com> - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - - -/** -* @file utc_mm_sound_common.h -* @brief This is a suite of unit test cases for MMSound APIs. -* @author Kwanghui Cho(kwanghui.cho@samsung.com) -* @version Initial Creation V0.1 -* @date 2010.10.05 -*/ - - -#ifndef UTC_MM_FRAMEWORK_SOUND_COMMON_H -#define UTC_MM_FRAMEWORK_SOUND_COMMON_H - - -#include <mm_sound_private.h> -#include <mm_error.h> -#include <mm_types.h> -#include <stdio.h> -#include <string.h> -#include <tet_api.h> -#include <unistd.h> -#include <glib.h> - - -void startup(); -void cleanup(); - -void (*tet_startup)() = startup; -void (*tet_cleanup)() = cleanup; - -void utc_mm_sound_volume_get_step_func_01 (); -void utc_mm_sound_volume_get_step_func_02 (); -void utc_mm_sound_volume_get_step_func_03 (); -void utc_mm_sound_volume_get_step_func_04 (); - - -void utc_mm_sound_volume_get_value_func_01(); -void utc_mm_sound_volume_get_value_func_02(); - - -void utc_mm_sound_volume_set_value_func_01(); -void utc_mm_sound_volume_set_value_func_02(); - - -void utc_mm_sound_volume_primary_type_set_func_01(); -void utc_mm_sound_volume_primary_type_set_func_02(); - - -void utc_mm_sound_volume_primary_type_clear_func_01(); - - -void utc_mm_sound_volume_add_callback_func_01(); -void utc_mm_sound_volume_add_callback_func_02(); - - -void utc_mm_sound_volume_remove_callback_func_01(); -void utc_mm_sound_volume_remove_callback_func_02(); - - -void utc_mm_sound_volume_get_current_playing_type_func_01(); -void utc_mm_sound_volume_get_current_playing_type_func_02(); - - -void utc_mm_sound_pcm_capture_open_func_01(); -void utc_mm_sound_pcm_capture_open_func_02(); - - -void utc_mm_sound_pcm_capture_read_func_01(); -void utc_mm_sound_pcm_capture_read_func_02(); - - -void utc_mm_sound_pcm_capture_close_func_01(); -void utc_mm_sound_pcm_capture_close_func_02(); - - -void utc_mm_sound_pcm_play_open_func_01(); -void utc_mm_sound_pcm_play_open_func_02(); - - -void utc_mm_sound_pcm_play_write_func_01(); -void utc_mm_sound_pcm_play_write_func_02(); - - -void utc_mm_sound_pcm_play_close_func_01(); -void utc_mm_sound_pcm_play_close_func_02(); - - -void utc_mm_sound_play_sound_func_01(); -void utc_mm_sound_play_sound_func_02(); - - -void utc_mm_sound_stop_sound_func_01(); -void utc_mm_sound_stop_sound_func_02(); - - -void utc_mm_sound_play_tone_func_01(); -void utc_mm_sound_play_tone_func_02(); - - -void utc_mm_sound_play_keysound_func_01(); -void utc_mm_sound_play_keysound_func_02(); - -#endif /* UTC_MM_FRAMEWORK_SOUND_COMMON_H */ diff --git a/wearable/TC/utc/utc_mm_sound_pcm_capture_close_func.c b/wearable/TC/utc/utc_mm_sound_pcm_capture_close_func.c deleted file mode 100644 index a0dd15e..0000000 --- a/wearable/TC/utc/utc_mm_sound_pcm_capture_close_func.c +++ /dev/null @@ -1,112 +0,0 @@ -/* - * libmm-sound - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Seungbae Shin <seungbae.shin@samsung.com> - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -/** -* @ingroup MMF_SOUND_API -* @addtogroup SOUND -*/ - -/** -* @ingroup SOUND -* @addtogroup UTS_MMF_SOUND Unit -*/ - -/** -* @ingroup UTS_MMF_SOUND Unit -* @addtogroup UTS_MMF_SOUND_VOLUME_GET_STEP Uts_Mmf_Sound_Volume_Get_Step -* @{ -*/ - -/** -* @file uts_mm_sound_volume_get_step_func.c -* @brief This is a suit of unit test cases to test mm_sound_volume_get_step API -* @author Kwanghui Cho (kwanghui.cho@samsung.com) -* @version Initial Creation Version 0.1 -* @date 2010.10.05 -*/ - - -#include "utc_mm_sound_common.h" - - -/////////////////////////////////////////////////////////////////////////////////////////////////// -//------------------------------------------------------------------------------------------------- -/////////////////////////////////////////////////////////////////////////////////////////////////// -// Declare the global variables and registers and Internal Funntions -//------------------------------------------------------------------------------------------------- - -#define API_NAME "mm_sound_pcm_capture_close" - -struct tet_testlist tet_testlist[] = { - {utc_mm_sound_pcm_capture_close_func_01, 1}, - {utc_mm_sound_pcm_capture_close_func_02, 2}, - {NULL, 0} -}; - -/////////////////////////////////////////////////////////////////////////////////////////////////// -/* Initialize TCM data structures */ - -/* Start up function for each test purpose */ -void -startup () -{ -} - -/* Clean up function for each test purpose */ -void -cleanup () -{ -} - -void utc_mm_sound_pcm_capture_close_func_01() -{ - int ret = 0; - MMSoundPcmHandle_t handle; - - mm_sound_pcm_capture_open(&handle, 44100, MMSOUND_PCM_MONO, MMSOUND_PCM_S16_LE); - - ret = mm_sound_pcm_capture_close(handle);; - - dts_check_eq(API_NAME, ret, MM_ERROR_NONE); - - return; -} - - -void utc_mm_sound_pcm_capture_close_func_02() -{ - int ret = 0; - MMSoundPcmHandle_t handle; - - handle = NULL; - ret = mm_sound_pcm_capture_close(handle);; - - - dts_check_ne(API_NAME, ret, MM_ERROR_NONE); - - return; -} - -/** @} */ - - - - diff --git a/wearable/TC/utc/utc_mm_sound_pcm_capture_open_func.c b/wearable/TC/utc/utc_mm_sound_pcm_capture_open_func.c deleted file mode 100644 index 4084db0..0000000 --- a/wearable/TC/utc/utc_mm_sound_pcm_capture_open_func.c +++ /dev/null @@ -1,112 +0,0 @@ -/* - * libmm-sound - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Seungbae Shin <seungbae.shin@samsung.com> - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -/** -* @ingroup MMF_SOUND_API -* @addtogroup SOUND -*/ - -/** -* @ingroup SOUND -* @addtogroup UTS_MMF_SOUND Unit -*/ - -/** -* @ingroup UTS_MMF_SOUND Unit -* @addtogroup UTS_MMF_SOUND_VOLUME_GET_STEP Uts_Mmf_Sound_Volume_Get_Step -* @{ -*/ - -/** -* @file uts_mm_sound_volume_get_step_func.c -* @brief This is a suit of unit test cases to test mm_sound_volume_get_step API -* @author Kwanghui Cho (kwanghui.cho@samsung.com) -* @version Initial Creation Version 0.1 -* @date 2010.10.05 -*/ - - -#include "utc_mm_sound_common.h" - - -/////////////////////////////////////////////////////////////////////////////////////////////////// -//------------------------------------------------------------------------------------------------- -/////////////////////////////////////////////////////////////////////////////////////////////////// -// Declare the global variables and registers and Internal Funntions -//------------------------------------------------------------------------------------------------- - -#define API_NAME "mm_sound_pcm_capture_open" - -struct tet_testlist tet_testlist[] = { - {utc_mm_sound_pcm_capture_open_func_01, 1}, - {utc_mm_sound_pcm_capture_open_func_02, 2}, - {NULL, 0} -}; - -/////////////////////////////////////////////////////////////////////////////////////////////////// -/* Initialize TCM data structures */ - -/* Start up function for each test purpose */ -void -startup () -{ -} - -/* Clean up function for each test purpose */ -void -cleanup () -{ -} - -void utc_mm_sound_pcm_capture_open_func_01() -{ - int ret = 0; - MMSoundPcmHandle_t handle; - - ret = mm_sound_pcm_capture_open(&handle, 44100, MMSOUND_PCM_MONO, MMSOUND_PCM_S16_LE); - - dts_check_ge (API_NAME, ret, 0); - - mm_sound_pcm_capture_close(handle); - - return; -} - - -void utc_mm_sound_pcm_capture_open_func_02() -{ - int ret = 0; - MMSoundPcmHandle_t handle; - - ret = mm_sound_pcm_capture_open(&handle, 44100, 8, MMSOUND_PCM_S16_LE); //3rd parameter "8" is abnormal parameter. - - dts_check_lt (API_NAME, ret, 0); - - mm_sound_pcm_capture_close(handle); - - return; -} - -/** @} */ - - - - diff --git a/wearable/TC/utc/utc_mm_sound_pcm_capture_read_func.c b/wearable/TC/utc/utc_mm_sound_pcm_capture_read_func.c deleted file mode 100644 index 6fd7633..0000000 --- a/wearable/TC/utc/utc_mm_sound_pcm_capture_read_func.c +++ /dev/null @@ -1,112 +0,0 @@ -/* - * libmm-sound - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Seungbae Shin <seungbae.shin@samsung.com> - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -/** -* @ingroup MMF_SOUND_API -* @addtogroup SOUND -*/ - -/** -* @ingroup SOUND -* @addtogroup UTS_MMF_SOUND Unit -*/ - -/** -* @ingroup UTS_MMF_SOUND Unit -* @addtogroup UTS_MMF_SOUND_VOLUME_GET_STEP Uts_Mmf_Sound_Volume_Get_Step -* @{ -*/ - -/** -* @file uts_mm_sound_volume_get_step_func.c -* @brief This is a suit of unit test cases to test mm_sound_volume_get_step API -* @author Kwanghui Cho (kwanghui.cho@samsung.com) -* @version Initial Creation Version 0.1 -* @date 2010.10.05 -*/ - - -#include "utc_mm_sound_common.h" - - -/////////////////////////////////////////////////////////////////////////////////////////////////// -//------------------------------------------------------------------------------------------------- -/////////////////////////////////////////////////////////////////////////////////////////////////// -// Declare the global variables and registers and Internal Funntions -//------------------------------------------------------------------------------------------------- - -#define API_NAME "mm_sound_pcm_capture_read" - -struct tet_testlist tet_testlist[] = { - {utc_mm_sound_pcm_capture_read_func_01, 1}, - {utc_mm_sound_pcm_capture_read_func_02, 2}, - {NULL, 0} -}; - -MMSoundPcmHandle_t g_handle; - -/////////////////////////////////////////////////////////////////////////////////////////////////// -/* Initialize TCM data structures */ - -/* Start up function for each test purpose */ -void -startup () -{ - mm_sound_pcm_capture_open(&g_handle, 44100, MMSOUND_PCM_MONO, MMSOUND_PCM_S16_LE); -} - -/* Clean up function for each test purpose */ -void -cleanup () -{ - mm_sound_pcm_capture_close(g_handle); -} - -void utc_mm_sound_pcm_capture_read_func_01() -{ - int ret = 0; - char buffer[4096]= {0,}; - - ret = mm_sound_pcm_capture_read(g_handle, (void*)buffer, sizeof(buffer)); - - dts_check_ge (API_NAME, ret, 0); - - return; -} - - -void utc_mm_sound_pcm_capture_read_func_02() -{ - int ret = 0; - char *buffer = NULL; - - ret = mm_sound_pcm_capture_read(g_handle, (void*)buffer, sizeof(buffer)); - - dts_check_lt (API_NAME, ret, 0); - - return; -} - -/** @} */ - - - - diff --git a/wearable/TC/utc/utc_mm_sound_pcm_play_close_func.c b/wearable/TC/utc/utc_mm_sound_pcm_play_close_func.c deleted file mode 100644 index 903ec31..0000000 --- a/wearable/TC/utc/utc_mm_sound_pcm_play_close_func.c +++ /dev/null @@ -1,116 +0,0 @@ -/* - * libmm-sound - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Seungbae Shin <seungbae.shin@samsung.com> - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -/** -* @ingroup MMF_SOUND_API -* @addtogroup SOUND -*/ - -/** -* @ingroup SOUND -* @addtogroup UTS_MMF_SOUND Unit -*/ - -/** -* @ingroup UTS_MMF_SOUND Unit -* @addtogroup UTS_MMF_SOUND_VOLUME_GET_STEP Uts_Mmf_Sound_Volume_Get_Step -* @{ -*/ - -/** -* @file uts_mm_sound_volume_get_step_func.c -* @brief This is a suit of unit test cases to test mm_sound_volume_get_step API -* @author Kwanghui Cho (kwanghui.cho@samsung.com) -* @version Initial Creation Version 0.1 -* @date 2010.10.05 -*/ - - -#include "utc_mm_sound_common.h" - - -/////////////////////////////////////////////////////////////////////////////////////////////////// -//------------------------------------------------------------------------------------------------- -/////////////////////////////////////////////////////////////////////////////////////////////////// -// Declare the global variables and registers and Internal Funntions -//------------------------------------------------------------------------------------------------- - -#define API_NAME "mm_sound_pcm_play_close" - -struct tet_testlist tet_testlist[] = { - {utc_mm_sound_pcm_play_close_func_01, 1}, - {utc_mm_sound_pcm_play_close_func_02, 2}, - {NULL, 0} -}; - - -/////////////////////////////////////////////////////////////////////////////////////////////////// -/* Initialize TCM data structures */ - -/* Start up function for each test purpose */ -void -startup () -{ -} - -/* Clean up function for each test purpose */ -void -cleanup () -{ -} - -void utc_mm_sound_pcm_play_close_func_01() -{ - int ret = 0; - MMSoundPcmHandle_t handle; - - ret = mm_sound_pcm_play_open(&handle, 44100, MMSOUND_PCM_MONO, MMSOUND_PCM_S16_LE, VOLUME_TYPE_SYSTEM); - if( ret < 0 ) - { - tet_infoline(" pcm handle open failed. following test will be failed"); - } - - ret = mm_sound_pcm_play_close(handle); - - dts_check_eq(API_NAME, ret , MM_ERROR_NONE); - - return; -} - - -void utc_mm_sound_pcm_play_close_func_02() -{ - int ret = 0; - MMSoundPcmHandle_t handle = NULL; - - //close without open handle - ret = mm_sound_pcm_play_close(handle);; - - dts_check_ne(API_NAME, ret , MM_ERROR_NONE); - - return; -} - -/** @} */ - - - - diff --git a/wearable/TC/utc/utc_mm_sound_pcm_play_open_func.c b/wearable/TC/utc/utc_mm_sound_pcm_play_open_func.c deleted file mode 100644 index 6b1b648..0000000 --- a/wearable/TC/utc/utc_mm_sound_pcm_play_open_func.c +++ /dev/null @@ -1,109 +0,0 @@ -/* - * libmm-sound - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Seungbae Shin <seungbae.shin@samsung.com> - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -/** -* @ingroup MMF_SOUND_API -* @addtogroup SOUND -*/ - -/** -* @ingroup SOUND -* @addtogroup UTS_MMF_SOUND Unit -*/ - -/** -* @ingroup UTS_MMF_SOUND Unit -* @addtogroup UTS_MMF_SOUND_VOLUME_GET_STEP Uts_Mmf_Sound_Volume_Get_Step -* @{ -*/ - -/** -* @file uts_mm_sound_volume_get_step_func.c -* @brief This is a suit of unit test cases to test mm_sound_volume_get_step API -* @author Kwanghui Cho (kwanghui.cho@samsung.com) -* @version Initial Creation Version 0.1 -* @date 2010.10.05 -*/ - - -#include "utc_mm_sound_common.h" - - -/////////////////////////////////////////////////////////////////////////////////////////////////// -//------------------------------------------------------------------------------------------------- -/////////////////////////////////////////////////////////////////////////////////////////////////// -// Declare the global variables and registers and Internal Funntions -//------------------------------------------------------------------------------------------------- -#define API_NAME "mm_sound_pcm_play_open" -struct tet_testlist tet_testlist[] = { - {utc_mm_sound_pcm_play_open_func_01, 1}, - {utc_mm_sound_pcm_play_open_func_02, 2}, - {NULL, 0} -}; - -/////////////////////////////////////////////////////////////////////////////////////////////////// -/* Initialize TCM data structures */ - -/* Start up function for each test purpose */ -void -startup () -{ -} - -/* Clean up function for each test purpose */ -void -cleanup () -{ -} - -void utc_mm_sound_pcm_play_open_func_01() -{ - int ret = 0; - MMSoundPcmHandle_t handle; - - ret = mm_sound_pcm_play_open(&handle, 44100, MMSOUND_PCM_STEREO, MMSOUND_PCM_S16_LE, VOLUME_TYPE_MEDIA); - - dts_check_ge(API_NAME, ret , 0); - - mm_sound_pcm_play_close(handle); - return; -} - - -void utc_mm_sound_pcm_play_open_func_02() -{ - int ret = 0; - MMSoundPcmHandle_t handle; - - ret = mm_sound_pcm_play_open(&handle, 44100, MMSOUND_PCM_STEREO, 9, VOLUME_TYPE_MEDIA); // 9 is unsupported format - - dts_check_lt(API_NAME, ret , 0); - - mm_sound_pcm_play_close(handle); - - return; -} - -/** @} */ - - - - diff --git a/wearable/TC/utc/utc_mm_sound_pcm_play_write_func.c b/wearable/TC/utc/utc_mm_sound_pcm_play_write_func.c deleted file mode 100644 index 2a26b6f..0000000 --- a/wearable/TC/utc/utc_mm_sound_pcm_play_write_func.c +++ /dev/null @@ -1,182 +0,0 @@ -/* - * libmm-sound - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Seungbae Shin <seungbae.shin@samsung.com> - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -/** -* @ingroup MMF_SOUND_API -* @addtogroup SOUND -*/ - -/** -* @ingroup SOUND -* @addtogroup UTS_MMF_SOUND Unit -*/ - -/** -* @ingroup UTS_MMF_SOUND Unit -* @addtogroup UTS_MMF_SOUND_VOLUME_GET_STEP Uts_Mmf_Sound_Volume_Get_Step -* @{ -*/ - -/** -* @file uts_mm_sound_volume_get_step_func.c -* @brief This is a suit of unit test cases to test mm_sound_volume_get_step API -* @author Kwanghui Cho (kwanghui.cho@samsung.com) -* @version Initial Creation Version 0.1 -* @date 2010.10.05 -*/ - - -#include "utc_mm_sound_common.h" - - -char g_pcmdata[] = { - 0x00,0x00,0x16,0x00,0x61,0x00,0xcf,0x00,0x64,0x01,0x16,0x02,0xd6,0x02,0x9f,0x03,0x5a,0x04,0x09,0x05,0x90, - 0x05,0xf2,0x05,0x1d,0x06,0x0f,0x06,0xbb,0x05,0x2e,0x05,0x55,0x04,0x4a,0x03,0x02,0x02,0x93,0x00,0xfb,0xfe, - 0x5c,0xfd,0xb0,0xfb,0x16,0xfa,0x93,0xf8,0x3c,0xf7,0x1f,0xf6,0x41,0xf5,0xb8,0xf4,0x70,0xf4,0x99,0xf4,0xf9, - 0xf4,0xc7,0xf5,0xca,0xf6,0x1a,0xf8,0x9a,0xf9,0x40,0xfb,0xfd,0xfc,0xbd,0xfe,0x70,0x00,0x0c,0x02,0x74,0x03, - 0xaf,0x04,0x9c,0x05,0x4c,0x06,0xa7,0x06,0xbc,0x06,0x88,0x06,0x13,0x06,0x64,0x05,0x99,0x04,0xa4,0x03,0xb8, - 0x02,0xcd,0x01,0xfc,0x00,0x5e,0x00,0xf0,0xff,0xce,0xff,0xf9,0xff,0x70,0x00,0x3f,0x01,0x50,0x02,0xb2,0x03, - 0x38,0x05,0xf0,0x06,0xa8,0x08,0x62,0x0a,0xec,0x0b,0x44,0x0d,0x39,0x0e,0xc9,0x0e,0xce,0x0e,0x3f,0x0e,0x0f, - 0x0d,0x3a,0x0b,0xb9,0x08,0x9c,0x05,0xe9,0x01,0xba,0xfd,0x2a,0xf9,0x5b,0xf4,0x6a,0xef,0x94,0xea,0xeb,0xe5, - 0xb8,0xe1,0x12,0xde,0x2c,0xdb,0x2e,0xd9,0x32,0xd8,0x4f,0xd8,0xa6,0xd9,0x26,0xdc,0xe2,0xdf,0xc4,0xe4,0xab, - 0xea,0x90,0xf1,0x28,0xf9,0x5c,0x01,0xe4,0x09,0x7e,0x12,0xfe,0x1a,0xfd,0x22,0x66,0x2a,0xcb,0x30,0x22,0x36, - 0x0f,0x3a,0x8f,0x3c,0x62,0x3d,0x96,0x3c,0x13,0x3a,0xe2,0x35,0x30,0x30,0xf6,0x28,0x97,0x20,0x1b,0x17,0xee, - 0x0c,0x37,0x02,0x61,0xf7,0xa7,0xec,0x64,0xe2,0xe4,0xd8,0x69,0xd0,0x3b,0xc9,0x84,0xc3,0x7b,0xbf,0x32,0xbd, - 0xc1,0xbc,0x25,0xbe,0x48,0xc1,0x1d,0xc6,0x70,0xcc,0x0b,0xd4,0xbe,0xdc,0x2e,0xe6,0x21,0xf0,0x3c,0xfa,0x3d, - 0x04,0xc7,0x0d,0xae,0x16,0x8f,0x1e,0x59,0x25,0xc2,0x2a,0xc6,0x2e,0x3f,0x31,0x38,0x32,0xb1,0x31,0xcc,0x2f, - 0xa0,0x2c,0x65,0x28,0x47,0x23,0x86,0x1d,0x5f,0x17,0x15,0x11,0xe4,0x0a,0x08,0x05,0xb1,0xff,0x1c,0xfb,0x4d, - 0xf7,0x86,0xf4,0xa7,0xf2,0xd8,0xf1,0xe8,0xf1,0xe3,0xf2,0x87,0xf4,0xc9,0xf6,0x5b,0xf9,0x21,0xfc,0xce,0xfe, - 0x41,0x01,0x33,0x03,0x87,0x04,0x07,0x05,0xa7,0x04,0x45,0x03,0xee,0x00,0x9b,0xfd,0x6b,0xf9,0x87,0xf4,0x22, - 0xef,0x80,0xe9,0xc8,0xe3,0x58,0xde,0x65,0xd9,0x36,0xd5,0x13,0xd2,0x26,0xd0,0xab,0xcf,0xc4,0xd0,0x77,0xd3, - 0xe9,0xd7,0xec,0xdd,0x87,0xe5,0x80,0xee,0x9c,0xf8,0xab,0x03,0x43,0x0f,0x1d,0x1b,0xd7,0x26,0x09,0x32,0x5b, - 0x3c,0x6f,0x45,0xe5,0x4c,0x87,0x52,0x00,0x56,0x38,0x57,0xfd,0x55,0x59,0x52,0x46,0x4c,0xed,0x43,0x78,0x39, - 0x2b,0x2d,0x5b,0x1f,0x62,0x10,0xb2,0x00,0xb6,0xf0,0xea,0xe0,0xbe,0xd1,0xa9,0xc3,0x12,0xb7,0x60,0xac,0xd7, - 0xa3,0xcf,0x9d,0x61,0x9a,0xb1,0x99,0xd0,0x9b,0x94,0xa0,0xf4,0xa7,0xa9,0xb1,0x66,0xbd,0xe6,0xca,0xa4,0xd9, - 0x55,0xe9,0x5e,0xf9,0x69,0x09,0xec,0x18,0x81,0x27,0xbe,0x34,0x48,0x40,0xd0,0x49,0x27,0x51,0x0d,0x56,0x8d, - 0x58,0x83,0x58,0x1f,0x56,0x73,0x51,0xbc,0x4a,0x42,0x42,0x49,0x38,0x3f,0x2d,0x6d,0x21,0x4a,0x15,0x2d,0x09, - 0x76,0xfd,0x7a,0xf2,0x92,0xe8,0xea,0xdf,0xcc,0xd8,0x44,0xd3,0x7f,0xcf,0x65,0xcd,0x07,0xcd,0x2b,0xce,0xc1, - 0xd0,0x8a,0xd4,0x44,0xd9,0xc0,0xde,0xc4,0xe4,0xee,0xea,0xde,0xf0,0x6b,0xf6,0x55,0xfb,0x77,0xff,0xb5,0x02, - 0xf3,0x04,0x3b,0x06,0x86,0x06,0xf4,0x05,0x9e,0x04,0xaa,0x02,0x49,0x00,0xaf,0xfd,0x12,0xfb,0x9f,0xf8,0x96, - 0xf6,0x18,0xf5,0x52,0xf4,0x66,0xf4,0x5a,0xf5,0x43,0xf7,0x17,0xfa,0xce,0xfd,0x3f,0x02,0x5c,0x07,0xdc,0x0c, - 0xaa,0x12,0x6d,0x18,0x02,0x1e,0x1d,0x23,0x88,0x27,0x0d,0x2b,0x80,0x2d,0xaa,0x2e,0x8a,0x2e,0xf0,0x2c,0xed, - 0x29,0x85,0x25,0xc2,0x1f,0xd8,0x18,0xe6,0x10,0x28,0x08,0xe5,0xfe,0x4f,0xf5,0xca,0xeb,0x8b,0xe2,0xea,0xd9, - 0x24,0xd2,0x7f,0xcb,0x2d,0xc6,0x67,0xc2,0x39,0xc0,0xd7,0xbf,0x24,0xc1,0x3a,0xc4,0xec,0xc8,0x25,0xcf,0xb0, - 0xd6,0x62,0xdf,0xe2,0xe8,0x05,0xf3,0x64,0xfd,0xc9,0x07,0xd8,0x11,0x53,0x1b,0xe7,0x23,0x6d,0x2b,0x9c,0x31, - 0x5f,0x36,0x8c,0x39,0x20,0x3b,0x0a,0x3b,0x6a,0x39,0x37,0x36,0xba,0x31,0xf8,0x2b,0x3f,0x25,0xc0,0x1d,0xb3, - 0x15,0x68,0x0d,0x0b,0x05,0xee,0xfc,0x3d,0xf5,0x32,0xee,0xff,0xe7,0xbb,0xe2,0x99,0xde,0x89,0xdb,0xba,0xd9, - 0x05,0xd9,0x7c,0xd9,0xf4,0xda,0x63,0xdd,0x95,0xe0,0x7b,0xe4,0xd4,0xe8,0x7c,0xed,0x56,0xf2,0x16,0xf7,0xc6, - 0xfb,0x0b,0x00,0xfb,0x03,0x54,0x07,0x23,0x0a,0x4f,0x0c,0xd4,0x0d,0xb6,0x0e,0x08,0x0f,0xbd,0x0e,0x0c,0x0e, - 0xeb,0x0c,0x7a,0x0b,0xe6,0x09,0x22,0x08,0x6f,0x06,0xc4,0x04,0x3f,0x03,0xfd,0x01,0xe7,0x00,0x39,0x00,0xb8, - 0xff,0xa1,0xff,0xb8,0xff,0x1c,0x00,0xb1,0x00,0x65,0x01,0x37,0x02,0x08,0x03,0xd1,0x03,0x80,0x04,0x0a,0x05, - 0x5f,0x05,0x7a,0x05,0x55,0x05,0xf0,0x04,0x42,0x04,0x65,0x03,0x3f,0x02,0x03,0x01,0x97,0xff,0x24,0xfe,0xaa, - 0xfc,0x39,0xfb,0xec,0xf9,0xbd,0xf8,0xc7,0xf7,0x0d,0xf7,0x97,0xf6,0x67,0xf6,0x84,0xf6,0xe4,0xf6,0x87,0xf7, - 0x69,0xf8,0x73,0xf9,0xaa,0xfa,0xf6,0xfb,0x4c,0xfd,0xa3,0xfe,0xe3,0xff,0x0e,0x01,0x0d,0x02,0xe4,0x02,0x80, - 0x03,0xea,0x03,0x17,0x04,0x15,0x04,0xdb,0x03,0x80,0x03,0xff,0x02,0x66,0x02,0xd2,0x01,0x25,0x01,0x03,0x00, - 0x00,0x00,0x16,0x00,0x61,0x00,0xcf,0x00,0x64,0x01,0x16,0x02,0xd6,0x02,0x9f,0x03,0x5a,0x04,0x09,0x05,0x90, - 0x05,0xf2,0x05,0x1d,0x06,0x0f,0x06,0xbb,0x05,0x2e,0x05,0x55,0x04,0x4a,0x03,0x02,0x02,0x93,0x00,0xfb,0xfe, - 0x5c,0xfd,0xb0,0xfb,0x16,0xfa,0x93,0xf8,0x3c,0xf7,0x1f,0xf6,0x41,0xf5,0xb8,0xf4,0x70,0xf4,0x99,0xf4,0xf9, - 0xf4,0xc7,0xf5,0xca,0xf6,0x1a,0xf8,0x9a,0xf9,0x40,0xfb,0xfd,0xfc,0xbd,0xfe,0x70,0x00,0x0c,0x02,0x74,0x03, - 0xaf,0x04,0x9c,0x05,0x4c,0x06,0xa7,0x06,0xbc,0x06,0x88,0x06,0x13,0x06,0x64,0x05,0x99,0x04,0xa4,0x03,0xb8, - 0x02,0xcd,0x01,0xfc,0x00,0x5e,0x00,0xf0,0xff,0xce,0xff,0xf9,0xff,0x70,0x00,0x3f,0x01,0x50,0x02,0xb2,0x03, - 0x38,0x05,0xf0,0x06,0xa8,0x08,0x62,0x0a,0xec,0x0b,0x44,0x0d,0x39,0x0e,0xc9,0x0e,0xce,0x0e,0x3f,0x0e,0x0f, - 0x0d,0x3a,0x0b,0xb9,0x08,0x9c,0x05,0xe9,0x01,0xba,0xfd,0x2a,0xf9,0x5b,0xf4,0x6a,0xef,0x94,0xea,0xeb,0xe5, - 0xb8,0xe1,0x12,0xde,0x2c,0xdb,0x2e,0xd9,0x32,0xd8,0x4f,0xd8,0xa6,0xd9,0x26,0xdc,0xe2,0xdf,0xc4,0xe4,0xab, - 0xea,0x90,0xf1,0x28,0xf9,0x5c,0x01,0xe4,0x09,0x7e,0x12,0xfe,0x1a,0xfd,0x22,0x66,0x2a,0xcb,0x30,0x22,0x36, - 0x0f,0x3a,0x8f,0x3c,0x62,0x3d,0x96,0x3c,0x13,0x3a,0xe2,0x35,0x30,0x30,0xf6,0x28,0x97,0x20,0x1b,0x17,0xee, - 0x0c,0x37,0x02,0x61,0xf7,0xa7,0xec,0x64,0xe2,0xe4,0xd8,0x69,0xd0,0x3b,0xc9,0x84,0xc3,0x7b,0xbf,0x32,0xbd, - 0xc1,0xbc,0x25,0xbe,0x48,0xc1,0x1d,0xc6,0x70,0xcc,0x0b,0xd4,0xbe,0xdc,0x2e,0xe6,0x21,0xf0,0x3c,0xfa,0x3d, - 0x04,0xc7,0x0d,0xae,0x16,0x8f,0x1e,0x59,0x25,0xc2,0x2a,0xc6,0x2e,0x3f,0x31,0x38,0x32,0xb1,0x31,0xcc,0x2f, - 0xa0,0x2c,0x65,0x28,0x47,0x23,0x86,0x1d,0x5f,0x17,0x15,0x11,0xe4,0x0a,0x08,0x05,0xb1,0xff,0x1c,0xfb,0x4d, - 0xf7,0x86,0xf4,0xa7,0xf2,0xd8,0xf1,0xe8,0xf1,0xe3,0xf2,0x87,0xf4,0xc9,0xf6,0x5b,0xf9,0x21,0xfc,0xce,0xfe, - 0x41,0x01,0x33,0x03,0x87,0x04,0x07,0x05,0xa7,0x04,0x45,0x03,0xee,0x00,0x9b,0xfd,0x6b,0xf9,0x87,0xf4,0x22, - 0xef,0x80,0xe9,0xc8,0xe3,0x58,0xde,0x65,0xd9,0x36,0xd5,0x13,0xd2,0x26,0xd0,0xab,0xcf,0xc4,0xd0,0x77,0xd3, - 0xe9,0xd7,0xec,0xdd,0x87,0xe5,0x80,0xee,0x9c,0xf8,0xab,0x03,0x43,0x0f,0x1d,0x1b,0xd7,0x26,0x09,0x32,0x5b, - 0x3c,0x6f,0x45,0xe5,0x4c,0x87,0x52,0x00,0x56,0x38,0x57,0xfd,0x55,0x59,0x52,0x46,0x4c,0xed,0x43,0x78,0x39, - 0x2b,0x2d,0x5b,0x1f,0x62,0x10,0xb2,0x00,0xb6,0xf0,0xea,0xe0,0xbe,0xd1,0xa9,0xc3,0x12,0xb7,0x60,0xac,0xd7, - 0xa3,0xcf,0x9d,0x61,0x9a,0xb1,0x99,0xd0,0x9b,0x94,0xa0,0xf4,0xa7,0xa9,0xb1,0x66,0xbd,0xe6,0xca,0xa4,0xd9, - 0x55,0xe9,0x5e,0xf9,0x69,0x09,0xec,0x18,0x81,0x27,0xbe,0x34,0x48,0x40,0xd0,0x49,0x27,0x51,0x0d,0x56,0x8d, - 0x58,0x83,0x58,0x1f,0x56,0x73,0x51,0xbc,0x4a,0x42,0x42,0x49,0x38,0x3f,0x2d,0x6d,0x21,0x4a,0x15,0x2d,0x09, - 0x76,0xfd,0x7a,0xf2,0x92,0xe8,0xea,0xdf,0xcc,0xd8,0x44,0xd3,0x7f,0xcf,0x65,0xcd,0x07,0xcd,0x2b,0xce,0xc1 -}; - -/////////////////////////////////////////////////////////////////////////////////////////////////// -//------------------------------------------------------------------------------------------------- -/////////////////////////////////////////////////////////////////////////////////////////////////// -// Declare the global variables and registers and Internal Funntions -//------------------------------------------------------------------------------------------------- -#define API_NAME "mm_sound_pcm_play_write" - -struct tet_testlist tet_testlist[] = { - {utc_mm_sound_pcm_play_write_func_01, 1}, - {utc_mm_sound_pcm_play_write_func_02, 2}, - {NULL, 0} -}; -MMSoundPcmHandle_t g_handle; - -/////////////////////////////////////////////////////////////////////////////////////////////////// -/* Initialize TCM data structures */ - -/* Start up function for each test purpose */ -void -startup () -{ - - if(0 > mm_sound_pcm_play_open(&g_handle, 44100, MMSOUND_PCM_MONO, MMSOUND_PCM_S16_LE, VOLUME_TYPE_MEDIA)) - { - tet_infoline( "playback handle open failed... following test case will be failed" ); - } -} - -/* Clean up function for each test purpose */ -void -cleanup () -{ - mm_sound_pcm_play_close(g_handle); -} - -void utc_mm_sound_pcm_play_write_func_01() -{ - int ret = 0; - - ret = mm_sound_pcm_play_write(g_handle, g_pcmdata, sizeof(g_pcmdata)); - - dts_check_ge(API_NAME, ret, 0); - - return; -} - - -void utc_mm_sound_pcm_play_write_func_02() -{ - int ret = 0; - - ret = mm_sound_pcm_play_write(g_handle, NULL, sizeof(g_pcmdata)); - - dts_check_lt(API_NAME, ret, 0); - - return; -} - -/** @} */ - - - - diff --git a/wearable/TC/utc/utc_mm_sound_play_keysound_func.c b/wearable/TC/utc/utc_mm_sound_play_keysound_func.c deleted file mode 100644 index 55a50f5..0000000 --- a/wearable/TC/utc/utc_mm_sound_play_keysound_func.c +++ /dev/null @@ -1,111 +0,0 @@ -/* - * libmm-sound - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Seungbae Shin <seungbae.shin@samsung.com> - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -/** -* @ingroup MMF_SOUND_API -* @addtogroup SOUND -*/ - -/** -* @ingroup SOUND -* @addtogroup UTS_MMF_SOUND Unit -*/ - -/** -* @ingroup UTS_MMF_SOUND Unit -* @addtogroup UTS_MMF_SOUND_VOLUME_GET_STEP Uts_Mmf_Sound_Volume_Get_Step -* @{ -*/ - -/** -* @file uts_mm_sound_volume_get_step_func.c -* @brief This is a suit of unit test cases to test mm_sound_volume_get_step API -* @author Kwanghui Cho (kwanghui.cho@samsung.com) -* @version Initial Creation Version 0.1 -* @date 2010.10.05 -*/ - - -#include "utc_mm_sound_common.h" - - -/////////////////////////////////////////////////////////////////////////////////////////////////// -//------------------------------------------------------------------------------------------------- -/////////////////////////////////////////////////////////////////////////////////////////////////// -// Declare the global variables and registers and Internal Funntions -//------------------------------------------------------------------------------------------------- - -#define API_NAME "mm_sound_play_keysound" -#define VALID_TEST_FILE "/usr/share/keysound/poweron.wav" -#define INVALID_TEST_FILE "/usr/share/keysound/SVI/Touch123.wav" - -struct tet_testlist tet_testlist[] = { - {utc_mm_sound_play_keysound_func_01, 1}, - {utc_mm_sound_play_keysound_func_02, 2}, - {NULL, 0} -}; - -/////////////////////////////////////////////////////////////////////////////////////////////////// -/* Initialize TCM data structures */ - -/* Start up function for each test purpose */ -void -startup () -{ -} - -/* Clean up function for each test purpose */ -void -cleanup () -{ -} - - -void utc_mm_sound_play_keysound_func_01() -{ - int ret = MM_ERROR_NONE; - const char filename[] = VALID_TEST_FILE; - - ret = mm_sound_play_keysound(filename, VOLUME_TYPE_SYSTEM); - - dts_check_eq(API_NAME, ret, MM_ERROR_NONE); - - return; -} - - -void utc_mm_sound_play_keysound_func_02() -{ - int ret = 0; - const char filename[] = INVALID_TEST_FILE; - - ret = mm_sound_play_keysound(filename, VOLUME_TYPE_SYSTEM); - - dts_check_ne(API_NAME, ret, MM_ERROR_NONE); - - return; -} - -/** @} */ - - - - diff --git a/wearable/TC/utc/utc_mm_sound_play_sound_func.c b/wearable/TC/utc/utc_mm_sound_play_sound_func.c deleted file mode 100644 index 65b848b..0000000 --- a/wearable/TC/utc/utc_mm_sound_play_sound_func.c +++ /dev/null @@ -1,109 +0,0 @@ -/* - * libmm-sound - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Seungbae Shin <seungbae.shin@samsung.com> - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -/** -* @ingroup MMF_SOUND_API -* @addtogroup SOUND -*/ - -/** -* @ingroup SOUND -* @addtogroup UTS_MMF_SOUND Unit -*/ - -/** -* @ingroup UTS_MMF_SOUND Unit -* @addtogroup UTS_MMF_SOUND_VOLUME_GET_STEP Uts_Mmf_Sound_Volume_Get_Step -* @{ -*/ - -/** -* @file uts_mm_sound_volume_get_step_func.c -* @brief This is a suit of unit test cases to test mm_sound_volume_get_step API -* @author Kwanghui Cho (kwanghui.cho@samsung.com) -* @version Initial Creation Version 0.1 -* @date 2010.10.05 -*/ - - -#include "utc_mm_sound_common.h" - - -/////////////////////////////////////////////////////////////////////////////////////////////////// -//------------------------------------------------------------------------------------------------- -/////////////////////////////////////////////////////////////////////////////////////////////////// -// Declare the global variables and registers and Internal Funntions -//------------------------------------------------------------------------------------------------- -#define API_NAME "mm_sound_play_sound" -struct tet_testlist tet_testlist[] = { - {utc_mm_sound_play_sound_func_01, 1}, - {utc_mm_sound_play_sound_func_02, 2}, - {NULL, 0} -}; -#define VALID_TEST_FILE "/usr/share/keysound/poweron.wav" -#define INVALID_TEST_FILE "/usr/share/keysound/AUI/Alarm12345.wav" -/////////////////////////////////////////////////////////////////////////////////////////////////// -/* Initialize TCM data structures */ - -/* Start up function for each test purpose */ -void -startup () -{ -} - -/* Clean up function for each test purpose */ -void -cleanup () -{ -} - - -void utc_mm_sound_play_sound_func_01() -{ - int ret = MM_ERROR_NONE; - int handle = 0; - const char filename[] = VALID_TEST_FILE; - - ret = mm_sound_play_sound(filename, VOLUME_TYPE_MEDIA, NULL, NULL, &handle); - - dts_check_eq(API_NAME, ret , MM_ERROR_NONE); - return; -} - - -void utc_mm_sound_play_sound_func_02() -{ - int ret = MM_ERROR_NONE; - int handle = 0; - const char filename[] = INVALID_TEST_FILE; - - ret = mm_sound_play_sound(filename, VOLUME_TYPE_MEDIA, NULL, NULL, &handle); - - dts_check_ne(API_NAME, ret, MM_ERROR_NONE); - - return; -} - -/** @} */ - - - - diff --git a/wearable/TC/utc/utc_mm_sound_play_tone_func.c b/wearable/TC/utc/utc_mm_sound_play_tone_func.c deleted file mode 100644 index f0ba1b5..0000000 --- a/wearable/TC/utc/utc_mm_sound_play_tone_func.c +++ /dev/null @@ -1,110 +0,0 @@ -/* - * libmm-sound - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Seungbae Shin <seungbae.shin@samsung.com> - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -/** -* @ingroup MMF_SOUND_API -* @addtogroup SOUND -*/ - -/** -* @ingroup SOUND -* @addtogroup UTS_MMF_SOUND Unit -*/ - -/** -* @ingroup UTS_MMF_SOUND Unit -* @addtogroup UTS_MMF_SOUND_VOLUME_GET_STEP Uts_Mmf_Sound_Volume_Get_Step -* @{ -*/ - -/** -* @file uts_mm_sound_volume_get_step_func.c -* @brief This is a suit of unit test cases to test mm_sound_volume_get_step API -* @author Kwanghui Cho (kwanghui.cho@samsung.com) -* @version Initial Creation Version 0.1 -* @date 2010.10.05 -*/ - - -#include "utc_mm_sound_common.h" - - -/////////////////////////////////////////////////////////////////////////////////////////////////// -//------------------------------------------------------------------------------------------------- -/////////////////////////////////////////////////////////////////////////////////////////////////// -// Declare the global variables and registers and Internal Funntions -//------------------------------------------------------------------------------------------------- -#define API_NAME "mm_sound_play_tone" -struct tet_testlist tet_testlist[] = { - {utc_mm_sound_play_tone_func_01, 1}, - {utc_mm_sound_play_tone_func_02, 2}, - {NULL, 0} -}; - -/////////////////////////////////////////////////////////////////////////////////////////////////// -/* Initialize TCM data structures */ - -/* Start up function for each test purpose */ -void -startup () -{ -} - -/* Clean up function for each test purpose */ -void -cleanup () -{ -} - - -void utc_mm_sound_play_tone_func_01() -{ - int ret = MM_ERROR_NONE; - MMSoundTone_t tone_num = MM_SOUND_TONE_DTMF_0; - sound_time_msec_t msec = 1000; - int handle; - ret = mm_sound_play_tone(tone_num, VOLUME_TYPE_SYSTEM, 1.0, msec, &handle); - - dts_check_eq(API_NAME, ret, MM_ERROR_NONE); - - return; -} - - -void utc_mm_sound_play_tone_func_02() -{ - int ret = 0; - MMSoundTone_t tone_num = MM_SOUND_TONE_NUM; //this is invalid parameter - sound_time_msec_t msec = 1000; - int handle; - - ret = mm_sound_play_tone(tone_num, VOLUME_TYPE_SYSTEM, 1.0, msec, &handle); - - dts_check_ne(API_NAME, ret, MM_ERROR_NONE); - - return; -} - -/** @} */ - - - - diff --git a/wearable/TC/utc/utc_mm_sound_stop_sound_func.c b/wearable/TC/utc/utc_mm_sound_stop_sound_func.c deleted file mode 100644 index badb835..0000000 --- a/wearable/TC/utc/utc_mm_sound_stop_sound_func.c +++ /dev/null @@ -1,115 +0,0 @@ -/* - * libmm-sound - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Seungbae Shin <seungbae.shin@samsung.com> - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -/** -* @ingroup MMF_SOUND_API -* @addtogroup SOUND -*/ - -/** -* @ingroup SOUND -* @addtogroup UTS_MMF_SOUND Unit -*/ - -/** -* @ingroup UTS_MMF_SOUND Unit -* @addtogroup UTS_MMF_SOUND_VOLUME_GET_STEP Uts_Mmf_Sound_Volume_Get_Step -* @{ -*/ - -/** -* @file uts_mm_sound_volume_get_step_func.c -* @brief This is a suit of unit test cases to test mm_sound_volume_get_step API -* @author Kwanghui Cho (kwanghui.cho@samsung.com) -* @version Initial Creation Version 0.1 -* @date 2010.10.05 -*/ - - -#include "utc_mm_sound_common.h" - - -/////////////////////////////////////////////////////////////////////////////////////////////////// -//------------------------------------------------------------------------------------------------- -/////////////////////////////////////////////////////////////////////////////////////////////////// -// Declare the global variables and registers and Internal Funntions -//------------------------------------------------------------------------------------------------- -#define API_NAME "mm_sound_stop_sound" - -struct tet_testlist tet_testlist[] = { - {utc_mm_sound_stop_sound_func_01, 1}, - {utc_mm_sound_stop_sound_func_02, 2}, - {NULL, 0} -}; - -#define VALID_TEST_FILE "/usr/share/keysound/poweron.wav" -/////////////////////////////////////////////////////////////////////////////////////////////////// -/* Initialize TCM data structures */ - -/* Start up function for each test purpose */ -void -startup () -{ -} - -/* Clean up function for each test purpose */ -void -cleanup () -{ -} - - -void utc_mm_sound_stop_sound_func_01() -{ - int ret = MM_ERROR_NONE; - int handle = 0; - const char filename[] = VALID_TEST_FILE; - - mm_sound_play_sound(filename, VOLUME_TYPE_MEDIA, NULL, NULL, &handle); - sleep(1); - ret = mm_sound_stop_sound(handle); - - dts_check_eq(API_NAME, ret, MM_ERROR_NONE); - - return; -} - - -void utc_mm_sound_stop_sound_func_02() -{ - int ret = 0; - int handle = 0; - const char filename[] = VALID_TEST_FILE; - - mm_sound_play_sound(filename, VOLUME_TYPE_MEDIA, NULL, NULL, &handle); - sleep(1); - ret = mm_sound_stop_sound(100); - - dts_check_ne(API_NAME, ret, MM_ERROR_NONE); - - return; -} - -/** @} */ - - - - diff --git a/wearable/TC/utc/utc_mm_sound_volume_add_callback_func.c b/wearable/TC/utc/utc_mm_sound_volume_add_callback_func.c deleted file mode 100644 index 2205f6a..0000000 --- a/wearable/TC/utc/utc_mm_sound_volume_add_callback_func.c +++ /dev/null @@ -1,116 +0,0 @@ -/* - * libmm-sound - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Seungbae Shin <seungbae.shin@samsung.com> - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -/** -* @ingroup MMF_SOUND_API -* @addtogroup SOUND -*/ - -/** -* @ingroup SOUND -* @addtogroup UTS_MMF_SOUND Unit -*/ - -/** -* @ingroup UTS_MMF_SOUND Unit -* @addtogroup UTS_MMF_SOUND_VOLUME_ADD_CALLBACK Uts_Mmf_Sound_Volume_Add_Callback -* @{ -*/ - -/** -* @file uts_mm_sound_volume_add_callback_func.c -* @brief This is a suit of unit test cases to test mm_sound_volume_add_callback API -* @author Kwanghui Cho (kwanghui.cho@samsung.com) -* @version Initial Creation Version 0.1 -* @date 2010.10.05 -*/ - - -#include "utc_mm_sound_common.h" - - -/////////////////////////////////////////////////////////////////////////////////////////////////// -//------------------------------------------------------------------------------------------------- -/////////////////////////////////////////////////////////////////////////////////////////////////// -// Declare the global variables and registers and Internal Funntions -//------------------------------------------------------------------------------------------------- -#define API_NAME "mm_sound_volume_add_callback" - -struct tet_testlist tet_testlist[] = { - {utc_mm_sound_volume_add_callback_func_01, 1}, - {utc_mm_sound_volume_add_callback_func_02, 2}, - {NULL, 0} -}; - -int g_param; -/////////////////////////////////////////////////////////////////////////////////////////////////// -/* Initialize TCM data structures */ - -/* Start up function for each test purpose */ -void -startup () -{ -} - -/* Clean up function for each test purpose */ -void -cleanup () -{ -} - -void _volume_callback(void *data) -{ - //dummy callback -} - -void utc_mm_sound_volume_add_callback_func_01() -{ - int ret = 0; - - ret = mm_sound_volume_add_callback(VOLUME_TYPE_RINGTONE, _volume_callback, (void*) g_param); - - dts_check_eq(API_NAME, ret, MM_ERROR_NONE); - - mm_sound_volume_remove_callback(VOLUME_TYPE_RINGTONE); - - return; -} - - -void utc_mm_sound_volume_add_callback_func_02() -{ - int ret = MM_ERROR_NONE; - - - ret = mm_sound_volume_add_callback(VOLUME_TYPE_RINGTONE, NULL, (void*)g_param); - - dts_check_ne(API_NAME, ret, MM_ERROR_NONE); - - return; - -} - - -/** @} */ - - - - diff --git a/wearable/TC/utc/utc_mm_sound_volume_get_current_playing_type_func.c b/wearable/TC/utc/utc_mm_sound_volume_get_current_playing_type_func.c deleted file mode 100644 index 2ed15e8..0000000 --- a/wearable/TC/utc/utc_mm_sound_volume_get_current_playing_type_func.c +++ /dev/null @@ -1,133 +0,0 @@ -/* - * libmm-sound - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Seungbae Shin <seungbae.shin@samsung.com> - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -/** -* @ingroup MMF_SOUND_API -* @addtogroup SOUND -*/ - -/** -* @ingroup SOUND -* @addtogroup UTS_MMF_SOUND Unit -*/ - -/** -* @ingroup UTS_MMF_SOUND Unit -* @addtogroup UTS_MMF_SOUND_VOLUME_GET_STEP Uts_Mmf_Sound_Volume_Get_Step -* @{ -*/ - -/** -* @file uts_mm_sound_volume_get_step_func.c -* @brief This is a suit of unit test cases to test mm_sound_volume_get_step API -* @author Kwanghui Cho (kwanghui.cho@samsung.com) -* @version Initial Creation Version 0.1 -* @date 2010.10.05 -*/ - - -#include "utc_mm_sound_common.h" - - -/////////////////////////////////////////////////////////////////////////////////////////////////// -//------------------------------------------------------------------------------------------------- -/////////////////////////////////////////////////////////////////////////////////////////////////// -// Declare the global variables and registers and Internal Funntions -//------------------------------------------------------------------------------------------------- -#define API_NAME "mm_sound_volume_get_current_playing_type" - -struct tet_testlist tet_testlist[] = { - {utc_mm_sound_volume_get_current_playing_type_func_01, 1}, - {utc_mm_sound_volume_get_current_playing_type_func_02, 2}, - {NULL, 0} -}; - -/////////////////////////////////////////////////////////////////////////////////////////////////// -/* Initialize TCM data structures */ - -/* Start up function for each test purpose */ -void -startup () -{ -} - -/* Clean up function for each test purpose */ -void -cleanup () -{ -} - -void utc_mm_sound_volume_get_current_playing_type_func_01() -{ - int ret = 0; - volume_type_t type; - - ret = mm_sound_volume_get_current_playing_type(&type); - - switch(ret) - { - case MM_ERROR_NONE: - case MM_ERROR_SOUND_VOLUME_NO_INSTANCE: - case MM_ERROR_SOUND_VOLUME_CAPTURE_ONLY: - dts_pass(API_NAME, "success"); - break; - - case MM_ERROR_INVALID_ARGUMENT: - case MM_ERROR_SOUND_INTERNAL: - default: - dts_fail(API_NAME, "invalid returns"); - break; - } - - return; -} - - -void utc_mm_sound_volume_get_current_playing_type_func_02() -{ - int ret = 0; - volume_type_t* type = NULL; - - ret = mm_sound_volume_get_current_playing_type(type); - - switch(ret) - { - case MM_ERROR_NONE: - case MM_ERROR_SOUND_VOLUME_NO_INSTANCE: - case MM_ERROR_SOUND_VOLUME_CAPTURE_ONLY: - dts_fail(API_NAME,"invalid success returns"); - break; - - case MM_ERROR_INVALID_ARGUMENT: - case MM_ERROR_SOUND_INTERNAL: - default: - dts_pass(API_NAME,"vaild error returns"); - break; - } - - return; -} - -/** @} */ - - - - diff --git a/wearable/TC/utc/utc_mm_sound_volume_get_step_func.c b/wearable/TC/utc/utc_mm_sound_volume_get_step_func.c deleted file mode 100644 index b4817df..0000000 --- a/wearable/TC/utc/utc_mm_sound_volume_get_step_func.c +++ /dev/null @@ -1,134 +0,0 @@ -/* - * libmm-sound - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Seungbae Shin <seungbae.shin@samsung.com> - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -/** -* @ingroup MMF_SOUND_API -* @addtogroup SOUND -*/ - -/** -* @ingroup SOUND -* @addtogroup UTS_MMF_SOUND Unit -*/ - -/** -* @ingroup UTS_MMF_SOUND Unit -* @addtogroup UTS_MMF_SOUND_VOLUME_GET_STEP Uts_Mmf_Sound_Volume_Get_Step -* @{ -*/ - -/** -* @file uts_mm_sound_volume_get_step_func.c -* @brief This is a suit of unit test cases to test mm_sound_volume_get_step API -* @author Kwanghui Cho (kwanghui.cho@samsung.com) -* @version Initial Creation Version 0.1 -* @date 2010.10.05 -*/ - - -#include "utc_mm_sound_common.h" - - -/////////////////////////////////////////////////////////////////////////////////////////////////// -//------------------------------------------------------------------------------------------------- -/////////////////////////////////////////////////////////////////////////////////////////////////// -// Declare the global variables and registers and Internal Funntions -//------------------------------------------------------------------------------------------------- -#define API_NAME "mm_sound_volume_get_step" - -struct tet_testlist tet_testlist[] = { - {utc_mm_sound_volume_get_step_func_01, 1}, - {utc_mm_sound_volume_get_step_func_02, 2}, - {utc_mm_sound_volume_get_step_func_03, 3}, - {utc_mm_sound_volume_get_step_func_04, 4}, - {NULL, 0} -}; - -/////////////////////////////////////////////////////////////////////////////////////////////////// -/* Initialize TCM data structures */ - -/* Start up function for each test purpose */ -void -startup () -{ -} - -/* Clean up function for each test purpose */ -void -cleanup () -{ -} - -void utc_mm_sound_volume_get_step_func_01() -{ - int ret = MM_ERROR_NONE; - int step = 0; - - ret = mm_sound_volume_get_step(VOLUME_TYPE_MEDIA, &step); - - dts_check_eq(API_NAME, ret, MM_ERROR_NONE); - - return; -} - - -void utc_mm_sound_volume_get_step_func_02() -{ - int ret = 0; - int step = 0; - - - ret = mm_sound_volume_get_step(VOLUME_TYPE_MAX, &step); - - dts_check_ne(API_NAME, ret, MM_ERROR_NONE); - - return; -} - -void utc_mm_sound_volume_get_step_func_03() -{ - int ret = 0; - int *step = NULL; - - ret = mm_sound_volume_get_step(VOLUME_TYPE_MEDIA, step); - - dts_check_ne(API_NAME, ret, MM_ERROR_NONE); - - return; -} - -void utc_mm_sound_volume_get_step_func_04() -{ - int ret = 0; - int step = 0; - - ret = mm_sound_volume_get_step(-1, &step); - - dts_check_ne(API_NAME, ret, MM_ERROR_NONE); - - return; -} - -/** @} */ - - - - diff --git a/wearable/TC/utc/utc_mm_sound_volume_get_value_func.c b/wearable/TC/utc/utc_mm_sound_volume_get_value_func.c deleted file mode 100644 index b0f080f..0000000 --- a/wearable/TC/utc/utc_mm_sound_volume_get_value_func.c +++ /dev/null @@ -1,107 +0,0 @@ -/* - * libmm-sound - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Seungbae Shin <seungbae.shin@samsung.com> - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -/** -* @ingroup MMF_SOUND_API -* @addtogroup SOUND -*/ - -/** -* @ingroup SOUND -* @addtogroup UTS_MMF_SOUND Unit -*/ - -/** -* @ingroup UTS_MMF_SOUND Unit -* @addtogroup UTS_MMF_SOUND_VOLUME_GET_STEP Uts_Mmf_Sound_Volume_Get_Step -* @{ -*/ - -/** -* @file uts_mm_sound_volume_get_step_func.c -* @brief This is a suit of unit test cases to test mm_sound_volume_get_step API -* @author Kwanghui Cho (kwanghui.cho@samsung.com) -* @version Initial Creation Version 0.1 -* @date 2010.10.05 -*/ - - -#include "utc_mm_sound_common.h" - - -/////////////////////////////////////////////////////////////////////////////////////////////////// -//------------------------------------------------------------------------------------------------- -/////////////////////////////////////////////////////////////////////////////////////////////////// -// Declare the global variables and registers and Internal Funntions -//------------------------------------------------------------------------------------------------- -#define API_NAME "mm_sound_volume_get_value" - -struct tet_testlist tet_testlist[] = { - {utc_mm_sound_volume_get_value_func_01, 1}, - {utc_mm_sound_volume_get_value_func_02, 2}, - {NULL, 0} -}; - -/////////////////////////////////////////////////////////////////////////////////////////////////// -/* Initialize TCM data structures */ - -/* Start up function for each test purpose */ -void -startup () -{ -} - -/* Clean up function for each test purpose */ -void -cleanup () -{ -} - -void utc_mm_sound_volume_get_value_func_01() -{ - int ret = 0; - unsigned int value = 0; - - ret = mm_sound_volume_get_value(VOLUME_TYPE_SYSTEM, &value); - - dts_check_eq(API_NAME, ret, MM_ERROR_NONE); - - return; -} - - -void utc_mm_sound_volume_get_value_func_02() -{ - int ret = 0; - unsigned int value = 0; - - ret = mm_sound_volume_get_value(VOLUME_TYPE_MAX, &value); - - dts_check_ne(API_NAME, ret, MM_ERROR_NONE); - - return; -} - -/** @} */ - - - - diff --git a/wearable/TC/utc/utc_mm_sound_volume_primary_type_clear_func.c b/wearable/TC/utc/utc_mm_sound_volume_primary_type_clear_func.c deleted file mode 100644 index 72d6dd3..0000000 --- a/wearable/TC/utc/utc_mm_sound_volume_primary_type_clear_func.c +++ /dev/null @@ -1,117 +0,0 @@ -/* - * libmm-sound - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Seungbae Shin <seungbae.shin@samsung.com> - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -/** -* @ingroup MMF_SOUND_API -* @addtogroup SOUND -*/ - -/** -* @ingroup SOUND -* @addtogroup UTS_MMF_SOUND Unit -*/ - -/** -* @ingroup UTS_MMF_SOUND Unit -* @addtogroup UTS_MMF_SOUND_VOLUME_GET_STEP Uts_Mmf_Sound_Volume_Get_Step -* @{ -*/ - -/** -* @file uts_mm_sound_volume_get_step_func.c -* @brief This is a suit of unit test cases to test mm_sound_volume_get_step API -* @author Kwanghui Cho (kwanghui.cho@samsung.com) -* @version Initial Creation Version 0.1 -* @date 2010.10.05 -*/ - - -#include "utc_mm_sound_common.h" - - -/////////////////////////////////////////////////////////////////////////////////////////////////// -//------------------------------------------------------------------------------------------------- -/////////////////////////////////////////////////////////////////////////////////////////////////// -// Declare the global variables and registers and Internal Funntions -//------------------------------------------------------------------------------------------------- -#define API_NAME "mm_sound_volume_primary_type_clear" - -struct tet_testlist tet_testlist[] = { - {utc_mm_sound_volume_primary_type_clear_func_01, 1}, - {NULL, 0} -}; - -/////////////////////////////////////////////////////////////////////////////////////////////////// -/* Initialize TCM data structures */ - -/* Start up function for each test purpose */ -void -startup () -{ -} - -/* Clean up function for each test purpose */ -void -cleanup () -{ -} - -void utc_mm_sound_volume_primary_type_clear_func_01() -{ - int ret = 0; - volume_type_t set_type = VOLUME_TYPE_RINGTONE ; - volume_type_t read_type = VOLUME_TYPE_RINGTONE; - - mm_sound_volume_primary_type_set(set_type); - - ret = mm_sound_volume_primary_type_clear(); - - dts_check_eq(API_NAME, ret, MM_ERROR_NONE); - - - ret = mm_sound_volume_get_current_playing_type(&read_type); - - if(ret == MM_ERROR_NONE) - { - if(read_type == set_type) { - //char buffer[128] = {0,}; - //snprintf(buffer, sizeof(buffer)-1,"ret 0x%x, set type %d, read type %d", ret, set_type, read_type); - //tet_infoline( buffer ); - dts_fail(API_NAME,"double check failed"); - } - else { - dts_pass(API_NAME, "double check success"); - } - } - else - { - dts_pass(API_NAME, "double check success"); - } - - return; -} - - -/** @} */ - - - - diff --git a/wearable/TC/utc/utc_mm_sound_volume_primary_type_set_func.c b/wearable/TC/utc/utc_mm_sound_volume_primary_type_set_func.c deleted file mode 100644 index 8733648..0000000 --- a/wearable/TC/utc/utc_mm_sound_volume_primary_type_set_func.c +++ /dev/null @@ -1,119 +0,0 @@ -/* - * libmm-sound - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Seungbae Shin <seungbae.shin@samsung.com> - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -/** -* @ingroup MMF_SOUND_API -* @addtogroup SOUND -*/ - -/** -* @ingroup SOUND -* @addtogroup UTS_MMF_SOUND Unit -*/ - -/** -* @ingroup UTS_MMF_SOUND Unit -* @addtogroup UTS_MMF_SOUND_VOLUME_GET_STEP Uts_Mmf_Sound_Volume_Get_Step -* @{ -*/ - -/** -* @file uts_mm_sound_volume_get_step_func.c -* @brief This is a suit of unit test cases to test mm_sound_volume_get_step API -* @author Kwanghui Cho (kwanghui.cho@samsung.com) -* @version Initial Creation Version 0.1 -* @date 2010.10.05 -*/ - - -#include "utc_mm_sound_common.h" - - -/////////////////////////////////////////////////////////////////////////////////////////////////// -//------------------------------------------------------------------------------------------------- -/////////////////////////////////////////////////////////////////////////////////////////////////// -// Declare the global variables and registers and Internal Funntions -//------------------------------------------------------------------------------------------------- -#define API_NAME "mm_sound_volume_primary_type_set" - -struct tet_testlist tet_testlist[] = { - {utc_mm_sound_volume_primary_type_set_func_01, 1}, - {utc_mm_sound_volume_primary_type_set_func_02, 2}, - {NULL, 0} -}; - -/////////////////////////////////////////////////////////////////////////////////////////////////// -/* Initialize TCM data structures */ - -/* Start up function for each test purpose */ -void -startup () -{ -} - -/* Clean up function for each test purpose */ -void -cleanup () -{ -} - -void utc_mm_sound_volume_primary_type_set_func_01() -{ - int ret = 0; - volume_type_t set_type = VOLUME_TYPE_RINGTONE ; - volume_type_t read_type = VOLUME_TYPE_SYSTEM; - - ret = mm_sound_volume_primary_type_set(set_type); - - dts_check_eq(API_NAME, ret, MM_ERROR_NONE); - - mm_sound_volume_get_current_playing_type(&read_type); - if(read_type != set_type) { - dts_fail(API_NAME, "double check failed"); - } - else { - dts_pass(API_NAME,"double check success"); - } - - mm_sound_volume_primary_type_clear(); - return; -} - - -void utc_mm_sound_volume_primary_type_set_func_02() -{ - int ret = 0; - volume_type_t set_type = VOLUME_TYPE_MAX ; - - ret = mm_sound_volume_primary_type_set(set_type); - - dts_check_ne(API_NAME, ret, MM_ERROR_NONE); - - mm_sound_volume_primary_type_clear(); - return; -} - - -/** @} */ - - - - diff --git a/wearable/TC/utc/utc_mm_sound_volume_remove_callback_func.c b/wearable/TC/utc/utc_mm_sound_volume_remove_callback_func.c deleted file mode 100644 index 88785af..0000000 --- a/wearable/TC/utc/utc_mm_sound_volume_remove_callback_func.c +++ /dev/null @@ -1,137 +0,0 @@ -/* - * libmm-sound - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Seungbae Shin <seungbae.shin@samsung.com> - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -/** -* @ingroup MMF_SOUND_API -* @addtogroup SOUND -*/ - -/** -* @ingroup SOUND -* @addtogroup UTS_MMF_SOUND Unit -*/ - -/** -* @ingroup UTS_MMF_SOUND Unit -* @addtogroup UTS_MMF_SOUND_VOLUME_ADD_CALLBACK Uts_Mmf_Sound_Volume_Add_Callback -* @{ -*/ - -/** -* @file uts_mm_sound_volume_add_callback_func.c -* @brief This is a suit of unit test cases to test mm_sound_volume_add_callback API -* @author Kwanghui Cho (kwanghui.cho@samsung.com) -* @version Initial Creation Version 0.1 -* @date 2010.10.05 -*/ - - -#include "utc_mm_sound_common.h" - - -/////////////////////////////////////////////////////////////////////////////////////////////////// -//------------------------------------------------------------------------------------------------- -/////////////////////////////////////////////////////////////////////////////////////////////////// -// Declare the global variables and registers and Internal Funntions -//------------------------------------------------------------------------------------------------- -#define API_NAME "mm_sound_volume_remove_callback" - -struct tet_testlist tet_testlist[] = { - {utc_mm_sound_volume_remove_callback_func_01, 1}, - {utc_mm_sound_volume_remove_callback_func_02, 2}, - {NULL, 0} -}; - -/////////////////////////////////////////////////////////////////////////////////////////////////// -/* Initialize TCM data structures */ - -/* Start up function for each test purpose */ -void -startup () -{ -} - -/* Clean up function for each test purpose */ -void -cleanup () -{ -} - -volume_type_t g_vol_type = VOLUME_TYPE_MEDIA; -volatile int callback_done = 0; - -void _volume_callback(void *data) -{ - callback_done = 1; -} - -void utc_mm_sound_volume_remove_callback_func_01() -{ - int ret = 0; - unsigned int value = 0; - int step = 0; - int wait=0; - - - mm_sound_volume_add_callback(g_vol_type, _volume_callback, (void*)&g_vol_type); - - ret = mm_sound_volume_remove_callback(g_vol_type); - dts_check_eq(API_NAME, ret, MM_ERROR_NONE); - - mm_sound_volume_get_step(g_vol_type, &step); - mm_sound_volume_get_value(g_vol_type, &value); - if(value == 0) - value++; - else if(value == (step-1)) - value--; - else - value++; - - mm_sound_volume_set_value(g_vol_type, value); - sleep(1); - - dts_check_eq(API_NAME, callback_done, 0); - - return; -} - - -void utc_mm_sound_volume_remove_callback_func_02() -{ - int ret = 0; - - mm_sound_volume_add_callback(g_vol_type, _volume_callback, (void*)&g_vol_type); - - ret = mm_sound_volume_remove_callback(VOLUME_TYPE_MAX); - - dts_check_ne(API_NAME, ret, MM_ERROR_NONE); - - mm_sound_volume_remove_callback(g_vol_type); - - return; -} - - -/** @} */ - - - - diff --git a/wearable/TC/utc/utc_mm_sound_volume_set_value_func.c b/wearable/TC/utc/utc_mm_sound_volume_set_value_func.c deleted file mode 100644 index 21e7abd..0000000 --- a/wearable/TC/utc/utc_mm_sound_volume_set_value_func.c +++ /dev/null @@ -1,109 +0,0 @@ -/* - * libmm-sound - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Seungbae Shin <seungbae.shin@samsung.com> - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -/** -* @ingroup MMF_SOUND_API -* @addtogroup SOUND -*/ - -/** -* @ingroup SOUND -* @addtogroup UTS_MMF_SOUND Unit -*/ - -/** -* @ingroup UTS_MMF_SOUND Unit -* @addtogroup UTS_MMF_SOUND_VOLUME_GET_STEP Uts_Mmf_Sound_Volume_Get_Step -* @{ -*/ - -/** -* @file uts_mm_sound_volume_get_step_func.c -* @brief This is a suit of unit test cases to test mm_sound_volume_get_step API -* @author Kwanghui Cho (kwanghui.cho@samsung.com) -* @version Initial Creation Version 0.1 -* @date 2010.10.05 -*/ - - -#include "utc_mm_sound_common.h" - - -/////////////////////////////////////////////////////////////////////////////////////////////////// -//------------------------------------------------------------------------------------------------- -/////////////////////////////////////////////////////////////////////////////////////////////////// -// Declare the global variables and registers and Internal Funntions -//------------------------------------------------------------------------------------------------- -#define API_NAME "mm_sound_volume_set_value" - -struct tet_testlist tet_testlist[] = { - {utc_mm_sound_volume_set_value_func_01, 1}, - {utc_mm_sound_volume_set_value_func_02, 2}, - {NULL, 0} -}; -#define VALID_TEST_VOLUME_VALUE 3 -#define INVALID_TEST_VOLUME_VALUE -1 - -/////////////////////////////////////////////////////////////////////////////////////////////////// -/* Initialize TCM data structures */ - -/* Start up function for each test purpose */ -void -startup () -{ -} - -/* Clean up function for each test purpose */ -void -cleanup () -{ -} - -void utc_mm_sound_volume_set_value_func_01() -{ - int ret = 0; - unsigned int value = VALID_TEST_VOLUME_VALUE; - - ret = mm_sound_volume_set_value(VOLUME_TYPE_SYSTEM, value); - - dts_check_eq(API_NAME, ret, MM_ERROR_NONE); - - return; -} - - -void utc_mm_sound_volume_set_value_func_02() -{ - int ret = 0; - unsigned int value = INVALID_TEST_VOLUME_VALUE; - - ret = mm_sound_volume_set_value(VOLUME_TYPE_SYSTEM, value); - - dts_check_ne(API_NAME, ret, MM_ERROR_NONE); - - return; -} - -/** @} */ - - - - |