// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

LOAD_SUITE TSI_MMFACLNT.DLL
#PAUSE_AT_END

# wait for ring.wav to finish playing
delay 5000

###################### POSITIVE TEST ###############

#Req. under test REQ172.1.51.2   REQ172.1.51.8.1   REQ172.1.51.2
# Convert ? to ?.
//! @SYMTestCaseID MM-MMF-ACLNT-I-7001-HP

RUN_TEST_STEP 60000, ACLNT, MM-MMF-ACLNT-I-7001-HP \audio.ini
TEST_COMPLETE

#Req. under test REQ172.1.51.2 REQ172.1.51.8.1 REQ172.1.51.8.2 REQ172.1.51.9 REQ172.1.51.6
#Converts PCM16 -> PCM8 
//! @SYMTestCaseID MM-MMF-ACLNT-I-7003-LP

RUN_TEST_STEP -1, ACLNT, MM-MMF-ACLNT-I-7003-LP, \audio.ini
TEST_COMPLETE

#Req. under test REQ172.1.51.2 REQ172.1.51.8.1 REQ172.1.51.8.2 REQ172.1.51.9 REQ172.1.51.6
#Converts PCM16 -> ALAW 
//! @SYMTestCaseID MM-MMF-ACLNT-I-7004-LP

RUN_TEST_STEP -1, ACLNT, MM-MMF-ACLNT-I-7004-LP, \audio.ini
TEST_COMPLETE

#Req. under test REQ172.1.51.2 REQ172.1.51.8.1 REQ172.1.51.8.2 REQ172.1.51.9 REQ172.1.51.6
#Converts PCM16 -> PCMU16 
//! @SYMTestCaseID MM-MMF-ACLNT-I-7005-LP

RUN_TEST_STEP 120000, ACLNT, MM-MMF-ACLNT-I-7005-LP, \audio.ini
TEST_COMPLETE

#Req. under test REQ172.1.51.2 REQ172.1.51.8.1 REQ172.1.51.8.2 REQ172.1.51.9 REQ172.1.51.6
#Converts PCM16 -> PCMU8 
//! @SYMTestCaseID MM-MMF-ACLNT-I-7006-LP

RUN_TEST_STEP -1, ACLNT, MM-MMF-ACLNT-I-7006-LP, \audio.ini
TEST_COMPLETE

#Req. under test REQ172.1.51.2 REQ172.1.51.8.1 REQ172.1.51.8.2 REQ172.1.51.9 REQ172.1.51.6
#Converts PCM16 -> uLAW 
//! @SYMTestCaseID MM-MMF-ACLNT-I-7007-LP

RUN_TEST_STEP -1, ACLNT, MM-MMF-ACLNT-I-7007-LP, \audio.ini
TEST_COMPLETE


#Req. under test REQ172.1.51.2 REQ172.1.51.8.1 REQ172.1.51.8.2 REQ172.1.51.9 REQ172.1.51.7
#Converts PCM16 file -> ALAW  URL
//! @SYMTestCaseID MM-MMF-ACLNT-I-7008-LP

RUN_TEST_STEP -1, ACLNT, MM-MMF-ACLNT-I-7008-LP, \audio.ini
TEST_COMPLETE

#inc21946
# Convert ? to ?.
//! @SYMTestCaseID MM-MMF-ACLNT-I-7009-HP

RUN_TEST_STEP 60000, ACLNT, MM-MMF-ACLNT-I-7009-HP \audio.ini
TEST_COMPLETE

#Req. under test  REQ172.1.51.2 REQ172.1.51.3 REQ172.1.51.4
# Open source and destination audio. Close them and open a new destination.
//! @SYMTestCaseID MM-MMF-ACLNT-I-0102-HP

RUN_TEST_STEP 10000, ACLNT, MM-MMF-ACLNT-I-0102-HP \audio.ini
TEST_COMPLETE

#Req. under test  REQ172.1.51.14 REQ172.1.51.15 REQ172.1.51.19
# Set convert window. Delete window
#PRINT <FONT COLOR=RED>TEST MM-MMF-ACLNT-I-0103-HP is commented out untill defect DEF011573 is fixed</FONT>
//! @SYMTestCaseID MM-MMF-ACLNT-I-0103-HP

RUN_TEST_STEP 60000, ACLNT, MM-MMF-ACLNT-I-0103-HP \audio.ini
TEST_COMPLETE

#Req. under test  REQ172.1.51.13
# Enquire duration
//! @SYMTestCaseID MM-MMF-ACLNT-I-0104-LP

RUN_TEST_STEP 60000, ACLNT, MM-MMF-ACLNT-I-0104-LP \audio.ini
TEST_COMPLETE

#Req. under test  REQ172.1.51.11 REQ172.1.51.12
# Set position and equire position
//! @SYMTestCaseID MM-MMF-ACLNT-I-0105-LP

RUN_TEST_STEP 60000, ACLNT, MM-MMF-ACLNT-I-0105-LP \audio.ini
TEST_COMPLETE

#Req. under test  REQ172.1.51.8.*
# Set and config destination clip
//! @SYMTestCaseID MM-MMF-ACLNT-I-0106-HP

RUN_TEST_STEP 60000, ACLNT, MM-MMF-ACLNT-I-0106-HP \audio.ini
TEST_COMPLETE

#Req. under test  REQ172.1.51.18
# query transformations available.
//! @SYMTestCaseID MM-MMF-ACLNT-I-0107-LP

RUN_TEST_STEP 60000, ACLNT, MM-MMF-ACLNT-I-0107-LP \audio.ini
TEST_COMPLETE

###################### POSITIVE CODE COVERAGE TESTS ###############

#Req. under test REQ172.1.51.2 REQ172.1.51.8.1 REQ172.1.51.8.2 REQ172.1.51.9
# Checks aviable destination bit rates.
//! @SYMTestCaseID MM-MMF-ACLNT-I-0108-LP

RUN_TEST_STEP 60000, ACLNT, MM-MMF-ACLNT-I-0108-LP, \audio.ini
TEST_COMPLETE

#Req. under test REQ172.1.51.2 REQ172.1.51.8.1 REQ172.1.51.8.2 REQ172.1.51.9
#Checks  aviable destination sample rates 
#untill defect DEF011573   isn't fixed
#PRINT <FONT COLOR=RED>TEST MM-MMF-ACLNT-I-0109-LP is commented out untill defect DEF011573 is fixed</FONT>
//! @SYMTestCaseID MM-MMF-ACLNT-I-0109-LP

RUN_TEST_STEP 60000, ACLNT, MM-MMF-ACLNT-I-0109-LP, \audio.ini
TEST_COMPLETE

#Req. under test REQ172.1.51.2 REQ172.1.51.8.1 REQ172.1.51.8.2 REQ172.1.51.9
# Checks  aviable destination number of channels
//! @SYMTestCaseID MM-MMF-ACLNT-I-0110-LP

RUN_TEST_STEP 60000, ACLNT, MM-MMF-ACLNT-I-0110-LP, \audio.ini
TEST_COMPLETE


#Req. under test REQ172.1.51.2 REQ172.1.51.8.1 REQ172.1.51.8.2 REQ172.1.51.9
#Checks  aviable destination data types 
//! @SYMTestCaseID MM-MMF-ACLNT-I-0111-LP

RUN_TEST_STEP 60000, ACLNT, MM-MMF-ACLNT-I-0111-LP, \audio.ini
TEST_COMPLETE

#Req. under test REQ172.1.51.2 REQ172.1.51.8.1 REQ172.1.51.8.2 REQ172.1.51.9
# Checks  aviable destination formats
//! @SYMTestCaseID MM-MMF-ACLNT-I-0112-LP

RUN_TEST_STEP 60000, ACLNT, MM-MMF-ACLNT-I-0112-LP, \audio.ini
TEST_COMPLETE


#Req. under test REQ172.1.51.2 REQ172.1.51.8.1 REQ172.1.51.8.2 REQ172.1.51.9
#Checks  source info information 
//! @SYMTestCaseID MM-MMF-ACLNT-I-0114-LP

RUN_TEST_STEP 60000, ACLNT, MM-MMF-ACLNT-I-0114-LP, \audio.ini
TEST_COMPLETE

#Req. under test REQ172.1.51.2 REQ172.1.51.8.1 REQ172.1.51.8.2 REQ172.1.51.9
# Checks checks one of OpenL() functions and CropL() function
#untill defect DEF011573   isn't fixed
#PRINT <FONT COLOR=RED>TEST MM-MMF-ACLNT-I-0115-LP is commented out untill defect DEF011573 is fixed</FONT>
//! @SYMTestCaseID MM-MMF-ACLNT-I-0115-LP

RUN_TEST_STEP -1, ACLNT, MM-MMF-ACLNT-I-0115-LP, \audio.ini
TEST_COMPLETE


#Req. under test REQ172.1.51.2 REQ172.1.51.8.1 REQ172.1.51.8.2 REQ172.1.51.9
# Checks checks  one of OpenL() functions and CropFromBeginingL() function  
#PRINT <FONT COLOR=RED>TEST MM-MMF-ACLNT-I-0116-LP is commented out untill defect DEF011573 is fixed</FONT>
//! @SYMTestCaseID MM-MMF-ACLNT-I-0116-LP

RUN_TEST_STEP -1, ACLNT, MM-MMF-ACLNT-I-0116-LP, \audio.ini
TEST_COMPLETE

#Req. under test REQ172.1.51.2 REQ172.1.51.8.1 REQ172.1.51.8.2 REQ172.1.51.9
# Checks checks  SetMaxWriteLength() function  
//! @SYMTestCaseID MM-MMF-ACLNT-I-0117-LP

RUN_TEST_STEP -1, ACLNT, MM-MMF-ACLNT-I-0117-LP, \audio.ini
TEST_COMPLETE


#Req. under test REQ172.1.51.2 REQ172.1.51.8.1 REQ172.1.51.8.2 REQ172.1.51.9
# Checks checks  PlayL() and SetRepeats() functions 
//! @SYMTestCaseID MM-MMF-ACLNT-I-0118-LP

RUN_TEST_STEP -1, ACLNT, MM-MMF-ACLNT-I-0118-LP, \audio.ini
TEST_COMPLETE


#Req. under test REQ172.1.51.10
# Checks  checks  PlayL() and Stop() functions
//! @SYMTestCaseID MM-MMF-ACLNT-I-0119-LP

RUN_TEST_STEP -1, ACLNT, MM-MMF-ACLNT-I-0119-LP, \audio.ini
TEST_COMPLETE

#Req. under test REQ172.1.51.2 REQ172.1.51.8.1 REQ172.1.51.8.2 REQ172.1.51.9
# Checks checks  SetMaxWriteLength() function  
//! @SYMTestCaseID MM-MMF-ACLNT-I-0117-LP

RUN_TEST_STEP -1, ACLNT, MM-MMF-ACLNT-I-0117-LP, \audio.ini
TEST_COMPLETE


#Req. under test REQ172.1.51.2 REQ172.1.51.8.1 REQ172.1.51.8.2 REQ172.1.51.9
# Checks checks  PlayL() and SetRepeats() functions 
//! @SYMTestCaseID MM-MMF-ACLNT-I-0118-LP

RUN_TEST_STEP -1, ACLNT, MM-MMF-ACLNT-I-0118-LP, \audio.ini
TEST_COMPLETE


#Req. under test REQ172.1.51.10
# Checks  checks  PlayL() and Stop() functions
//! @SYMTestCaseID MM-MMF-ACLNT-I-0119-LP

RUN_TEST_STEP -1, ACLNT, MM-MMF-ACLNT-I-0119-LP, \audio.ini
TEST_COMPLETE

#Req. under test REQ172.1.51.10
# Checks CropL() function
//! @SYMTestCaseID MM-MMF-ACLNT-I-0120-LP

RUN_TEST_STEP -1, ACLNT, MM-MMF-ACLNT-I-0120-LP, \audio.ini
TEST_COMPLETE

################  NEGATIVE TESTS ###############

#Req. under test REQ172.1.51.8.*
# Invalid Destination configuration.
//! @SYMTestCaseID MM-MMF-ACLNT-I-1006-LP

RUN_TEST_STEP 60000, ACLNT, MM-MMF-ACLNT-I-1006-LP \audio.ini
TEST_COMPLETE

#Req. under test REQ172.1.51.2               REQ172.1.51.8.1     REQ172.1.51.8.2
# Convert audio to unsupported format.
//! @SYMTestCaseID MM-MMF-ACLNT-I-1050-LP

RUN_TEST_STEP 60000, ACLNT, MM-MMF-ACLNT-I-1050-LP \audio.ini
TEST_COMPLETE

#Req. under test REQ172.1.51.2               REQ172.1.51.8.1     REQ172.1.51.8.2
# Conversion utility - Delete object before conversion operation has completed.
//! @SYMTestCaseID MM-MMF-ACLNT-I-1051-CP

RUN_TEST_STEP 60000, ACLNT, MM-MMF-ACLNT-I-1051-CP \audio.ini
TEST_COMPLETE

#Req. under test REQ172.1.51.2      REQ172.1.51.3       REQ172.1.51.4
# Open new file while audio converter is converting. Open a new audio file.
//! @SYMTestCaseID MM-MMF-ACLNT-I-1052-LP

RUN_TEST_STEP 60000, ACLNT, MM-MMF-ACLNT-I-1052-LP \audio.ini
TEST_COMPLETE

#Req. under test REQ172.1.51.11        REQ172.1.51.12
# Set invalid position
//! @SYMTestCaseID MM-MMF-ACLNT-I-1053-LP

RUN_TEST_STEP 60000, ACLNT, MM-MMF-ACLNT-I-1053-LP \audio.ini
TEST_COMPLETE

#Req. under test REQ172.1.51.11        REQ172.1.51.12
# Set invalid position
//! @SYMTestCaseID MM-MMF-ACLNT-I-1054-LP

RUN_TEST_STEP 60000, ACLNT, MM-MMF-ACLNT-I-1054-LP \audio.ini
TEST_COMPLETE

#inc21946
# Convert audio to unsupported format.
//! @SYMTestCaseID MM-MMF-ACLNT-I-1055-LP

RUN_TEST_STEP 60000, ACLNT, MM-MMF-ACLNT-I-1055-LP \audio.ini
TEST_COMPLETE
