os/boardsupport/haitest/bspsvs/suite/bsp/sound/scripts/base-bsp-sound-driver-automated.script
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 //
     2 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 // All rights reserved.
     4 // This component and the accompanying materials are made available
     5 // under the terms of "Eclipse Public License v1.0"
     6 // which accompanies this distribution, and is available
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 //
     9 // Initial Contributors:
    10 // Nokia Corporation - initial contribution.
    11 //
    12 // Contributors:
    13 //
    14 // Description:
    15 //
    16 //! @file
    17 //! @SYMTestSuiteName  BASE-BSP-SOUND
    18 //! @SYMScriptTestEnvironment This test script requires a base rom image
    19 
    20 /////////////////////////////////////////////////////////////////////
    21 // BASE-BSP-SOUND-DRIVER-automated.script
    22 //
    23 //
    24 // Tests all the PublishedPartner APIs of the RMdaDevSound
    25 // class as a means of confidence that the APIs work as expected.
    26 // All test cases will keep the sound system state and 
    27 // restore that to initial state when test case finished
    28 // Platform dependent configuration is picked up from the global environment files
    29 //
    30 /////////////////////////////////////////////////////////////////////
    31 
    32 RUN_UTILS MkDir		${SYSDRIVE}\base\
    33 RUN_UTILS MkDir		${SYSDRIVE}\base\sound\
    34 RUN_UTILS MkDir		${SYSDRIVE}\base\sound\validation
    35 
    36 
    37 LOAD_SUITE	t_sound
    38 DELAY		5000
    39 
    40 /////////////////////////////////////////////
    41 // Driver functionality
    42 /////////////////////////////////////////////
    43 
    44 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-0001
    45 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-0001
    46 //! @SYMAPI			RMdaDevSound::Open(TInt)
    47 //! @SYMAuthor			Vassili Tsvetkov
    48 //! @SYMCreationDate		15/06/2008
    49 //! @SYMTestCaseDesc		Open a session to the sound device using the default unit of device value.
    50 //!				
    51 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
    52 //!				2. Call Close()
    53 //!
    54 //! @SYMTestStatus		Implemented
    55 //! @SYMTestPriority		Critical
    56 //! @SYMTestExpectedResults	Function does not leave nor panic. Session to the default sound driver is opened and closed
    57 //! @SYMTestType		CIT
    58 	START_TEST_BLOCK	100		t_sound			\base\sound\base-bsp-sound-driver.ini
    59 		CREATE_OBJECT	RMdaDevSound	devsound  
    60 		COMMAND		devsound	new
    61 		COMMAND		devsound	Open			UnitEnum
    62 		COMMAND		devsound  	Close
    63 		COMMAND		devsound  	~
    64 	END_TEST_BLOCK
    65 END_TESTCASE			BASE-BSP-SOUND-DRIVER-0001
    66 
    67 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-0002
    68 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-0002
    69 //! @SYMAPI			RMdaDevSound::VersionRequired();
    70 //!				RMdaDevSound::IsMdaSound()
    71 //! @SYMAuthor			Vassili Tsvetkov
    72 //! @SYMCreationDate		15/06/2008
    73 //! @SYMTestCaseDesc		Checkwhether the loaded driver is the MdaSound driver
    74 //!				and receive the version of sound driver
    75 //!				
    76 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]				
    77 //!				2. Call IsMdaSound() and check if that return KErrNone (it means, that loaded driver is MdaSound driver)
    78 //!				3. Call VersionRequired() and verify with expected value from [driver] section
    79 //!				4. Call Close()
    80 //!
    81 //! @SYMTestStatus		Implemented
    82 //! @SYMTestPriority		Critical
    83 //! @SYMTestExpectedResults	Loaded driver is MdaSound-type driver and version number is as expected
    84 //! @SYMTestType		CIT
    85 	START_TEST_BLOCK		100		t_sound			\base\sound\base-bsp-sound-driver.ini
    86 		CREATE_OBJECT		RMdaDevSound	devsound
    87 		COMMAND			devsound	new
    88 		COMMAND			devsound	Open			UnitEnum
    89 		COMMAND			devsound	IsMdaSound
    90 		COMMAND			devsound	VersionRequired		driver
    91 		COMMAND			devsound  	Close
    92 		COMMAND			devsound  	~
    93 	END_TEST_BLOCK
    94 END_TESTCASE			BASE-BSP-SOUND-DRIVER-0002
    95 
    96 ///////////////////////////////////////////
    97 // Format/Volume functionality
    98 ///////////////////////////////////////////
    99 
   100 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-1001
   101 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-1001
   102 //! @SYMAPI			RMdaDevSound::PlayFormatsSupported(TSoundFormatsSupportedBuf{ref});
   103 //!				RMdaDevSound::GetPlayFormat(TCurrentSoundFormatBuf{ref});
   104 //!				RMdaDevSound::PlayVolume();
   105 //!				RMdaDevSound::RecordFormatsSupported(TSoundFormatsSupportedBuf{ref});
   106 //!				RMdaDevSound::GetRecordFormat(TCurrentSoundFormatBuf{ref});
   107 //!				RMdaDevSound::RecodLevel(TInt)
   108 //! @SYMAuthor			Vassili Tsvetkov
   109 //! @SYMCreationDate		15/06/2008
   110 //! @SYMTestCaseDesc		Request the supported formats and default used format for default sound driver
   111 //!				
   112 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
   113 //!				2. Call PlayFormatsSupported() and verify with list from [play_formats_supported]
   114 //!				3. Call GetPlayFormat() and verify with list from [default_play_format]
   115 //!				4. Call PlayVolume() and verify with it from [default_play_volume]
   116 //!				5. Call RecordFormatsSupported() and verify with list from [record_formats_supported]
   117 //!				6. Call GetRecordFormat() and verify with list from [default_record_format]
   118 //!				7. Call RecordLevel and verify with it from [default_record_level]
   119 //!				8. Call Close()
   120 //!
   121 //! @SYMTestStatus		Implemented
   122 //! @SYMTestPriority		Critical
   123 //! @SYMTestExpectedResults	Supported formats are as expected
   124 //! @SYMTestType		CIT
   125 	START_TEST_BLOCK	100				t_sound			\base\sound\BASE-BSP-SOUND-DRIVER.ini
   126 		CREATE_OBJECT	RMdaDevSound			devsound  
   127 		COMMAND		devsound			new
   128 		COMMAND		devsound			Open			UnitEnum
   129 		CREATE_OBJECT	TSoundFormatsSupported		t_formats		
   130 		COMMAND		t_formats			new
   131 		COMMAND		devsound			PlayFormatsSupported	BSP-SOUND-DRIVER-PlayFormatsSupported
   132 		COMMAND		t_formats			imin_rate_get		play_formats_supported
   133 		COMMAND		t_formats			imax_rate_get		play_formats_supported
   134 		COMMAND		t_formats			ichannels_get		play_formats_supported
   135 		COMMAND		t_formats			imin_buffer_size_get	play_formats_supported
   136 		COMMAND		t_formats			imax_buffer_size_get	play_formats_supported
   137 		COMMAND		t_formats			imin_volume_get		play_formats_supported
   138 		COMMAND		t_formats			imax_volume_get		play_formats_supported
   139 		COMMAND		t_formats			iencodings_get		play_formats_supported
   140 		COMMAND		t_formats			~
   141 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
   142 		COMMAND		t_format			new			
   143 		COMMAND		devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
   144 		COMMAND		t_format			irate_get			default_play_format
   145 		COMMAND		t_format			iencoding_get		default_play_format
   146 		COMMAND		t_format			ichannels_get		default_play_format
   147 		COMMAND		t_format			ibuffer_size_get		default_play_format
   148 		COMMAND		devsound			PlayVolume		default_play_volume
   149 		COMMAND		t_format			~
   150 		COMMAND		t_formats			new
   151 		COMMAND		devsound			RecordFormatsSupported	BSP-SOUND-DRIVER-RecordFormatsSupported
   152 		COMMAND		t_formats			imin_rate_get		record_formats_supported
   153 		COMMAND		t_formats			imax_rate_get		record_formats_supported
   154 		COMMAND		t_formats			ichannels_get		record_formats_supported
   155 		COMMAND		t_formats			imin_buffer_size_get	record_formats_supported
   156 		COMMAND		t_formats			imax_buffer_size_get	record_formats_supported
   157 		COMMAND		t_formats			imin_volume_get		record_formats_supported
   158 		COMMAND		t_formats			imax_volume_get		record_formats_supported
   159 		COMMAND		t_formats			iencodings_get		record_formats_supported
   160 		COMMAND		t_formats			~		
   161 		COMMAND		t_format			new			
   162 		COMMAND		devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
   163 		COMMAND		t_format			irate_get			default_record_format
   164 		COMMAND		t_format			iencoding_get		default_record_format
   165 		COMMAND		t_format			ichannels_get		default_record_format
   166 		COMMAND		t_format			ibuffer_size_get		default_record_format
   167 		COMMAND		devsound			RecordLevel		default_record_level
   168 		COMMAND		t_format			~
   169 		COMMAND		devsound  			Close
   170 		COMMAND		devsound  			~
   171 	END_TEST_BLOCK
   172 END_TESTCASE			BASE-BSP-SOUND-DRIVER-1001
   173 
   174 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-1002
   175 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-1002
   176 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus{ref}, const TDesC8{ref});
   177 //!				RMdaDevSound::SetPlayVolume(TInt);
   178 //!				RMdaDevSound::PlayVolume()
   179 //! @SYMAuthor			Vassili Tsvetkov
   180 //! @SYMCreationDate		15/06/2008
   181 //! @SYMTestCaseDesc		Play sound with default volume level and maximal volume level
   182 //!				
   183 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
   184 //!				2. Call GetPlayFormat() with [default_play_format] to verify default play format
   185 //!				3. Call NotifyPlayError() //needed because otherwise PlayData() will not really stop after Outstanding
   186 //!				4. Call PlayData() with valid sound data from [default_file]
   187 //!				5. Call SetPlayVolume() with max volume from [max_play_volume]
   188 //!				6. Call NotifyPlayError() //needed because otherwise PlayData() will not really stop after Outstanding
   189 //!				7. Call PlayData() with valid sound data from [default_file]
   190 //!				8. Call PlayVolume(), where expected result is equal with max volume from [max_play_volume]
   191 //!				9. Call Close()
   192 //!
   193 //! @SYMTestStatus		Implemented
   194 //! @SYMTestPriority		Critical
   195 //! @SYMTestExpectedResults	Playback finished w/o errors, set and received volume values are equal
   196 //! @SYMTestType		CIT
   197 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
   198 		CREATE_OBJECT	RMdaDevSound			devsound  
   199 		COMMAND		devsound			new
   200 		COMMAND		devsound			Open			UnitEnum
   201 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
   202 		COMMAND		t_format			new
   203 		COMMAND		devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
   204 		//!verify default play configuration			
   205 		COMMAND		t_format			irate_get		default_play_format
   206 		COMMAND		t_format			iencoding_get		default_play_format
   207 		COMMAND		t_format			ichannels_get		default_play_format
   208 		COMMAND		t_format			ibuffer_size_get	default_play_format
   209 		COMMAND !AsyncError=-10	devsound			NotifyPlayError
   210 		COMMAND		devsound			PlayData		default_file
   211 		OUTSTANDING
   212 		COMMAND		devsound			SetPlayVolume		max_play_volume
   213 		COMMAND		devsound			PlayData		default_file
   214 		COMMAND !AsyncError=-10	devsound			NotifyPlayError
   215 		OUTSTANDING
   216 		COMMAND		devsound			PlayVolume		max_play_volume
   217 		COMMAND		t_format			~
   218 		COMMAND		devsound  			Close
   219 		COMMAND		devsound  			~
   220 	END_TEST_BLOCK
   221 END_TESTCASE			BASE-BSP-SOUND-DRIVER-1002
   222 
   223 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-1003
   224 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-1003
   225 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus{ref}, const TDesC8{ref});
   226 //!				RMdaDevSound::SetPlayFormat(TCurrentSoundFormatBuf{ref});
   227 //!				RMdaDevSound::GetPlayFormat(TCurrentSoundFormatBuf{ref})
   228 //! @SYMAuthor			Vassili Tsvetkov
   229 //! @SYMCreationDate		15/06/2008
   230 //! @SYMTestCaseDesc		Play sound with default format and with some valid sound format
   231 //!				
   232 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
   233 //!				2. Call GetPlayFormat() and verify from [default_play_format]
   234 //!				3. Call NotifyPlayError() //needed because otherwise PlayData() will not really stop after Outstanding
   235 //!				4. Call PlayData() with valid sound data from [default_file]
   236 //!				5. Call SetPlayFormat() with unsupported format value from [unsupported_play_format] with expected error KErrNotSupported
   237 //!				6. Call GetPlayFormat() where expected result is equal with format from [default_play_format]
   238 //!				7. Call SetPlayFormat() with valid format value from [valid_play_format]
   239 //!				8. Call NotifyPlayError() //needed because otherwise PlayData() will not really stop after Outstanding
   240 //!				9. Call PlayData() with valid sound data from [valid_file]
   241 //!				10. Call GetPlayFormat(), where expected result is equal with format from [valid_play_format]
   242 //!				11. Call Close()
   243 //!
   244 //! @SYMTestStatus		Implemented
   245 //! @SYMTestPriority		Critical
   246 //! @SYMTestExpectedResults	Playback finished w/o errors errors, set and received playback format values are equal, setting of unsupported format
   247 //!				raised KErrNotSupported
   248 //! @SYMTestType		CIT
   249 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
   250 		CREATE_OBJECT		RMdaDevSound			devsound  
   251 		COMMAND			devsound			new
   252 		COMMAND			devsound			Open			UnitEnum
   253 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
   254 		COMMAND			t_format			new
   255 		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
   256 		//!verify default play configuration			
   257 		COMMAND			t_format			irate_get		default_play_format
   258 		COMMAND			t_format			iencoding_get		default_play_format
   259 		COMMAND			t_format			ichannels_get		default_play_format
   260 		COMMAND			t_format			ibuffer_size_get	default_play_format
   261 		COMMAND !AsyncError=-10	devsound			NotifyPlayError
   262 		COMMAND			devsound			PlayData		default_file
   263 		OUTSTANDING
   264 		COMMAND			t_format			irate_set		unsupported_play_format
   265 		COMMAND			t_format			iencoding_set		unsupported_play_format
   266 		COMMAND			t_format			ichannels_set		unsupported_play_format
   267 		COMMAND			t_format			ibuffer_size_set	unsupported_play_format
   268 		COMMAND !Error=-5	devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
   269 		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
   270 		COMMAND			t_format			irate_get		default_play_format	
   271 		COMMAND			t_format			iencoding_get		default_play_format	
   272 		COMMAND			t_format			ichannels_get		default_play_format	
   273 		COMMAND			t_format			ibuffer_size_get	default_play_format
   274 		COMMAND !AsyncError=-10	devsound			NotifyPlayError
   275 		COMMAND			devsound			PlayData		valid_file
   276 		OUTSTANDING
   277 		COMMAND			t_format			irate_set		valid_play_format
   278 		COMMAND			t_format			iencoding_set		valid_play_format
   279 		COMMAND			t_format			ichannels_set		valid_play_format
   280 		COMMAND			t_format			ibuffer_size_set	valid_play_format
   281 		COMMAND			devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
   282 		COMMAND !AsyncError=-10	devsound			NotifyPlayError
   283 		COMMAND			devsound			PlayData		valid_file
   284 		OUTSTANDING
   285 		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
   286 		COMMAND			t_format			irate_get		valid_play_format	
   287 		COMMAND			t_format			iencoding_get		valid_play_format	
   288 		COMMAND			t_format			ichannels_get		valid_play_format	
   289 		COMMAND			t_format			ibuffer_size_get	valid_play_format
   290 		// set back default play format
   291 		COMMAND			t_format			irate_set		default_play_format
   292 		COMMAND			t_format			iencoding_set		default_play_format
   293 		COMMAND			t_format			ichannels_set		default_play_format
   294 		COMMAND			t_format			ibuffer_size_set	default_play_format
   295 		COMMAND			devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
   296 		COMMAND			t_format			~
   297 		COMMAND			devsound  			Close
   298 		COMMAND			devsound  			~
   299 	END_TEST_BLOCK
   300 END_TESTCASE			BASE-BSP-SOUND-DRIVER-1003
   301 
   302 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-1004
   303 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-1004
   304 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus{ref}, const TDes8{ref});
   305 //!				RMdaDevSound::SetRecordLevel(TInt);
   306 //!				RMdaDevSound::RecordLevel()
   307 //! @SYMAuthor			Vassili Tsvetkov
   308 //! @SYMCreationDate		15/06/2008
   309 //! @SYMTestCaseDesc		Record sound with default volume level and max volume level
   310 //!				
   311 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
   312 //!				2. Call GetRecordFormat() and verify from [default_record_format]
   313 //!				3. Call RecordData()
   314 //!				4. Call SetRecordLevel() with max record volume value from [max_record_level] variable
   315 //!				5. Call FlushRecordBuffer() //needed because otherwise RecordData() will not really stop after 
   316 //!				6. Call RecordData()
   317 //!				7. Call FlushRecordBuffer() //needed because otherwise operation in next step will fail with KErrInUse
   318 //!				8. Call RecordLevel(), where expected result is equal with max record volume value from [max_record_level] variable				
   319 //!				9. Call Close()
   320 //!
   321 //! @SYMTestStatus		Implemented
   322 //! @SYMTestPriority		Critical
   323 //! @SYMTestExpectedResults	Recording finished w/o errors, set and received volume values are equal
   324 //! @SYMTestType		CIT
   325 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
   326 		CREATE_OBJECT		RMdaDevSound			devsound  
   327 		COMMAND			devsound			new
   328 		COMMAND			devsound			Open			UnitEnum
   329 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
   330 		COMMAND			t_format			new
   331 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
   332 		//!verify default record configuration			
   333 		COMMAND			t_format			irate_get		default_record_format
   334 		COMMAND			t_format			iencoding_get		default_record_format
   335 		COMMAND			t_format			ichannels_get		default_record_format
   336 		COMMAND			t_format			ibuffer_size_get	default_record_format
   337 		COMMAND			devsound			RecordData		record_data_32kb
   338 		OUTSTANDING
   339 		COMMAND			devsound			FlushRecordBuffer
   340 		COMMAND			devsound			SetRecordLevel		max_record_level
   341 		COMMAND			devsound			RecordData		record_data_32kb
   342 		OUTSTANDING
   343 		COMMAND			devsound			FlushRecordBuffer
   344 		COMMAND			devsound			RecordLevel		max_record_level
   345 		COMMAND			t_format			~
   346 		COMMAND			devsound  			Close
   347 		COMMAND			devsound  			~
   348 	END_TEST_BLOCK
   349 END_TESTCASE			BASE-BSP-SOUND-DRIVER-1004
   350 
   351 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-1005
   352 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-1005
   353 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus{ref}, const TDesC8{ref});
   354 //!				RMdaDevSound::SetRecordFormat(TCurrentSoundFormatBuf{ref});
   355 //!				RMdaDevSound::GetRecordFormat(TCurrentSoundFormatBuf{ref})
   356 //! @SYMAuthor			Vassili Tsvetkov
   357 //! @SYMCreationDate		15/06/2008
   358 //! @SYMTestCaseDesc		Record sound with default sound format and with some other valid sound format
   359 //!				
   360 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
   361 //!				2. Call GetRecordFormat() and verify from [default_record_format]
   362 //!				3. Call RecordData()
   363 //!				4. Call SetRecordFormat() with unsupported format value from [unsupported_record_format] with expected error KErrNotSupported
   364 //!				5. Call GetRecordFormat() where expexted result is [default_record_format]
   365 //!				6. Call SetRecordFormat() with valid record format value from [valid_record_format]
   366 //!				7. Call RecordData()
   367 //!				8. Call GetRecordFormat(), where expected result is equal with format from [valid_record_format] variable				
   368 //!				9. Call Close()
   369 //!
   370 //! @SYMTestStatus		Implemented
   371 //! @SYMTestPriority		Critical
   372 //! @SYMTestExpectedResults	Recording finished w/o errors, set and received record format values are equal
   373 //! @SYMTestType		CIT
   374 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
   375 		CREATE_OBJECT		RMdaDevSound			devsound  
   376 		COMMAND			devsound			new
   377 		COMMAND			devsound			Open			UnitEnum
   378 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
   379 		COMMAND			t_format			new
   380 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
   381 		//!verify default record configuration			
   382 		COMMAND			t_format			irate_get		default_record_format
   383 		COMMAND			t_format			iencoding_get		default_record_format
   384 		COMMAND			t_format			ichannels_get		default_record_format
   385 		COMMAND			t_format			ibuffer_size_get	default_record_format
   386 		COMMAND			devsound			RecordData		record_data_32kb
   387 		OUTSTANDING
   388 		COMMAND			devsound			FlushRecordBuffer
   389 		COMMAND			t_format			irate_set		unsupported_record_format
   390 		COMMAND			t_format			iencoding_set		unsupported_record_format
   391 		COMMAND			t_format			ichannels_set		unsupported_record_format
   392 		COMMAND			t_format			ibuffer_size_set	unsupported_record_format
   393 		COMMAND	!Error=-5	devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
   394 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
   395 		COMMAND			t_format			irate_get		default_record_format	
   396 		COMMAND			t_format			iencoding_get		default_record_format	
   397 		COMMAND			t_format			ichannels_get		default_record_format	
   398 		COMMAND			t_format			ibuffer_size_get	default_record_format
   399 		COMMAND			devsound			FlushRecordBuffer
   400 		COMMAND			devsound			RecordData		record_data_32kb
   401 		OUTSTANDING
   402 		COMMAND			t_format			irate_set		valid_record_format
   403 		COMMAND			t_format			iencoding_set		valid_record_format
   404 		COMMAND			t_format			ichannels_set		valid_record_format
   405 		COMMAND			t_format			ibuffer_size_set	valid_record_format
   406 		COMMAND			devsound			FlushRecordBuffer
   407 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
   408 		COMMAND			devsound			RecordData		record_data_32kb	
   409 		OUTSTANDING
   410 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
   411 		COMMAND			t_format			irate_get		valid_record_format
   412 		COMMAND			t_format			iencoding_get		valid_record_format
   413 		COMMAND			t_format			ichannels_get		valid_record_format
   414 		COMMAND			t_format			ibuffer_size_get	valid_record_format
   415 		// set back default record format
   416 		COMMAND			t_format			irate_set		default_record_format
   417 		COMMAND			t_format			iencoding_set		default_record_format
   418 		COMMAND			t_format			ichannels_set		default_record_format
   419 		COMMAND			t_format			ibuffer_size_set	default_record_format
   420 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
   421 		COMMAND			t_format			~
   422 		COMMAND			devsound  			Close
   423 		COMMAND			devsound  			~
   424 	END_TEST_BLOCK
   425 END_TESTCASE			BASE-BSP-SOUND-DRIVER-1005
   426 
   427 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-1006
   428 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-1006
   429 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus{ref}, const TDesC8{ref});
   430 //!				RMdaDevSound::SetPlayVolume(TInt);
   431 //!				RMdaDevSound::PlayVolume()
   432 //! @SYMAuthor			Vassili Tsvetkov
   433 //! @SYMCreationDate		15/06/2008
   434 //! @SYMTestCaseDesc		Play sound with volume level 25% and verify that sound level is still 25%. Set max volume level 
   435 //!				and play again and verify that sound level is still max.
   436 //!				
   437 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
   438 //!				2. Call GetPlayFormat() and verify from [default_play_format]
   439 //!				3. Call SetPlayVolume() with 25% volume from [play_volume_quater]
   440 //!				4. Call NotifyPlayError() //needed because otherwise PlayData() will not really stop after Outstanding
   441 //!				5. Call PlayData() with valid sound data from [default_file]
   442 //!				6. Call PlayVolume() where expected volume level matches [play_volume_quater]
   443 //!				7. Call SetPlayVolume() with max volume from [max_play_volume]
   444 //!				8. Call NotifyPlayError() //needed because otherwise PlayData() will not really stop after Outstanding
   445 //!				9. Call PlayData() with valid sound data from [default_file]
   446 //!				10. Call PlayVolume(), where expected result is equal with max volume from [max_play_volume]
   447 //!				11. Restore default playback sound volume
   448 //!				12. Call Close().
   449 //!
   450 //! @SYMTestStatus		Implemented
   451 //! @SYMTestPriority		Critical
   452 //! @SYMTestExpectedResults	Playback finished w/o errors, sound became louder
   453 //! @SYMTestType		CIT
   454 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
   455 		CREATE_OBJECT		RMdaDevSound			devsound  
   456 		COMMAND			devsound			new
   457 		COMMAND			devsound			Open			UnitEnum
   458 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
   459 		COMMAND			t_format			new
   460 		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
   461 		//!verify default play configuration			
   462 		COMMAND			t_format			irate_get		default_play_format
   463 		COMMAND			t_format			iencoding_get		default_play_format
   464 		COMMAND			t_format			ichannels_get		default_play_format
   465 		COMMAND			t_format			ibuffer_size_get	default_play_format
   466 		COMMAND			devsound			SetPlayVolume		play_volume_quater
   467 		COMMAND !AsyncError=-10	devsound			NotifyPlayError
   468 		COMMAND			devsound			PlayData		default_file
   469 		OUTSTANDING
   470 		COMMAND			devsound			PlayVolume		play_volume_quater
   471 		COMMAND			devsound			SetPlayVolume		max_play_volume
   472 		COMMAND !AsyncError=-10	devsound			NotifyPlayError
   473 		COMMAND			devsound			PlayData		default_file
   474 		OUTSTANDING
   475 		COMMAND			devsound			PlayVolume		max_play_volume
   476 		//!set back default playback audio level
   477 		COMMAND			devsound			SetPlayVolume		default_play_volume
   478 		COMMAND			t_format			~
   479 		COMMAND			devsound  			Close
   480 		COMMAND			devsound  			~
   481 	END_TEST_BLOCK
   482 END_TESTCASE			BASE-BSP-SOUND-DRIVER-1006
   483 
   484 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-1007
   485 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-1007
   486 //! @SYMAPI			RMdaDevSound::SetRecordFormat(TCurrentSoundFormatBuf{ref});
   487 //!				RMdaDevSound::SetPlayFormat(TCurrentSoundFormatBuf{ref});
   488 //!				RMdaDevSound::GetRecordFormat(TCurrentSoundFormatBuf{ref});
   489 //!				RMdaDevSound::GetPlayFormat(TCurrentSoundFormatBuf{ref})
   490 //! @SYMAuthor			Vassili Tsvetkov
   491 //! @SYMCreationDate		15/06/2008
   492 //! @SYMTestCaseDesc		Set record format to valid record format. Set play format to some other valid play format 
   493 //!				(other than just set record format. Sampling rate should be different). 
   494 //!				
   495 //!				
   496 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
   497 //!				2. Call GetPlayFormat() and verify from [default_play_format]
   498 //!				3. Call GetRecordFormat() and verify from [default_record_format]
   499 //!				4. Call SetRecordFormat with [valid_record_format]
   500 //!				5. Call GetRecordFormat() and verify from [valid_record_format]
   501 //!				6. Call SetPlayFormat with [another_valid_play_format]
   502 //!				7. Call GetPlayFormat() and verify from [another_valid_play_format]
   503 //!				8. Call SetRecordFormat with [default_record_format]
   504 //!				9. Call SetPlayFormat with [default_play_format]
   505 //!				10. Call Close().
   506 //!
   507 //! @SYMTestStatus		Implemented
   508 //! @SYMTestPriority		Critical
   509 //! @SYMTestExpectedResults	SetPlayFormat in step 6 returns KErrAccessDenied 
   510 //! @SYMTestType		CIT
   511 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
   512 		CREATE_OBJECT		RMdaDevSound			devsound  
   513 		COMMAND			devsound			new
   514 		COMMAND			devsound			Open			UnitEnum
   515 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
   516 		COMMAND			t_format			new
   517 		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
   518 		//!verify default play configuration			
   519 		COMMAND			t_format			irate_get		default_play_format
   520 		COMMAND			t_format			iencoding_get		default_play_format
   521 		COMMAND			t_format			ichannels_get		default_play_format
   522 		COMMAND			t_format			ibuffer_size_get	default_play_format
   523 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
   524 		//!verify default record configuration			
   525 		COMMAND			t_format			irate_get		default_record_format
   526 		COMMAND			t_format			iencoding_get		default_record_format
   527 		COMMAND			t_format			ichannels_get		default_record_format
   528 		COMMAND			t_format			ibuffer_size_get	default_record_format
   529 		//set some valid record format
   530 		COMMAND			t_format			irate_set		valid_record_format
   531 		COMMAND			t_format			iencoding_set		valid_record_format
   532 		COMMAND			t_format			ichannels_set		valid_record_format
   533 		COMMAND			t_format			ibuffer_size_set	valid_record_format
   534 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
   535 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
   536 		//!verify valid record configuration			
   537 		COMMAND			t_format			irate_get		valid_record_format
   538 		COMMAND			t_format			iencoding_get		valid_record_format
   539 		COMMAND			t_format			ichannels_get		valid_record_format
   540 		COMMAND			t_format			ibuffer_size_get	valid_record_format
   541 		//set some valid play format
   542 		COMMAND			t_format			irate_set		another_valid_play_format
   543 		COMMAND			t_format			iencoding_set		another_valid_play_format
   544 		COMMAND			t_format			ichannels_set		another_valid_play_format
   545 		COMMAND			t_format			ibuffer_size_set	another_valid_play_format
   546 		COMMAND	!Error=-21	devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
   547 		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
   548 		//!verify valid play configuration			
   549 		COMMAND			t_format			irate_get		another_valid_play_format
   550 		COMMAND			t_format			iencoding_get		another_valid_play_format
   551 		COMMAND			t_format			ichannels_get		another_valid_play_format
   552 		COMMAND			t_format			ibuffer_size_get	another_valid_play_format
   553 		// set back default record format
   554 		COMMAND			t_format			irate_set		default_record_format
   555 		COMMAND			t_format			iencoding_set		default_record_format
   556 		COMMAND			t_format			ichannels_set		default_record_format
   557 		COMMAND			t_format			ibuffer_size_set	default_record_format
   558 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
   559 		// set back default play format
   560 		COMMAND			t_format			irate_set		default_play_format
   561 		COMMAND			t_format			iencoding_set		default_play_format
   562 		COMMAND			t_format			ichannels_set		default_play_format
   563 		COMMAND			t_format			ibuffer_size_set	default_play_format
   564 		COMMAND			devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
   565 		COMMAND			t_format			~
   566 		COMMAND			devsound  			Close
   567 		COMMAND			devsound  			~
   568 	END_TEST_BLOCK
   569 END_TESTCASE			BASE-BSP-SOUND-DRIVER-1007
   570 
   571 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-1008
   572 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-1008
   573 //! @SYMAPI			RMdaDevSound::SetRecordFormat(TCurrentSoundFormatBuf{ref});
   574 //!				RMdaDevSound::SetPlayFormat(TCurrentSoundFormatBuf{ref});
   575 //!				RMdaDevSound::GetRecordFormat(TCurrentSoundFormatBuf{ref});
   576 //!				RMdaDevSound::GetPlayFormat(TCurrentSoundFormatBuf{ref})
   577 //! @SYMAuthor			Vassili Tsvetkov
   578 //! @SYMCreationDate		15/06/2008
   579 //! @SYMTestCaseDesc		Set play format to valid record format. Set record format to some other valid play format 
   580 //!				(other than just set play format. Sampling rate should be different). 
   581 //!				
   582 //!				
   583 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
   584 //!				2. Call GetPlayFormat() and verify from [default_play_format]
   585 //!				3. Call GetRecordFormat() and verify from [default_record_format]
   586 //!				4. Call SetPlayFormat with [another_valid_play_format]
   587 //!				5. Call GetPlayFormat() and verify from [another_valid_play_format]
   588 //!				6. Call SetRecordFormat with [valid_record_format]
   589 //!				7. Call GetRecordFormat() and verify from [valid_record_format]
   590 //!				8. Call SetRecordFormat with [default_record_format]
   591 //!				9. Call SetPlayFormat with [default_play_format]
   592 //!				10. Call Close().
   593 //!
   594 //! @SYMTestStatus		Implemented
   595 //! @SYMTestPriority		Critical
   596 //! @SYMTestExpectedResults	SetPlayFormat in step 6 returns KErrAccessDenied 
   597 //! @SYMTestType		CIT
   598 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
   599 		CREATE_OBJECT		RMdaDevSound			devsound  
   600 		COMMAND			devsound			new
   601 		COMMAND			devsound			Open			UnitEnum
   602 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
   603 		COMMAND			t_format			new
   604 		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
   605 		//!verify default play configuration			
   606 		COMMAND			t_format			irate_get		default_play_format
   607 		COMMAND			t_format			iencoding_get		default_play_format
   608 		COMMAND			t_format			ichannels_get		default_play_format
   609 		COMMAND			t_format			ibuffer_size_get	default_play_format
   610 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
   611 		//!verify default record configuration			
   612 		COMMAND			t_format			irate_get		default_record_format
   613 		COMMAND			t_format			iencoding_get		default_record_format
   614 		COMMAND			t_format			ichannels_get		default_record_format
   615 		COMMAND			t_format			ibuffer_size_get	default_record_format
   616 		//set some valid Play format
   617 		COMMAND			t_format			irate_set		another_valid_play_format
   618 		COMMAND			t_format			iencoding_set		another_valid_play_format
   619 		COMMAND			t_format			ichannels_set		another_valid_play_format
   620 		COMMAND			t_format			ibuffer_size_set	another_valid_play_format
   621 		COMMAND			devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
   622 		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
   623 		//!verify valid play configuration			
   624 		COMMAND			t_format			irate_get		another_valid_play_format
   625 		COMMAND			t_format			iencoding_get		another_valid_play_format
   626 		COMMAND			t_format			ichannels_get		another_valid_play_format
   627 		COMMAND			t_format			ibuffer_size_get	another_valid_play_format
   628 		//set some valid record format
   629 		COMMAND			t_format			irate_set		valid_record_format
   630 		COMMAND			t_format			iencoding_set		valid_record_format
   631 		COMMAND			t_format			ichannels_set		valid_record_format
   632 		COMMAND			t_format			ibuffer_size_set	valid_record_format
   633 		COMMAND	!Error=-21	devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
   634 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
   635 		//!verify valid record configuration			
   636 		COMMAND			t_format			irate_get		valid_record_format
   637 		COMMAND			t_format			iencoding_get		valid_record_format
   638 		COMMAND			t_format			ichannels_get		valid_record_format
   639 		COMMAND			t_format			ibuffer_size_get	valid_record_format
   640 		// set back default record format
   641 		COMMAND			t_format			irate_set		default_record_format
   642 		COMMAND			t_format			iencoding_set		default_record_format
   643 		COMMAND			t_format			ichannels_set		default_record_format
   644 		COMMAND			t_format			ibuffer_size_set	default_record_format
   645 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
   646 		// set back default play format
   647 		COMMAND			t_format			irate_set		default_play_format
   648 		COMMAND			t_format			iencoding_set		default_play_format
   649 		COMMAND			t_format			ichannels_set		default_play_format
   650 		COMMAND			t_format			ibuffer_size_set	default_play_format
   651 		COMMAND			devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
   652 		COMMAND			t_format			~
   653 		COMMAND			devsound  			Close
   654 		COMMAND			devsound  			~
   655 	END_TEST_BLOCK
   656 END_TESTCASE			BASE-BSP-SOUND-DRIVER-1008
   657 
   658 ///////////////////////////////////////////
   659 // Playback functionality
   660 ///////////////////////////////////////////
   661 
   662 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-2001
   663 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-2001
   664 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus{ref}, const TDesC8{ref});
   665 //!				RMdaDevSound::CancelPlayData()
   666 //! @SYMAuthor			Vassili Tsvetkov
   667 //! @SYMCreationDate		15/06/2008
   668 //! @SYMTestCaseDesc		Play sound, then cancel playing and verify playback status
   669 //!				
   670 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
   671 //!				2. Call GetPlayFormat() and verify from [default_play_format]
   672 //!				3. Call PlayData() with valid sound data from [default_file_cancel]
   673 //!				4. Call CancelPlayData()
   674 //!				5. Call Close()
   675 //!
   676 //! @SYMTestStatus		Implemented
   677 //! @SYMTestPriority		Critical
   678 //! @SYMTestExpectedResults	Playback canceled with KErrCancel
   679 //! @SYMTestType		CIT
   680 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
   681 		CREATE_OBJECT		RMdaDevSound			devsound  
   682 		COMMAND			devsound			new
   683 		COMMAND			devsound			Open			UnitEnum
   684 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
   685 		COMMAND			t_format			new
   686 		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
   687 		//!verify default play configuration			
   688 		COMMAND			t_format			irate_get		default_play_format
   689 		COMMAND			t_format			iencoding_get		default_play_format
   690 		COMMAND			t_format			ichannels_get		default_play_format
   691 		COMMAND			t_format			ibuffer_size_get	default_play_format
   692 		COMMAND !AsyncError=-3	devsound			PlayData		default_file_cancel
   693 		OUTSTANDING		
   694 		COMMAND			t_format  			~
   695 		COMMAND			devsound  			Close
   696 		COMMAND			devsound  			~
   697 	END_TEST_BLOCK
   698 END_TESTCASE			BASE-BSP-SOUND-DRIVER-2001
   699 
   700 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-2002
   701 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-2002
   702 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus{ref}, const TDesC8{ref});
   703 //!				RMdaDevSound::PausePlayBuffer();
   704 //!				RMdaDevSound::ResumePlaying()
   705 //! @SYMAuthor			Vassili Tsvetkov
   706 //! @SYMCreationDate		15/06/2008
   707 //! @SYMTestCaseDesc		Play sound, pause and resume playback.
   708 //!				
   709 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
   710 //!				2. Call GetPlayFormat() and verify from [default_play_format]
   711 //!				3. Call PlayData() with valid sound data from [default_file]
   712 //!				4. Call PausePlayBuffer()
   713 //!				5. Resume playback with ResumePlaying()
   714 //!				7. Call Close()
   715 //!
   716 //! @SYMTestStatus		Implemented
   717 //! @SYMTestPriority		Critical
   718 //! @SYMTestExpectedResults	Playback paused, resumed and finished w/o errors
   719 //! @SYMTestType		CIT
   720 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
   721 		CREATE_OBJECT		RMdaDevSound			devsound  
   722 		COMMAND			devsound			new
   723 		COMMAND			devsound			Open			UnitEnum
   724 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
   725 		COMMAND			t_format			new
   726 		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
   727 		//!verify default play configuration			
   728 		COMMAND			t_format			irate_get		default_play_format
   729 		COMMAND			t_format			iencoding_get		default_play_format
   730 		COMMAND			t_format			ichannels_get		default_play_format
   731 		COMMAND			t_format			ibuffer_size_get	default_play_format
   732 		COMMAND			devsound			PlayData		default_file
   733 		COMMAND			devsound			PausePlayBuffer
   734 		COMMAND			devsound			ResumePlaying		
   735 		OUTSTANDING	
   736 		COMMAND			t_format  			~
   737 		COMMAND			devsound  			Close
   738 		COMMAND			devsound  			~
   739 	END_TEST_BLOCK
   740 END_TESTCASE			BASE-BSP-SOUND-DRIVER-2002
   741 
   742 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-2003
   743 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-2003
   744 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus{ref}, const TDesC8{ref});
   745 //!				RMdaDevSound::PausePlayBuffer();
   746 //!				RMdaDevSound::ResumePlaying()
   747 //! @SYMAuthor			Vassili Tsvetkov
   748 //! @SYMCreationDate		15/06/2008
   749 //! @SYMTestCaseDesc		Play sound, pause and resume playback few times
   750 //!				
   751 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
   752 //!				2. Call GetPlayFormat() and verify from [default_play_format]
   753 //!				3. Call PlayData() with valid sound data from [default_file]
   754 //!				4. Call PausePlayBuffer()
   755 //!				5. Resume playback with ResumePlaying()
   756 //!				6. Call PausePlayBuffer()
   757 //!				7. Resume playback with ResumePlaying()
   758 //!				8. Call PausePlayBuffer()
   759 //!				9. Resume playback with ResumePlaying()	
   760 //!				10. Call Close()
   761 //!
   762 //! @SYMTestStatus		Implemented
   763 //! @SYMTestPriority		Critical
   764 //! @SYMTestExpectedResults	Playback paused, resumed and finished w/o errors
   765 //! @SYMTestType		CIT
   766 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
   767 		CREATE_OBJECT		RMdaDevSound			devsound  
   768 		COMMAND			devsound			new
   769 		COMMAND			devsound			Open			UnitEnum
   770 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
   771 		COMMAND			t_format			new
   772 		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
   773 		//!verify default play configuration			
   774 		COMMAND			t_format			irate_get		default_play_format
   775 		COMMAND			t_format			iencoding_get		default_play_format
   776 		COMMAND			t_format			ichannels_get		default_play_format
   777 		COMMAND			t_format			ibuffer_size_get	default_play_format
   778 		COMMAND			devsound			PlayData		default_file
   779 		COMMAND			devsound			PausePlayBuffer
   780 		COMMAND			devsound			ResumePlaying		
   781 		COMMAND			devsound			PausePlayBuffer
   782 		COMMAND			devsound			ResumePlaying		
   783 		COMMAND			devsound			PausePlayBuffer
   784 		COMMAND			devsound			ResumePlaying		
   785 		OUTSTANDING	
   786 		COMMAND			t_format  			~
   787 		COMMAND			devsound  			Close
   788 		COMMAND			devsound  			~
   789 	END_TEST_BLOCK
   790 END_TESTCASE			BASE-BSP-SOUND-DRIVER-2003
   791 
   792 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-2004
   793 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-2004
   794 //! @SYMAPI			RMdaDevSound::NotifyPlayError(TRequestStatus{ref});
   795 //!				RMdaDevSound::CancelNotifyPlayError()
   796 //! @SYMAuthor			Vassili Tsvetkov
   797 //! @SYMCreationDate		15/06/2008
   798 //! @SYMTestCaseDesc		Execute error notification while playing sound and cancel notification monitoring
   799 //!				
   800 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
   801 //!				2. Call GetPlayFormat() and verify from [default_play_format]
   802 //!				3. Call NotifyPlayError() and starts waiting for a notification on the background
   803 //!				4. Call PlayData() with valid sound data from [default_file]
   804 //!				5. Call CancelNotifyPlayError()
   805 //!				6. Call Close()
   806 //!
   807 //! @SYMTestStatus		Implemented
   808 //! @SYMTestPriority		Critical
   809 //! @SYMTestExpectedResults	Notification monitoring canceled with KErrCancel status
   810 //! @SYMTestType		CIT
   811 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
   812 		CREATE_OBJECT		RMdaDevSound			devsound  
   813 		COMMAND			devsound			new
   814 		COMMAND			devsound			Open			UnitEnum
   815 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
   816 		COMMAND			t_format			new
   817 		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
   818 		//!verify default play configuration			
   819 		COMMAND			t_format			irate_get		default_play_format
   820 		COMMAND			t_format			iencoding_get		default_play_format
   821 		COMMAND			t_format			ichannels_get		default_play_format
   822 		COMMAND			t_format			ibuffer_size_get	default_play_format
   823 		COMMAND !AsyncError=-3	devsound			NotifyPlayError
   824 		COMMAND			devsound			PlayData		default_file
   825 		COMMAND			devsound			CancelNotifyPlayError
   826 		OUTSTANDING
   827 		COMMAND			t_format  			~	
   828 		COMMAND			devsound  			Close
   829 		COMMAND			devsound  			~
   830 	END_TEST_BLOCK
   831 END_TESTCASE			BASE-BSP-SOUND-DRIVER-2004
   832 
   833 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-2005
   834 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-2005
   835 //! @SYMAPI			RMdaDevSound::NotifyPlayError(TRequestStatus{ref});
   836 //!				RMdaDevSound::CancelNotifyPlayError()
   837 //! @SYMAuthor			Vassili Tsvetkov
   838 //! @SYMCreationDate		15/06/2008
   839 //! @SYMTestCaseDesc		Execute error notification without sound playing and cancel notification monitoring
   840 //!				
   841 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
   842 //!				2. Call NotifyPlayError() and starts waiting for a notification on the background
   843 //!				3. Call CancelNotifyPlayError()
   844 //!				4. Call Close()
   845 //!
   846 //! @SYMTestStatus		Implemented
   847 //! @SYMTestPriority		Critical
   848 //! @SYMTestExpectedResults	Notification monitoring canceled with KErrCancel status
   849 //! @SYMTestType		CIT
   850 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
   851 		CREATE_OBJECT		RMdaDevSound			devsound  
   852 		COMMAND			devsound			new
   853 		COMMAND			devsound			Open			UnitEnum
   854 		COMMAND !AsyncError=-3	devsound			NotifyPlayError
   855 		COMMAND			devsound			CancelNotifyPlayError
   856 		OUTSTANDING			
   857 		COMMAND			devsound  			Close
   858 		COMMAND			devsound  			~
   859 	END_TEST_BLOCK
   860 END_TESTCASE			BASE-BSP-SOUND-DRIVER-2005
   861 
   862 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-2006
   863 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-2006
   864 //! @SYMAPI			RMdaDevSound::NotifyPlayError(TRequestStatus{ref})
   865 //! @SYMAuthor			Vassili Tsvetkov
   866 //! @SYMCreationDate		15/06/2008
   867 //! @SYMTestCaseDesc		Execute error notification and catch KErrUnderflow message when	playing zero-filled buffer
   868 //!				
   869 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
   870 //!				2. Call GetPlayFormat() and verify from [default_play_format]
   871 //!				3. Call NotifyPlayError() and starts waiting for a notification on the background
   872 //!				4. Call PlayData() with zero-filled 32kb data
   873 //!				5. Call Close()
   874 //!
   875 //! @SYMTestStatus		Implemented
   876 //! @SYMTestPriority		Critical
   877 //! @SYMTestExpectedResults	Notification monitoring catched KErrUnderflow error and also play Playdata catches KErrNone
   878 //! @SYMTestType		CIT
   879 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
   880 		CREATE_OBJECT		RMdaDevSound			devsound  
   881 		COMMAND			devsound			new
   882 		COMMAND			devsound			Open			UnitEnum
   883 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
   884 		COMMAND			t_format			new
   885 		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
   886 		//!verify default play configuration			
   887 		COMMAND			t_format			irate_get		default_play_format
   888 		COMMAND			t_format			iencoding_get		default_play_format
   889 		COMMAND			t_format			ichannels_get		default_play_format
   890 		COMMAND			t_format			ibuffer_size_get	default_play_format
   891 		COMMAND			devsound			PlayData		zero_filled_32kb.raw
   892 		OUTSTANDING	
   893 		COMMAND			t_format  			~
   894 		COMMAND			devsound  			Close
   895 		COMMAND			devsound  			~
   896 	END_TEST_BLOCK
   897 END_TESTCASE			BASE-BSP-SOUND-DRIVER-2006
   898 
   899 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-2007
   900 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-2007
   901 //! @SYMAPI			RMdaDevSound::FlushPlayBuffer()
   902 //! @SYMAuthor			Vassili Tsvetkov
   903 //! @SYMCreationDate		15/06/2008
   904 //! @SYMTestCaseDesc		Execute playback and flush sound buffer to stop playback
   905 //!				
   906 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
   907 //!				2. Call GetPlayFormat() and verify from [default_play_format]
   908 //!				3. Call PlayData() with valid sound data from [default_file_flush]
   909 //!				4. Call FlushPlayBuffer()
   910 //!				5. Call Close()
   911 //!
   912 //! @SYMTestStatus		Implemented
   913 //! @SYMTestPriority		Critical
   914 //! @SYMTestExpectedResults	Playback canceled with KErrCancel
   915 //! @SYMTestType		CIT
   916 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
   917 		CREATE_OBJECT		RMdaDevSound			devsound  
   918 		COMMAND			devsound			new
   919 		COMMAND			devsound			Open			UnitEnum
   920 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
   921 		COMMAND			t_format			new
   922 		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
   923 		//!verify default play configuration			
   924 		COMMAND			t_format			irate_get		default_play_format
   925 		COMMAND			t_format			iencoding_get		default_play_format
   926 		COMMAND			t_format			ichannels_get		default_play_format
   927 		COMMAND			t_format			ibuffer_size_get	default_play_format
   928 		COMMAND	!AsyncError=-3	devsound			PlayData		default_file_flush
   929 		OUTSTANDING		
   930 		COMMAND			t_format  			~	
   931 		COMMAND			devsound  			Close
   932 		COMMAND			devsound  			~
   933 	END_TEST_BLOCK
   934 END_TESTCASE			BASE-BSP-SOUND-DRIVER-2007
   935 
   936 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-2008
   937 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-2008
   938 //! @SYMAPI			RMdaDevSound::ResetBytesPlayed();
   939 //!				RMdaDevSound::BytesPlayed())
   940 //! @SYMAuthor			Vassili Tsvetkov
   941 //! @SYMCreationDate		15/06/2008
   942 //! @SYMTestCaseDesc		Count and verify bytes played before and after playback
   943 //!				
   944 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
   945 //!				2. Call GetPlayFormat() and verify from [default_play_format]
   946 //!				3. Call BytesPlayed(), expected value 0
   947 //!				4. Call ResetBytesPlayed()
   948 //!				5. Call BytesPlayed(), expected value 0
   949 //!				6. Call NotifyPlayError() //needed because otherwise PlayData() will not really stop after Outstanding
   950 //!				7. Call PlayData() with zero-filled 2-byte sound data
   951 //!				8. Call FlushPlayBuffer
   952 //!				9. Call BytesPlayed(), expected value is 2
   953 //!				10. Call ResetBytesPlayed()
   954 //!				11. Call BytesPlayed(), expected value 0
   955 //!				12. Call Close()
   956 //!
   957 //! @SYMTestStatus		Implemented
   958 //! @SYMTestPriority		Critical
   959 //! @SYMTestExpectedResults	ResetBytesPlayed() resets the played bytes count and BytesPlayed() returns the number of bytes as expected
   960 //! @SYMTestType		CIT
   961 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
   962 		CREATE_OBJECT		RMdaDevSound			devsound  
   963 		COMMAND			devsound			new
   964 		COMMAND			devsound			Open			UnitEnum
   965 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
   966 		COMMAND			t_format			new
   967 		COMMAND			devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
   968 		//!verify default play configuration			
   969 		COMMAND			t_format			irate_get		default_play_format
   970 		COMMAND			t_format			iencoding_get		default_play_format
   971 		COMMAND			t_format			ichannels_get		default_play_format
   972 		COMMAND			t_format			ibuffer_size_get	default_play_format
   973 		COMMAND			devsound			BytesPlayed		bytes_played_expected_zero
   974 		COMMAND			devsound			ResetBytesPlayed
   975 		COMMAND			devsound			BytesPlayed		bytes_played_expected_zero
   976 		COMMAND !AsyncError=-10	devsound			NotifyPlayError
   977 		COMMAND			devsound			PlayData		zero_filled_2_bytes.raw
   978 		OUTSTANDING
   979 		COMMAND			devsound			FlushPlayBuffer
   980 		COMMAND			devsound			BytesPlayed		bytes_played_expected_2_bytes
   981 		COMMAND			devsound			ResetBytesPlayed
   982 		COMMAND			devsound			BytesPlayed		bytes_played_expected_zero
   983 		
   984 		COMMAND			t_format  			~	
   985 		COMMAND			devsound  			Close
   986 		COMMAND			devsound  			~
   987 	END_TEST_BLOCK
   988 END_TESTCASE			BASE-BSP-SOUND-DRIVER-2008
   989 
   990 ///////////////////////////////////////////
   991 // Record functionality
   992 ///////////////////////////////////////////
   993 
   994 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-3001
   995 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-3001
   996 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus{ref}, const TDesC8{ref});
   997 //!				RMdaDevSound::CancelRecordData()
   998 //! @SYMAuthor			Vassili Tsvetkov
   999 //! @SYMCreationDate		15/06/2008
  1000 //! @SYMTestCaseDesc		Record sound and cancel recording
  1001 //!				
  1002 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  1003 //!				2. Call GetRecordFormat() and verify from [default_record_format]
  1004 //!				3. Call RecordData() with [record_data_32kb_cancel]
  1005 //!				4. Call CancelRecordData()
  1006 //!				5. Call Close()
  1007 //!
  1008 //! @SYMTestStatus		Implemented
  1009 //! @SYMTestPriority		Critical
  1010 //! @SYMTestExpectedResults	Recording canceled with KErrCancel
  1011 //! @SYMTestType		CIT
  1012 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  1013 		CREATE_OBJECT		RMdaDevSound			devsound  
  1014 		COMMAND			devsound			new
  1015 		COMMAND			devsound			Open			UnitEnum
  1016 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  1017 		COMMAND			t_format			new
  1018 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  1019 		//!verify default record configuration			
  1020 		COMMAND			t_format			irate_get		default_record_format
  1021 		COMMAND			t_format			iencoding_get		default_record_format
  1022 		COMMAND			t_format			ichannels_get		default_record_format
  1023 		COMMAND			t_format			ibuffer_size_get	default_record_format
  1024 		COMMAND	!AsyncError=-3	devsound			RecordData		record_data_32kb_cancel
  1025 		OUTSTANDING
  1026 		COMMAND			t_format  			~
  1027 		COMMAND			devsound  			Close
  1028 		COMMAND			devsound  			~
  1029 	END_TEST_BLOCK
  1030 END_TESTCASE			BASE-BSP-SOUND-DRIVER-3001
  1031 
  1032 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-3002
  1033 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-3002
  1034 //! @SYMAPI			RMdaDevSound::NotifyRecordError(TRequestStatus{ref});
  1035 //!				RMdaDevSound::CancelNotifyRecordError()
  1036 //! @SYMAuthor			Vassili Tsvetkov
  1037 //! @SYMCreationDate		15/06/2008
  1038 //! @SYMTestCaseDesc		Execute error notification, then record sound and cancel notification monitoring
  1039 //!				
  1040 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  1041 //!				2. Call GetRecordFormat() and verify from [default_record_format]
  1042 //!				3. Call NotifyRecordError() and starts waiting for a notification on the background
  1043 //!				4. Call RecordData()
  1044 //!				5. Call CancelNotifyRecordError()
  1045 //!				6. Call Close()
  1046 //!
  1047 //! @SYMTestStatus		Implemented
  1048 //! @SYMTestPriority		Critical
  1049 //! @SYMTestExpectedResults	Notification monitoring canceled with KErrCancel status
  1050 //! @SYMTestType		CIT
  1051 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  1052 		CREATE_OBJECT		RMdaDevSound			devsound  
  1053 		COMMAND			devsound			new
  1054 		COMMAND			devsound			Open			UnitEnum
  1055 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  1056 		COMMAND			t_format			new
  1057 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  1058 		//!verify default record configuration			
  1059 		COMMAND			t_format			irate_get		default_record_format
  1060 		COMMAND			t_format			iencoding_get		default_record_format
  1061 		COMMAND			t_format			ichannels_get		default_record_format
  1062 		COMMAND			t_format			ibuffer_size_get	default_record_format
  1063 		COMMAND !AsyncError=-3	devsound			NotifyRecordError
  1064 		COMMAND			devsound			RecordData		record_data_32kb
  1065 		COMMAND			devsound			CancelNotifyRecordError
  1066 		OUTSTANDING
  1067 		COMMAND			t_format  			~	
  1068 		COMMAND			devsound  			Close
  1069 		COMMAND			devsound  			~
  1070 	END_TEST_BLOCK
  1071 END_TESTCASE			BASE-BSP-SOUND-DRIVER-3002
  1072 
  1073 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-3003
  1074 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-3003
  1075 //! @SYMAPI			RMdaDevSound::NotifyRecordError(TRequestStatus{ref});
  1076 //!				RMdaDevSound::CancelNotifyRecordError()
  1077 //! @SYMAuthor			Vassili Tsvetkov
  1078 //! @SYMCreationDate		15/06/2008
  1079 //! @SYMTestCaseDesc		Execute error notification and cancel notification monitoring without recording
  1080 //!				
  1081 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  1082 //!				2. Call NotifyRecordError() and starts waiting for a notification on the background
  1083 //!				3. Call CancelNotifyRecordError()
  1084 //!				4. Call Close()
  1085 //!
  1086 //! @SYMTestStatus		Implemented
  1087 //! @SYMTestPriority		Critical
  1088 //! @SYMTestExpectedResults	Notification monitoring canceled with KErrCancel status
  1089 //! @SYMTestType		CIT
  1090 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  1091 		CREATE_OBJECT		RMdaDevSound			devsound  
  1092 		COMMAND			devsound			new
  1093 		COMMAND			devsound			Open			UnitEnum
  1094 		COMMAND !AsyncError=-3	devsound			NotifyRecordError
  1095 		COMMAND			devsound			CancelNotifyRecordError
  1096 		OUTSTANDING	
  1097 		COMMAND			devsound  			Close
  1098 		COMMAND			devsound  			~
  1099 	END_TEST_BLOCK
  1100 END_TESTCASE			BASE-BSP-SOUND-DRIVER-3003
  1101 
  1102 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-3004
  1103 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-3004
  1104 //! @SYMAPI			RMdaDevSound::FlushRecordBuffer()
  1105 //! @SYMAuthor			Vassili Tsvetkov
  1106 //! @SYMCreationDate		15/06/2008
  1107 //! @SYMTestCaseDesc		Execute recording and flush sound buffer to stop recording
  1108 //!				
  1109 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  1110 //!				2. Call GetRecordFormat() and verify from [default_record_format]
  1111 //!				3. Call RecordData() with [record_data_32kb_flush]
  1112 //!				4. Call FlushRecordBuffer()
  1113 //!				5. Call Close()
  1114 //!
  1115 //! @SYMTestStatus		Implemented
  1116 //! @SYMTestPriority		Critical
  1117 //! @SYMTestExpectedResults	Recording stopped with KErrNone
  1118 //! @SYMTestType		CIT
  1119 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  1120 		CREATE_OBJECT		RMdaDevSound			devsound  
  1121 		COMMAND			devsound			new
  1122 		COMMAND			devsound			Open			UnitEnum
  1123 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  1124 		COMMAND			t_format			new
  1125 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  1126 		//!verify default record configuration			
  1127 		COMMAND			t_format			irate_get		default_record_format
  1128 		COMMAND			t_format			iencoding_get		default_record_format
  1129 		COMMAND			t_format			ichannels_get		default_record_format
  1130 		COMMAND			t_format			ibuffer_size_get	default_record_format
  1131 		COMMAND			devsound			RecordData		record_data_32kb_flush
  1132 		OUTSTANDING		
  1133 		COMMAND			t_format  			~	
  1134 		COMMAND			devsound  			Close
  1135 		COMMAND			devsound  			~
  1136 	END_TEST_BLOCK
  1137 END_TESTCASE			BASE-BSP-SOUND-DRIVER-3004
  1138 
  1139 ///////////////////////////////////////////
  1140 // Different audio types and encodings playback
  1141 ///////////////////////////////////////////
  1142 
  1143 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4001
  1144 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4001
  1145 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  1146 //! @SYMAuthor			Vassili Tsvetkov
  1147 //! @SYMCreationDate		15/06/2008
  1148 //! @SYMTestCaseDesc		Execute playing audio in pcm8 mono 8khz
  1149 //!				
  1150 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  1151 //!				2. Call SetPlayFormat() with [set_set_settings_pcm8_mono_8khz_32kb]
  1152 //!				3. Call PlayData() with valid sound data from [pcm8_mono_8khz_32kb.raw]
  1153 //!				4. Call FlushPlayBuffer
  1154 //!				5. Call GetPlayFormat() and verify the sound found configuration
  1155 //!				6. Restore initial sound h/w configuration
  1156 //!				7. Call Close()
  1157 //!
  1158 //! @SYMTestStatus		Implemented
  1159 //! @SYMTestPriority		Critical
  1160 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  1161 //! @SYMTestType		CIT
  1162 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  1163 		CREATE_OBJECT	RMdaDevSound				devsound
  1164 		COMMAND		devsound				new
  1165 		COMMAND		devsound				Open			UnitEnum
  1166 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  1167 		COMMAND		t_format				new
  1168 		COMMAND		t_format				irate_set			set_settings_pcm8_mono_8khz_32kb
  1169 		COMMAND		t_format				ibuffer_size_set		set_settings_pcm8_mono_8khz_32kb
  1170 		COMMAND		t_format				iencoding_set		set_settings_pcm8_mono_8khz_32kb
  1171 		COMMAND		t_format				ichannels_set		set_settings_pcm8_mono_8khz_32kb
  1172 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1173 		COMMAND		devsound				PlayData		pcm8_mono_8khz_32kb.raw
  1174 		OUTSTANDING
  1175 		COMMAND		devsound				FlushPlayBuffer
  1176                 COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  1177 		COMMAND		t_format				irate_get			set_settings_pcm8_mono_8khz_32kb_expected
  1178 		COMMAND		t_format				iencoding_get		set_settings_pcm8_mono_8khz_32kb_expected
  1179 		COMMAND		t_format				ichannels_get		set_settings_pcm8_mono_8khz_32kb_expected
  1180 		COMMAND		t_format				ibuffer_size_get		set_settings_pcm8_mono_8khz_32kb_expected
  1181                 //!set back default play configuration
  1182 		COMMAND		t_format				irate_set			default_play_format
  1183 		COMMAND		t_format				iencoding_set		default_play_format
  1184 		COMMAND		t_format				ichannels_set		default_play_format
  1185 		COMMAND		t_format				ibuffer_size_set		default_play_format
  1186 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1187 		COMMAND		devsound				SetPlayVolume		default_play_volume
  1188 		COMMAND		t_format				~
  1189 		COMMAND		devsound				Close
  1190 		COMMAND		devsound				~
  1191 	END_TEST_BLOCK
  1192 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4001
  1193 
  1194 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4002
  1195 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4002
  1196 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  1197 //! @SYMAuthor			Vassili Tsvetkov
  1198 //! @SYMCreationDate		15/06/2008
  1199 //! @SYMTestCaseDesc		Execute playing audio in pcm16 mono 8khz
  1200 //!				
  1201 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  1202 //!				2. Call SetPlayFormat() with [set_set_settings_pcm16_mono_8khz]
  1203 //!				3. Call PlayData() with valid sound data from [pcm16_mono_8khz_32kb.raw]
  1204 //!				4. Call FlushPlayBuffer
  1205 //!				5. Call GetPlayFormat() and verify the sound found configuration
  1206 //!				6. Restore initial sound h/w configuration
  1207 //!				7. Call Close()
  1208 //!
  1209 //! @SYMTestStatus		Implemented
  1210 //! @SYMTestPriority		Critical
  1211 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  1212 //! @SYMTestType		CIT
  1213 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  1214 		CREATE_OBJECT	RMdaDevSound				devsound
  1215 		COMMAND		devsound				new
  1216 		COMMAND		devsound				Open			UnitEnum
  1217 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  1218 		COMMAND		t_format				new
  1219 		COMMAND		t_format				irate_set			set_settings_pcm16_mono_8khz
  1220 		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_mono_8khz
  1221 		COMMAND		t_format				iencoding_set		set_settings_pcm16_mono_8khz
  1222 		COMMAND		t_format				ichannels_set		set_settings_pcm16_mono_8khz
  1223 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1224 		COMMAND		devsound				PlayData		pcm16_mono_8khz_32kb.raw
  1225 		OUTSTANDING
  1226 		COMMAND		devsound				FlushPlayBuffer
  1227 		COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  1228 		COMMAND		t_format				irate_get			set_settings_pcm16_mono_8khz_expected
  1229 		COMMAND		t_format				iencoding_get		set_settings_pcm16_mono_8khz_expected
  1230 		COMMAND		t_format				ichannels_get		set_settings_pcm16_mono_8khz_expected
  1231 		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_mono_8khz_expected
  1232 		//!set back default play configuration
  1233 		COMMAND		t_format				irate_set			default_play_format
  1234 		COMMAND		t_format				iencoding_set		default_play_format
  1235 		COMMAND		t_format				ichannels_set		default_play_format
  1236 		COMMAND		t_format				ibuffer_size_set		default_play_format
  1237 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1238 		COMMAND		devsound				SetPlayVolume		default_play_volume
  1239 		COMMAND		t_format  				~
  1240 		COMMAND		devsound				Close
  1241 		COMMAND		devsound				~
  1242 	END_TEST_BLOCK
  1243 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4002
  1244 
  1245 
  1246 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4003
  1247 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4003
  1248 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  1249 //! @SYMAuthor			Vassili Tsvetkov
  1250 //! @SYMCreationDate		15/06/2008
  1251 //! @SYMTestCaseDesc		Execute playing audio in pcm16 mono 11khz
  1252 //!				
  1253 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  1254 //!				2. Call SetPlayFormat() with [set_set_settings_pcm16_mono_11khz]
  1255 //!				3. Call PlayData() with valid sound data from [pcm16_mono_11khz_32kb.raw]
  1256 //!				4. Call FlushPlayBuffer
  1257 //!				5. Call GetPlayFormat() and verify the sound found configuration
  1258 //!				6. Restore initial sound h/w configuration
  1259 //!				7. Call Close()
  1260 //!
  1261 //! @SYMTestStatus		Implemented
  1262 //! @SYMTestPriority		Critical
  1263 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  1264 //! @SYMTestType		CIT
  1265 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  1266 		CREATE_OBJECT	RMdaDevSound				devsound
  1267 		COMMAND		devsound				new
  1268 		COMMAND		devsound				Open			UnitEnum
  1269 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  1270 		COMMAND		t_format				new
  1271 		COMMAND		t_format				irate_set			set_settings_pcm16_mono_11khz
  1272 		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_mono_11khz
  1273 		COMMAND		t_format				iencoding_set		set_settings_pcm16_mono_11khz
  1274 		COMMAND		t_format				ichannels_set		set_settings_pcm16_mono_11khz
  1275 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1276 		COMMAND		devsound				PlayData		pcm16_mono_11khz_32kb.raw
  1277 		OUTSTANDING
  1278 		COMMAND		devsound				FlushPlayBuffer
  1279 		COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  1280 		COMMAND		t_format				irate_get			set_settings_pcm16_mono_11khz_expected
  1281 		COMMAND		t_format				iencoding_get		set_settings_pcm16_mono_11khz_expected
  1282 		COMMAND		t_format				ichannels_get		set_settings_pcm16_mono_11khz_expected
  1283 		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_mono_11khz_expected
  1284 		//!set back default play configuration
  1285 		COMMAND		t_format				irate_set			default_play_format
  1286 		COMMAND		t_format				iencoding_set		default_play_format
  1287 		COMMAND		t_format				ichannels_set		default_play_format
  1288 		COMMAND		t_format				ibuffer_size_set		default_play_format
  1289 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1290 		COMMAND		devsound				SetPlayVolume		default_play_volume
  1291 		COMMAND		t_format  				~
  1292 		COMMAND		devsound				Close
  1293 		COMMAND		devsound				~
  1294 	END_TEST_BLOCK
  1295 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4003
  1296 
  1297 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4004
  1298 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4004
  1299 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  1300 //! @SYMAuthor			Vassili Tsvetkov
  1301 //! @SYMCreationDate		15/06/2008
  1302 //! @SYMTestCaseDesc		Execute playing audio in pcm16 mono 12khz
  1303 //!				
  1304 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  1305 //!				2. Call SetPlayFormat() with [set_set_settings_pcm16_mono_12khz]
  1306 //!				3. Call PlayData() with valid sound data from [pcm16_mono_12khz_32kb.raw]
  1307 //!				4. Call FlushPlayBuffer
  1308 //!				5. Call GetPlayFormat() and verify the sound found configuration
  1309 //!				6. Restore initial sound h/w configuration
  1310 //!				7. Call Close()
  1311 //!
  1312 //! @SYMTestStatus		Implemented
  1313 //! @SYMTestPriority		Critical
  1314 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  1315 //! @SYMTestType		CIT
  1316 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  1317 		CREATE_OBJECT	RMdaDevSound				devsound
  1318 		COMMAND		devsound				new
  1319 		COMMAND		devsound				Open			UnitEnum
  1320 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  1321 		COMMAND		t_format				new
  1322 		COMMAND		t_format				irate_set			set_settings_pcm16_mono_12khz
  1323 		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_mono_12khz
  1324 		COMMAND		t_format				iencoding_set		set_settings_pcm16_mono_12khz
  1325 		COMMAND		t_format				ichannels_set		set_settings_pcm16_mono_12khz
  1326 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1327 		COMMAND		devsound				PlayData		pcm16_mono_12khz_32kb.raw
  1328 		OUTSTANDING
  1329 		COMMAND		devsound				FlushPlayBuffer
  1330 		COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  1331 		COMMAND		t_format				irate_get			set_settings_pcm16_mono_12khz_expected
  1332 		COMMAND		t_format				iencoding_get		set_settings_pcm16_mono_12khz_expected
  1333 		COMMAND		t_format				ichannels_get		set_settings_pcm16_mono_12khz_expected
  1334 		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_mono_12khz_expected
  1335 		//!set back default play configuration
  1336 		COMMAND		t_format				irate_set			default_play_format
  1337 		COMMAND		t_format				iencoding_set		default_play_format
  1338 		COMMAND		t_format				ichannels_set		default_play_format
  1339 		COMMAND		t_format				ibuffer_size_set		default_play_format
  1340 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1341 		COMMAND		devsound				SetPlayVolume		default_play_volume
  1342 		COMMAND		t_format				~
  1343 		COMMAND		devsound				Close
  1344 		COMMAND		devsound				~
  1345 	END_TEST_BLOCK
  1346 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4004
  1347 
  1348 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4005
  1349 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4005
  1350 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  1351 //! @SYMAuthor			Vassili Tsvetkov
  1352 //! @SYMCreationDate		15/06/2008
  1353 //! @SYMTestCaseDesc		Execute playing audio in pcm16 mono 16khz
  1354 //!				
  1355 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  1356 //!				2. Call SetPlayFormat() with [set_set_settings_pcm16_mono_16khz]
  1357 //!				3. Call PlayData() with valid sound data from [pcm16_mono_16khz_32kb.raw]
  1358 //!				4. Call FlushPlayBuffer
  1359 //!				5. Call GetPlayFormat() and verify the sound found configuration
  1360 //!				6. Restore initial sound h/w configuration
  1361 //!				7. Call Close()
  1362 //!
  1363 //! @SYMTestStatus		Implemented
  1364 //! @SYMTestPriority		Critical
  1365 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  1366 //! @SYMTestType		CIT
  1367 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  1368 		CREATE_OBJECT	RMdaDevSound				devsound
  1369 		COMMAND		devsound				new
  1370 		COMMAND		devsound				Open			UnitEnum
  1371 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  1372 		COMMAND		t_format				new
  1373 		COMMAND		t_format				irate_set			set_settings_pcm16_mono_16khz
  1374 		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_mono_16khz
  1375 		COMMAND		t_format				iencoding_set		set_settings_pcm16_mono_16khz
  1376 		COMMAND		t_format				ichannels_set		set_settings_pcm16_mono_16khz
  1377 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1378 		COMMAND		devsound				PlayData		pcm16_mono_16khz_32kb.raw
  1379 		OUTSTANDING
  1380 		COMMAND		devsound				FlushPlayBuffer
  1381 		COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  1382 		COMMAND		t_format				irate_get			set_settings_pcm16_mono_16khz_expected
  1383 		COMMAND		t_format				iencoding_get		set_settings_pcm16_mono_16khz_expected
  1384 		COMMAND		t_format				ichannels_get		set_settings_pcm16_mono_16khz_expected
  1385 		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_mono_16khz_expected
  1386 		//!set back default play configuration
  1387 		COMMAND		t_format				irate_set			default_play_format
  1388 		COMMAND		t_format				iencoding_set		default_play_format
  1389 		COMMAND		t_format				ichannels_set		default_play_format
  1390 		COMMAND		t_format				ibuffer_size_set		default_play_format
  1391 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1392 		COMMAND		devsound				SetPlayVolume		default_play_volume
  1393 		COMMAND		t_format				~
  1394 		COMMAND		devsound				Close
  1395 		COMMAND		devsound				~
  1396 	END_TEST_BLOCK
  1397 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4005
  1398 
  1399 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4006
  1400 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4006
  1401 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  1402 //! @SYMAuthor			Vassili Tsvetkov
  1403 //! @SYMCreationDate		15/06/2008
  1404 //! @SYMTestCaseDesc		Execute playing audio in pcm16 mono 22khz
  1405 //!				
  1406 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  1407 //!				2. Call SetPlayFormat() with [set_set_settings_pcm16_mono_22khz]
  1408 //!				3. Call PlayData() with valid sound data from [pcm16_mono_22khz_32kb.raw]
  1409 //!				4. Call FlushPlayBuffer
  1410 //!				5. Call GetPlayFormat() and verify the sound found configuration
  1411 //!				6. Restore initial sound h/w configuration
  1412 //!				7. Call Close()
  1413 //!
  1414 //! @SYMTestStatus		Implemented
  1415 //! @SYMTestPriority		Critical
  1416 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  1417 //! @SYMTestType		CIT
  1418 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  1419 		CREATE_OBJECT	RMdaDevSound				devsound
  1420 		COMMAND		devsound				new
  1421 		COMMAND		devsound				Open			UnitEnum
  1422 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  1423 		COMMAND		t_format				new
  1424 		COMMAND		t_format				irate_set			set_settings_pcm16_mono_22khz
  1425 		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_mono_22khz
  1426 		COMMAND		t_format				iencoding_set		set_settings_pcm16_mono_22khz
  1427 		COMMAND		t_format				ichannels_set		set_settings_pcm16_mono_22khz
  1428 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1429 		COMMAND		devsound				PlayData		pcm16_mono_22khz_32kb.raw
  1430 		OUTSTANDING
  1431 		COMMAND		devsound				FlushPlayBuffer
  1432 		COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  1433 		COMMAND		t_format				irate_get			set_settings_pcm16_mono_22khz_expected
  1434 		COMMAND		t_format				iencoding_get		set_settings_pcm16_mono_22khz_expected
  1435 		COMMAND		t_format				ichannels_get		set_settings_pcm16_mono_22khz_expected
  1436 		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_mono_22khz_expected
  1437 		//!set back default play configuration
  1438 		COMMAND		t_format				irate_set			default_play_format
  1439 		COMMAND		t_format				iencoding_set		default_play_format
  1440 		COMMAND		t_format				ichannels_set		default_play_format
  1441 		COMMAND		t_format				ibuffer_size_set		default_play_format
  1442 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1443 		COMMAND		devsound				SetPlayVolume		default_play_volume
  1444 		COMMAND		t_format				~
  1445 		COMMAND		devsound				Close
  1446 		COMMAND		devsound				~
  1447 	END_TEST_BLOCK
  1448 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4006
  1449 
  1450 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4007
  1451 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4007
  1452 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  1453 //! @SYMAuthor			Vassili Tsvetkov
  1454 //! @SYMCreationDate		15/06/2008
  1455 //! @SYMTestCaseDesc		Execute playing audio in pcm16 mono 24khz
  1456 //!				
  1457 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  1458 //!				2. Call SetPlayFormat() with [set_set_settings_pcm16_mono_24khz]
  1459 //!				3. Call PlayData() with valid sound data from [pcm16_mono_24khz_32kb.raw]
  1460 //!				4. Call FlushPlayBuffer
  1461 //!				5. Call GetPlayFormat() and verify the sound found configuration
  1462 //!				6. Restore initial sound h/w configuration
  1463 //!				7. Call Close()
  1464 //!
  1465 //! @SYMTestStatus		Implemented
  1466 //! @SYMTestPriority		Critical
  1467 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  1468 //! @SYMTestType		CIT
  1469 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  1470 		CREATE_OBJECT	RMdaDevSound				devsound
  1471 		COMMAND		devsound				new
  1472 		COMMAND		devsound				Open			UnitEnum
  1473 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  1474 		COMMAND		t_format				new
  1475 		COMMAND		t_format				irate_set			set_settings_pcm16_mono_24khz
  1476 		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_mono_24khz
  1477 		COMMAND		t_format				iencoding_set		set_settings_pcm16_mono_24khz
  1478 		COMMAND		t_format				ichannels_set		set_settings_pcm16_mono_24khz
  1479 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1480 		COMMAND		devsound				PlayData		pcm16_mono_24khz_32kb.raw
  1481 		OUTSTANDING
  1482 		COMMAND		devsound				FlushPlayBuffer
  1483                 COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  1484 		COMMAND		t_format				irate_get			set_settings_pcm16_mono_24khz_expected
  1485 		COMMAND		t_format				iencoding_get		set_settings_pcm16_mono_24khz_expected
  1486 		COMMAND		t_format				ichannels_get		set_settings_pcm16_mono_24khz_expected
  1487 		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_mono_24khz_expected
  1488                 //!set back default play configuration
  1489 		COMMAND		t_format				irate_set			default_play_format
  1490 		COMMAND		t_format				iencoding_set		default_play_format
  1491 		COMMAND		t_format				ichannels_set		default_play_format
  1492 		COMMAND		t_format				ibuffer_size_set		default_play_format
  1493 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1494 		COMMAND		devsound				SetPlayVolume		default_play_volume
  1495 		COMMAND		t_format				~
  1496 		COMMAND		devsound				Close
  1497 		COMMAND		devsound				~
  1498 	END_TEST_BLOCK
  1499 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4007
  1500 
  1501 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4008
  1502 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4008
  1503 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  1504 //! @SYMAuthor			Vassili Tsvetkov
  1505 //! @SYMCreationDate		15/06/2008
  1506 //! @SYMTestCaseDesc		Execute playing audio in pcm16 mono 32khz
  1507 //!				
  1508 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  1509 //!				2. Call SetPlayFormat() with [set_set_settings_pcm16_mono_32khz]
  1510 //!				3. Call PlayData() with valid sound data from [pcm16_mono_32khz_32kb.raw]
  1511 //!				4. Call FlushPlayBuffer
  1512 //!				5. Call GetPlayFormat() and verify the sound found configuration
  1513 //!				6. Restore initial sound h/w configuration
  1514 //!				7. Call Close()
  1515 //!
  1516 //! @SYMTestStatus		Implemented
  1517 //! @SYMTestPriority		Critical
  1518 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  1519 //! @SYMTestType		CIT
  1520 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  1521 		CREATE_OBJECT	RMdaDevSound				devsound
  1522 		COMMAND		devsound				new
  1523 		COMMAND		devsound				Open			UnitEnum
  1524 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  1525 		COMMAND		t_format				new
  1526 		COMMAND		t_format				irate_set			set_settings_pcm16_mono_32khz
  1527 		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_mono_32khz
  1528 		COMMAND		t_format				iencoding_set		set_settings_pcm16_mono_32khz
  1529 		COMMAND		t_format				ichannels_set		set_settings_pcm16_mono_32khz
  1530 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1531 		COMMAND		devsound				PlayData		pcm16_mono_32khz_32kb.raw
  1532 		OUTSTANDING
  1533 		COMMAND		devsound				FlushPlayBuffer
  1534                 COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  1535 		COMMAND		t_format				irate_get			set_settings_pcm16_mono_32khz_expected
  1536 		COMMAND		t_format				iencoding_get		set_settings_pcm16_mono_32khz_expected
  1537 		COMMAND		t_format				ichannels_get		set_settings_pcm16_mono_32khz_expected
  1538 		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_mono_32khz_expected
  1539                 //!set back default play configuration
  1540 		COMMAND		t_format				irate_set			default_play_format
  1541 		COMMAND		t_format				iencoding_set		default_play_format
  1542 		COMMAND		t_format				ichannels_set		default_play_format
  1543 		COMMAND		t_format				ibuffer_size_set		default_play_format
  1544 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1545 		COMMAND		devsound				SetPlayVolume		default_play_volume
  1546 		COMMAND		t_format				~
  1547 		COMMAND		devsound				Close
  1548 		COMMAND		devsound				~
  1549 	END_TEST_BLOCK
  1550 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4008
  1551 
  1552 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4009
  1553 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4009
  1554 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  1555 //! @SYMAuthor			Vassili Tsvetkov
  1556 //! @SYMCreationDate		15/06/2008
  1557 //! @SYMTestCaseDesc		Execute playing audio in pcm16 mono 44.1khz
  1558 //!		
  1559 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  1560 //!				2. Call SetPlayFormat() with [set_set_settings_pcm16_mono_44.1khz]
  1561 //!				3. Call PlayData() with valid sound data from [pcm16_mono_44.1khz_32kb.raw]
  1562 //!				4. Call FlushPlayBuffer
  1563 //!				5. Call GetPlayFormat() and verify the sound found configuration
  1564 //!				6. Restore initial sound h/w configuration
  1565 //!				7. Call Close()
  1566 //!
  1567 //! @SYMTestStatus		Implemented
  1568 //! @SYMTestPriority		Critical
  1569 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  1570 //! @SYMTestType		CIT
  1571 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  1572 		CREATE_OBJECT	RMdaDevSound				devsound
  1573 		COMMAND		devsound				new
  1574 		COMMAND		devsound				Open			UnitEnum
  1575 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  1576 		COMMAND		t_format				new
  1577 		COMMAND		t_format				irate_set			set_settings_pcm16_mono_44.1khz
  1578 		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_mono_44.1khz
  1579 		COMMAND		t_format				iencoding_set		set_settings_pcm16_mono_44.1khz
  1580 		COMMAND		t_format				ichannels_set		set_settings_pcm16_mono_44.1khz
  1581 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1582 		COMMAND		devsound				PlayData		pcm16_mono_44.1khz_32kb.raw
  1583 		OUTSTANDING
  1584 		COMMAND		devsound				FlushPlayBuffer
  1585                 COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  1586 		COMMAND		t_format				irate_get			set_settings_pcm16_mono_41.1khz_expected
  1587 		COMMAND		t_format				iencoding_get		set_settings_pcm16_mono_41.1khz_expected
  1588 		COMMAND		t_format				ichannels_get		set_settings_pcm16_mono_41.1khz_expected
  1589 		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_mono_41.1khz_expected
  1590                 //!set back default play configuration
  1591 		COMMAND		t_format				irate_set			default_play_format
  1592 		COMMAND		t_format				iencoding_set		default_play_format
  1593 		COMMAND		t_format				ichannels_set		default_play_format
  1594 		COMMAND		t_format				ibuffer_size_set		default_play_format
  1595 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1596 		COMMAND		devsound				SetPlayVolume		default_play_volume
  1597 		COMMAND		t_format				~
  1598 		COMMAND		devsound				Close
  1599 		COMMAND		devsound				~
  1600 	END_TEST_BLOCK
  1601 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4009
  1602 
  1603 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4010
  1604 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4010
  1605 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  1606 //! @SYMAuthor			Vassili Tsvetkov
  1607 //! @SYMCreationDate		15/06/2008
  1608 //! @SYMTestCaseDesc		Execute playing audio in pcm16 mono 48khz
  1609 //!				
  1610 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  1611 //!				2. Call SetPlayFormat() with [set_set_settings_pcm16_mono_48khz]
  1612 //!				3. Call PlayData() with valid sound data from [pcm16_mono_48khz_32kb.raw]
  1613 //!				4. Call FlushPlayBuffer
  1614 //!				5. Call GetPlayFormat() and verify the sound found configuration
  1615 //!				6. Restore initial sound h/w configuration
  1616 //!				7. Call Close()
  1617 //!
  1618 //! @SYMTestStatus		Implemented
  1619 //! @SYMTestPriority		Critical
  1620 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  1621 //! @SYMTestType		CIT
  1622 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  1623 		CREATE_OBJECT	RMdaDevSound				devsound
  1624 		COMMAND		devsound				new
  1625 		COMMAND		devsound				Open			UnitEnum
  1626 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  1627 		COMMAND		t_format				new
  1628 		COMMAND		t_format				irate_set			set_settings_pcm16_mono_48khz
  1629 		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_mono_48khz
  1630 		COMMAND		t_format				iencoding_set		set_settings_pcm16_mono_48khz
  1631 		COMMAND		t_format				ichannels_set		set_settings_pcm16_mono_48khz
  1632 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1633 		COMMAND		devsound				PlayData		pcm16_mono_48khz_32kb.raw
  1634 		OUTSTANDING
  1635 		COMMAND		devsound				FlushPlayBuffer
  1636                 COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  1637 		COMMAND		t_format				irate_get			set_settings_pcm16_mono_48khz_expected
  1638 		COMMAND		t_format				iencoding_get		set_settings_pcm16_mono_48khz_expected
  1639 		COMMAND		t_format				ichannels_get		set_settings_pcm16_mono_48khz_expected
  1640 		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_mono_48khz_expected
  1641                 //!set back default play configuration
  1642 		COMMAND		t_format				irate_set			default_play_format
  1643 		COMMAND		t_format				iencoding_set		default_play_format
  1644 		COMMAND		t_format				ichannels_set		default_play_format
  1645 		COMMAND		t_format				ibuffer_size_set		default_play_format
  1646 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1647 		COMMAND		devsound				SetPlayVolume		default_play_volume
  1648 		COMMAND		t_format				~
  1649 		COMMAND		devsound				Close
  1650 		COMMAND		devsound				~
  1651 	END_TEST_BLOCK
  1652 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4010
  1653 
  1654 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4011
  1655 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4011
  1656 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  1657 //! @SYMAuthor			Vassili Tsvetkov
  1658 //! @SYMCreationDate		15/06/2008
  1659 //! @SYMTestCaseDesc		Execute playing audio in pcm16 stereo 8khz
  1660 //!				
  1661 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  1662 //!				2. Call SetPlayFormat() with [set_set_settings_pcm16_stereo_8khz]
  1663 //!				3. Call PlayData() with valid sound data from [pcm16_stereo_8khz_32kb.raw]
  1664 //!				4. Call FlushPlayBuffer
  1665 //!				5. Call GetPlayFormat() and verify the sound found configuration
  1666 //!				6. Restore initial sound h/w configuration
  1667 //!				7. Call Close()
  1668 //!
  1669 //! @SYMTestStatus		Implemented
  1670 //! @SYMTestPriority		Critical
  1671 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  1672 //! @SYMTestType		CIT
  1673 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  1674 		CREATE_OBJECT	RMdaDevSound				devsound
  1675 		COMMAND		devsound				new
  1676 		COMMAND		devsound				Open			UnitEnum
  1677 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  1678 		COMMAND		t_format				new
  1679 		COMMAND		t_format				irate_set			set_settings_pcm16_stereo_8khz
  1680 		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_stereo_8khz
  1681 		COMMAND		t_format				iencoding_set		set_settings_pcm16_stereo_8khz
  1682 		COMMAND		t_format				ichannels_set		set_settings_pcm16_stereo_8khz
  1683 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1684 		COMMAND		devsound				PlayData		pcm16_stereo_8khz_32kb.raw
  1685 		OUTSTANDING
  1686 		COMMAND		devsound				FlushPlayBuffer
  1687                 COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  1688 		COMMAND		t_format				irate_get			set_settings_pcm16_stereo_8khz_expected
  1689 		COMMAND		t_format				iencoding_get		set_settings_pcm16_stereo_8khz_expected	
  1690 		COMMAND		t_format				ichannels_get		set_settings_pcm16_stereo_8khz_expected
  1691 		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_stereo_8khz_expected
  1692                 //!set back default play configuration
  1693 		COMMAND		t_format				irate_set			default_play_format
  1694 		COMMAND		t_format				iencoding_set		default_play_format
  1695 		COMMAND		t_format				ichannels_set		default_play_format
  1696 		COMMAND		t_format				ibuffer_size_set		default_play_format
  1697 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1698 		COMMAND		devsound				SetPlayVolume		default_play_volume
  1699 		COMMAND		t_format				~
  1700 		COMMAND		devsound				Close
  1701 		COMMAND		devsound				~
  1702 	END_TEST_BLOCK
  1703 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4011
  1704 
  1705 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4012
  1706 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4012
  1707 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  1708 //! @SYMAuthor			Vassili Tsvetkov
  1709 //! @SYMCreationDate		15/06/2008
  1710 //! @SYMTestCaseDesc		Execute playing audio in pcm16 stereo 11khz
  1711 //!				
  1712 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  1713 //!				2. Call SetPlayFormat() with [set_set_settings_pcm16_stereo_11khz]
  1714 //!				3. Call PlayData() with valid sound data from [pcm16_stereo_11khz_32kb.raw]
  1715 //!				4. Call FlushPlayBuffer
  1716 //!				5. Call GetPlayFormat() and verify the sound found configuration
  1717 //!				6. Restore initial sound h/w configuration
  1718 //!				7. Call Close()
  1719 //!
  1720 //! @SYMTestStatus		Implemented
  1721 //! @SYMTestPriority		Critical
  1722 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  1723 //! @SYMTestType		CIT
  1724 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  1725 		CREATE_OBJECT	RMdaDevSound				devsound
  1726 		COMMAND		devsound				new
  1727 		COMMAND		devsound				Open			UnitEnum
  1728 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  1729 		COMMAND		t_format				new
  1730 		COMMAND		t_format				irate_set			set_settings_pcm16_stereo_11khz
  1731 		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_stereo_11khz
  1732 		COMMAND		t_format				iencoding_set		set_settings_pcm16_stereo_11khz
  1733 		COMMAND		t_format				ichannels_set		set_settings_pcm16_stereo_11khz
  1734 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1735 		COMMAND		devsound				PlayData		pcm16_stereo_11khz_32kb.raw
  1736 		OUTSTANDING
  1737 		COMMAND		devsound				FlushPlayBuffer
  1738                 COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  1739 		COMMAND		t_format				irate_get			set_settings_pcm16_stereo_11khz_expected
  1740 		COMMAND		t_format				iencoding_get		set_settings_pcm16_stereo_11khz_expected
  1741 		COMMAND		t_format				ichannels_get		set_settings_pcm16_stereo_11khz_expected
  1742 		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_stereo_11khz_expected
  1743                 //!set back default play configuration
  1744 		COMMAND		t_format				irate_set			default_play_format
  1745 		COMMAND		t_format				iencoding_set		default_play_format
  1746 		COMMAND		t_format				ichannels_set		default_play_format
  1747 		COMMAND		t_format				ibuffer_size_set		default_play_format
  1748 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1749 		COMMAND		devsound				SetPlayVolume		default_play_volume
  1750 		COMMAND		t_format				~
  1751 		COMMAND		devsound				Close
  1752 		COMMAND		devsound				~
  1753 	END_TEST_BLOCK
  1754 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4012
  1755 
  1756 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4013
  1757 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4013
  1758 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  1759 //! @SYMAuthor			Vassili Tsvetkov
  1760 //! @SYMCreationDate		15/06/2008
  1761 //! @SYMTestCaseDesc		Execute playing audio in pcm16 stereo 12khz
  1762 //!				
  1763 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  1764 //!				2. Call SetPlayFormat() with [set_set_settings_pcm16_stereo_12khz]
  1765 //!				3. Call PlayData() with valid sound data from [pcm16_stereo_12khz_32kb.raw]
  1766 //!				4. Call FlushPlayBuffer
  1767 //!				5. Call GetPlayFormat() and verify the sound found configuration
  1768 //!				6. Restore initial sound h/w configuration
  1769 //!				7. Call Close()
  1770 //!
  1771 //! @SYMTestStatus		Implemented
  1772 //! @SYMTestPriority		Critical
  1773 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  1774 //! @SYMTestType		CIT
  1775 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  1776 		CREATE_OBJECT	RMdaDevSound				devsound
  1777 		COMMAND		devsound				new
  1778 		COMMAND		devsound				Open			UnitEnum
  1779 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  1780 		COMMAND		t_format				new
  1781 		COMMAND		t_format				irate_set			set_settings_pcm16_stereo_12khz
  1782 		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_stereo_12khz
  1783 		COMMAND		t_format				iencoding_set		set_settings_pcm16_stereo_12khz
  1784 		COMMAND		t_format				ichannels_set		set_settings_pcm16_stereo_12khz
  1785 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1786 		COMMAND		devsound				PlayData		pcm16_stereo_12khz_32kb.raw
  1787 		OUTSTANDING
  1788 		COMMAND		devsound				FlushPlayBuffer
  1789                 COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  1790 		COMMAND		t_format				irate_get			set_settings_pcm16_stereo_12khz_expected
  1791 		COMMAND		t_format				iencoding_get		set_settings_pcm16_stereo_12khz_expected
  1792 		COMMAND		t_format				ichannels_get		set_settings_pcm16_stereo_12khz_expected
  1793 		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_stereo_12khz_expected
  1794                 //!set back default play configuration
  1795 		COMMAND		t_format				irate_set			default_play_format
  1796 		COMMAND		t_format				iencoding_set		default_play_format
  1797 		COMMAND		t_format				ichannels_set		default_play_format
  1798 		COMMAND		t_format				ibuffer_size_set		default_play_format
  1799 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1800 		COMMAND		devsound				SetPlayVolume		default_play_volume
  1801 		COMMAND		t_format				~
  1802 		COMMAND		devsound				Close
  1803 		COMMAND		devsound				~
  1804 	END_TEST_BLOCK
  1805 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4013
  1806 
  1807 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4014
  1808 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4014
  1809 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  1810 //! @SYMAuthor			Vassili Tsvetkov
  1811 //! @SYMCreationDate		15/06/2008
  1812 //! @SYMTestCaseDesc		Execute playing audio in pcm16 stereo 16khz
  1813 //!				
  1814 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  1815 //!				2. Call SetPlayFormat() with [set_set_settings_pcm16_stereo_16khz]
  1816 //!				3. Call PlayData() with valid sound data from [pcm16_stereo_16khz_32kb.raw]
  1817 //!				4. Call FlushPlayBuffer
  1818 //!				5. Call GetPlayFormat() and verify the sound found configuration
  1819 //!				6. Restore initial sound h/w configuration
  1820 //!				7. Call Close()
  1821 //!
  1822 //! @SYMTestStatus		Implemented
  1823 //! @SYMTestPriority		Critical
  1824 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  1825 //! @SYMTestType		CIT
  1826 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  1827 		CREATE_OBJECT	RMdaDevSound				devsound
  1828 		COMMAND		devsound				new
  1829 		COMMAND		devsound				Open			UnitEnum
  1830 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  1831 		COMMAND		t_format				new
  1832 		COMMAND		t_format				irate_set			set_settings_pcm16_stereo_16khz
  1833 		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_stereo_16khz
  1834 		COMMAND		t_format				iencoding_set		set_settings_pcm16_stereo_16khz
  1835 		COMMAND		t_format				ichannels_set		set_settings_pcm16_stereo_16khz
  1836 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1837 		COMMAND		devsound				PlayData		pcm16_stereo_16khz_32kb.raw
  1838 		OUTSTANDING
  1839 		COMMAND		devsound				FlushPlayBuffer
  1840                 COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  1841 		COMMAND		t_format				irate_get			set_settings_pcm16_stereo_16khz_expected
  1842 		COMMAND		t_format				iencoding_get		set_settings_pcm16_stereo_16khz_expected
  1843 		COMMAND		t_format				ichannels_get		set_settings_pcm16_stereo_16khz_expected
  1844 		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_stereo_16khz_expected
  1845                 //!set back default play configuration
  1846 		COMMAND		t_format				irate_set			default_play_format
  1847 		COMMAND		t_format				iencoding_set		default_play_format
  1848 		COMMAND		t_format				ichannels_set		default_play_format
  1849 		COMMAND		t_format				ibuffer_size_set		default_play_format
  1850 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1851 		COMMAND		devsound				SetPlayVolume		default_play_volume
  1852 		COMMAND		t_format				~
  1853 		COMMAND		devsound				Close
  1854 		COMMAND		devsound				~
  1855 	END_TEST_BLOCK
  1856 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4014
  1857 
  1858 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4015
  1859 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4015
  1860 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  1861 //! @SYMAuthor			Vassili Tsvetkov
  1862 //! @SYMCreationDate		15/06/2008
  1863 //! @SYMTestCaseDesc		Execute playing audio in pcm16 stereo 22khz
  1864 //!				
  1865 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  1866 //!				2. Call SetPlayFormat() with [set_set_settings_pcm16_stereo_22khz]
  1867 //!				3. Call PlayData() with valid sound data from [pcm16_stereo_22khz_32kb.raw]
  1868 //!				4. Call FlushPlayBuffer
  1869 //!				5. Call GetPlayFormat() and verify the sound found configuration
  1870 //!				6. Restore initial sound h/w configuration
  1871 //!				7. Call Close()
  1872 //!
  1873 //! @SYMTestStatus		Implemented
  1874 //! @SYMTestPriority		Critical
  1875 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  1876 //! @SYMTestType		CIT
  1877 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  1878 		CREATE_OBJECT	RMdaDevSound				devsound
  1879 		COMMAND		devsound				new
  1880 		COMMAND		devsound				Open			UnitEnum
  1881 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  1882 		COMMAND		t_format				new
  1883 		COMMAND		t_format				irate_set			set_settings_pcm16_stereo_22khz
  1884 		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_stereo_22khz
  1885 		COMMAND		t_format				iencoding_set		set_settings_pcm16_stereo_22khz
  1886 		COMMAND		t_format				ichannels_set		set_settings_pcm16_stereo_22khz
  1887 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1888 		COMMAND		devsound				PlayData		pcm16_stereo_22khz_32kb.raw
  1889 		OUTSTANDING
  1890 		COMMAND		devsound				FlushPlayBuffer
  1891                 COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  1892 		COMMAND		t_format				irate_get			set_settings_pcm16_stereo_22khz_expected
  1893 		COMMAND		t_format				iencoding_get		set_settings_pcm16_stereo_22khz_expected
  1894 		COMMAND		t_format				ichannels_get		set_settings_pcm16_stereo_22khz_expected
  1895 		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_stereo_22khz_expected
  1896                 //!set back default play configuration
  1897 		COMMAND		t_format				irate_set			default_play_format
  1898 		COMMAND		t_format				iencoding_set		default_play_format
  1899 		COMMAND		t_format				ichannels_set		default_play_format
  1900 		COMMAND		t_format				ibuffer_size_set		default_play_format
  1901 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1902 		COMMAND		devsound				SetPlayVolume		default_play_volume
  1903 		COMMAND		t_format				~
  1904 		COMMAND		devsound				Close
  1905 		COMMAND		devsound				~
  1906 	END_TEST_BLOCK
  1907 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4015
  1908 
  1909 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4016
  1910 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4016
  1911 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  1912 //! @SYMAuthor			Vassili Tsvetkov
  1913 //! @SYMCreationDate		15/06/2008
  1914 //! @SYMTestCaseDesc		Execute playing audio in pcm16 stereo 24khz
  1915 //!				
  1916 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  1917 //!				2. Call SetPlayFormat() with [set_set_settings_pcm16_stereo_24khz]
  1918 //!				3. Call PlayData() with valid sound data from [pcm16_stereo_24khz_32kb.raw]
  1919 //!				4. Call FlushPlayBuffer
  1920 //!				5. Call GetPlayFormat() and verify the sound found configuration
  1921 //!				6. Restore initial sound h/w configuration
  1922 //!				7. Call Close()
  1923 //!
  1924 //! @SYMTestStatus		Implemented
  1925 //! @SYMTestPriority		Critical
  1926 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  1927 //! @SYMTestType		CIT
  1928 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  1929 		CREATE_OBJECT	RMdaDevSound				devsound
  1930 		COMMAND		devsound				new
  1931 		COMMAND		devsound				Open			UnitEnum
  1932 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  1933 		COMMAND		t_format				new
  1934 		COMMAND		t_format				irate_set			set_settings_pcm16_stereo_24khz
  1935 		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_stereo_24khz
  1936 		COMMAND		t_format				iencoding_set		set_settings_pcm16_stereo_24khz
  1937 		COMMAND		t_format				ichannels_set		set_settings_pcm16_stereo_24khz
  1938 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1939 		COMMAND		devsound				PlayData		pcm16_stereo_24khz_32kb.raw
  1940 		OUTSTANDING
  1941 		COMMAND		devsound				FlushPlayBuffer
  1942                 COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  1943 		COMMAND		t_format				irate_get			set_settings_pcm16_stereo_24khz_expected
  1944 		COMMAND		t_format				iencoding_get		set_settings_pcm16_stereo_24khz_expected
  1945 		COMMAND		t_format				ichannels_get		set_settings_pcm16_stereo_24khz_expected
  1946 		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_stereo_24khz_expected
  1947                 //!set back default play configuration
  1948 		COMMAND		t_format				irate_set			default_play_format
  1949 		COMMAND		t_format				iencoding_set		default_play_format
  1950 		COMMAND		t_format				ichannels_set		default_play_format
  1951 		COMMAND		t_format				ibuffer_size_set		default_play_format
  1952 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1953 		COMMAND		devsound				SetPlayVolume		default_play_volume
  1954 		COMMAND		t_format				~
  1955 		COMMAND		devsound				Close
  1956 		COMMAND		devsound				~
  1957 	END_TEST_BLOCK
  1958 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4016
  1959 
  1960 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4017
  1961 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4017
  1962 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  1963 //! @SYMAuthor			Vassili Tsvetkov
  1964 //! @SYMCreationDate		15/06/2008
  1965 //! @SYMTestCaseDesc		Execute playing audio in pcm16 stereo 32khz
  1966 //!				
  1967 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  1968 //!				2. Call SetPlayFormat() with [set_set_settings_pcm16_stereo_32khz]
  1969 //!				3. Call PlayData() with valid sound data from [pcm16_stereo_32khz_32kb.raw]
  1970 //!				4. Call FlushPlayBuffer
  1971 //!				5. Call GetPlayFormat() and verify the sound found configuration
  1972 //!				6. Restore initial sound h/w configuration
  1973 //!				7. Call Close()
  1974 //!
  1975 //! @SYMTestStatus		Implemented
  1976 //! @SYMTestPriority		Critical
  1977 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  1978 //! @SYMTestType		CIT
  1979 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  1980 		CREATE_OBJECT	RMdaDevSound				devsound
  1981 		COMMAND		devsound				new
  1982 		COMMAND		devsound				Open			UnitEnum
  1983 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  1984 		COMMAND		t_format				new
  1985 		COMMAND		t_format				irate_set			set_settings_pcm16_stereo_32khz
  1986 		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_stereo_32khz
  1987 		COMMAND		t_format				iencoding_set		set_settings_pcm16_stereo_32khz
  1988 		COMMAND		t_format				ichannels_set		set_settings_pcm16_stereo_32khz
  1989 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  1990 		COMMAND		devsound				PlayData		pcm16_stereo_32khz_32kb.raw
  1991 		OUTSTANDING
  1992 		COMMAND		devsound				FlushPlayBuffer
  1993                 COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  1994 		COMMAND		t_format				irate_get			set_settings_pcm16_stereo_32khz_expected
  1995 		COMMAND		t_format				iencoding_get		set_settings_pcm16_stereo_32khz_expected
  1996 		COMMAND		t_format				ichannels_get		set_settings_pcm16_stereo_32khz_expected
  1997 		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_stereo_32khz_expected
  1998                 //!set back default play configuration
  1999 		COMMAND		t_format				irate_set			default_play_format
  2000 		COMMAND		t_format				iencoding_set		default_play_format
  2001 		COMMAND		t_format				ichannels_set		default_play_format
  2002 		COMMAND		t_format				ibuffer_size_set		default_play_format
  2003 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  2004 		COMMAND		devsound				SetPlayVolume		default_play_volume
  2005 		COMMAND		t_format				~
  2006 		COMMAND		devsound				Close
  2007 		COMMAND		devsound				~
  2008 	END_TEST_BLOCK
  2009 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4017
  2010 
  2011 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4018
  2012 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4018
  2013 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  2014 //! @SYMAuthor			Vassili Tsvetkov
  2015 //! @SYMCreationDate		15/06/2008
  2016 //! @SYMTestCaseDesc		Execute playing audio in pcm16 stereo 44.1khz
  2017 //!				
  2018 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  2019 //!				2. Call SetPlayFormat() with [set_set_settings_pcm16_stereo_44.1khz]
  2020 //!				3. Call PlayData() with valid sound data from [pcm16_stereo_44.1khz_32kb.raw]
  2021 //!				4. Call FlushPlayBuffer
  2022 //!				5. Call GetPlayFormat() and verify the sound found configuration
  2023 //!				6. Restore initial sound h/w configuration
  2024 //!				7. Call Close()
  2025 //!
  2026 //! @SYMTestStatus		Implemented
  2027 //! @SYMTestPriority		Critical
  2028 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  2029 //! @SYMTestType		CIT
  2030 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  2031 		CREATE_OBJECT	RMdaDevSound				devsound
  2032 		COMMAND		devsound				new
  2033 		COMMAND		devsound				Open			UnitEnum
  2034 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  2035 		COMMAND		t_format				new
  2036 		COMMAND		t_format				irate_set			set_settings_pcm16_stereo_44.1khz
  2037 		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_stereo_44.1khz
  2038 		COMMAND		t_format				iencoding_set		set_settings_pcm16_stereo_44.1khz
  2039 		COMMAND		t_format				ichannels_set		set_settings_pcm16_stereo_44.1khz
  2040 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  2041 		COMMAND		devsound				PlayData		pcm16_stereo_44.1khz_32kb.raw
  2042 		OUTSTANDING
  2043 		COMMAND		devsound				FlushPlayBuffer
  2044                 COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  2045 		COMMAND		t_format				irate_get			set_settings_pcm16_stereo_44.1khz_expected
  2046 		COMMAND		t_format				iencoding_get		set_settings_pcm16_stereo_44.1khz_expected
  2047 		COMMAND		t_format				ichannels_get		set_settings_pcm16_stereo_44.1khz_expected
  2048 		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_stereo_44.1khz_expected
  2049                 //!set back default play configuration
  2050 		COMMAND		t_format				irate_set			default_play_format
  2051 		COMMAND		t_format				iencoding_set		default_play_format
  2052 		COMMAND		t_format				ichannels_set		default_play_format
  2053 		COMMAND		t_format				ibuffer_size_set		default_play_format
  2054 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  2055 		COMMAND		devsound				SetPlayVolume		default_play_volume
  2056 		COMMAND		t_format				~
  2057 		COMMAND		devsound				Close
  2058 		COMMAND		devsound				~
  2059 	END_TEST_BLOCK
  2060 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4018
  2061 
  2062 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4019
  2063 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4019
  2064 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  2065 //! @SYMAuthor			Vassili Tsvetkov
  2066 //! @SYMCreationDate		15/06/2008
  2067 //! @SYMTestCaseDesc		Execute playing audio in pcm16 stereo 48khz
  2068 //!				
  2069 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  2070 //!				2. Call SetPlayFormat() with [set_set_settings_pcm16_stereo_48khz]
  2071 //!				3. Call PlayData() with valid sound data from [pcm16_stereo_48khz_32kb.raw]
  2072 //!				4. Call FlushPlayBuffer
  2073 //!				5. Call GetPlayFormat() and verify the sound found configuration
  2074 //!				6. Restore initial sound h/w configuration
  2075 //!				7. Call Close()
  2076 //!
  2077 //! @SYMTestStatus		Implemented
  2078 //! @SYMTestPriority		Critical
  2079 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  2080 //! @SYMTestType		CIT
  2081 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  2082 		CREATE_OBJECT	RMdaDevSound				devsound
  2083 		COMMAND		devsound				new
  2084 		COMMAND		devsound				Open			UnitEnum
  2085 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  2086 		COMMAND		t_format				new
  2087 		COMMAND		t_format				irate_set			set_settings_pcm16_stereo_48khz
  2088 		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_stereo_48khz
  2089 		COMMAND		t_format				iencoding_set		set_settings_pcm16_stereo_48khz
  2090 		COMMAND		t_format				ichannels_set		set_settings_pcm16_stereo_48khz
  2091 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  2092 		COMMAND		devsound				PlayData		pcm16_stereo_48khz_32kb.raw
  2093 		OUTSTANDING
  2094 		COMMAND		devsound				FlushPlayBuffer
  2095                 COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  2096 		COMMAND		t_format				irate_get			set_settings_pcm16_stereo_48khz_expected
  2097 		COMMAND		t_format				iencoding_get		set_settings_pcm16_stereo_48khz_expected
  2098 		COMMAND		t_format				ichannels_get		set_settings_pcm16_stereo_48khz_expected
  2099 		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_stereo_48khz_expected
  2100                 //!set back default play configuration
  2101 		COMMAND		t_format				irate_set			default_play_format
  2102 		COMMAND		t_format				iencoding_set		default_play_format
  2103 		COMMAND		t_format				ichannels_set		default_play_format
  2104 		COMMAND		t_format				ibuffer_size_set		default_play_format
  2105 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  2106 		COMMAND		devsound				SetPlayVolume		default_play_volume
  2107 		COMMAND		t_format				~
  2108 		COMMAND		devsound				Close
  2109 		COMMAND		devsound				~
  2110 	END_TEST_BLOCK
  2111 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4019
  2112 
  2113 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4020
  2114 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4020
  2115 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  2116 //! @SYMAuthor			Vassili Tsvetkov
  2117 //! @SYMCreationDate		15/06/2008
  2118 //! @SYMTestCaseDesc		Execute playing audio in alaw8 mono 8khz
  2119 //!				
  2120 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  2121 //!				2. Call SetPlayFormat() with [set_set_settings_alaw8bit_mono_8khz]
  2122 //!				3. Call PlayData() with valid sound data from [alaw8bit_mono_8khz_32kb.raw]
  2123 //!				4. Call FlushPlayBuffer
  2124 //!				5. Call GetPlayFormat() and verify the sound found configuration
  2125 //!				6. Restore initial sound h/w configuration
  2126 //!				7. Call Close()
  2127 //!
  2128 //! @SYMTestStatus		Implemented
  2129 //! @SYMTestPriority		Critical
  2130 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  2131 //! @SYMTestType		CIT
  2132 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  2133 		CREATE_OBJECT	RMdaDevSound				devsound
  2134 		COMMAND		devsound				new
  2135 		COMMAND		devsound				Open			UnitEnum
  2136 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  2137 		COMMAND		t_format				new
  2138 		COMMAND		t_format				irate_set			set_settings_alaw8bit_mono_8khz
  2139 		COMMAND		t_format				ibuffer_size_set		set_settings_alaw8bit_mono_8khz
  2140 		COMMAND		t_format				iencoding_set		set_settings_alaw8bit_mono_8khz
  2141 		COMMAND		t_format				ichannels_set		set_settings_alaw8bit_mono_8khz
  2142 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  2143 		COMMAND		devsound				PlayData		alaw8bit_mono_8khz_32kb.raw
  2144 		OUTSTANDING
  2145 		COMMAND		devsound				FlushPlayBuffer
  2146                 COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  2147 		COMMAND		t_format				irate_get			set_settings_alaw8bit_mono_8khz_expected
  2148 		COMMAND		t_format				iencoding_get		set_settings_alaw8bit_mono_8khz_expected
  2149 		COMMAND		t_format				ichannels_get		set_settings_alaw8bit_mono_8khz_expected
  2150 		COMMAND		t_format				ibuffer_size_get		set_settings_alaw8bit_mono_8khz_expected
  2151                 //!set back default play configuration
  2152 		COMMAND		t_format				irate_set			default_play_format
  2153 		COMMAND		t_format				iencoding_set		default_play_format
  2154 		COMMAND		t_format				ichannels_set		default_play_format
  2155 		COMMAND		t_format				ibuffer_size_set		default_play_format
  2156 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  2157 		COMMAND		devsound				SetPlayVolume		default_play_volume
  2158 		COMMAND		t_format				~
  2159 		COMMAND		devsound				Close
  2160 		COMMAND		devsound				~
  2161 	END_TEST_BLOCK
  2162 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4020
  2163 
  2164 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4021
  2165 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4021
  2166 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  2167 //! @SYMAuthor			Vassili Tsvetkov
  2168 //! @SYMCreationDate		15/06/2008
  2169 //! @SYMTestCaseDesc		Execute playing audio in alaw8 stereo 24khz
  2170 //!				
  2171 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  2172 //!				2. Call SetPlayFormat() with [set_set_settings_alaw8bit_stereo_24khz]
  2173 //!				3. Call PlayData() with valid sound data from [alaw8bit_stereo_24khz_32kb.raw]
  2174 //!				4. Call FlushPlayBuffer
  2175 //!				5. Call GetPlayFormat() and verify the sound found configuration
  2176 //!				6. Restore initial sound h/w configuration
  2177 //!				7. Call Close()
  2178 //!
  2179 //! @SYMTestStatus		Implemented
  2180 //! @SYMTestPriority		Critical
  2181 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  2182 //! @SYMTestType		CIT
  2183 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  2184 		CREATE_OBJECT	RMdaDevSound				devsound
  2185 		COMMAND		devsound				new
  2186 		COMMAND		devsound				Open			UnitEnum
  2187 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  2188 		COMMAND		t_format				new
  2189 		COMMAND		t_format				irate_set			set_settings_alaw8bit_stereo_24khz
  2190 		COMMAND		t_format				ibuffer_size_set		set_settings_alaw8bit_stereo_24khz
  2191 		COMMAND		t_format				iencoding_set		set_settings_alaw8bit_stereo_24khz
  2192 		COMMAND		t_format				ichannels_set		set_settings_alaw8bit_stereo_24khz
  2193 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  2194 		COMMAND		devsound				PlayData		alaw8bit_stereo_24khz_32kb.raw
  2195 		OUTSTANDING
  2196 		COMMAND		devsound				FlushPlayBuffer
  2197                 COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  2198 		COMMAND		t_format				irate_get			set_settings_alaw8bit_stereo_24khz_expected
  2199 		COMMAND		t_format				iencoding_get		set_settings_alaw8bit_stereo_24khz_expected
  2200 		COMMAND		t_format				ichannels_get		set_settings_alaw8bit_stereo_24khz_expected
  2201 		COMMAND		t_format				ibuffer_size_get		set_settings_alaw8bit_stereo_24khz_expected
  2202                 //!set back default play configuration
  2203 		COMMAND		t_format				irate_set			default_play_format
  2204 		COMMAND		t_format				iencoding_set		default_play_format
  2205 		COMMAND		t_format				ichannels_set		default_play_format
  2206 		COMMAND		t_format				ibuffer_size_set		default_play_format
  2207 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  2208 		COMMAND		devsound				SetPlayVolume		default_play_volume
  2209 		COMMAND		t_format				~
  2210 		COMMAND		devsound				Close
  2211 		COMMAND		devsound				~
  2212 	END_TEST_BLOCK
  2213 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4021
  2214 
  2215 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4022
  2216 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4022
  2217 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  2218 //! @SYMAuthor			Vassili Tsvetkov
  2219 //! @SYMCreationDate		15/06/2008
  2220 //! @SYMTestCaseDesc		Execute playing audio in mulaw8 mono 12khz
  2221 //!				
  2222 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  2223 //!				2. Call SetPlayFormat() with [set_set_settings_mulaw8bit_mono_12khz]
  2224 //!				3. Call PlayData() with valid sound data from [mulaw8bit_mono_12khz_32kb.raw]
  2225 //!				4. Call FlushPlayBuffer
  2226 //!				5. Call GetPlayFormat() and verify the sound found configuration
  2227 //!				6. Restore initial sound h/w configuration
  2228 //!				7. Call Close()
  2229 //!
  2230 //! @SYMTestStatus		Implemented
  2231 //! @SYMTestPriority		Critical
  2232 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  2233 //! @SYMTestType		CIT
  2234 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  2235 		CREATE_OBJECT	RMdaDevSound				devsound
  2236 		COMMAND		devsound				new
  2237 		COMMAND		devsound				Open			UnitEnum
  2238 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  2239 		COMMAND		t_format				new
  2240 		COMMAND		t_format				irate_set			set_settings_mulaw8bit_mono_12khz
  2241 		COMMAND		t_format				ibuffer_size_set		set_settings_mulaw8bit_mono_12khz
  2242 		COMMAND		t_format				iencoding_set		set_settings_mulaw8bit_mono_12khz
  2243 		COMMAND		t_format				ichannels_set		set_settings_mulaw8bit_mono_12khz
  2244 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  2245 		COMMAND		devsound				PlayData		mulaw8bit_mono_12khz_32kb.raw
  2246 		OUTSTANDING
  2247 		COMMAND		devsound				FlushPlayBuffer
  2248                 COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  2249 		COMMAND		t_format				irate_get			set_settings_mulaw8bit_mono_12khz_expected
  2250 		COMMAND		t_format				iencoding_get		set_settings_mulaw8bit_mono_12khz_expected
  2251 		COMMAND		t_format				ichannels_get		set_settings_mulaw8bit_mono_12khz_expected
  2252 		COMMAND		t_format				ibuffer_size_get		set_settings_mulaw8bit_mono_12khz_expected
  2253                 //!set back default play configuration
  2254 		COMMAND		t_format				irate_set			default_play_format
  2255 		COMMAND		t_format				iencoding_set		default_play_format
  2256 		COMMAND		t_format				ichannels_set		default_play_format
  2257 		COMMAND		t_format				ibuffer_size_set		default_play_format
  2258 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  2259 		COMMAND		devsound				SetPlayVolume		default_play_volume
  2260 		COMMAND		t_format				~
  2261 		COMMAND		devsound				Close
  2262 		COMMAND		devsound				~
  2263 	END_TEST_BLOCK
  2264 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4022
  2265 
  2266 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4023
  2267 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4023
  2268 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  2269 //! @SYMAuthor			Vassili Tsvetkov
  2270 //! @SYMCreationDate		15/06/2008
  2271 //! @SYMTestCaseDesc		Execute playing audio in mulaw8 stereo 32khz
  2272 //!				
  2273 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  2274 //!				2. Call SetPlayFormat() with [set_set_settings_mulaw8bit_stereo_32khz]
  2275 //!				3. Call PlayData() with valid sound data from [mulaw8bit_stereo_32khz_32kb.raw]
  2276 //!				4. Call FlushPlayBuffer
  2277 //!				5. Call GetPlayFormat() and verify the sound found configuration
  2278 //!				6. Restore initial sound h/w configuration
  2279 //!				7. Call Close()
  2280 //!
  2281 //! @SYMTestStatus		Implemented
  2282 //! @SYMTestPriority		Critical
  2283 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  2284 //! @SYMTestType		CIT
  2285 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  2286 		CREATE_OBJECT	RMdaDevSound				devsound
  2287 		COMMAND		devsound				new
  2288 		COMMAND		devsound				Open			UnitEnum
  2289 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  2290 		COMMAND		t_format				new
  2291 		COMMAND		t_format				irate_set			set_settings_mulaw8bit_stereo_32khz
  2292 		COMMAND		t_format				ibuffer_size_set		set_settings_mulaw8bit_stereo_32khz
  2293 		COMMAND		t_format				iencoding_set		set_settings_mulaw8bit_stereo_32khz
  2294 		COMMAND		t_format				ichannels_set		set_settings_mulaw8bit_stereo_32khz
  2295 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  2296 		COMMAND		devsound				PlayData		mulaw8bit_stereo_32khz_32kb.raw
  2297 		OUTSTANDING
  2298 		COMMAND		devsound				FlushPlayBuffer
  2299                 COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  2300 		COMMAND		t_format				irate_get			set_settings_mulaw8bit_stereo_32khz_expected
  2301 		COMMAND		t_format				iencoding_get		set_settings_mulaw8bit_stereo_32khz_expected
  2302 		COMMAND		t_format				ichannels_get		set_settings_mulaw8bit_stereo_32khz_expected
  2303 		COMMAND		t_format				ibuffer_size_get		set_settings_mulaw8bit_stereo_32khz_expected
  2304                 //!set back default play configuration
  2305 		COMMAND		t_format				irate_set			default_play_format
  2306 		COMMAND		t_format				iencoding_set		default_play_format
  2307 		COMMAND		t_format				ichannels_set		default_play_format
  2308 		COMMAND		t_format				ibuffer_size_set		default_play_format
  2309 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  2310 		COMMAND		devsound				SetPlayVolume		default_play_volume
  2311 		COMMAND		t_format				~
  2312 		COMMAND		devsound				Close
  2313 		COMMAND		devsound				~
  2314 	END_TEST_BLOCK
  2315 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4023
  2316 
  2317 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-4024
  2318 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-4024
  2319 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  2320 //! @SYMAuthor			Vassili Tsvetkov
  2321 //! @SYMCreationDate		15/06/2008
  2322 //! @SYMTestCaseDesc		Execute playing audio in pcm16 stereo 24khz
  2323 //!				
  2324 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  2325 //!				2. Call SetPlayFormat() with [set_set_settings_pcm16_stereo_24khz_320kb]
  2326 //!				3. Call PlayData() with valid sound data from [pcm16_stereo_24khz_320kb.raw]
  2327 //!				4. Call FlushPlayBuffer
  2328 //!				5. Call GetPlayFormat() and verify the sound found configuration
  2329 //!				6. Restore initial sound h/w configuration
  2330 //!				7. Call Close()
  2331 //!
  2332 //! @SYMTestStatus		Implemented
  2333 //! @SYMTestPriority		Critical
  2334 //! @SYMTestExpectedResults	Playing completes without any errors, sound format is set and verified
  2335 //! @SYMTestType		CIT
  2336 	START_TEST_BLOCK	100					t_sound			\base\sound\base-bsp-sound-driver.ini
  2337 		CREATE_OBJECT	RMdaDevSound				devsound
  2338 		COMMAND		devsound				new
  2339 		COMMAND		devsound				Open			UnitEnum
  2340 		CREATE_OBJECT	TCurrentSoundFormat			t_format		
  2341 		COMMAND		t_format				new
  2342 		COMMAND		t_format				irate_set			set_settings_pcm16_stereo_24khz_320kb
  2343 		COMMAND		t_format				ibuffer_size_set		set_settings_pcm16_stereo_24khz_320kb
  2344 		COMMAND		t_format				iencoding_set		set_settings_pcm16_stereo_24khz_320kb
  2345 		COMMAND		t_format				ichannels_set		set_settings_pcm16_stereo_24khz_320kb
  2346 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  2347 		COMMAND		devsound				PlayData		pcm16_stereo_24khz_320kb.raw
  2348 		OUTSTANDING
  2349 		COMMAND		devsound				FlushPlayBuffer
  2350                 COMMAND		devsound				GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  2351 		COMMAND		t_format				irate_get			set_settings_pcm16_stereo_24khz_320kb_expected
  2352 		COMMAND		t_format				iencoding_get		set_settings_pcm16_stereo_24khz_320kb_expected
  2353 		COMMAND		t_format				ichannels_get		set_settings_pcm16_stereo_24khz_320kb_expected
  2354 		COMMAND		t_format				ibuffer_size_get		set_settings_pcm16_stereo_24khz_320kb_expected
  2355                 //!set back default play configuration
  2356 		COMMAND		t_format				irate_set			default_play_format
  2357 		COMMAND		t_format				iencoding_set		default_play_format
  2358 		COMMAND		t_format				ichannels_set		default_play_format
  2359 		COMMAND		t_format				ibuffer_size_set		default_play_format
  2360 		COMMAND		devsound				SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  2361 		COMMAND		devsound				SetPlayVolume		default_play_volume
  2362 		COMMAND		t_format				~
  2363 		COMMAND		devsound				Close
  2364 		COMMAND		devsound				~
  2365 	END_TEST_BLOCK
  2366 END_TESTCASE			BASE-BSP-SOUND-DRIVER-4024
  2367 
  2368 ///////////////////////////////////////////
  2369 // Recording with different audio formats and types
  2370 ///////////////////////////////////////////
  2371 
  2372 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5001
  2373 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5001
  2374 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  2375 //! @SYMAuthor			Vassili Tsvetkov
  2376 //! @SYMCreationDate		15/06/2008
  2377 //! @SYMTestCaseDesc		Execute recording audio in pcm8 mono 8khz
  2378 //!				
  2379 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  2380 //!				2. Call SetRecordFormat() with default value from [set_set_settings_pcm8_mono_8khz_32kb]
  2381 //!				3. Call RecordData() with values from [record_data_32kb]
  2382 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  2383 //!				5. Call GetRecordFormat() to verify sound format to verify sound format
  2384 //!				6. Restore initial sound h/w configuration
  2385 //!				7. Call Close()
  2386 //!
  2387 //! @SYMTestStatus		Implemented
  2388 //! @SYMTestPriority		Critical
  2389 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  2390 //! @SYMTestType		CIT
  2391 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  2392 		CREATE_OBJECT		RMdaDevSound			devsound  
  2393 		COMMAND			devsound			new
  2394 		COMMAND			devsound			Open			UnitEnum
  2395 		//!set default play configuration
  2396 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  2397 		COMMAND			t_format			new			
  2398 		COMMAND			t_format			irate_set			set_settings_pcm8_mono_8khz_32kb
  2399 		COMMAND			t_format			iencoding_set		set_settings_pcm8_mono_8khz_32kb
  2400 		COMMAND			t_format			ichannels_set		set_settings_pcm8_mono_8khz_32kb
  2401 		COMMAND			t_format			ibuffer_size_set		set_settings_pcm8_mono_8khz_32kb
  2402 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2403 		COMMAND			devsound			RecordData		record_data_32kb
  2404 		OUTSTANDING
  2405 		COMMAND			devsound			FlushRecordBuffer
  2406 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  2407 		COMMAND			t_format			irate_get			set_settings_pcm8_mono_8khz_32kb_expected
  2408 		COMMAND			t_format			iencoding_get		set_settings_pcm8_mono_8khz_32kb_expected
  2409 		COMMAND			t_format			ichannels_get		set_settings_pcm8_mono_8khz_32kb_expected
  2410 		COMMAND			t_format			ibuffer_size_get		set_settings_pcm8_mono_8khz_32kb_expected
  2411 		//!set back default play configuration
  2412 		COMMAND			t_format			irate_set			default_record_format
  2413 		COMMAND			t_format			iencoding_set		default_record_format
  2414 		COMMAND			t_format			ichannels_set		default_record_format
  2415 		COMMAND			t_format			ibuffer_size_set		default_record_format
  2416 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2417 		COMMAND			devsound			SetRecordLevel		default_record_level
  2418 		COMMAND			t_format  			~	
  2419 		COMMAND			devsound  			Close
  2420 		COMMAND			devsound  			~
  2421 	END_TEST_BLOCK
  2422 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5001
  2423 
  2424 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5002
  2425 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5002
  2426 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  2427 //! @SYMAuthor			Vassili Tsvetkov
  2428 //! @SYMCreationDate		15/06/2008
  2429 //! @SYMTestCaseDesc		Execute recording audio in pcm16 mono 8khz
  2430 //!				
  2431 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  2432 //!				2. Call SetRecordFormat() with default value from [set_set_settings_pcm16_mono_8khz]
  2433 //!				3. Call RecordData() with values from [record_data_32kb]
  2434 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  2435 //!				5. Call GetRecordFormat() to verify sound format
  2436 //!				6. Restore initial sound h/w configuration
  2437 //!				7. Call Close()
  2438 //!
  2439 //! @SYMTestStatus		Implemented
  2440 //! @SYMTestPriority		Critical
  2441 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  2442 //! @SYMTestType		CIT
  2443 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  2444 		CREATE_OBJECT		RMdaDevSound			devsound  
  2445 		COMMAND			devsound			new
  2446 		COMMAND			devsound			Open			UnitEnum
  2447 		//!set default play configuration
  2448 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  2449 		COMMAND			t_format			new			
  2450 		COMMAND			t_format			irate_set			set_settings_pcm16_mono_8khz
  2451 		COMMAND			t_format			iencoding_set		set_settings_pcm16_mono_8khz
  2452 		COMMAND			t_format			ichannels_set		set_settings_pcm16_mono_8khz
  2453 		COMMAND			t_format			ibuffer_size_set		set_settings_pcm16_mono_8khz
  2454 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2455 		COMMAND			devsound			RecordData		record_data_32kb
  2456 		OUTSTANDING
  2457 		COMMAND			devsound			FlushRecordBuffer
  2458 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  2459 		COMMAND			t_format			irate_get			set_settings_pcm16_mono_8khz_expected
  2460 		COMMAND			t_format			iencoding_get		set_settings_pcm16_mono_8khz_expected
  2461 		COMMAND			t_format			ichannels_get		set_settings_pcm16_mono_8khz_expected
  2462 		COMMAND			t_format			ibuffer_size_get		set_settings_pcm16_mono_8khz_expected
  2463 		//!set back default play configuration
  2464 		COMMAND			t_format			irate_set			default_record_format
  2465 		COMMAND			t_format			iencoding_set		default_record_format
  2466 		COMMAND			t_format			ichannels_set		default_record_format
  2467 		COMMAND			t_format			ibuffer_size_set		default_record_format
  2468 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2469 		COMMAND			devsound			SetRecordLevel		default_record_level
  2470 		COMMAND			t_format  			~	
  2471 		COMMAND			devsound  			Close
  2472 		COMMAND			devsound  			~
  2473 	END_TEST_BLOCK
  2474 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5002
  2475 
  2476 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5003
  2477 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5003
  2478 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  2479 //! @SYMAuthor			Vassili Tsvetkov
  2480 //! @SYMCreationDate		15/06/2008
  2481 //! @SYMTestCaseDesc		Execute recording audio in pcm16 mono 11khz
  2482 //!				
  2483 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  2484 //!				2. Call SetRecordFormat() with default value from [set_set_settings_pcm16_mono_11khz]
  2485 //!				3. Call RecordData() with values from [record_data_32kb]
  2486 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  2487 //!				5. Call GetRecordFormat() to verify sound format
  2488 //!				6. Restore initial sound h/w configuration
  2489 //!				7. Call Close()
  2490 //!
  2491 //! @SYMTestStatus		Implemented
  2492 //! @SYMTestPriority		Critical
  2493 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  2494 //! @SYMTestType		CIT
  2495 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  2496 		CREATE_OBJECT		RMdaDevSound			devsound  
  2497 		COMMAND			devsound			new
  2498 		COMMAND			devsound			Open			UnitEnum
  2499 		//!set default play configuration
  2500 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  2501 		COMMAND			t_format			new			
  2502 		COMMAND			t_format			irate_set			set_settings_pcm16_mono_11khz
  2503 		COMMAND			t_format			iencoding_set		set_settings_pcm16_mono_11khz
  2504 		COMMAND			t_format			ichannels_set		set_settings_pcm16_mono_11khz
  2505 		COMMAND			t_format			ibuffer_size_set		set_settings_pcm16_mono_11khz
  2506 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2507 		COMMAND			devsound			RecordData		record_data_32kb
  2508 		OUTSTANDING
  2509 		COMMAND			devsound			FlushRecordBuffer
  2510 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  2511 		COMMAND			t_format			irate_get			set_settings_pcm16_mono_11khz_expected
  2512 		COMMAND			t_format			iencoding_get		set_settings_pcm16_mono_11khz_expected
  2513 		COMMAND			t_format			ichannels_get		set_settings_pcm16_mono_11khz_expected
  2514 		COMMAND			t_format			ibuffer_size_get		set_settings_pcm16_mono_11khz_expected
  2515 		//!set back default play configuration
  2516 		COMMAND			t_format			irate_set			default_record_format
  2517 		COMMAND			t_format			iencoding_set		default_record_format
  2518 		COMMAND			t_format			ichannels_set		default_record_format
  2519 		COMMAND			t_format			ibuffer_size_set		default_record_format
  2520 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2521 		COMMAND			devsound			SetRecordLevel		default_record_level
  2522 		COMMAND			t_format  			~	
  2523 		COMMAND			devsound  			Close
  2524 		COMMAND			devsound  			~
  2525 	END_TEST_BLOCK
  2526 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5003
  2527 
  2528 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5004
  2529 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5004
  2530 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  2531 //! @SYMAuthor			Vassili Tsvetkov
  2532 //! @SYMCreationDate		15/06/2008
  2533 //! @SYMTestCaseDesc		Execute recording audio in pcm16 mono 12khz
  2534 //!				
  2535 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  2536 //!				2. Call SetRecordFormat() with default value from [set_set_settings_pcm16_mono_12khz]
  2537 //!				3. Call RecordData() with values from [record_data_32kb]
  2538 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  2539 //!				5. Call GetRecordFormat() to verify sound format
  2540 //!				6. Restore initial sound h/w configuration
  2541 //!				7. Call Close()
  2542 //!
  2543 //! @SYMTestStatus		Implemented
  2544 //! @SYMTestPriority		Critical
  2545 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  2546 //! @SYMTestType		CIT
  2547 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  2548 		CREATE_OBJECT		RMdaDevSound			devsound  
  2549 		COMMAND			devsound			new
  2550 		COMMAND			devsound			Open			UnitEnum
  2551 		//!set default play configuration
  2552 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  2553 		COMMAND			t_format			new			
  2554 		COMMAND			t_format			irate_set			set_settings_pcm16_mono_12khz
  2555 		COMMAND			t_format			iencoding_set		set_settings_pcm16_mono_12khz
  2556 		COMMAND			t_format			ichannels_set		set_settings_pcm16_mono_12khz
  2557 		COMMAND			t_format			ibuffer_size_set		set_settings_pcm16_mono_12khz
  2558 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2559 		COMMAND			devsound			RecordData		record_data_32kb
  2560 		OUTSTANDING
  2561 		COMMAND			devsound			FlushRecordBuffer
  2562 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  2563 		COMMAND			t_format			irate_get			set_settings_pcm16_mono_12khz_expected
  2564 		COMMAND			t_format			iencoding_get		set_settings_pcm16_mono_12khz_expected
  2565 		COMMAND			t_format			ichannels_get		set_settings_pcm16_mono_12khz_expected
  2566 		COMMAND			t_format			ibuffer_size_get		set_settings_pcm16_mono_12khz_expected
  2567 		//!set back default play configuration
  2568 		COMMAND			t_format			irate_set			default_record_format
  2569 		COMMAND			t_format			iencoding_set		default_record_format
  2570 		COMMAND			t_format			ichannels_set		default_record_format
  2571 		COMMAND			t_format			ibuffer_size_set		default_record_format
  2572 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2573 		COMMAND			devsound			SetRecordLevel		default_record_level
  2574 		COMMAND			t_format  			~	
  2575 		COMMAND			devsound  			Close
  2576 		COMMAND			devsound  			~
  2577 	END_TEST_BLOCK
  2578 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5004
  2579 
  2580 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5005
  2581 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5005
  2582 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  2583 //! @SYMAuthor			Vassili Tsvetkov
  2584 //! @SYMCreationDate		15/06/2008
  2585 //! @SYMTestCaseDesc		Execute recording audio in pcm16 mono 16khz
  2586 //!				
  2587 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  2588 //!				2. Call SetRecordFormat() with default value from [set_set_settings_pcm16_mono_16khz]
  2589 //!				3. Call RecordData() with values from [record_data_32kb]
  2590 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  2591 //!				5. Call GetRecordFormat() to verify sound format
  2592 //!				6. Restore initial sound h/w configuration
  2593 //!				7. Call Close()
  2594 //!
  2595 //! @SYMTestStatus		Implemented
  2596 //! @SYMTestPriority		Critical
  2597 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  2598 //! @SYMTestType		CIT
  2599 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  2600 		CREATE_OBJECT		RMdaDevSound			devsound  
  2601 		COMMAND			devsound			new
  2602 		COMMAND			devsound			Open			UnitEnum
  2603 		//!set default play configuration
  2604 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  2605 		COMMAND			t_format			new			
  2606 		COMMAND			t_format			irate_set			set_settings_pcm16_mono_16khz
  2607 		COMMAND			t_format			iencoding_set		set_settings_pcm16_mono_16khz
  2608 		COMMAND			t_format			ichannels_set		set_settings_pcm16_mono_16khz
  2609 		COMMAND			t_format			ibuffer_size_set		set_settings_pcm16_mono_16khz
  2610 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2611 		COMMAND			devsound			RecordData		record_data_32kb
  2612 		OUTSTANDING
  2613 		COMMAND			devsound			FlushRecordBuffer
  2614 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  2615 		COMMAND			t_format			irate_get			set_settings_pcm16_mono_16khz_expected
  2616 		COMMAND			t_format			iencoding_get		set_settings_pcm16_mono_16khz_expected
  2617 		COMMAND			t_format			ichannels_get		set_settings_pcm16_mono_16khz_expected
  2618 		COMMAND			t_format			ibuffer_size_get		set_settings_pcm16_mono_16khz_expected
  2619 		//!set back default play configuration
  2620 		COMMAND			t_format			irate_set			default_record_format
  2621 		COMMAND			t_format			iencoding_set		default_record_format
  2622 		COMMAND			t_format			ichannels_set		default_record_format
  2623 		COMMAND			t_format			ibuffer_size_set		default_record_format
  2624 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2625 		COMMAND			devsound			SetRecordLevel		default_record_level
  2626 		COMMAND			t_format  			~	
  2627 		COMMAND			devsound  			Close
  2628 		COMMAND			devsound  			~
  2629 	END_TEST_BLOCK
  2630 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5005
  2631 
  2632 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5006
  2633 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5006
  2634 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  2635 //! @SYMAuthor			Vassili Tsvetkov
  2636 //! @SYMCreationDate		15/06/2008
  2637 //! @SYMTestCaseDesc		Execute recording audio in pcm16 mono 22khz
  2638 //!				
  2639 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  2640 //!				2. Call SetRecordFormat() with default value from [set_set_settings_pcm16_mono_22khz]
  2641 //!				3. Call RecordData() with values from [record_data_32kb]
  2642 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  2643 //!				5. Call GetRecordFormat() to verify sound format
  2644 //!				6. Restore initial sound h/w configuration
  2645 //!				7. Call Close()
  2646 //!
  2647 //! @SYMTestStatus		Implemented
  2648 //! @SYMTestPriority		Critical
  2649 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  2650 //! @SYMTestType		CIT
  2651 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  2652 		CREATE_OBJECT		RMdaDevSound			devsound  
  2653 		COMMAND			devsound			new
  2654 		COMMAND			devsound			Open			UnitEnum
  2655 		//!set default play configuration
  2656 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  2657 		COMMAND			t_format			new			
  2658 		COMMAND			t_format			irate_set			set_settings_pcm16_mono_22khz
  2659 		COMMAND			t_format			iencoding_set		set_settings_pcm16_mono_22khz
  2660 		COMMAND			t_format			ichannels_set		set_settings_pcm16_mono_22khz
  2661 		COMMAND			t_format			ibuffer_size_set		set_settings_pcm16_mono_22khz
  2662 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2663 		COMMAND			devsound			RecordData		record_data_32kb
  2664 		OUTSTANDING
  2665 		COMMAND			devsound			FlushRecordBuffer
  2666 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  2667 		COMMAND			t_format			irate_get			set_settings_pcm16_mono_22khz_expected
  2668 		COMMAND			t_format			iencoding_get		set_settings_pcm16_mono_22khz_expected
  2669 		COMMAND			t_format			ichannels_get		set_settings_pcm16_mono_22khz_expected
  2670 		COMMAND			t_format			ibuffer_size_get		set_settings_pcm16_mono_22khz_expected
  2671 		//!set back default play configuration
  2672 		COMMAND			t_format			irate_set			default_record_format
  2673 		COMMAND			t_format			iencoding_set		default_record_format
  2674 		COMMAND			t_format			ichannels_set		default_record_format
  2675 		COMMAND			t_format			ibuffer_size_set		default_record_format
  2676 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2677 		COMMAND			devsound			SetRecordLevel		default_record_level
  2678 		COMMAND			t_format  			~	
  2679 		COMMAND			devsound  			Close
  2680 		COMMAND			devsound  			~
  2681 	END_TEST_BLOCK
  2682 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5006
  2683 
  2684 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5007
  2685 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5007
  2686 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  2687 //! @SYMAuthor			Vassili Tsvetkov
  2688 //! @SYMCreationDate		15/06/2008
  2689 //! @SYMTestCaseDesc		Execute recording audio in pcm16 mono 24khz
  2690 //!				
  2691 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  2692 //!				2. Call SetRecordFormat() with default value from [set_set_settings_pcm16_mono_24khz]
  2693 //!				3. Call RecordData() with values from [record_data_32kb]
  2694 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  2695 //!				5. Call GetRecordFormat() to verify sound format
  2696 //!				6. Restore initial sound h/w configuration
  2697 //!				7. Call Close()
  2698 //!
  2699 //! @SYMTestStatus		Implemented
  2700 //! @SYMTestPriority		Critical
  2701 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  2702 //! @SYMTestType		CIT
  2703 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  2704 		CREATE_OBJECT		RMdaDevSound			devsound  
  2705 		COMMAND			devsound			new
  2706 		COMMAND			devsound			Open			UnitEnum
  2707 		//!set default play configuration
  2708 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  2709 		COMMAND			t_format			new			
  2710 		COMMAND			t_format			irate_set			set_settings_pcm16_mono_24khz
  2711 		COMMAND			t_format			iencoding_set		set_settings_pcm16_mono_24khz
  2712 		COMMAND			t_format			ichannels_set		set_settings_pcm16_mono_24khz
  2713 		COMMAND			t_format			ibuffer_size_set		set_settings_pcm16_mono_24khz
  2714 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2715 		COMMAND			devsound			RecordData		record_data_32kb
  2716 		OUTSTANDING
  2717 		COMMAND			devsound			FlushRecordBuffer
  2718 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  2719 		COMMAND			t_format			irate_get			set_settings_pcm16_mono_24khz_expected
  2720 		COMMAND			t_format			iencoding_get		set_settings_pcm16_mono_24khz_expected
  2721 		COMMAND			t_format			ichannels_get		set_settings_pcm16_mono_24khz_expected
  2722 		COMMAND			t_format			ibuffer_size_get		set_settings_pcm16_mono_24khz_expected
  2723 		//!set back default play configuration
  2724 		COMMAND			t_format			irate_set			default_record_format
  2725 		COMMAND			t_format			iencoding_set		default_record_format
  2726 		COMMAND			t_format			ichannels_set		default_record_format
  2727 		COMMAND			t_format			ibuffer_size_set		default_record_format
  2728 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2729 		COMMAND			devsound			SetRecordLevel		default_record_level
  2730 		COMMAND			t_format  			~	
  2731 		COMMAND			devsound  			Close
  2732 		COMMAND			devsound  			~
  2733 	END_TEST_BLOCK
  2734 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5007
  2735 
  2736 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5008
  2737 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5008
  2738 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  2739 //! @SYMAuthor			Vassili Tsvetkov
  2740 //! @SYMCreationDate		15/06/2008
  2741 //! @SYMTestCaseDesc		Execute recording audio in pcm16 mono 32khz
  2742 //!				
  2743 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  2744 //!				2. Call SetRecordFormat() with default value from [set_set_settings_pcm16_mono_32khz]
  2745 //!				3. Call RecordData() with values from [record_data_32kb]
  2746 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  2747 //!				5. Call GetRecordFormat() to verify sound format
  2748 //!				6. Restore initial sound h/w configuration
  2749 //!				7. Call Close()
  2750 //!
  2751 //! @SYMTestStatus		Implemented
  2752 //! @SYMTestPriority		Critical
  2753 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  2754 //! @SYMTestType		CIT
  2755 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  2756 		CREATE_OBJECT		RMdaDevSound			devsound  
  2757 		COMMAND			devsound			new
  2758 		COMMAND			devsound			Open			UnitEnum
  2759 		//!set default play configuration
  2760 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  2761 		COMMAND			t_format			new			
  2762 		COMMAND			t_format			irate_set			set_settings_pcm16_mono_32khz
  2763 		COMMAND			t_format			iencoding_set		set_settings_pcm16_mono_32khz
  2764 		COMMAND			t_format			ichannels_set		set_settings_pcm16_mono_32khz
  2765 		COMMAND			t_format			ibuffer_size_set		set_settings_pcm16_mono_32khz
  2766 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2767 		COMMAND			devsound			RecordData		record_data_32kb
  2768 		OUTSTANDING
  2769 		COMMAND			devsound			FlushRecordBuffer
  2770 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  2771 		COMMAND			t_format			irate_get			set_settings_pcm16_mono_32khz_expected
  2772 		COMMAND			t_format			iencoding_get		set_settings_pcm16_mono_32khz_expected
  2773 		COMMAND			t_format			ichannels_get		set_settings_pcm16_mono_32khz_expected
  2774 		COMMAND			t_format			ibuffer_size_get		set_settings_pcm16_mono_32khz_expected
  2775 		//!set back default play configuration
  2776 		COMMAND			t_format			irate_set			default_record_format
  2777 		COMMAND			t_format			iencoding_set		default_record_format
  2778 		COMMAND			t_format			ichannels_set		default_record_format
  2779 		COMMAND			t_format			ibuffer_size_set		default_record_format
  2780 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2781 		COMMAND			devsound			SetRecordLevel		default_record_level
  2782 		COMMAND			t_format  			~	
  2783 		COMMAND			devsound  			Close
  2784 		COMMAND			devsound  			~
  2785 	END_TEST_BLOCK
  2786 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5008
  2787 
  2788 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5009
  2789 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5009
  2790 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  2791 //! @SYMAuthor			Vassili Tsvetkov
  2792 //! @SYMCreationDate		15/06/2008
  2793 //! @SYMTestCaseDesc		Execute recording audio in pcm16 mono 44.1khz
  2794 //!				
  2795 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  2796 //!				2. Call SetRecordFormat() with default value from [set_set_settings_pcm16_mono_44.1khz]
  2797 //!				3. Call RecordData() with values from [record_data_32kb]
  2798 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  2799 //!				5. Call GetRecordFormat() to verify sound format
  2800 //!				6. Restore initial sound h/w configuration
  2801 //!				7. Call Close()
  2802 //!
  2803 //! @SYMTestStatus		Implemented
  2804 //! @SYMTestPriority		Critical
  2805 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  2806 //! @SYMTestType		CIT
  2807 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  2808 		CREATE_OBJECT		RMdaDevSound			devsound  
  2809 		COMMAND			devsound			new
  2810 		COMMAND			devsound			Open			UnitEnum
  2811 		//!set default play configuration
  2812 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  2813 		COMMAND			t_format			new			
  2814 		COMMAND			t_format			irate_set			set_settings_pcm16_mono_44.1khz
  2815 		COMMAND			t_format			iencoding_set		set_settings_pcm16_mono_44.1khz
  2816 		COMMAND			t_format			ichannels_set		set_settings_pcm16_mono_44.1khz
  2817 		COMMAND			t_format			ibuffer_size_set		set_settings_pcm16_mono_44.1khz
  2818 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2819 		COMMAND			devsound			RecordData		record_data_32kb
  2820 		OUTSTANDING
  2821 		COMMAND			devsound			FlushRecordBuffer
  2822 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  2823 		COMMAND			t_format			irate_get			set_settings_pcm16_mono_41.1khz_expected
  2824 		COMMAND			t_format			iencoding_get		set_settings_pcm16_mono_41.1khz_expected
  2825 		COMMAND			t_format			ichannels_get		set_settings_pcm16_mono_41.1khz_expected
  2826 		COMMAND			t_format			ibuffer_size_get		set_settings_pcm16_mono_41.1khz_expected
  2827 		//!set back default play configuration
  2828 		COMMAND			t_format			irate_set			default_record_format
  2829 		COMMAND			t_format			iencoding_set		default_record_format
  2830 		COMMAND			t_format			ichannels_set		default_record_format
  2831 		COMMAND			t_format			ibuffer_size_set		default_record_format
  2832 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2833 		COMMAND			devsound			SetRecordLevel		default_record_level
  2834 		COMMAND			t_format  			~	
  2835 		COMMAND			devsound  			Close
  2836 		COMMAND			devsound  			~
  2837 	END_TEST_BLOCK
  2838 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5009
  2839 
  2840 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5010
  2841 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5010
  2842 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  2843 //! @SYMAuthor			Vassili Tsvetkov
  2844 //! @SYMCreationDate		15/06/2008
  2845 //! @SYMTestCaseDesc		Execute recording audio in pcm16 mono 48khz
  2846 //!				
  2847 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  2848 //!				2. Call SetRecordFormat() with default value from [set_set_settings_pcm16_mono_48khz]
  2849 //!				3. Call RecordData() with values from [record_data_32kb]
  2850 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  2851 //!				5. Call GetRecordFormat() to verify sound format
  2852 //!				6. Restore initial sound h/w configuration
  2853 //!				7. Call Close()
  2854 //!
  2855 //! @SYMTestStatus		Implemented
  2856 //! @SYMTestPriority		Critical
  2857 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  2858 //! @SYMTestType		CIT
  2859 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  2860 		CREATE_OBJECT		RMdaDevSound			devsound  
  2861 		COMMAND			devsound			new
  2862 		COMMAND			devsound			Open			UnitEnum
  2863 		//!set default play configuration
  2864 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  2865 		COMMAND			t_format			new			
  2866 		COMMAND			t_format			irate_set			set_settings_pcm16_mono_48khz
  2867 		COMMAND			t_format			iencoding_set		set_settings_pcm16_mono_48khz
  2868 		COMMAND			t_format			ichannels_set		set_settings_pcm16_mono_48khz
  2869 		COMMAND			t_format			ibuffer_size_set		set_settings_pcm16_mono_48khz
  2870 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2871 		COMMAND			devsound			RecordData		record_data_32kb
  2872 		OUTSTANDING
  2873 		COMMAND			devsound			FlushRecordBuffer
  2874 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  2875 		COMMAND			t_format			irate_get			set_settings_pcm16_mono_48khz_expected
  2876 		COMMAND			t_format			iencoding_get		set_settings_pcm16_mono_48khz_expected
  2877 		COMMAND			t_format			ichannels_get		set_settings_pcm16_mono_48khz_expected
  2878 		COMMAND			t_format			ibuffer_size_get		set_settings_pcm16_mono_48khz_expected
  2879 		//!set back default play configuration
  2880 		COMMAND			t_format			irate_set			default_record_format
  2881 		COMMAND			t_format			iencoding_set		default_record_format
  2882 		COMMAND			t_format			ichannels_set		default_record_format
  2883 		COMMAND			t_format			ibuffer_size_set		default_record_format
  2884 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2885 		COMMAND			devsound			SetRecordLevel		default_record_level
  2886 		COMMAND			t_format  			~	
  2887 		COMMAND			devsound  			Close
  2888 		COMMAND			devsound  			~
  2889 	END_TEST_BLOCK
  2890 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5010
  2891 
  2892 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5011
  2893 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5011
  2894 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  2895 //! @SYMAuthor			Vassili Tsvetkov
  2896 //! @SYMCreationDate		15/06/2008
  2897 //! @SYMTestCaseDesc		Execute recording audio in pcm16 stereo 8khz
  2898 //!				
  2899 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  2900 //!				2. Call SetRecordFormat() with default value from [set_set_settings_pcm16_stereo_8khz]
  2901 //!				3. Call RecordData() with values from [record_data_32kb]
  2902 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  2903 //!				5. Call GetRecordFormat() to verify sound format
  2904 //!				6. Restore initial sound h/w configuration
  2905 //!				7. Call Close()
  2906 //!
  2907 //! @SYMTestStatus		Implemented
  2908 //! @SYMTestPriority		Critical
  2909 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  2910 //! @SYMTestType		CIT
  2911 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  2912 		CREATE_OBJECT		RMdaDevSound			devsound  
  2913 		COMMAND			devsound			new
  2914 		COMMAND			devsound			Open			UnitEnum
  2915 		//!set default play configuration
  2916 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  2917 		COMMAND			t_format			new			
  2918 		COMMAND			t_format			irate_set			set_settings_pcm16_stereo_8khz
  2919 		COMMAND			t_format			iencoding_set		set_settings_pcm16_stereo_8khz
  2920 		COMMAND			t_format			ichannels_set		set_settings_pcm16_stereo_8khz
  2921 		COMMAND			t_format			ibuffer_size_set		set_settings_pcm16_stereo_8khz
  2922 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2923 		COMMAND			devsound			RecordData		record_data_32kb
  2924 		OUTSTANDING
  2925 		COMMAND			devsound			FlushRecordBuffer
  2926 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  2927 		COMMAND			t_format			irate_get			set_settings_pcm16_stereo_8khz_expected
  2928 		COMMAND			t_format			iencoding_get		set_settings_pcm16_stereo_8khz_expected
  2929 		COMMAND			t_format			ichannels_get		set_settings_pcm16_stereo_8khz_expected
  2930 		COMMAND			t_format			ibuffer_size_get		set_settings_pcm16_stereo_8khz_expected
  2931 		//!set back default play configuration
  2932 		COMMAND			t_format			irate_set			default_record_format
  2933 		COMMAND			t_format			iencoding_set		default_record_format
  2934 		COMMAND			t_format			ichannels_set		default_record_format
  2935 		COMMAND			t_format			ibuffer_size_set		default_record_format
  2936 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2937 		COMMAND			devsound			SetRecordLevel		default_record_level
  2938 		COMMAND			t_format  			~	
  2939 		COMMAND			devsound  			Close
  2940 		COMMAND			devsound  			~
  2941 	END_TEST_BLOCK
  2942 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5011
  2943 
  2944 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5012
  2945 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5012
  2946 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  2947 //! @SYMAuthor			Vassili Tsvetkov
  2948 //! @SYMCreationDate		15/06/2008
  2949 //! @SYMTestCaseDesc		Execute recording audio in pcm16 stereo 11khz
  2950 //!				
  2951 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  2952 //!				2. Call SetRecordFormat() with default value from [set_set_settings_pcm16_stereo_11khz]
  2953 //!				3. Call RecordData() with values from [record_data_32kb]
  2954 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  2955 //!				5. Call GetRecordFormat() to verify sound format
  2956 //!				6. Restore initial sound h/w configuration
  2957 //!				7. Call Close()
  2958 //!
  2959 //! @SYMTestStatus		Implemented
  2960 //! @SYMTestPriority		Critical
  2961 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  2962 //! @SYMTestType		CIT
  2963 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  2964 		CREATE_OBJECT		RMdaDevSound			devsound  
  2965 		COMMAND			devsound			new
  2966 		COMMAND			devsound			Open			UnitEnum
  2967 		//!set default play configuration
  2968 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  2969 		COMMAND			t_format			new			
  2970 		COMMAND			t_format			irate_set			set_settings_pcm16_stereo_11khz
  2971 		COMMAND			t_format			iencoding_set		set_settings_pcm16_stereo_11khz
  2972 		COMMAND			t_format			ichannels_set		set_settings_pcm16_stereo_11khz
  2973 		COMMAND			t_format			ibuffer_size_set		set_settings_pcm16_stereo_11khz
  2974 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2975 		COMMAND			devsound			RecordData		record_data_32kb
  2976 		OUTSTANDING
  2977 		COMMAND			devsound			FlushRecordBuffer
  2978 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  2979 		COMMAND			t_format			irate_get			set_settings_pcm16_stereo_11khz_expected
  2980 		COMMAND			t_format			iencoding_get		set_settings_pcm16_stereo_11khz_expected
  2981 		COMMAND			t_format			ichannels_get		set_settings_pcm16_stereo_11khz_expected
  2982 		COMMAND			t_format			ibuffer_size_get		set_settings_pcm16_stereo_11khz_expected
  2983 		//!set back default play configuration
  2984 		COMMAND			t_format			irate_set			default_record_format
  2985 		COMMAND			t_format			iencoding_set		default_record_format
  2986 		COMMAND			t_format			ichannels_set		default_record_format
  2987 		COMMAND			t_format			ibuffer_size_set		default_record_format
  2988 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  2989 		COMMAND			devsound			SetRecordLevel		default_record_level
  2990 		COMMAND			t_format  			~	
  2991 		COMMAND			devsound  			Close
  2992 		COMMAND			devsound  			~
  2993 	END_TEST_BLOCK
  2994 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5012
  2995 
  2996 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5013
  2997 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5013
  2998 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  2999 //! @SYMAuthor			Vassili Tsvetkov
  3000 //! @SYMCreationDate		15/06/2008
  3001 //! @SYMTestCaseDesc		Execute recording audio in pcm16 stereo 12khz
  3002 //!				
  3003 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  3004 //!				2. Call SetRecordFormat() with default value from [set_set_settings_pcm16_stereo_12khz]
  3005 //!				3. Call RecordData() with values from [record_data_32kb]
  3006 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  3007 //!				5. Call GetRecordFormat() to verify sound format
  3008 //!				6. Restore initial sound h/w configuration
  3009 //!				7. Call Close()
  3010 //!
  3011 //! @SYMTestStatus		Implemented
  3012 //! @SYMTestPriority		Critical
  3013 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  3014 //! @SYMTestType		CIT
  3015 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  3016 		CREATE_OBJECT		RMdaDevSound			devsound  
  3017 		COMMAND			devsound			new
  3018 		COMMAND			devsound			Open			UnitEnum
  3019 		//!set default play configuration
  3020 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  3021 		COMMAND			t_format			new			
  3022 		COMMAND			t_format			irate_set			set_settings_pcm16_stereo_12khz
  3023 		COMMAND			t_format			iencoding_set		set_settings_pcm16_stereo_12khz
  3024 		COMMAND			t_format			ichannels_set		set_settings_pcm16_stereo_12khz
  3025 		COMMAND			t_format			ibuffer_size_set		set_settings_pcm16_stereo_12khz
  3026 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3027 		COMMAND			devsound			RecordData		record_data_32kb
  3028 		OUTSTANDING
  3029 		COMMAND			devsound			FlushRecordBuffer
  3030 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  3031 		COMMAND			t_format			irate_get			set_settings_pcm16_stereo_12khz_expected
  3032 		COMMAND			t_format			iencoding_get		set_settings_pcm16_stereo_12khz_expected
  3033 		COMMAND			t_format			ichannels_get		set_settings_pcm16_stereo_12khz_expected
  3034 		COMMAND			t_format			ibuffer_size_get		set_settings_pcm16_stereo_12khz_expected
  3035 		//!set back default play configuration
  3036 		COMMAND			t_format			irate_set			default_record_format
  3037 		COMMAND			t_format			iencoding_set		default_record_format
  3038 		COMMAND			t_format			ichannels_set		default_record_format
  3039 		COMMAND			t_format			ibuffer_size_set		default_record_format
  3040 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3041 		COMMAND			devsound			SetRecordLevel		default_record_level
  3042 		COMMAND			t_format  			~	
  3043 		COMMAND			devsound  			Close
  3044 		COMMAND			devsound  			~
  3045 	END_TEST_BLOCK
  3046 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5013
  3047 
  3048 
  3049 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5014
  3050 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5014
  3051 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  3052 //! @SYMAuthor			Vassili Tsvetkov
  3053 //! @SYMCreationDate		15/06/2008
  3054 //! @SYMTestCaseDesc		Execute recording audio in pcm16 stereo 16khz
  3055 //!				
  3056 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  3057 //!				2. Call SetRecordFormat() with default value from [set_set_settings_pcm16_stereo_16khz]
  3058 //!				3. Call RecordData() with values from [record_data_32kb]
  3059 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  3060 //!				5. Call GetRecordFormat() to verify sound format
  3061 //!				6. Restore initial sound h/w configuration
  3062 //!				7. Call Close()
  3063 //!
  3064 //! @SYMTestStatus		Implemented
  3065 //! @SYMTestPriority		Critical
  3066 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  3067 //! @SYMTestType		CIT
  3068 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  3069 		CREATE_OBJECT		RMdaDevSound			devsound  
  3070 		COMMAND			devsound			new
  3071 		COMMAND			devsound			Open			UnitEnum
  3072 		//!set default play configuration
  3073 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  3074 		COMMAND			t_format			new			
  3075 		COMMAND			t_format			irate_set			set_settings_pcm16_stereo_16khz
  3076 		COMMAND			t_format			iencoding_set		set_settings_pcm16_stereo_16khz
  3077 		COMMAND			t_format			ichannels_set		set_settings_pcm16_stereo_16khz
  3078 		COMMAND			t_format			ibuffer_size_set		set_settings_pcm16_stereo_16khz
  3079 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3080 		COMMAND			devsound			RecordData		record_data_32kb
  3081 		OUTSTANDING
  3082 		COMMAND			devsound			FlushRecordBuffer
  3083 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  3084 		COMMAND			t_format			irate_get			set_settings_pcm16_stereo_16khz_expected
  3085 		COMMAND			t_format			iencoding_get		set_settings_pcm16_stereo_16khz_expected
  3086 		COMMAND			t_format			ichannels_get		set_settings_pcm16_stereo_16khz_expected
  3087 		COMMAND			t_format			ibuffer_size_get		set_settings_pcm16_stereo_16khz_expected
  3088 		//!set back default play configuration
  3089 		COMMAND			t_format			irate_set			default_record_format
  3090 		COMMAND			t_format			iencoding_set		default_record_format
  3091 		COMMAND			t_format			ichannels_set		default_record_format
  3092 		COMMAND			t_format			ibuffer_size_set		default_record_format
  3093 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3094 		COMMAND			devsound			SetRecordLevel		default_record_level
  3095 		COMMAND			t_format  			~	
  3096 		COMMAND			devsound  			Close
  3097 		COMMAND			devsound  			~
  3098 	END_TEST_BLOCK
  3099 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5014
  3100 
  3101 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5015
  3102 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5015
  3103 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  3104 //! @SYMAuthor			Vassili Tsvetkov
  3105 //! @SYMCreationDate		15/06/2008
  3106 //! @SYMTestCaseDesc		Execute recording audio in pcm16 stereo 22khz
  3107 //!				
  3108 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  3109 //!				2. Call SetRecordFormat() with default value from [set_set_settings_pcm16_stereo_22khz]
  3110 //!				3. Call RecordData() with values from [record_data_32kb]
  3111 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  3112 //!				5. Call GetRecordFormat() to verify sound format
  3113 //!				6. Restore initial sound h/w configuration
  3114 //!				7. Call Close()
  3115 //!
  3116 //! @SYMTestStatus		Implemented
  3117 //! @SYMTestPriority		Critical
  3118 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  3119 //! @SYMTestType		CIT
  3120 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  3121 		CREATE_OBJECT		RMdaDevSound			devsound  
  3122 		COMMAND			devsound			new
  3123 		COMMAND			devsound			Open			UnitEnum
  3124 		//!set default play configuration
  3125 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  3126 		COMMAND			t_format			new			
  3127 		COMMAND			t_format			irate_set			set_settings_pcm16_stereo_22khz
  3128 		COMMAND			t_format			iencoding_set		set_settings_pcm16_stereo_22khz
  3129 		COMMAND			t_format			ichannels_set		set_settings_pcm16_stereo_22khz
  3130 		COMMAND			t_format			ibuffer_size_set		set_settings_pcm16_stereo_22khz
  3131 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3132 		COMMAND			devsound			RecordData		record_data_32kb
  3133 		OUTSTANDING
  3134 		COMMAND			devsound			FlushRecordBuffer
  3135 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  3136 		COMMAND			t_format			irate_get			set_settings_pcm16_stereo_22khz_expected
  3137 		COMMAND			t_format			iencoding_get		set_settings_pcm16_stereo_22khz_expected
  3138 		COMMAND			t_format			ichannels_get		set_settings_pcm16_stereo_22khz_expected
  3139 		COMMAND			t_format			ibuffer_size_get		set_settings_pcm16_stereo_22khz_expected
  3140 		//!set back default play configuration
  3141 		COMMAND			t_format			irate_set			default_record_format
  3142 		COMMAND			t_format			iencoding_set		default_record_format
  3143 		COMMAND			t_format			ichannels_set		default_record_format
  3144 		COMMAND			t_format			ibuffer_size_set		default_record_format
  3145 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3146 		COMMAND			devsound			SetRecordLevel		default_record_level
  3147 		COMMAND			t_format  			~	
  3148 		COMMAND			devsound  			Close
  3149 		COMMAND			devsound  			~
  3150 	END_TEST_BLOCK
  3151 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5015
  3152 
  3153 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5016
  3154 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5016
  3155 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  3156 //! @SYMAuthor			Vassili Tsvetkov
  3157 //! @SYMCreationDate		15/06/2008
  3158 //! @SYMTestCaseDesc		Execute recording audio in pcm16 stereo 24khz
  3159 //!				
  3160 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  3161 //!				2. Call SetRecordFormat() with default value from [set_set_settings_pcm16_stereo_24khz]
  3162 //!				3. Call RecordData() with values from [record_data_32kb]
  3163 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  3164 //!				5. Call GetRecordFormat() to verify sound format
  3165 //!				6. Restore initial sound h/w configuration
  3166 //!				7. Call Close()
  3167 //!
  3168 //! @SYMTestStatus		Implemented
  3169 //! @SYMTestPriority		Critical
  3170 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  3171 //! @SYMTestType		CIT
  3172 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  3173 		CREATE_OBJECT		RMdaDevSound			devsound  
  3174 		COMMAND			devsound			new
  3175 		COMMAND			devsound			Open			UnitEnum
  3176 		//!set default play configuration
  3177 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  3178 		COMMAND			t_format			new			
  3179 		COMMAND			t_format			irate_set			set_settings_pcm16_stereo_24khz
  3180 		COMMAND			t_format			iencoding_set		set_settings_pcm16_stereo_24khz
  3181 		COMMAND			t_format			ichannels_set		set_settings_pcm16_stereo_24khz
  3182 		COMMAND			t_format			ibuffer_size_set		set_settings_pcm16_stereo_24khz
  3183 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3184 		COMMAND			devsound			RecordData		record_data_32kb
  3185 		OUTSTANDING
  3186 		COMMAND			devsound			FlushRecordBuffer
  3187 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  3188 		COMMAND			t_format			irate_get			set_settings_pcm16_stereo_24khz_expected
  3189 		COMMAND			t_format			iencoding_get		set_settings_pcm16_stereo_24khz_expected
  3190 		COMMAND			t_format			ichannels_get		set_settings_pcm16_stereo_24khz_expected
  3191 		COMMAND			t_format			ibuffer_size_get		set_settings_pcm16_stereo_24khz_expected
  3192 		//!set back default play configuration
  3193 		COMMAND			t_format			irate_set			default_record_format
  3194 		COMMAND			t_format			iencoding_set		default_record_format
  3195 		COMMAND			t_format			ichannels_set		default_record_format
  3196 		COMMAND			t_format			ibuffer_size_set		default_record_format
  3197 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3198 		COMMAND			devsound			SetRecordLevel		default_record_level
  3199 		COMMAND			t_format  			~	
  3200 		COMMAND			devsound  			Close
  3201 		COMMAND			devsound  			~
  3202 	END_TEST_BLOCK
  3203 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5016
  3204 
  3205 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5017
  3206 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5017
  3207 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  3208 //! @SYMAuthor			Vassili Tsvetkov
  3209 //! @SYMCreationDate		15/06/2008
  3210 //! @SYMTestCaseDesc		Execute recording audio in pcm16 stereo 32khz
  3211 //!				
  3212 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  3213 //!				2. Call SetRecordFormat() with default value from [set_set_settings_pcm16_stereo_32khz]
  3214 //!				3. Call RecordData() with values from [record_data_32kb]
  3215 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  3216 //!				5. Call GetRecordFormat() to verify sound format
  3217 //!				6. Restore initial sound h/w configuration
  3218 //!				7. Call Close()
  3219 //!
  3220 //! @SYMTestStatus		Implemented
  3221 //! @SYMTestPriority		Critical
  3222 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  3223 //! @SYMTestType		CIT
  3224 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  3225 		CREATE_OBJECT		RMdaDevSound			devsound  
  3226 		COMMAND			devsound			new
  3227 		COMMAND			devsound			Open			UnitEnum
  3228 		//!set default play configuration
  3229 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  3230 		COMMAND			t_format			new			
  3231 		COMMAND			t_format			irate_set			set_settings_pcm16_stereo_32khz
  3232 		COMMAND			t_format			iencoding_set		set_settings_pcm16_stereo_32khz
  3233 		COMMAND			t_format			ichannels_set		set_settings_pcm16_stereo_32khz
  3234 		COMMAND			t_format			ibuffer_size_set		set_settings_pcm16_stereo_32khz
  3235 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3236 		COMMAND			devsound			RecordData		record_data_32kb
  3237 		OUTSTANDING
  3238 		COMMAND			devsound			FlushRecordBuffer
  3239 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  3240 		COMMAND			t_format			irate_get			set_settings_pcm16_stereo_32khz_expected
  3241 		COMMAND			t_format			iencoding_get		set_settings_pcm16_stereo_32khz_expected
  3242 		COMMAND			t_format			ichannels_get		set_settings_pcm16_stereo_32khz_expected
  3243 		COMMAND			t_format			ibuffer_size_get		set_settings_pcm16_stereo_32khz_expected
  3244 		//!set back default play configuration
  3245 		COMMAND			t_format			irate_set			default_record_format
  3246 		COMMAND			t_format			iencoding_set		default_record_format
  3247 		COMMAND			t_format			ichannels_set		default_record_format
  3248 		COMMAND			t_format			ibuffer_size_set		default_record_format
  3249 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3250 		COMMAND			devsound			SetRecordLevel		default_record_level
  3251 		COMMAND			t_format  			~	
  3252 		COMMAND			devsound  			Close
  3253 		COMMAND			devsound  			~
  3254 	END_TEST_BLOCK
  3255 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5017
  3256 
  3257 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5018
  3258 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5018
  3259 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  3260 //! @SYMAuthor			Vassili Tsvetkov
  3261 //! @SYMCreationDate		15/06/2008
  3262 //! @SYMTestCaseDesc		Execute recording audio in pcm16 stereo 44.1khz
  3263 //!				
  3264 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  3265 //!				2. Call SetRecordFormat() with default value from [set_set_settings_pcm16_stereo_44.1khz]
  3266 //!				3. Call RecordData() with values from [record_data_32kb]
  3267 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  3268 //!				5. Call GetRecordFormat() to verify sound format
  3269 //!				6. Restore initial sound h/w configuration
  3270 //!				7. Call Close()
  3271 //!
  3272 //! @SYMTestStatus		Implemented
  3273 //! @SYMTestPriority		Critical
  3274 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  3275 //! @SYMTestType		CIT
  3276 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  3277 		CREATE_OBJECT		RMdaDevSound			devsound  
  3278 		COMMAND			devsound			new
  3279 		COMMAND			devsound			Open			UnitEnum
  3280 		//!set default play configuration
  3281 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  3282 		COMMAND			t_format			new			
  3283 		COMMAND			t_format			irate_set			set_settings_pcm16_stereo_44.1khz
  3284 		COMMAND			t_format			iencoding_set		set_settings_pcm16_stereo_44.1khz
  3285 		COMMAND			t_format			ichannels_set		set_settings_pcm16_stereo_44.1khz
  3286 		COMMAND			t_format			ibuffer_size_set		set_settings_pcm16_stereo_44.1khz
  3287 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3288 		COMMAND			devsound			RecordData		record_data_32kb
  3289 		OUTSTANDING
  3290 		COMMAND			devsound			FlushRecordBuffer
  3291 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  3292 		COMMAND			t_format			irate_get			set_settings_pcm16_stereo_44.1khz_expected
  3293 		COMMAND			t_format			iencoding_get		set_settings_pcm16_stereo_44.1khz_expected
  3294 		COMMAND			t_format			ichannels_get		set_settings_pcm16_stereo_44.1khz_expected
  3295 		COMMAND			t_format			ibuffer_size_get		set_settings_pcm16_stereo_44.1khz_expected
  3296 		//!set back default play configuration
  3297 		COMMAND			t_format			irate_set			default_record_format
  3298 		COMMAND			t_format			iencoding_set		default_record_format
  3299 		COMMAND			t_format			ichannels_set		default_record_format
  3300 		COMMAND			t_format			ibuffer_size_set		default_record_format
  3301 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3302 		COMMAND			devsound			SetRecordLevel		default_record_level
  3303 		COMMAND			t_format  			~	
  3304 		COMMAND			devsound  			Close
  3305 		COMMAND			devsound  			~
  3306 	END_TEST_BLOCK
  3307 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5018
  3308 
  3309 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5019
  3310 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5019
  3311 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  3312 //! @SYMAuthor			Vassili Tsvetkov
  3313 //! @SYMCreationDate		15/06/2008
  3314 //! @SYMTestCaseDesc		Execute recording audio in pcm16 stereo 48khz
  3315 //!				
  3316 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  3317 //!				2. Call SetRecordFormat() with default value from [set_set_settings_pcm16_stereo_48khz]
  3318 //!				3. Call RecordData() with values from [record_data_32kb]
  3319 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  3320 //!				5. Call GetRecordFormat() to verify sound format
  3321 //!				6. Restore initial sound h/w configuration
  3322 //!				7. Call Close()
  3323 //!
  3324 //! @SYMTestStatus		Implemented
  3325 //! @SYMTestPriority		Critical
  3326 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  3327 //! @SYMTestType		CIT
  3328 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  3329 		CREATE_OBJECT		RMdaDevSound			devsound  
  3330 		COMMAND			devsound			new
  3331 		COMMAND			devsound			Open			UnitEnum
  3332 		//!set default play configuration
  3333 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  3334 		COMMAND			t_format			new			
  3335 		COMMAND			t_format			irate_set			set_settings_pcm16_stereo_48khz
  3336 		COMMAND			t_format			iencoding_set		set_settings_pcm16_stereo_48khz
  3337 		COMMAND			t_format			ichannels_set		set_settings_pcm16_stereo_48khz
  3338 		COMMAND			t_format			ibuffer_size_set		set_settings_pcm16_stereo_48khz
  3339 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3340 		COMMAND			devsound			RecordData		record_data_32kb
  3341 		OUTSTANDING
  3342 		COMMAND			devsound			FlushRecordBuffer
  3343 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  3344 		COMMAND			t_format			irate_get			set_settings_pcm16_stereo_48khz_expected
  3345 		COMMAND			t_format			iencoding_get		set_settings_pcm16_stereo_48khz_expected
  3346 		COMMAND			t_format			ichannels_get		set_settings_pcm16_stereo_48khz_expected
  3347 		COMMAND			t_format			ibuffer_size_get		set_settings_pcm16_stereo_48khz_expected
  3348 		//!set back default play configuration
  3349 		COMMAND			t_format			irate_set			default_record_format
  3350 		COMMAND			t_format			iencoding_set		default_record_format
  3351 		COMMAND			t_format			ichannels_set		default_record_format
  3352 		COMMAND			t_format			ibuffer_size_set		default_record_format
  3353 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3354 		COMMAND			devsound			SetRecordLevel		default_record_level
  3355 		COMMAND			t_format  			~	
  3356 		COMMAND			devsound  			Close
  3357 		COMMAND			devsound  			~
  3358 	END_TEST_BLOCK
  3359 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5019
  3360 
  3361 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5020
  3362 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5020
  3363 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  3364 //! @SYMAuthor			Vassili Tsvetkov
  3365 //! @SYMCreationDate		15/06/2008
  3366 //! @SYMTestCaseDesc		Execute recording audio in alaw8bit mono 8khz
  3367 //!				
  3368 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  3369 //!				2. Call SetRecordFormat() with default value from [set_set_settings_alaw8bit_mono_8khz]
  3370 //!				3. Call RecordData() with values from [record_data_32kb]
  3371 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  3372 //!				5. Call GetRecordFormat() to verify sound format
  3373 //!				6. Restore initial sound h/w configuration
  3374 //!				7. Call Close()
  3375 //!
  3376 //! @SYMTestStatus		Implemented
  3377 //! @SYMTestPriority		Critical
  3378 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  3379 //! @SYMTestType		CIT
  3380 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  3381 		CREATE_OBJECT		RMdaDevSound			devsound  
  3382 		COMMAND			devsound			new
  3383 		COMMAND			devsound			Open			UnitEnum
  3384 		//!set default play configuration
  3385 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  3386 		COMMAND			t_format			new			
  3387 		COMMAND			t_format			irate_set			set_settings_alaw8bit_mono_8khz
  3388 		COMMAND			t_format			iencoding_set		set_settings_alaw8bit_mono_8khz
  3389 		COMMAND			t_format			ichannels_set		set_settings_alaw8bit_mono_8khz
  3390 		COMMAND			t_format			ibuffer_size_set		set_settings_alaw8bit_mono_8khz
  3391 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3392 		COMMAND			devsound			RecordData		record_data_32kb
  3393 		OUTSTANDING
  3394 		COMMAND			devsound			FlushRecordBuffer
  3395 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  3396 		COMMAND			t_format			irate_get			set_settings_alaw8bit_mono_8khz_expected
  3397 		COMMAND			t_format			iencoding_get		set_settings_alaw8bit_mono_8khz_expected
  3398 		COMMAND			t_format			ichannels_get		set_settings_alaw8bit_mono_8khz_expected
  3399 		COMMAND			t_format			ibuffer_size_get		set_settings_alaw8bit_mono_8khz_expected
  3400 		//!set back default play configuration
  3401 		COMMAND			t_format			irate_set			default_record_format
  3402 		COMMAND			t_format			iencoding_set		default_record_format
  3403 		COMMAND			t_format			ichannels_set		default_record_format
  3404 		COMMAND			t_format			ibuffer_size_set		default_record_format
  3405 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3406 		COMMAND			devsound			SetRecordLevel		default_record_level
  3407 		COMMAND			t_format  			~	
  3408 		COMMAND			devsound  			Close
  3409 		COMMAND			devsound  			~
  3410 	END_TEST_BLOCK
  3411 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5020
  3412 
  3413 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5021
  3414 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5021
  3415 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  3416 //! @SYMAuthor			Vassili Tsvetkov
  3417 //! @SYMCreationDate		15/06/2008
  3418 //! @SYMTestCaseDesc		Execute recording audio in alaw8bit stereo 8khz
  3419 //!				
  3420 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  3421 //!				2. Call SetRecordFormat() with default value from [set_set_settings_alaw8bit_stereo_24khz]
  3422 //!				3. Call RecordData() with values from [record_data_32kb]
  3423 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  3424 //!				5. Call GetRecordFormat() to verify sound format
  3425 //!				6. Restore initial sound h/w configuration
  3426 //!				7. Call Close()
  3427 //!
  3428 //! @SYMTestStatus		Implemented
  3429 //! @SYMTestPriority		Critical
  3430 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  3431 //! @SYMTestType		CIT
  3432 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  3433 		CREATE_OBJECT		RMdaDevSound			devsound  
  3434 		COMMAND			devsound			new
  3435 		COMMAND			devsound			Open			UnitEnum
  3436 		//!set default play configuration
  3437 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  3438 		COMMAND			t_format			new			
  3439 		COMMAND			t_format			irate_set			set_settings_alaw8bit_stereo_24khz
  3440 		COMMAND			t_format			iencoding_set		set_settings_alaw8bit_stereo_24khz
  3441 		COMMAND			t_format			ichannels_set		set_settings_alaw8bit_stereo_24khz
  3442 		COMMAND			t_format			ibuffer_size_set		set_settings_alaw8bit_stereo_24khz
  3443 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3444 		COMMAND			devsound			RecordData		record_data_32kb
  3445 		OUTSTANDING
  3446 		COMMAND			devsound			FlushRecordBuffer
  3447 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  3448 		COMMAND			t_format			irate_get			set_settings_alaw8bit_stereo_24khz_expected
  3449 		COMMAND			t_format			iencoding_get		set_settings_alaw8bit_stereo_24khz_expected
  3450 		COMMAND			t_format			ichannels_get		set_settings_alaw8bit_stereo_24khz_expected
  3451 		COMMAND			t_format			ibuffer_size_get		set_settings_alaw8bit_stereo_24khz_expected
  3452 		//!set back default play configuration
  3453 		COMMAND			t_format			irate_set			default_record_format
  3454 		COMMAND			t_format			iencoding_set		default_record_format
  3455 		COMMAND			t_format			ichannels_set		default_record_format
  3456 		COMMAND			t_format			ibuffer_size_set		default_record_format
  3457 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3458 		COMMAND			devsound			SetRecordLevel		default_record_level
  3459 		COMMAND			t_format  			~	
  3460 		COMMAND			devsound  			Close
  3461 		COMMAND			devsound  			~
  3462 	END_TEST_BLOCK
  3463 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5021
  3464 
  3465 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5022
  3466 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5022
  3467 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  3468 //! @SYMAuthor			Vassili Tsvetkov
  3469 //! @SYMCreationDate		15/06/2008
  3470 //! @SYMTestCaseDesc		Execute recording audio in mulaw8bit mono 12khz
  3471 //!				
  3472 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  3473 //!				2. Call SetRecordFormat() with default value from [set_set_settings_mulaw8bit_mono_12khz]
  3474 //!				3. Call RecordData() with values from [record_data_32kb]
  3475 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  3476 //!				5. Call GetRecordFormat() to verify sound format
  3477 //!				6. Restore initial sound h/w configuration
  3478 //!				7. Call Close()
  3479 //!
  3480 //! @SYMTestStatus		Implemented
  3481 //! @SYMTestPriority		Critical
  3482 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  3483 //! @SYMTestType		CIT
  3484 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  3485 		CREATE_OBJECT		RMdaDevSound			devsound  
  3486 		COMMAND			devsound			new
  3487 		COMMAND			devsound			Open			UnitEnum
  3488 		//!set default play configuration
  3489 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  3490 		COMMAND			t_format			new			
  3491 		COMMAND			t_format			irate_set			set_settings_mulaw8bit_mono_12khz
  3492 		COMMAND			t_format			iencoding_set		set_settings_mulaw8bit_mono_12khz
  3493 		COMMAND			t_format			ichannels_set		set_settings_mulaw8bit_mono_12khz
  3494 		COMMAND			t_format			ibuffer_size_set		set_settings_mulaw8bit_mono_12khz
  3495 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3496 		COMMAND			devsound			RecordData		record_data_32kb
  3497 		OUTSTANDING
  3498 		COMMAND			devsound			FlushRecordBuffer
  3499 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  3500 		COMMAND			t_format			irate_get			set_settings_mulaw8bit_mono_12khz_expected
  3501 		COMMAND			t_format			iencoding_get		set_settings_mulaw8bit_mono_12khz_expected
  3502 		COMMAND			t_format			ichannels_get		set_settings_mulaw8bit_mono_12khz_expected
  3503 		COMMAND			t_format			ibuffer_size_get		set_settings_mulaw8bit_mono_12khz_expected
  3504 		//!set back default record configuration
  3505 		COMMAND			devsound			FlushRecordBuffer
  3506 		COMMAND			t_format			irate_set			default_record_format
  3507 		COMMAND			t_format			iencoding_set		default_record_format
  3508 		COMMAND			t_format			ichannels_set		default_record_format
  3509 		COMMAND			t_format			ibuffer_size_set		default_record_format
  3510 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3511 		COMMAND			devsound			SetRecordLevel		default_record_level
  3512 		COMMAND			t_format  			~	
  3513 		COMMAND			devsound  			Close
  3514 		COMMAND			devsound  			~
  3515 	END_TEST_BLOCK
  3516 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5022
  3517 
  3518 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5023
  3519 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5023
  3520 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  3521 //! @SYMAuthor			Vassili Tsvetkov
  3522 //! @SYMCreationDate		15/06/2008
  3523 //! @SYMTestCaseDesc		Execute recording audio in mulaw8bit stereo 32khz
  3524 //!				
  3525 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  3526 //!				2. Call SetRecordFormat() with default value from [set_set_settings_mulaw8bit_stereo_32khz]
  3527 //!				3. Call RecordData() with values from [record_data_32kb]
  3528 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  3529 //!				5. Call GetRecordFormat() to verify sound format
  3530 //!				6. Restore initial sound h/w configuration
  3531 //!				7. Call Close()
  3532 //!
  3533 //! @SYMTestStatus		Implemented
  3534 //! @SYMTestPriority		Critical
  3535 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  3536 //! @SYMTestType		CIT
  3537 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  3538 		CREATE_OBJECT		RMdaDevSound			devsound  
  3539 		COMMAND			devsound			new
  3540 		COMMAND			devsound			Open			UnitEnum
  3541 		//!set default play configuration
  3542 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  3543 		COMMAND			t_format			new			
  3544 		COMMAND			t_format			irate_set			set_settings_mulaw8bit_stereo_32khz
  3545 		COMMAND			t_format			iencoding_set		set_settings_mulaw8bit_stereo_32khz
  3546 		COMMAND			t_format			ichannels_set		set_settings_mulaw8bit_stereo_32khz
  3547 		COMMAND			t_format			ibuffer_size_set		set_settings_mulaw8bit_stereo_32khz
  3548 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3549 		COMMAND			devsound			RecordData		record_data_32kb
  3550 		OUTSTANDING
  3551 		COMMAND			devsound			FlushRecordBuffer
  3552 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  3553 		COMMAND			t_format			irate_get			set_settings_mulaw8bit_stereo_32khz_expected
  3554 		COMMAND			t_format			iencoding_get		set_settings_mulaw8bit_stereo_32khz_expected
  3555 		COMMAND			t_format			ichannels_get		set_settings_mulaw8bit_stereo_32khz_expected
  3556 		COMMAND			t_format			ibuffer_size_get		set_settings_mulaw8bit_stereo_32khz_expected
  3557 		//!set back default play configuration
  3558 		COMMAND			t_format			irate_set			default_record_format
  3559 		COMMAND			t_format			iencoding_set		default_record_format
  3560 		COMMAND			t_format			ichannels_set		default_record_format
  3561 		COMMAND			t_format			ibuffer_size_set		default_record_format
  3562 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3563 		COMMAND			devsound			SetRecordLevel		default_record_level
  3564 		COMMAND			t_format  			~	
  3565 		COMMAND			devsound  			Close
  3566 		COMMAND			devsound  			~
  3567 	END_TEST_BLOCK
  3568 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5023
  3569 
  3570 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-5024
  3571 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-5024
  3572 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  3573 //! @SYMAuthor			Vassili Tsvetkov
  3574 //! @SYMCreationDate		15/06/2008
  3575 //! @SYMTestCaseDesc		Execute recording audio in pcm16 stereo 24khz
  3576 //!				
  3577 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  3578 //!				2. Call SetRecordFormat() with default value from [set_set_settings_pcm16_stereo_24khz_320kb]
  3579 //!				3. Call RecordData() with values from [record_data_320kb]
  3580 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  3581 //!				5. Call GetRecordFormat() to verify sound format
  3582 //!				6. Restore initial sound h/w configuration
  3583 //!				7. Call Close()
  3584 //!
  3585 //! @SYMTestStatus		Implemented
  3586 //! @SYMTestPriority		Critical
  3587 //! @SYMTestExpectedResults	Recording completes without any errors, sound format is set and verified
  3588 //! @SYMTestType		CIT
  3589 	START_TEST_BLOCK		100				t_sound			\base\sound\base-bsp-sound-driver.ini
  3590 		CREATE_OBJECT		RMdaDevSound			devsound  
  3591 		COMMAND			devsound			new
  3592 		COMMAND			devsound			Open			UnitEnum
  3593 		//!set default play configuration
  3594 		CREATE_OBJECT		TCurrentSoundFormat		t_format		
  3595 		COMMAND			t_format			new			
  3596 		COMMAND			t_format			irate_set			set_settings_pcm16_stereo_24khz_320kb
  3597 		COMMAND			t_format			iencoding_set		set_settings_pcm16_stereo_24khz_320kb
  3598 		COMMAND			t_format			ichannels_set		set_settings_pcm16_stereo_24khz_320kb
  3599 		COMMAND			t_format			ibuffer_size_set		set_settings_pcm16_stereo_24khz_320kb
  3600 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3601 		COMMAND			devsound			RecordData		record_data_320kb
  3602 		OUTSTANDING
  3603 		COMMAND			devsound			FlushRecordBuffer
  3604 		COMMAND			devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  3605 		COMMAND			t_format			irate_get			set_settings_pcm16_stereo_24khz_320kb_expected
  3606 		COMMAND			t_format			iencoding_get		set_settings_pcm16_stereo_24khz_320kb_expected
  3607 		COMMAND			t_format			ichannels_get		set_settings_pcm16_stereo_24khz_320kb_expected
  3608 		COMMAND			t_format			ibuffer_size_get		set_settings_pcm16_stereo_24khz_320kb_expected
  3609 		//!set back default play configuration
  3610 		COMMAND			t_format			irate_set			default_record_format
  3611 		COMMAND			t_format			iencoding_set		default_record_format
  3612 		COMMAND			t_format			ichannels_set		default_record_format
  3613 		COMMAND			t_format			ibuffer_size_set		default_record_format
  3614 		COMMAND			devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  3615 		COMMAND			devsound			SetRecordLevel		default_record_level
  3616 		COMMAND			t_format  			~	
  3617 		COMMAND			devsound  			Close
  3618 		COMMAND			devsound  			~
  3619 	END_TEST_BLOCK
  3620 END_TESTCASE			BASE-BSP-SOUND-DRIVER-5024
  3621 
  3622 /////////////////////////////////////////////
  3623 // Play format changing scenarios
  3624 /////////////////////////////////////////////
  3625 
  3626 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7001
  3627 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7001
  3628 //! @SYMAPI			RMdaDevSound::SetPlayFormat(TCurrentSoundFormatBuf {ref})
  3629 //! @SYMAuthor			Vassili Tsvetkov
  3630 //! @SYMCreationDate		15/06/2008
  3631 //! @SYMTestCaseDesc		Set valid play format without calling FlushPlayBuffer() after PlayData() has been called first.
  3632 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  3633 //!				2. Call GetPlayFormat() and berify from [default_play_format]
  3634 //!				3. Call PlayData() with valid sound data from [default_file]
  3635 //!				4. Call SetPlayFormat() with default value from [default_play_format]
  3636 //!				5. Call Close()
  3637 //! @SYMTestStatus		Implemented
  3638 //! @SYMTestPriority		Critical
  3639 //! @SYMTestExpectedResults	Calling SetPlayFormat() returns KErrNone in step 4.
  3640 //!
  3641 //! @SYMTestType		CIT
  3642 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  3643 		CREATE_OBJECT	RMdaDevSound			devsound  
  3644 		COMMAND		devsound			new
  3645 		COMMAND		devsound			Open			UnitEnum
  3646 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  3647 		COMMAND		t_format			new
  3648 		COMMAND		devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  3649 		//!verify default play configuration			
  3650 		COMMAND		t_format			irate_get		default_play_format
  3651 		COMMAND		t_format			iencoding_get		default_play_format
  3652 		COMMAND		t_format			ichannels_get		default_play_format
  3653 		COMMAND		t_format			ibuffer_size_get	default_play_format
  3654 		COMMAND		devsound			PlayData		default_file
  3655 		OUTSTANDING
  3656 		COMMAND		devsound			FlushPlayBuffer
  3657 		//!set default play configuration			
  3658 		COMMAND		t_format			irate_set		default_play_format
  3659 		COMMAND		t_format			iencoding_set		default_play_format
  3660 		COMMAND		t_format			ichannels_set		default_play_format
  3661 		COMMAND		t_format			ibuffer_size_set	default_play_format
  3662 		COMMAND		devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  3663 		COMMAND		t_format			~
  3664 		COMMAND		devsound  			Close
  3665 		COMMAND		devsound  			~
  3666 	END_TEST_BLOCK
  3667 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7001
  3668 
  3669 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7002
  3670 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7002
  3671 //! @SYMAPI			RMdaDevSound::SetPlayFormat(TCurrentSoundFormatBuf {ref});
  3672 //!				RMdaDevSound::CancelPlayData()
  3673 //! @SYMAuthor			Vassili Tsvetkov
  3674 //! @SYMCreationDate		15/06/2008
  3675 //! @SYMTestCaseDesc		Set valid play format without calling FlushPlayBuffer() after PlayData() has been called first, 
  3676 //!				but instead call CancelPlayData() while PlayData() is still ongoing. 
  3677 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  3678 //!				2. Call GetPlayFormat() and verify from [default_play_format]
  3679 //!				3. Call PlayData() with valid sound data from [default_file_cancel]
  3680 //!				4. Call CancelPlayData()
  3681 //!				5. Call SetPlayFormat() with default value from [default_play_format]
  3682 //!				6. Call Close()
  3683 //! @SYMTestStatus		Implemented
  3684 //! @SYMTestPriority		Critical
  3685 //! @SYMTestExpectedResults	Calling SetPlayFormat() returns KErrNone in step 5 and PlayData returns KErrCancel in step 3.
  3686 //!
  3687 //! @SYMTestType		CIT
  3688 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  3689 		CREATE_OBJECT	RMdaDevSound			devsound  
  3690 		COMMAND		devsound			new
  3691 		COMMAND		devsound			Open			UnitEnum
  3692 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  3693 		COMMAND		t_format			new
  3694 		COMMAND		devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  3695 		//!verify default play configuration			
  3696 		COMMAND		t_format			irate_get		default_play_format
  3697 		COMMAND		t_format			iencoding_get		default_play_format
  3698 		COMMAND		t_format			ichannels_get		default_play_format
  3699 		COMMAND		t_format			ibuffer_size_get	default_play_format
  3700 		COMMAND	!AsyncError=-3	devsound			PlayData		default_file_cancel
  3701 		OUTSTANDING
  3702 		//!set default play configuration			
  3703 		COMMAND		t_format			irate_set		default_play_format
  3704 		COMMAND		t_format			iencoding_set		default_play_format
  3705 		COMMAND		t_format			ichannels_set		default_play_format
  3706 		COMMAND		t_format			ibuffer_size_set	default_play_format
  3707 		COMMAND		devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  3708 		COMMAND		t_format			~
  3709 		COMMAND		devsound  			Close
  3710 		COMMAND		devsound  			~
  3711 	END_TEST_BLOCK	 
  3712 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7002
  3713 
  3714 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7003
  3715 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7003
  3716 //! @SYMAPI			RMdaDevSound::SetPlayFormat(TCurrentSoundFormatBuf {ref});
  3717 //!				RMdaDevSound::CancelPlayData()
  3718 //! @SYMAuthor			Vassili Tsvetkov
  3719 //! @SYMCreationDate		15/06/2008
  3720 //! @SYMTestCaseDesc		Set valid play format without calling FlushPlayBuffer() after PlayData() has been called first, 
  3721 //!				but instaed call CancelPlayData() after PlayData()
  3722 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  3723 //!				2. Call GetPlayFormat() and verify from [default_play_format]
  3724 //!				3. Call NotifyPlayError() //needed because otherwise PlayData() will not really stop after Outstanding
  3725 //!				4. Call PlayData() with valid sound data from [default_file]
  3726 //!				5. Call CancelPlayData()
  3727 //!				6. Call SetPlayFormat() with default value from [default_play_format]
  3728 //!				7. Call Close()
  3729 //! @SYMTestStatus		Implemented
  3730 //! @SYMTestPriority		Critical
  3731 //! @SYMTestExpectedResults	Calling SetPlayFormat() returns KErrNone in step 5 and PlayData returns KErrNone in step 3.
  3732 //!
  3733 //! @SYMTestType		CIT
  3734 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  3735 		CREATE_OBJECT	RMdaDevSound			devsound  
  3736 		COMMAND		devsound			new
  3737 		COMMAND		devsound			Open			UnitEnum
  3738 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  3739 		COMMAND		t_format			new
  3740 		COMMAND		devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  3741 		//!verify default play configuration			
  3742 		COMMAND		t_format			irate_get		default_play_format
  3743 		COMMAND		t_format			iencoding_get		default_play_format
  3744 		COMMAND		t_format			ichannels_get		default_play_format
  3745 		COMMAND		t_format			ibuffer_size_get	default_play_format
  3746 		COMMAND !AsyncError=-10	devsound			NotifyPlayError
  3747 		COMMAND		devsound			PlayData		default_file
  3748 		OUTSTANDING
  3749 		COMMAND		devsound			CancelPlayData
  3750 		//!set default play configuration			
  3751 		COMMAND		t_format			irate_set		default_play_format
  3752 		COMMAND		t_format			iencoding_set		default_play_format
  3753 		COMMAND		t_format			ichannels_set		default_play_format
  3754 		COMMAND		t_format			ibuffer_size_set	default_play_format
  3755 		COMMAND		devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  3756 		COMMAND		t_format			~
  3757 		COMMAND		devsound  			Close
  3758 		COMMAND		devsound  			~
  3759 	END_TEST_BLOCK	 	 
  3760 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7003
  3761 
  3762 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7004
  3763 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7004
  3764 //! @SYMAPI			RMdaDevSound::SetPlayFormat(TCurrentSoundFormatBuf {ref})
  3765 //! @SYMAuthor			Vassili Tsvetkov
  3766 //! @SYMCreationDate		15/06/2008
  3767 //! @SYMTestCaseDesc		Set invalid play format 3 times in a row and then call PlayData()
  3768 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  3769 //!				2. Call SetPlayFormat() with default value from [invalid_play_format]
  3770 //!				3. Call SetPlayFormat() with default value from [invalid_play_format]
  3771 //!				4. Call SetPlayFormat() with default value from [invalid_play_format]
  3772 //!				5. Call PlayData() with valid sound data from [default_file]
  3773 //!				6. Call SetPlayFormat() with default value from [default_play_format]
  3774 //!				7. Call Close()
  3775 //! @SYMTestStatus		Implemented
  3776 //! @SYMTestPriority		Critical
  3777 //! @SYMTestExpectedResults	SetPlayFormat returns KErrNotSupported every time when executing it 3 times in a row
  3778 //!
  3779 //! @SYMTestType		CIT
  3780 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  3781 		CREATE_OBJECT	RMdaDevSound			devsound  
  3782 		COMMAND		devsound			new
  3783 		COMMAND		devsound			Open			UnitEnum
  3784 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  3785 		COMMAND		t_format			new
  3786 		COMMAND		t_format			irate_set		unsupported_play_format
  3787 		COMMAND		t_format			iencoding_set		unsupported_play_format
  3788 		COMMAND		t_format			ichannels_set		unsupported_play_format
  3789 		COMMAND		t_format			ibuffer_size_set	unsupported_play_format
  3790 		COMMAND	!Error=-5	devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  3791 		COMMAND		t_format			irate_set		unsupported_play_format
  3792 		COMMAND		t_format			iencoding_set		unsupported_play_format
  3793 		COMMAND		t_format			ichannels_set		unsupported_play_format
  3794 		COMMAND		t_format			ibuffer_size_set	unsupported_play_format
  3795 		COMMAND	!Error=-5	devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  3796 		COMMAND		t_format			irate_set		unsupported_play_format
  3797 		COMMAND		t_format			iencoding_set		unsupported_play_format
  3798 		COMMAND		t_format			ichannels_set		unsupported_play_format
  3799 		COMMAND		t_format			ibuffer_size_set	unsupported_play_format
  3800 		COMMAND	!Error=-5	devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  3801 		COMMAND		devsound			PlayData		default_file
  3802 		OUTSTANDING
  3803 		//!set default play configuration			
  3804 		COMMAND		devsound			FlushPlayBuffer
  3805 		COMMAND		t_format			irate_set		default_play_format
  3806 		COMMAND		t_format			iencoding_set		default_play_format
  3807 		COMMAND		t_format			ichannels_set		default_play_format
  3808 		COMMAND		t_format			ibuffer_size_set	default_play_format
  3809 		COMMAND		devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  3810 		COMMAND		t_format			~
  3811 		COMMAND		devsound  			Close
  3812 		COMMAND		devsound  			~
  3813 	END_TEST_BLOCK	 	 
  3814 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7004
  3815 
  3816 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7005
  3817 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7005
  3818 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, const TDesC8 {ref});
  3819 //!				RMdaDevSound::SetPlayFormat(TCurrentSoundFormatBuf {ref})
  3820 //! @SYMAuthor			Vassili Tsvetkov
  3821 //! @SYMCreationDate		15/06/2008
  3822 //! @SYMTestCaseDesc		Call SetPlayFormat() with valid play format when audio is still playing
  3823 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  3824 //!				2. Call GetPlayFormat() and verify from [default_play_format]
  3825 //!				3. Call NotifyPlayError() //needed because otherwise PlayData() will not really stop after Outstanding
  3826 //!				4. Call PlayData() with valid sound data from [default_file]
  3827 //!				5. Call SetPlayFormat() with default value from [default_play_format] while audio is still playing
  3828 //!				6. Call Close()
  3829 //! @SYMTestStatus		Implemented
  3830 //! @SYMTestPriority		Critical
  3831 //! @SYMTestExpectedResults	SetPlayFormat in step 4 returns KErrInUse 
  3832 //!
  3833 //! @SYMTestType		CIT
  3834 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  3835 		CREATE_OBJECT	RMdaDevSound			devsound  
  3836 		COMMAND		devsound			new
  3837 		COMMAND		devsound			Open			UnitEnum
  3838 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  3839 		COMMAND		t_format			new
  3840 		COMMAND		devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  3841 		//!verify default play configuration			
  3842 		COMMAND		t_format			irate_get		default_play_format
  3843 		COMMAND		t_format			iencoding_get		default_play_format
  3844 		COMMAND		t_format			ichannels_get		default_play_format
  3845 		COMMAND		t_format			ibuffer_size_get	default_play_format
  3846 		COMMAND !AsyncError=-10	devsound			NotifyPlayError
  3847 		COMMAND		devsound			PlayData		default_file
  3848 		//!set default play configuration			
  3849 		COMMAND		t_format			irate_set		default_play_format
  3850 		COMMAND		t_format			iencoding_set		default_play_format
  3851 		COMMAND		t_format			ichannels_set		default_play_format
  3852 		COMMAND		t_format			ibuffer_size_set	default_play_format
  3853 		COMMAND	!Error=-14	devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  3854 		OUTSTANDING
  3855 		COMMAND		t_format			~
  3856 		COMMAND		devsound  			Close
  3857 		COMMAND		devsound  			~
  3858 	END_TEST_BLOCK	 
  3859 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7005
  3860 
  3861 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7006
  3862 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7006
  3863 //! @SYMAPI			RMdaDevSound::SetPlayFormat(TCurrentSoundFormatBuf {ref})
  3864 //! @SYMAuthor			Vassili Tsvetkov
  3865 //! @SYMCreationDate		15/06/2008
  3866 //! @SYMTestCaseDesc		Call SetPlayFormat() with valid values but with invalid iEncoding (out of accepted range)
  3867 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  3868 //!				2. Call SetPlayFormat() with default value from [default_play_format_invalid_encoding]
  3869 //!				3. Call Close()
  3870 //! @SYMTestStatus		Implemented
  3871 //! @SYMTestPriority		Critical
  3872 //! @SYMTestExpectedResults	SetPlayFormat in step 4 returns KErrNotSupproted
  3873 //!
  3874 //! @SYMTestType		CIT
  3875 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  3876 		CREATE_OBJECT	RMdaDevSound			devsound  
  3877 		COMMAND		devsound			new
  3878 		COMMAND		devsound			Open			UnitEnum
  3879 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  3880 		COMMAND		t_format			new			
  3881 		COMMAND		t_format			irate_set		default_play_format
  3882 		COMMAND		t_format			iencoding_set		default_play_format_invalid_encoding
  3883 		COMMAND		t_format			ichannels_set		default_play_format
  3884 		COMMAND		t_format			ibuffer_size_set	default_play_format
  3885 		COMMAND	!Error=-5	devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  3886 		COMMAND		t_format			~
  3887 		COMMAND		devsound  			Close
  3888 		COMMAND		devsound  			~
  3889 	END_TEST_BLOCK	 
  3890 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7006
  3891 
  3892 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7007
  3893 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7007
  3894 //! @SYMAPI			RMdaDevSound::SetPlayFormat(TCurrentSoundFormatBuf {ref})
  3895 //! @SYMAuthor			Vassili Tsvetkov
  3896 //! @SYMCreationDate		15/06/2008
  3897 //! @SYMTestCaseDesc		Call SetPlayFormat() with valid values but with invalid iRate (out of accepted range)
  3898 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  3899 //!				2. Call SetPlayFormat() with default value from [default_play_format_invalid_rate]
  3900 //!				3. Call Close()
  3901 //! @SYMTestStatus		Implemented
  3902 //! @SYMTestPriority		Critical
  3903 //! @SYMTestExpectedResults	SetPlayFormat in step 4 returns KErrNotSupproted
  3904 //!
  3905 //! @SYMTestType		CIT
  3906 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  3907 		CREATE_OBJECT	RMdaDevSound			devsound  
  3908 		COMMAND		devsound			new
  3909 		COMMAND		devsound			Open			UnitEnum
  3910 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  3911 		COMMAND		t_format			new			
  3912 		COMMAND		t_format			irate_set		default_play_format_invalid_rate
  3913 		COMMAND		t_format			iencoding_set		default_play_format
  3914 		COMMAND		t_format			ichannels_set		default_play_format
  3915 		COMMAND		t_format			ibuffer_size_set	default_play_format
  3916 		COMMAND	!Error=-5	devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  3917 		COMMAND		t_format			~
  3918 		COMMAND		devsound  			Close
  3919 		COMMAND		devsound  			~
  3920 	END_TEST_BLOCK	 	 
  3921 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7007
  3922 
  3923 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7008
  3924 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7008
  3925 //! @SYMAPI			RMdaDevSound::SetPlayFormat(TCurrentSoundFormatBuf {ref})
  3926 //! @SYMAuthor			Vassili Tsvetkov
  3927 //! @SYMCreationDate		15/06/2008
  3928 //! @SYMTestCaseDesc		Call SetPlayFormat() with valid values but with invalid iBufferSize (out of accepted range)
  3929 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  3930 //!				2. Call SetPlayFormat() with default value from [default_play_format_invalid_buffer_size]
  3931 //!				3. Call Close()
  3932 //! @SYMTestStatus		Implemented
  3933 //! @SYMTestPriority		Critical
  3934 //! @SYMTestExpectedResults	SetPlayFormat in step 4 returns KErrNotSupproted
  3935 //!
  3936 //! @SYMTestType		CIT
  3937 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  3938 		CREATE_OBJECT	RMdaDevSound			devsound  
  3939 		COMMAND		devsound			new
  3940 		COMMAND		devsound			Open			UnitEnum
  3941 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  3942 		COMMAND		t_format			new			
  3943 		COMMAND		t_format			irate_set		default_play_format
  3944 		COMMAND		t_format			iencoding_set		default_play_format
  3945 		COMMAND		t_format			ichannels_set		default_play_format
  3946 		COMMAND		t_format			ibuffer_size_set	default_play_format_invalid_buffer_size
  3947 		COMMAND	!Error=-5	devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  3948 		COMMAND		t_format			~
  3949 		COMMAND		devsound  			Close
  3950 		COMMAND		devsound  			~
  3951 	END_TEST_BLOCK	 	 
  3952 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7008
  3953 
  3954 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7009
  3955 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7009
  3956 //! @SYMAPI			RMdaDevSound::SetPlayFormat(TCurrentSoundFormatBuf {ref})
  3957 //! @SYMAuthor			Vassili Tsvetkov
  3958 //! @SYMCreationDate		15/06/2008
  3959 //! @SYMTestCaseDesc		Call SetPlayFormat() with valid values but with invalid iChannels (out of accepted range)
  3960 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  3961 //!				2. Call SetPlayFormat() with default value from [default_play_format_invalid_channels]
  3962 //!				3. Call Close()
  3963 //! @SYMTestStatus		Implemented
  3964 //! @SYMTestPriority		Critical
  3965 //! @SYMTestExpectedResults	SetPlayFormat in step 4 returns KErrNotSupproted
  3966 //!
  3967 //! @SYMTestType		CIT
  3968 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  3969 		CREATE_OBJECT	RMdaDevSound			devsound  
  3970 		COMMAND		devsound			new
  3971 		COMMAND		devsound			Open			UnitEnum
  3972 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  3973 		COMMAND		t_format			new			
  3974 		COMMAND		t_format			irate_set		default_play_format
  3975 		COMMAND		t_format			iencoding_set		default_play_format
  3976 		COMMAND		t_format			ichannels_set		default_play_format_invalid_channels
  3977 		COMMAND		t_format			ibuffer_size_set	default_play_format
  3978 		COMMAND	!Error=-5	devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  3979 		COMMAND		t_format			~
  3980 		COMMAND		devsound  			Close
  3981 		COMMAND		devsound  			~
  3982 	END_TEST_BLOCK	 
  3983 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7009
  3984 
  3985 /////////////////////////////////////////////
  3986 // Record format changing scenarios
  3987 /////////////////////////////////////////////
  3988 
  3989 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7011
  3990 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7011
  3991 //! @SYMAPI			RMdaDevSound::SetRecordFormat(TCurrentSoundFormatBuf {ref})
  3992 //! @SYMAuthor			Vassili Tsvetkov
  3993 //! @SYMCreationDate		15/06/2008
  3994 //! @SYMTestCaseDesc		Set valid record format without calling FlushRecordBuffer() after RecordData() has been called first.
  3995 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  3996 //!				2. Call GetRecordFormat() and verify from [default_record_format]
  3997 //!				3. Call RecordData() with [record_data_32kb]
  3998 //!				4. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  3999 //!				5. Call SetRecordFormat() with default value from [default_record_format]
  4000 //!				6. Call Close()
  4001 //! @SYMTestStatus		Implemented
  4002 //! @SYMTestPriority		Critical
  4003 //! @SYMTestExpectedResults	Calling SetRecordFormat() returns KErrNone in step 4.
  4004 //!
  4005 //! @SYMTestType		CIT
  4006 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4007 		CREATE_OBJECT	RMdaDevSound			devsound  
  4008 		COMMAND		devsound			new
  4009 		COMMAND		devsound			Open			UnitEnum
  4010 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4011 		COMMAND		t_format			new
  4012 		COMMAND		devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  4013 		//!verify default record configuration			
  4014 		COMMAND		t_format			irate_get		default_record_format
  4015 		COMMAND		t_format			iencoding_get		default_record_format
  4016 		COMMAND		t_format			ichannels_get		default_record_format
  4017 		COMMAND		t_format			ibuffer_size_get	default_record_format
  4018 		COMMAND		devsound			RecordData		record_data_32kb
  4019 		OUTSTANDING
  4020 		//!set default record configuration			
  4021 		COMMAND			devsound			FlushRecordBuffer
  4022 		COMMAND		t_format			irate_set		default_record_format
  4023 		COMMAND		t_format			iencoding_set		default_record_format
  4024 		COMMAND		t_format			ichannels_set		default_record_format
  4025 		COMMAND		t_format			ibuffer_size_set	default_record_format
  4026 		COMMAND		devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  4027 		COMMAND		t_format			~
  4028 		COMMAND		devsound  			Close
  4029 		COMMAND		devsound  			~
  4030 	END_TEST_BLOCK	 
  4031 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7011
  4032 
  4033 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7012
  4034 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7012
  4035 //! @SYMAPI			RMdaDevSound::SetRecordFormat(TCurrentSoundFormatBuf {ref});
  4036 //!				RMdaDevSound::CancelRecordData()
  4037 //! @SYMAuthor			Vassili Tsvetkov
  4038 //! @SYMCreationDate		15/06/2008
  4039 //! @SYMTestCaseDesc		Set valid record format without calling FlushRecordBuffer() after RecordData() has been called first,
  4040 //!				but instaed call CancelRecordData() while RecordData() is still ongoing
  4041 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4042 //!				2. Call GetRecordFormat() and verify from [default_record_format]
  4043 //!				3. Call RecordData() with [record_data_32kb_cancel]
  4044 //!				5. Call CancelRecordData()
  4045 //!				6. Call SetRecordFormat() with default value from [default_record_format]
  4046 //!				7. Call Close()
  4047 //! @SYMTestStatus		Implemented
  4048 //! @SYMTestPriority		Critical
  4049 //! @SYMTestExpectedResults	Calling SetRecordFormat() returns KErrNone in step 5 and RecordData returns KErrCancel in step 3.
  4050 //!
  4051 //! @SYMTestType		CIT
  4052 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4053 		CREATE_OBJECT	RMdaDevSound			devsound  
  4054 		COMMAND		devsound			new
  4055 		COMMAND		devsound			Open			UnitEnum
  4056 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4057 		COMMAND		t_format			new
  4058 		COMMAND		devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  4059 		//!verify default record configuration			
  4060 		COMMAND		t_format			irate_get		default_record_format
  4061 		COMMAND		t_format			iencoding_get		default_record_format
  4062 		COMMAND		t_format			ichannels_get		default_record_format
  4063 		COMMAND		t_format			ibuffer_size_get	default_record_format
  4064 		COMMAND	!AsyncError=-3	devsound			RecordData		record_data_32kb_cancel
  4065 		OUTSTANDING
  4066 		//!set default record configuration			
  4067 		COMMAND		t_format			irate_set		default_record_format
  4068 		COMMAND		t_format			iencoding_set		default_record_format
  4069 		COMMAND		t_format			ichannels_set		default_record_format
  4070 		COMMAND		t_format			ibuffer_size_set	default_record_format
  4071 		COMMAND		devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  4072 		COMMAND		t_format			~
  4073 		COMMAND		devsound  			Close
  4074 		COMMAND		devsound  			~
  4075 	END_TEST_BLOCK	 
  4076 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7012
  4077 
  4078 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7013
  4079 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7013
  4080 //! @SYMAPI			RMdaDevSound::SetRecordFormat(TCurrentSoundFormatBuf {ref});
  4081 //!				RMdaDevSound::CancelRecordData()
  4082 //! @SYMAuthor			Vassili Tsvetkov
  4083 //! @SYMCreationDate		15/06/2008
  4084 //! @SYMTestCaseDesc		Set valid record format without calling FlushRecordBuffer() after RecordData() has been called first,
  4085 //!				but instaed call CancelRecordData() after RecordData()
  4086 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4087 //!				2. Call GetRecordFormat() and verify from [default_record_format]
  4088 //!				3. Call NotifyRecordError() //needed because otherwise RecordData() will not really stop after Outstanding
  4089 //!				4. Call RecordData()
  4090 //!				5. Call CancelRecordData()
  4091 //!				6. Call SetRecordFormat() with default value from [default_record_format]
  4092 //!				7. Call Close()
  4093 //! @SYMTestStatus		Implemented
  4094 //! @SYMTestPriority		Critical
  4095 //! @SYMTestExpectedResults	Calling SetRecordFormat() returns KErrNone in step 5 and RecordData returns KErrNone in step 3.
  4096 //!
  4097 //! @SYMTestType		CIT
  4098 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4099 		CREATE_OBJECT	RMdaDevSound			devsound  
  4100 		COMMAND		devsound			new
  4101 		COMMAND		devsound			Open			UnitEnum
  4102 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4103 		COMMAND		t_format			new
  4104 		COMMAND		devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  4105 		//!verify default record configuration			
  4106 		COMMAND		t_format			irate_get		default_record_format
  4107 		COMMAND		t_format			iencoding_get		default_record_format
  4108 		COMMAND		t_format			ichannels_get		default_record_format
  4109 		COMMAND		t_format			ibuffer_size_get	default_record_format
  4110 		COMMAND !AsyncError=-9	devsound			NotifyRecordError
  4111 		COMMAND		devsound			RecordData		record_data_32kb
  4112 		OUTSTANDING
  4113 		COMMAND		devsound			CancelRecordData
  4114 		//!set default record configuration			
  4115 		COMMAND		t_format			irate_set		default_record_format
  4116 		COMMAND		t_format			iencoding_set		default_record_format
  4117 		COMMAND		t_format			ichannels_set		default_record_format
  4118 		COMMAND		t_format			ibuffer_size_set	default_record_format
  4119 		COMMAND		devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  4120 		COMMAND		t_format			~
  4121 		COMMAND		devsound  			Close
  4122 		COMMAND		devsound  			~
  4123 	END_TEST_BLOCK	 
  4124 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7013
  4125 
  4126 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7014
  4127 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7014
  4128 //! @SYMAPI			RMdaDevSound::SetPlayFormat(TCurrentSoundFormatBuf {ref})
  4129 //! @SYMAuthor			Vassili Tsvetkov
  4130 //! @SYMCreationDate		15/06/2008
  4131 //! @SYMTestCaseDesc		Set invalid record format 3 times in a row and then call RecordData()
  4132 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4133 //!				2. Call SetRecordFormat() with default value from [invalid_record_format]
  4134 //!				3. Call SetRecordFormat() with default value from [invalid_record_format]
  4135 //!				4. Call SetRecordFormat() with default value from [invalid_record_format]
  4136 //!				5. Call RecordData()
  4137 //!				6. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  4138 //!				7. Call SetRecordFormat() with default value from [default_record_format]
  4139 //!				8. Call Close()
  4140 //! @SYMTestStatus		Implemented
  4141 //! @SYMTestPriority		Critical
  4142 //! @SYMTestExpectedResults	SetRecordFormat returns KErrNotSupported every time when executing it 3 times in a row
  4143 //!
  4144 //! @SYMTestType		CIT
  4145 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4146 		CREATE_OBJECT	RMdaDevSound			devsound  
  4147 		COMMAND		devsound			new
  4148 		COMMAND		devsound			Open			UnitEnum
  4149 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4150 		COMMAND		t_format			new
  4151 		//!set unsupported record configuration			
  4152 		COMMAND		t_format			irate_set		unsupported_record_format
  4153 		COMMAND		t_format			iencoding_set		unsupported_record_format
  4154 		COMMAND		t_format			ichannels_set		unsupported_record_format
  4155 		COMMAND		t_format			ibuffer_size_set	unsupported_record_format
  4156 		COMMAND	!Error=-5	devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  4157 		//!set unsupported record configuration			
  4158 		COMMAND		t_format			irate_set		unsupported_record_format
  4159 		COMMAND		t_format			iencoding_set		unsupported_record_format
  4160 		COMMAND		t_format			ichannels_set		unsupported_record_format
  4161 		COMMAND		t_format			ibuffer_size_set	unsupported_record_format
  4162 		COMMAND	!Error=-5	devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  4163 		//!set unsupported record configuration			
  4164 		COMMAND		t_format			irate_set		unsupported_record_format
  4165 		COMMAND		t_format			iencoding_set		unsupported_record_format
  4166 		COMMAND		t_format			ichannels_set		unsupported_record_format
  4167 		COMMAND		t_format			ibuffer_size_set	unsupported_record_format
  4168 		COMMAND	!Error=-5	devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  4169 		COMMAND		devsound			RecordData		record_data_32kb
  4170 		OUTSTANDING
  4171 		COMMAND			devsound			FlushRecordBuffer
  4172 		//!set default record configuration			
  4173 		COMMAND		t_format			irate_set		default_record_format
  4174 		COMMAND		t_format			iencoding_set		default_record_format
  4175 		COMMAND		t_format			ichannels_set		default_record_format
  4176 		COMMAND		t_format			ibuffer_size_set	default_record_format
  4177 		COMMAND		devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  4178 		COMMAND		t_format			~
  4179 		COMMAND		devsound  			Close
  4180 		COMMAND		devsound  			~
  4181 	END_TEST_BLOCK	 
  4182 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7014
  4183 
  4184 
  4185 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7015
  4186 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7015
  4187 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref});
  4188 //!				RMdaDevSound::SetRecordFormat(TCurrentSoundFormatBuf {ref})
  4189 //! @SYMAuthor			Vassili Tsvetkov
  4190 //! @SYMCreationDate		15/06/2008
  4191 //! @SYMTestCaseDesc		Call SetRecordFormat() with valid record format when audio is still being recorded
  4192 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4193 //!				2. Call GetRecordFormat() and verify from [default_record_format]
  4194 //!				3. Call RecordData() to record 32kb
  4195 //!				4. Call SetRecordFormat() with default value from [default_record_format] while audio is still being recorded
  4196 //!				5. Call Close()
  4197 //! @SYMTestStatus		Implemented
  4198 //! @SYMTestPriority		Critical
  4199 //! @SYMTestExpectedResults	SetPlayFormat in step 4 returns KErrInUse 
  4200 //!
  4201 //! @SYMTestType		CIT
  4202 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4203 		CREATE_OBJECT	RMdaDevSound			devsound  
  4204 		COMMAND		devsound			new
  4205 		COMMAND		devsound			Open			UnitEnum
  4206 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4207 		COMMAND		t_format			new
  4208 		COMMAND		devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  4209 		//!verify default record configuration			
  4210 		COMMAND		t_format			irate_get		default_record_format
  4211 		COMMAND		t_format			iencoding_get		default_record_format
  4212 		COMMAND		t_format			ichannels_get		default_record_format
  4213 		COMMAND		t_format			ibuffer_size_get	default_record_format		
  4214 		COMMAND		devsound			RecordData		record_data_32kb
  4215 		//!set default record configuration			
  4216 		COMMAND		t_format			irate_set		default_record_format
  4217 		COMMAND		t_format			iencoding_set		default_record_format
  4218 		COMMAND		t_format			ichannels_set		default_record_format
  4219 		COMMAND		t_format			ibuffer_size_set	default_record_format
  4220 		COMMAND	!Error=-14	devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  4221 		OUTSTANDING
  4222 		COMMAND		t_format			~
  4223 		COMMAND		devsound  			Close
  4224 		COMMAND		devsound  			~
  4225 	END_TEST_BLOCK	 
  4226 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7015
  4227 
  4228 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7016
  4229 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7016
  4230 //! @SYMAPI			RMdaDevSound::SetRecordFormat(TCurrentSoundFormatBuf {ref})
  4231 //! @SYMAuthor			Vassili Tsvetkov
  4232 //! @SYMCreationDate		15/06/2008
  4233 //! @SYMTestCaseDesc		Call SetRecordFormat() with valid values but with invalid iEncoding (out of accepted range)
  4234 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4235 //!				2. Call SetRecordFormat() with default value from [default_record_format_invalid_encoding]
  4236 //!				3. Call Close()
  4237 //! @SYMTestStatus		Implemented
  4238 //! @SYMTestPriority		Critical
  4239 //! @SYMTestExpectedResults	SetRecordFormat in step 4 returns KErrNotSupproted
  4240 //!
  4241 //! @SYMTestType		CIT
  4242 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4243 		CREATE_OBJECT	RMdaDevSound			devsound  
  4244 		COMMAND		devsound			new
  4245 		COMMAND		devsound			Open			UnitEnum
  4246 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4247 		COMMAND		t_format			new			
  4248 		COMMAND		t_format			irate_set		default_record_format
  4249 		COMMAND		t_format			iencoding_set		default_record_format_invalid_encoding
  4250 		COMMAND		t_format			ichannels_set		default_record_format
  4251 		COMMAND		t_format			ibuffer_size_set	default_record_format
  4252 		COMMAND	!Error=-5	devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  4253 		COMMAND		t_format			~
  4254 		COMMAND		devsound  			Close
  4255 		COMMAND		devsound  			~
  4256 	END_TEST_BLOCK	 
  4257 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7016
  4258 
  4259 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7017
  4260 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7017
  4261 //! @SYMAPI			RMdaDevSound::SetRecordFormat(TCurrentSoundFormatBuf {ref})
  4262 //! @SYMAuthor			Vassili Tsvetkov
  4263 //! @SYMCreationDate		15/06/2008
  4264 //! @SYMTestCaseDesc		Call SetRecordFormat() with valid values but with invalid iRate (out of accepted range)
  4265 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4266 //!				2. Call SetRecordFormat() with default value from [default_record_format_invalid_rate]
  4267 //!				3. Call Close()
  4268 //! @SYMTestStatus		Implemented
  4269 //! @SYMTestPriority		Critical
  4270 //! @SYMTestExpectedResults	SetRecordFormat in step 4 returns KErrNotSupproted
  4271 //!
  4272 //! @SYMTestType		CIT
  4273 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4274 		CREATE_OBJECT	RMdaDevSound			devsound  
  4275 		COMMAND		devsound			new
  4276 		COMMAND		devsound			Open			UnitEnum
  4277 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4278 		COMMAND		t_format			new			
  4279 		COMMAND		t_format			irate_set		default_record_format_invalid_rate
  4280 		COMMAND		t_format			iencoding_set		default_record_format
  4281 		COMMAND		t_format			ichannels_set		default_record_format
  4282 		COMMAND		t_format			ibuffer_size_set	default_record_format
  4283 		COMMAND	!Error=-5	devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  4284 		COMMAND		t_format			~
  4285 		COMMAND		devsound  			Close
  4286 		COMMAND		devsound  			~
  4287 	END_TEST_BLOCK	 
  4288 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7017
  4289 
  4290 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7018
  4291 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7018
  4292 //! @SYMAPI			RMdaDevSound::SetRecordFormat(TCurrentSoundFormatBuf {ref})
  4293 //! @SYMAuthor			Vassili Tsvetkov
  4294 //! @SYMCreationDate		15/06/2008
  4295 //! @SYMTestCaseDesc		Call SetRecordFormat() with valid values but with invalid iBufferSize (out of accepted range)
  4296 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4297 //!				2. Call SetRecordFormat() with default value from [default_record_format_invalid_buffer_size]
  4298 //!				3. Call Close()
  4299 //! @SYMTestStatus		Implemented
  4300 //! @SYMTestPriority		Critical
  4301 //! @SYMTestExpectedResults	SetRecordFormat in step 4 returns KErrNotSupproted
  4302 //!
  4303 //! @SYMTestType		CIT
  4304 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4305 		CREATE_OBJECT	RMdaDevSound			devsound  
  4306 		COMMAND		devsound			new
  4307 		COMMAND		devsound			Open			UnitEnum
  4308 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4309 		COMMAND		t_format			new			
  4310 		COMMAND		t_format			irate_set		default_record_format
  4311 		COMMAND		t_format			iencoding_set		default_record_format
  4312 		COMMAND		t_format			ichannels_set		default_record_format
  4313 		COMMAND		t_format			ibuffer_size_set	default_record_format_invalid_buffer_size
  4314 		COMMAND	!Error=-5	devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  4315 		COMMAND		t_format			~
  4316 		COMMAND		devsound  			Close
  4317 		COMMAND		devsound  			~
  4318 	END_TEST_BLOCK	 
  4319 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7018
  4320 
  4321 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7019
  4322 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7019
  4323 //! @SYMAPI			RMdaDevSound::SetRecordFormat(TCurrentSoundFormatBuf {ref})
  4324 //! @SYMAuthor			Vassili Tsvetkov
  4325 //! @SYMCreationDate		15/06/2008
  4326 //! @SYMTestCaseDesc		Call SetRecordFormat() with valid values but with invalid iChannels (out of accepted range)
  4327 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4328 //!				2. Call SetRecordFormat() with default value from [default_record_format_invalid_channels]
  4329 //!				3. Call Close()
  4330 //! @SYMTestStatus		Implemented
  4331 //! @SYMTestPriority		Critical
  4332 //! @SYMTestExpectedResults	SetRecordFormat in step 4 returns KErrNotSupproted
  4333 //!
  4334 //! @SYMTestType		CIT
  4335 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4336 		CREATE_OBJECT	RMdaDevSound			devsound  
  4337 		COMMAND		devsound			new
  4338 		COMMAND		devsound			Open			UnitEnum
  4339 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4340 		COMMAND		t_format			new			
  4341 		COMMAND		t_format			irate_set		default_record_format
  4342 		COMMAND		t_format			iencoding_set		default_record_format
  4343 		COMMAND		t_format			ichannels_set		default_record_format_invalid_channels
  4344 		COMMAND		t_format			ibuffer_size_set	default_record_format
  4345 		COMMAND	!Error=-5	devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  4346 		COMMAND		t_format			~
  4347 		COMMAND		devsound  			Close
  4348 		COMMAND		devsound  			~
  4349 	END_TEST_BLOCK	 
  4350 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7019
  4351 
  4352 /////////////////////////////////////////////
  4353 // Playback with different buffer size
  4354 /////////////////////////////////////////////
  4355 
  4356 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7021
  4357 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7021
  4358 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  4359 //! @SYMAuthor			Vassili Tsvetkov
  4360 //! @SYMCreationDate		15/06/2008
  4361 //! @SYMTestCaseDesc		Play audio with minimal buffer size supported in PCM8
  4362 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4363 //!				2. Call SetPlayFormat() with [set_settings_pcm8_mono_8khz_32kb_min_buffer]
  4364 //!				3. Call PlayData() with valid sound data from [pcm8_mono_8khz_32kb.raw]
  4365 //!				4. Call Close()
  4366 //! @SYMTestStatus		Implemented
  4367 //! @SYMTestPriority		Critical
  4368 //! @SYMTestExpectedResults	Audio is played without any errors
  4369 //!
  4370 //! @SYMTestType		CIT
  4371 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4372 		CREATE_OBJECT	RMdaDevSound			devsound  
  4373 		COMMAND		devsound			new
  4374 		COMMAND		devsound			Open			UnitEnum
  4375 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4376 		COMMAND		t_format			new			
  4377 		COMMAND		t_format			irate_set		set_settings_pcm8_mono_8khz_32kb_min_buffer
  4378 		COMMAND		t_format			iencoding_set		set_settings_pcm8_mono_8khz_32kb_min_buffer
  4379 		COMMAND		t_format			ichannels_set		set_settings_pcm8_mono_8khz_32kb_min_buffer
  4380 		COMMAND		t_format			ibuffer_size_set	set_settings_pcm8_mono_8khz_32kb_min_buffer
  4381 		COMMAND		devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  4382 		COMMAND		devsound  			PlayData		pcm8_mono_8khz_32kb.raw
  4383 		OUTSTANDING
  4384 		COMMAND		t_format			~
  4385 		COMMAND		devsound  			Close
  4386 		COMMAND		devsound  			~
  4387 	END_TEST_BLOCK	 
  4388 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7021
  4389 
  4390 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7022
  4391 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7022
  4392 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  4393 //! @SYMAuthor			Vassili Tsvetkov
  4394 //! @SYMCreationDate		15/06/2008
  4395 //! @SYMTestCaseDesc		Play audio with max buffer size supported in PCM8
  4396 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4397 //!				2. Call SetPlayFormat() with [set_settings_pcm8_mono_8khz_32kb_max_buffer]
  4398 //!				3. Call PlayData() with valid sound data from [pcm8_mono_8khz_32kb.raw]
  4399 //!				4. Call Close()
  4400 //! @SYMTestStatus		Implemented
  4401 //! @SYMTestPriority		Critical
  4402 //! @SYMTestExpectedResults	Audio is played without any errors
  4403 //!
  4404 //! @SYMTestType		CIT
  4405 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4406 		CREATE_OBJECT	RMdaDevSound			devsound  
  4407 		COMMAND		devsound			new
  4408 		COMMAND		devsound			Open			UnitEnum
  4409 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4410 		COMMAND		t_format			new			
  4411 		COMMAND		t_format			irate_set		set_settings_pcm8_mono_8khz_32kb_max_buffer
  4412 		COMMAND		t_format			iencoding_set		set_settings_pcm8_mono_8khz_32kb_max_buffer
  4413 		COMMAND		t_format			ichannels_set		set_settings_pcm8_mono_8khz_32kb_max_buffer
  4414 		COMMAND		t_format			ibuffer_size_set	set_settings_pcm8_mono_8khz_32kb_max_buffer
  4415 		COMMAND		devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  4416 		COMMAND		devsound  			PlayData		pcm8_mono_8khz_32kb.raw
  4417 		OUTSTANDING
  4418 		COMMAND		t_format			~
  4419 		COMMAND		devsound  			Close
  4420 		COMMAND		devsound  			~
  4421 	END_TEST_BLOCK	 
  4422 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7022
  4423 
  4424 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7023
  4425 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7023
  4426 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  4427 //! @SYMAuthor			Vassili Tsvetkov
  4428 //! @SYMCreationDate		15/06/2008
  4429 //! @SYMTestCaseDesc		Play audio with minimal buffer size supported in PCM16
  4430 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4431 //!				2. Call SetPlayFormat() with [set_settings_pcm16_mono_8khz_32kb_min_buffer]
  4432 //!				3. Call PlayData() with valid sound data from [pcm16_mono_8khz_32kb.raw]
  4433 //!				4. Call Close()
  4434 //! @SYMTestStatus		Implemented
  4435 //! @SYMTestPriority		Critical
  4436 //! @SYMTestExpectedResults	Audio is played without any errors
  4437 //!
  4438 //! @SYMTestType		CIT
  4439 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4440 		CREATE_OBJECT	RMdaDevSound			devsound  
  4441 		COMMAND		devsound			new
  4442 		COMMAND		devsound			Open			UnitEnum
  4443 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4444 		COMMAND		t_format			new			
  4445 		COMMAND		t_format			irate_set		set_settings_pcm16_mono_8khz_32kb_min_buffer
  4446 		COMMAND		t_format			iencoding_set		set_settings_pcm16_mono_8khz_32kb_min_buffer
  4447 		COMMAND		t_format			ichannels_set		set_settings_pcm16_mono_8khz_32kb_min_buffer
  4448 		COMMAND		t_format			ibuffer_size_set	set_settings_pcm16_mono_8khz_32kb_min_buffer
  4449 		COMMAND		devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  4450 		COMMAND		devsound  			PlayData		pcm16_mono_8khz_32kb.raw
  4451 		OUTSTANDING
  4452 		COMMAND		t_format			~
  4453 		COMMAND		devsound  			Close
  4454 		COMMAND		devsound  			~
  4455 	END_TEST_BLOCK		 
  4456 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7023
  4457 
  4458 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7024
  4459 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7024
  4460 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  4461 //! @SYMAuthor			Vassili Tsvetkov
  4462 //! @SYMCreationDate		15/06/2008
  4463 //! @SYMTestCaseDesc		Play audio with max buffer size supported in PCM16
  4464 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4465 //!				2. Call SetPlayFormat() with [set_settings_pcm16_mono_8khz_32kb_max_buffer]
  4466 //!				3. Call PlayData() with valid sound data from [pcm16_mono_8khz_32kb.raw]
  4467 //!				4. Call Close()
  4468 //! @SYMTestStatus		Implemented
  4469 //! @SYMTestPriority		Critical
  4470 //! @SYMTestExpectedResults	Audio is played without any errors
  4471 //!
  4472 //! @SYMTestType		CIT
  4473 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4474 		CREATE_OBJECT	RMdaDevSound			devsound  
  4475 		COMMAND		devsound			new
  4476 		COMMAND		devsound			Open			UnitEnum
  4477 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4478 		COMMAND		t_format			new			
  4479 		COMMAND		t_format			irate_set		set_settings_pcm16_mono_8khz_32kb_max_buffer
  4480 		COMMAND		t_format			iencoding_set		set_settings_pcm16_mono_8khz_32kb_max_buffer
  4481 		COMMAND		t_format			ichannels_set		set_settings_pcm16_mono_8khz_32kb_max_buffer
  4482 		COMMAND		t_format			ibuffer_size_set	set_settings_pcm16_mono_8khz_32kb_max_buffer
  4483 		COMMAND		devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  4484 		COMMAND		devsound  			PlayData		pcm16_mono_8khz_32kb.raw
  4485 		OUTSTANDING
  4486 		COMMAND		t_format			~
  4487 		COMMAND		devsound  			Close
  4488 		COMMAND		devsound  			~
  4489 	END_TEST_BLOCK		 
  4490 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7024
  4491 
  4492 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7025
  4493 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7025
  4494 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  4495 //! @SYMAuthor			Vassili Tsvetkov
  4496 //! @SYMCreationDate		15/06/2008
  4497 //! @SYMTestCaseDesc		Play audio with minimal buffer size supported in ALaw
  4498 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4499 //!				2. Call SetPlayFormat() with [set_settings_alaw8bit_mono_8khz_min_buffer]
  4500 //!				3. Call PlayData() with valid sound data from [alaw8bit_mono_8khz_32kb.raw]
  4501 //!				4. Call Close()
  4502 //! @SYMTestStatus		Implemented
  4503 //! @SYMTestPriority		Critical
  4504 //! @SYMTestExpectedResults	Audio is played without any errors
  4505 //!
  4506 //! @SYMTestType		CIT
  4507 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4508 		CREATE_OBJECT	RMdaDevSound			devsound  
  4509 		COMMAND		devsound			new
  4510 		COMMAND		devsound			Open			UnitEnum
  4511 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4512 		COMMAND		t_format			new			
  4513 		COMMAND		t_format			irate_set		set_settings_alaw8bit_mono_8khz_min_buffer
  4514 		COMMAND		t_format			iencoding_set		set_settings_alaw8bit_mono_8khz_min_buffer
  4515 		COMMAND		t_format			ichannels_set		set_settings_alaw8bit_mono_8khz_min_buffer
  4516 		COMMAND		t_format			ibuffer_size_set	set_settings_alaw8bit_mono_8khz_min_buffer
  4517 		COMMAND		devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  4518 		COMMAND		devsound  			PlayData		alaw8bit_mono_8khz_32kb.raw
  4519 		OUTSTANDING
  4520 		COMMAND		t_format			~
  4521 		COMMAND		devsound  			Close
  4522 		COMMAND		devsound  			~
  4523 	END_TEST_BLOCK	 
  4524 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7025
  4525 
  4526 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7026
  4527 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7026
  4528 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  4529 //! @SYMAuthor			Vassili Tsvetkov
  4530 //! @SYMCreationDate		15/06/2008
  4531 //! @SYMTestCaseDesc		Play audio with max buffer size supported in ALaw
  4532 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4533 //!				2. Call SetPlayFormat() with [set_settings_alaw8bit_mono_8khz_max_buffer]
  4534 //!				3. Call PlayData() with valid sound data from [alaw8bit_mono_8khz_32kb.raw]
  4535 //!				4. Call Close()
  4536 //! @SYMTestStatus		Implemented
  4537 //! @SYMTestPriority		Critical
  4538 //! @SYMTestExpectedResults	Audio is played without any errors
  4539 //!
  4540 //! @SYMTestType		CIT
  4541 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4542 		CREATE_OBJECT	RMdaDevSound			devsound  
  4543 		COMMAND		devsound			new
  4544 		COMMAND		devsound			Open			UnitEnum
  4545 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4546 		COMMAND		t_format			new			
  4547 		COMMAND		t_format			irate_set		set_settings_alaw8bit_mono_8khz_max_buffer
  4548 		COMMAND		t_format			iencoding_set		set_settings_alaw8bit_mono_8khz_max_buffer
  4549 		COMMAND		t_format			ichannels_set		set_settings_alaw8bit_mono_8khz_max_buffer
  4550 		COMMAND		t_format			ibuffer_size_set	set_settings_alaw8bit_mono_8khz_max_buffer
  4551 		COMMAND		devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  4552 		COMMAND		devsound  			PlayData		alaw8bit_mono_8khz_32kb.raw
  4553 		OUTSTANDING
  4554 		COMMAND		t_format			~
  4555 		COMMAND		devsound  			Close
  4556 		COMMAND		devsound  			~
  4557 	END_TEST_BLOCK		 
  4558 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7026
  4559 
  4560 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7027
  4561 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7027
  4562 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  4563 //! @SYMAuthor			Vassili Tsvetkov
  4564 //! @SYMCreationDate		15/06/2008
  4565 //! @SYMTestCaseDesc		Play audio with minimal buffer size supported in MuLaw
  4566 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4567 //!				2. Call SetPlayFormat() with [set_settings_mulaw8bit_mono_12khz_min_buffer]
  4568 //!				3. Call PlayData() with valid sound data from [mulaw8bit_mono_12khz_32kb.raw]
  4569 //!				4. Call Close()
  4570 //! @SYMTestStatus		Implemented
  4571 //! @SYMTestPriority		Critical
  4572 //! @SYMTestExpectedResults	Audio is played without any errors
  4573 //!
  4574 //! @SYMTestType		CIT
  4575 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4576 		CREATE_OBJECT	RMdaDevSound			devsound  
  4577 		COMMAND		devsound			new
  4578 		COMMAND		devsound			Open			UnitEnum
  4579 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4580 		COMMAND		t_format			new			
  4581 		COMMAND		t_format			irate_set		set_settings_mulaw8bit_mono_12khz_min_buffer
  4582 		COMMAND		t_format			iencoding_set		set_settings_mulaw8bit_mono_12khz_min_buffer
  4583 		COMMAND		t_format			ichannels_set		set_settings_mulaw8bit_mono_12khz_min_buffer
  4584 		COMMAND		t_format			ibuffer_size_set	set_settings_mulaw8bit_mono_12khz_min_buffer
  4585 		COMMAND		devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  4586 		COMMAND		devsound  			PlayData		mulaw8bit_mono_12khz_32kb.raw
  4587 		OUTSTANDING
  4588 		COMMAND		t_format			~
  4589 		COMMAND		devsound  			Close
  4590 		COMMAND		devsound  			~
  4591 	END_TEST_BLOCK		 
  4592 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7027
  4593 
  4594 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7028
  4595 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7028
  4596 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  4597 //! @SYMAuthor			Vassili Tsvetkov
  4598 //! @SYMCreationDate		15/06/2008
  4599 //! @SYMTestCaseDesc		Play audio with max buffer size supported in MuLaw
  4600 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4601 //!				2. Call SetPlayFormat() with [set_settings_mulaw8bit_mono_12khz_max_buffer]
  4602 //!				3. Call PlayData() with valid sound data from [mulaw8bit_mono_12khz_32kb.raw]
  4603 //!				4. Call Close()
  4604 //! @SYMTestStatus		Implemented
  4605 //! @SYMTestPriority		Critical
  4606 //! @SYMTestExpectedResults	Audio is played without any errors
  4607 //!
  4608 //! @SYMTestType		CIT
  4609 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4610 		CREATE_OBJECT	RMdaDevSound			devsound  
  4611 		COMMAND		devsound			new
  4612 		COMMAND		devsound			Open			UnitEnum
  4613 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4614 		COMMAND		t_format			new			
  4615 		COMMAND		t_format			irate_set		set_settings_mulaw8bit_mono_12khz_max_buffer
  4616 		COMMAND		t_format			iencoding_set		set_settings_mulaw8bit_mono_12khz_max_buffer
  4617 		COMMAND		t_format			ichannels_set		set_settings_mulaw8bit_mono_12khz_max_buffer
  4618 		COMMAND		t_format			ibuffer_size_set	set_settings_mulaw8bit_mono_12khz_max_buffer
  4619 		COMMAND		devsound			SetPlayFormat		BSP-SOUND-DRIVER-SetPlayFormat
  4620 		COMMAND		devsound  			PlayData		mulaw8bit_mono_12khz_32kb.raw
  4621 		OUTSTANDING
  4622 		COMMAND		t_format			~
  4623 		COMMAND		devsound  			Close
  4624 		COMMAND		devsound  			~
  4625 	END_TEST_BLOCK		 
  4626 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7028
  4627 
  4628 /////////////////////////////////////////////
  4629 // Recording with different buffer size
  4630 /////////////////////////////////////////////
  4631 
  4632 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7031
  4633 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7031
  4634 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  4635 //! @SYMAuthor			Vassili Tsvetkov
  4636 //! @SYMCreationDate		15/06/2008
  4637 //! @SYMTestCaseDesc		Record audio with minimal buffer size supported in PCM8
  4638 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4639 //!				2. Call SetRecordFormat() with [set_settings_pcm8_mono_8khz_32kb_min_buffer_recording]
  4640 //!				3. Call RecordData()
  4641 //!				4. Call Close()
  4642 //! @SYMTestStatus		Implemented
  4643 //! @SYMTestPriority		Critical
  4644 //! @SYMTestExpectedResults	Audio is recorded without any errors
  4645 //!
  4646 //! @SYMTestType		CIT
  4647 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4648 		CREATE_OBJECT	RMdaDevSound			devsound  
  4649 		COMMAND		devsound			new
  4650 		COMMAND		devsound			Open			UnitEnum
  4651 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4652 		COMMAND		t_format			new			
  4653 		COMMAND		t_format			irate_set		set_settings_pcm8_mono_8khz_32kb_min_buffer_recording
  4654 		COMMAND		t_format			iencoding_set		set_settings_pcm8_mono_8khz_32kb_min_buffer_recording
  4655 		COMMAND		t_format			ichannels_set		set_settings_pcm8_mono_8khz_32kb_min_buffer_recording
  4656 		COMMAND		t_format			ibuffer_size_set	set_settings_pcm8_mono_8khz_32kb_min_buffer_recording
  4657 		COMMAND		devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  4658 		COMMAND		devsound  			RecordData		record_data_32kb
  4659 		OUTSTANDING
  4660 		COMMAND		t_format			~
  4661 		COMMAND		devsound  			Close
  4662 		COMMAND		devsound  			~
  4663 	END_TEST_BLOCK	 
  4664 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7031
  4665 
  4666 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7032
  4667 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7032
  4668 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  4669 //! @SYMAuthor			Vassili Tsvetkov
  4670 //! @SYMCreationDate		15/06/2008
  4671 //! @SYMTestCaseDesc		Record audio with max buffer size supported in PCM8
  4672 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4673 //!				2. Call SetRecordFormat() with [set_settings_pcm8_mono_8khz_32kb_max_buffer_recording]
  4674 //!				3. Call RecordData()
  4675 //!				4. Call Close()
  4676 //! @SYMTestStatus		Implemented
  4677 //! @SYMTestPriority		Critical
  4678 //! @SYMTestExpectedResults	Audio is recorded without any errors
  4679 //!
  4680 //! @SYMTestType		CIT
  4681 	START_TEST_BLOCK	1000				t_sound			\base\sound\base-bsp-sound-driver.ini
  4682 		CREATE_OBJECT	RMdaDevSound			devsound  
  4683 		COMMAND		devsound			new
  4684 		COMMAND		devsound			Open			UnitEnum
  4685 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4686 		COMMAND		t_format			new			
  4687 		COMMAND		t_format			irate_set		set_settings_pcm8_mono_8khz_32kb_max_buffer_recording
  4688 		COMMAND		t_format			iencoding_set		set_settings_pcm8_mono_8khz_32kb_max_buffer_recording
  4689 		COMMAND		t_format			ichannels_set		set_settings_pcm8_mono_8khz_32kb_max_buffer_recording
  4690 		COMMAND		t_format			ibuffer_size_set	set_settings_pcm8_mono_8khz_32kb_max_buffer_recording
  4691 		COMMAND		devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  4692 		COMMAND		devsound  			RecordData		record_data_32kb
  4693 		OUTSTANDING
  4694 		COMMAND		t_format			~
  4695 		COMMAND		devsound  			Close
  4696 		COMMAND		devsound  			~
  4697 	END_TEST_BLOCK	 
  4698 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7032
  4699 
  4700 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7033
  4701 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7033
  4702 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  4703 //! @SYMAuthor			Vassili Tsvetkov
  4704 //! @SYMCreationDate		15/06/2008
  4705 //! @SYMTestCaseDesc		Record audio with minimal buffer size supported in PCM16
  4706 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4707 //!				2. Call SetRecordFormat() with [set_settings_pcm16_mono_8khz_32kb_min_buffer_recording]
  4708 //!				3. Call RecordData()
  4709 //!				4. Call Close()
  4710 //! @SYMTestStatus		Implemented
  4711 //! @SYMTestPriority		Critical
  4712 //! @SYMTestExpectedResults	Audio is recorded without any errors
  4713 //!
  4714 //! @SYMTestType		CIT
  4715 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4716 		CREATE_OBJECT	RMdaDevSound			devsound  
  4717 		COMMAND		devsound			new
  4718 		COMMAND		devsound			Open			UnitEnum
  4719 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4720 		COMMAND		t_format			new			
  4721 		COMMAND		t_format			irate_set		set_settings_pcm16_mono_8khz_32kb_min_buffer_recording
  4722 		COMMAND		t_format			iencoding_set		set_settings_pcm16_mono_8khz_32kb_min_buffer_recording
  4723 		COMMAND		t_format			ichannels_set		set_settings_pcm16_mono_8khz_32kb_min_buffer_recording
  4724 		COMMAND		t_format			ibuffer_size_set	set_settings_pcm16_mono_8khz_32kb_min_buffer_recording
  4725 		COMMAND		devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  4726 		COMMAND		devsound  			RecordData		record_data_32kb
  4727 		OUTSTANDING
  4728 		COMMAND		t_format			~
  4729 		COMMAND		devsound  			Close
  4730 		COMMAND		devsound  			~
  4731 	END_TEST_BLOCK	 
  4732 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7033
  4733 
  4734 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7034
  4735 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7034
  4736 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  4737 //! @SYMAuthor			Vassili Tsvetkov
  4738 //! @SYMCreationDate		15/06/2008
  4739 //! @SYMTestCaseDesc		Record audio with max buffer size supported in PCM16
  4740 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4741 //!				2. Call SetRecordFormat() with [set_settings_pcm16_mono_8khz_32kb_max_buffer_recording]
  4742 //!				3. Call RecordData()
  4743 //!				4. Call Close()
  4744 //! @SYMTestStatus		Implemented
  4745 //! @SYMTestPriority		Critical
  4746 //! @SYMTestExpectedResults	Audio is recorded without any errors
  4747 //!
  4748 //! @SYMTestType		CIT
  4749 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4750 		CREATE_OBJECT	RMdaDevSound			devsound  
  4751 		COMMAND		devsound			new
  4752 		COMMAND		devsound			Open			UnitEnum
  4753 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4754 		COMMAND		t_format			new			
  4755 		COMMAND		t_format			irate_set		set_settings_pcm16_mono_8khz_32kb_max_buffer_recording
  4756 		COMMAND		t_format			iencoding_set		set_settings_pcm16_mono_8khz_32kb_max_buffer_recording
  4757 		COMMAND		t_format			ichannels_set		set_settings_pcm16_mono_8khz_32kb_max_buffer_recording
  4758 		COMMAND		t_format			ibuffer_size_set	set_settings_pcm16_mono_8khz_32kb_max_buffer_recording
  4759 		COMMAND		devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  4760 		COMMAND		devsound  			RecordData		record_data_32kb
  4761 		OUTSTANDING
  4762 		COMMAND		t_format			~
  4763 		COMMAND		devsound  			Close
  4764 		COMMAND		devsound  			~
  4765 	END_TEST_BLOCK	 
  4766 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7034
  4767 
  4768 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7035
  4769 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7035
  4770 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  4771 //! @SYMAuthor			Vassili Tsvetkov
  4772 //! @SYMCreationDate		15/06/2008
  4773 //! @SYMTestCaseDesc		Record audio with minimal buffer size supported in ALaw
  4774 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4775 //!				2. Call SetRecordFormat() with [set_settings_alaw8bit_mono_8khz_min_buffer_recording]
  4776 //!				3. Call RecordData()
  4777 //!				4. Call Close()
  4778 //! @SYMTestStatus		Implemented
  4779 //! @SYMTestPriority		Critical
  4780 //! @SYMTestExpectedResults	Audio is recorded without any errors
  4781 //!
  4782 //! @SYMTestType		CIT
  4783 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4784 		CREATE_OBJECT	RMdaDevSound			devsound  
  4785 		COMMAND		devsound			new
  4786 		COMMAND		devsound			Open			UnitEnum
  4787 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4788 		COMMAND		t_format			new			
  4789 		COMMAND		t_format			irate_set		set_settings_alaw8bit_mono_8khz_min_buffer_recording
  4790 		COMMAND		t_format			iencoding_set		set_settings_alaw8bit_mono_8khz_min_buffer_recording
  4791 		COMMAND		t_format			ichannels_set		set_settings_alaw8bit_mono_8khz_min_buffer_recording
  4792 		COMMAND		t_format			ibuffer_size_set	set_settings_alaw8bit_mono_8khz_min_buffer_recording
  4793 		COMMAND		devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  4794 		COMMAND		devsound  			RecordData		record_data_32kb
  4795 		OUTSTANDING
  4796 		COMMAND		t_format			~
  4797 		COMMAND		devsound  			Close
  4798 		COMMAND		devsound  			~
  4799 	END_TEST_BLOCK	 
  4800 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7035
  4801 
  4802 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7036
  4803 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7036
  4804 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  4805 //! @SYMAuthor			Vassili Tsvetkov
  4806 //! @SYMCreationDate		15/06/2008
  4807 //! @SYMTestCaseDesc		Record audio with max buffer size supported in ALaw
  4808 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4809 //!				2. Call SetRecordFormat() with [set_settings_alaw8bit_mono_8khz_max_buffer_recording]
  4810 //!				3. Call RecordData()
  4811 //!				4. Call Close()
  4812 //! @SYMTestStatus		Implemented
  4813 //! @SYMTestPriority		Critical
  4814 //! @SYMTestExpectedResults	Audio is recorded without any errors
  4815 //!
  4816 //! @SYMTestType		CIT
  4817 	START_TEST_BLOCK	1000				t_sound			\base\sound\base-bsp-sound-driver.ini
  4818 		CREATE_OBJECT	RMdaDevSound			devsound  
  4819 		COMMAND		devsound			new
  4820 		COMMAND		devsound			Open			UnitEnum
  4821 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4822 		COMMAND		t_format			new			
  4823 		COMMAND		t_format			irate_set		set_settings_alaw8bit_mono_8khz_max_buffer_recording
  4824 		COMMAND		t_format			iencoding_set		set_settings_alaw8bit_mono_8khz_max_buffer_recording
  4825 		COMMAND		t_format			ichannels_set		set_settings_alaw8bit_mono_8khz_max_buffer_recording
  4826 		COMMAND		t_format			ibuffer_size_set	set_settings_alaw8bit_mono_8khz_max_buffer_recording
  4827 		COMMAND		devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  4828 		COMMAND		devsound  			RecordData		record_data_32kb
  4829 		OUTSTANDING
  4830 		COMMAND		t_format			~
  4831 		COMMAND		devsound  			Close
  4832 		COMMAND		devsound  			~
  4833 	END_TEST_BLOCK	 
  4834 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7036
  4835 
  4836 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7037
  4837 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7037
  4838 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  4839 //! @SYMAuthor			Vassili Tsvetkov
  4840 //! @SYMCreationDate		15/06/2008
  4841 //! @SYMTestCaseDesc		Record audio with minimal buffer size supported in MuLaw
  4842 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4843 //!				2. Call SetRecordFormat() with [set_settings_mulaw8bit_mono_12khz_min_buffer_recording]
  4844 //!				3. Call RecordData()
  4845 //!				4. Call Close()
  4846 //! @SYMTestStatus		Implemented
  4847 //! @SYMTestPriority		Critical
  4848 //! @SYMTestExpectedResults	Audio is recorded without any errors
  4849 //!
  4850 //! @SYMTestType		CIT
  4851 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4852 		CREATE_OBJECT	RMdaDevSound			devsound  
  4853 		COMMAND		devsound			new
  4854 		COMMAND		devsound			Open			UnitEnum
  4855 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4856 		COMMAND		t_format			new			
  4857 		COMMAND		t_format			irate_set		set_settings_mulaw8bit_mono_12khz_min_buffer_recording
  4858 		COMMAND		t_format			iencoding_set		set_settings_mulaw8bit_mono_12khz_min_buffer_recording
  4859 		COMMAND		t_format			ichannels_set		set_settings_mulaw8bit_mono_12khz_min_buffer_recording
  4860 		COMMAND		t_format			ibuffer_size_set	set_settings_mulaw8bit_mono_12khz_min_buffer_recording
  4861 		COMMAND		devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  4862 		COMMAND		devsound  			RecordData		record_data_32kb
  4863 		OUTSTANDING
  4864 		COMMAND		t_format			~
  4865 		COMMAND		devsound  			Close
  4866 		COMMAND		devsound  			~
  4867 	END_TEST_BLOCK	 
  4868 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7037
  4869 
  4870 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7038
  4871 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7038
  4872 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  4873 //! @SYMAuthor			Vassili Tsvetkov
  4874 //! @SYMCreationDate		15/06/2008
  4875 //! @SYMTestCaseDesc		Record audio with max buffer size supported in MuLaw
  4876 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4877 //!				2. Call SetRecordFormat() with [set_settings_mulaw8bit_mono_12khz_max_buffer_recording]
  4878 //!				3. Call RecordData()
  4879 //!				4. Call Close()
  4880 //! @SYMTestStatus		Implemented
  4881 //! @SYMTestPriority		Critical
  4882 //! @SYMTestExpectedResults	Audio is recorded without any errors
  4883 //!
  4884 //! @SYMTestType		CIT
  4885 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4886 		CREATE_OBJECT	RMdaDevSound			devsound  
  4887 		COMMAND		devsound			new
  4888 		COMMAND		devsound			Open			UnitEnum
  4889 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4890 		COMMAND		t_format			new			
  4891 		COMMAND		t_format			irate_set		set_settings_mulaw8bit_mono_12khz_max_buffer_recording
  4892 		COMMAND		t_format			iencoding_set		set_settings_mulaw8bit_mono_12khz_max_buffer_recording
  4893 		COMMAND		t_format			ichannels_set		set_settings_mulaw8bit_mono_12khz_max_buffer_recording
  4894 		COMMAND		t_format			ibuffer_size_set	set_settings_mulaw8bit_mono_12khz_max_buffer_recording
  4895 		COMMAND		devsound			SetRecordFormat		BSP-SOUND-DRIVER-SetRecordFormat
  4896 		COMMAND		devsound  			RecordData		record_data_32kb
  4897 		OUTSTANDING
  4898 		COMMAND		t_format			~
  4899 		COMMAND		devsound  			Close
  4900 		COMMAND		devsound  			~
  4901 	END_TEST_BLOCK		 
  4902 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7038
  4903 
  4904 /////////////////////////////////////////////
  4905 // Playback and Recording
  4906 /////////////////////////////////////////////
  4907 
  4908 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7044
  4909 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7044
  4910 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  4911 //! @SYMAuthor			Vassili Tsvetkov
  4912 //! @SYMCreationDate		15/06/2008
  4913 //! @SYMTestCaseDesc		Call PlayData() twice on the same device when audio is still playing
  4914 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4915 //!				2. Call GetPlayFormat() and verify from [default_play_format]
  4916 //!				3. Call PlayData() with valid sound data from [default_file]
  4917 //!				4. Call PlayData() with valid sound data from [default_file] when audio is still playing
  4918 //!				5. Call Close()
  4919 //! @SYMTestStatus		Implemented
  4920 //! @SYMTestPriority		Critical
  4921 //! @SYMTestExpectedResults	PlayData() in step 3 completes with KErrNone and PlayData() in step 4 completes with KERN-EXEC 9
  4922 //!
  4923 //! @SYMTestType		CIT
  4924 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4925 		CREATE_OBJECT	RMdaDevSound			devsound  
  4926 		COMMAND		devsound			new
  4927 		COMMAND		devsound			Open			UnitEnum
  4928 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4929 		COMMAND		t_format			new			
  4930 		COMMAND		devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  4931 		//!verify default play configuration			
  4932 		COMMAND		t_format			irate_get		default_play_format
  4933 		COMMAND		t_format			iencoding_get		default_play_format
  4934 		COMMAND		t_format			ichannels_get		default_play_format
  4935 		COMMAND		t_format			ibuffer_size_get	default_play_format
  4936 		COMMAND		devsound			PlayData		default_file
  4937 		COMMAND		devsound			PlayData		default_file
  4938 		OUTSTANDING
  4939 		COMMAND		t_format			~
  4940 		COMMAND		devsound  			Close
  4941 		COMMAND		devsound  			~
  4942 	END_TEST_BLOCK	!PanicCode=9 !PanicString=KERN-EXEC
  4943 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7044
  4944 
  4945 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7045
  4946 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7045
  4947 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref})
  4948 //! @SYMAuthor			Vassili Tsvetkov
  4949 //! @SYMCreationDate		15/06/2008
  4950 //! @SYMTestCaseDesc		Call RecordData() twice on the same device when audio is still recording
  4951 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4952 //!				2. Call GetRecordFormat() and verify from [default_record_format]
  4953 //!				3. Call RecordData()
  4954 //!				4. Call RecordData() when audio is still recording
  4955 //!				5. Call Close()
  4956 //! @SYMTestStatus		Implemented
  4957 //! @SYMTestPriority		Critical
  4958 //! @SYMTestExpectedResults	RecordData() in step 3 completes with KErrNone and RecordData() in step 4 completes with KERN-EXEC 9
  4959 //!
  4960 //! @SYMTestType		CIT
  4961 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  4962 		CREATE_OBJECT	RMdaDevSound			devsound  
  4963 		COMMAND		devsound			new
  4964 		COMMAND		devsound			Open			UnitEnum
  4965 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  4966 		COMMAND		t_format			new			
  4967 		COMMAND		devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  4968 		//!verify default record configuration			
  4969 		COMMAND		t_format			irate_get		default_record_format
  4970 		COMMAND		t_format			iencoding_get		default_record_format
  4971 		COMMAND		t_format			ichannels_get		default_record_format
  4972 		COMMAND		t_format			ibuffer_size_get	default_record_format
  4973 		COMMAND		devsound			RecordData		record_data_32kb
  4974 		COMMAND		devsound			RecordData		record_data_32kb
  4975 		OUTSTANDING
  4976 		COMMAND			devsound			FlushRecordBuffer
  4977 		COMMAND		t_format			~
  4978 		COMMAND		devsound  			Close
  4979 		COMMAND		devsound  			~
  4980 	END_TEST_BLOCK	 !PanicCode=9 !PanicString=KERN-EXEC
  4981 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7045
  4982 
  4983 /////////////////////////////////////////////
  4984 // Multiple server sessions
  4985 /////////////////////////////////////////////
  4986 
  4987 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7061
  4988 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7061
  4989 //! @SYMAPI			RMdaDevSound::Open(TInt)
  4990 //! @SYMAuthor			Vassili Tsvetkov
  4991 //! @SYMCreationDate		15/06/2008
  4992 //! @SYMTestCaseDesc		Call Open() twice
  4993 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  4994 //!				2. Call Open() with unit [UnitEnum]
  4995 //!				3. Call Close()
  4996 //! @SYMTestStatus		Implemented
  4997 //! @SYMTestPriority		Critical
  4998 //! @SYMTestExpectedResults	Open() on step 1 completes without errors, Open() on step 2 raises KErrInUse (-14)
  4999 //!
  5000 //! @SYMTestType		CIT
  5001 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5002 		CREATE_OBJECT	RMdaDevSound			devsound  
  5003 		COMMAND		devsound			new
  5004 		COMMAND		devsound			Open			UnitEnum
  5005 		CREATE_OBJECT	RMdaDevSound			devsound1  
  5006 		COMMAND		devsound1			new
  5007 		COMMAND	!Error=-14	devsound1			Open			UnitEnum
  5008 		COMMAND		devsound1  			Close
  5009 		COMMAND		devsound1  			~
  5010 		COMMAND		devsound  			Close
  5011 		COMMAND		devsound  			~
  5012 	END_TEST_BLOCK	 
  5013 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7061
  5014 
  5015 /////////////////////////////////////////////
  5016 // Notification tests
  5017 /////////////////////////////////////////////
  5018 
  5019 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7071
  5020 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7071
  5021 //! @SYMAPI			RMdaDevSound::NotifyPlayError(TRequestStatus {ref})
  5022 //! @SYMAuthor			Vassili Tsvetkov
  5023 //! @SYMCreationDate		15/06/2008
  5024 //! @SYMTestCaseDesc		Call NotifyPlayError() twice
  5025 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5026 //!				2. Call NotifyPlayError()
  5027 //!				3. Call NotifyPlayError()
  5028 //!				4. Call Close()
  5029 //! @SYMTestStatus		Implemented
  5030 //! @SYMTestPriority		Critical
  5031 //! @SYMTestExpectedResults	NotifyPlayError() in steps 3 raises panics KERN-EXEC 9
  5032 //!
  5033 //! @SYMTestType		CIT
  5034 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5035 		CREATE_OBJECT	RMdaDevSound			devsound  
  5036 		COMMAND		devsound			new
  5037 		COMMAND		devsound			Open			UnitEnum
  5038 		COMMAND		devsound			NotifyPlayError
  5039 		COMMAND		devsound			NotifyPlayError
  5040 		OUTSTANDING
  5041 		COMMAND		devsound  			Close
  5042 		COMMAND		devsound  			~
  5043 	END_TEST_BLOCK	!PanicCode=9 !PanicString=KERN-EXEC
  5044 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7071
  5045 
  5046 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7072
  5047 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7072
  5048 //! @SYMAPI			RMdaDevSound::NotifyPlayError(TRequestStatus {ref});
  5049 //!				RMdaDevSound::CancelNotifyPlayError()
  5050 //! @SYMAuthor			Vassili Tsvetkov
  5051 //! @SYMCreationDate		15/06/2008
  5052 //! @SYMTestCaseDesc		Call CancelNotifyPlayError() twice while PlayData() is executed
  5053 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5054 //!				2. Call NotifyPlayError()
  5055 //!				3. Call GetPlayFormat() and verify from [default_play_format]
  5056 //!				4. Call PlayData() with [default_file]
  5057 //!				5. Call CancelNotifyPlayError()
  5058 //!				6. Call CancelNotifyPlayError()
  5059 //!				7. Call Close()
  5060 //! @SYMTestStatus		Implemented
  5061 //! @SYMTestPriority		Critical
  5062 //! @SYMTestExpectedResults	NotifyPlayError() in step 2 completes with KErrCancel, CancelNotifyPlayError() in steps 5-6 complete without error
  5063 //!
  5064 //! @SYMTestType		CIT
  5065 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5066 		CREATE_OBJECT	RMdaDevSound			devsound  
  5067 		COMMAND		devsound			new
  5068 		COMMAND		devsound			Open			UnitEnum
  5069 		COMMAND	!AsyncError=-3	devsound			NotifyPlayError
  5070 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  5071 		COMMAND		t_format			new			
  5072 		COMMAND		devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  5073 		//!verify default play configuration			
  5074 		COMMAND		t_format			irate_get		default_play_format
  5075 		COMMAND		t_format			iencoding_get		default_play_format
  5076 		COMMAND		t_format			ichannels_get		default_play_format
  5077 		COMMAND		t_format			ibuffer_size_get	default_play_format
  5078 		COMMAND		devsound			PlayData		default_file
  5079 		COMMAND		devsound			CancelNotifyPlayError
  5080 		COMMAND		devsound			CancelNotifyPlayError
  5081 		OUTSTANDING
  5082 		COMMAND		t_format			~
  5083 		COMMAND		devsound  			Close
  5084 		COMMAND		devsound  			~
  5085 	END_TEST_BLOCK	 
  5086 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7072
  5087 
  5088 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7073
  5089 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7073
  5090 //! @SYMAPI			RMdaDevSound::NotifyPlayError(TRequestStatus {ref});
  5091 //!				RMdaDevSound::CancelNotifyPlayError()
  5092 //! @SYMAuthor			Vassili Tsvetkov
  5093 //! @SYMCreationDate		15/06/2008
  5094 //! @SYMTestCaseDesc		Call CancelNotifyPlayError() twice after PlayData() is executed
  5095 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5096 //!				2. Call NotifyPlayError()
  5097 //!				3. Call GetPlayFormat() and verify from [default_play_format]
  5098 //!				4. Call PlayData() with [default_file]
  5099 //!				5. Call CancelNotifyPlayError()
  5100 //!				6. Call CancelNotifyPlayError()
  5101 //!				7. Call Close()
  5102 //! @SYMTestStatus		Implemented
  5103 //! @SYMTestPriority		Critical
  5104 //! @SYMTestExpectedResults	NotifyPlayError() in step 2 completes with KErrCancel, CancelNotifyPlayError() in steps 5-6 complete without error
  5105 //!
  5106 //! @SYMTestType		CIT
  5107 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5108 		CREATE_OBJECT	RMdaDevSound			devsound  
  5109 		COMMAND		devsound			new
  5110 		COMMAND		devsound			Open			UnitEnum
  5111 		COMMAND	!AsyncError=-3	devsound			NotifyPlayError
  5112 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  5113 		COMMAND		t_format			new			
  5114 		COMMAND		devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  5115 		//!verify default play configuration			
  5116 		COMMAND		t_format			irate_get		default_play_format
  5117 		COMMAND		t_format			iencoding_get		default_play_format
  5118 		COMMAND		t_format			ichannels_get		default_play_format
  5119 		COMMAND		t_format			ibuffer_size_get	default_play_format
  5120 		COMMAND		devsound			PlayData		default_file
  5121 		ASYNC_DELAY	5000
  5122 		COMMAND		devsound			CancelNotifyPlayError
  5123 		COMMAND		devsound			CancelNotifyPlayError
  5124 		OUTSTANDING
  5125 		COMMAND		t_format			~
  5126 		COMMAND		devsound  			Close
  5127 		COMMAND		devsound  			~
  5128 	END_TEST_BLOCK	 
  5129 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7073
  5130 
  5131 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7074
  5132 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7074
  5133 //! @SYMAPI			RMdaDevSound::NotifyPlayError(TRequestStatus {ref});
  5134 //!				RMdaDevSound::CancelNotifyPlayError()
  5135 //! @SYMAuthor			Vassili Tsvetkov
  5136 //! @SYMCreationDate		15/06/2008
  5137 //! @SYMTestCaseDesc		Call CancelNotifyPlayError() twice without PlayData() executed
  5138 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5139 //!				2. Call NotifyPlayError()
  5140 //!				3. Call CancelNotifyPlayError()
  5141 //!				4. Call CancelNotifyPlayError()
  5142 //!				5. Call Close()
  5143 //! @SYMTestStatus		Implemented
  5144 //! @SYMTestPriority		Critical
  5145 //! @SYMTestExpectedResults	NotifyPlayError() in step 2 completes with KErrCancel, CancelNotifyPlayError() in steps 3-4 complete without error
  5146 //!
  5147 //! @SYMTestType		CIT
  5148 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5149 		CREATE_OBJECT	RMdaDevSound			devsound  
  5150 		COMMAND		devsound			new
  5151 		COMMAND		devsound			Open			UnitEnum
  5152 		COMMAND	!AsyncError=-3	devsound		NotifyPlayError
  5153 		ASYNC_DELAY	5000
  5154 		COMMAND		devsound			CancelNotifyPlayError
  5155 		COMMAND		devsound			CancelNotifyPlayError
  5156 		OUTSTANDING
  5157 		COMMAND		devsound  			Close
  5158 		COMMAND		devsound  			~
  5159 	END_TEST_BLOCK	 
  5160 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7074
  5161 
  5162 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7075
  5163 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7075
  5164 //! @SYMAPI			RMdaDevSound::NotifyPlayError(TRequestStatus {ref});
  5165 //!				RMdaDevSound::CancelNotifyPlayError()
  5166 //! @SYMAuthor			Vassili Tsvetkov
  5167 //! @SYMCreationDate		15/06/2008
  5168 //! @SYMTestCaseDesc		Call CancelNotifyPlayError() twice without NotifyPlayError() executed
  5169 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5170 //!				2. Call CancelNotifyPlayError()
  5171 //!				3. Call CancelNotifyPlayError()
  5172 //!				4. Call Close()
  5173 //! @SYMTestStatus		Implemented
  5174 //! @SYMTestPriority		Critical
  5175 //! @SYMTestExpectedResults	CancelNotifyPlayError() in steps 2-3 complete without error
  5176 //!
  5177 //! @SYMTestType		CIT
  5178 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5179 		CREATE_OBJECT	RMdaDevSound			devsound  
  5180 		COMMAND		devsound			new
  5181 		COMMAND		devsound			Open			UnitEnum
  5182 		COMMAND		devsound			CancelNotifyPlayError
  5183 		COMMAND		devsound			CancelNotifyPlayError
  5184 		COMMAND		devsound  			Close
  5185 		COMMAND		devsound  			~
  5186 	END_TEST_BLOCK	 
  5187 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7075
  5188 
  5189 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7076
  5190 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7076
  5191 //! @SYMAPI			RMdaDevSound::NotifyRecordError(TRequestStatus {ref});
  5192 //!				RMdaDevSound::CancelNotifyRecordError()
  5193 //! @SYMAuthor			Vassili Tsvetkov
  5194 //! @SYMCreationDate		15/06/2008
  5195 //! @SYMTestCaseDesc		Call CancelNotifyRecordError() twice while RecordData() is executed
  5196 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5197 //!				2. Call NotifyRecordError()
  5198 //!				3. Call GetRecordFormat() and verify from [default_record_format]
  5199 //!				4. Call RecordData()
  5200 //!				5. Call CancelNotifyRecordError()
  5201 //!				6. Call CancelNotifyRecordError()
  5202 //!				7. Call Close()
  5203 //! @SYMTestStatus		Implemented
  5204 //! @SYMTestPriority		Critical
  5205 //! @SYMTestExpectedResults	NotifyRecordError() in step 2 completes with KErrCancel, CancelNotifyRecordError() in steps 5-6 complete without error
  5206 //!
  5207 //! @SYMTestType		CIT
  5208 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5209 		CREATE_OBJECT	RMdaDevSound			devsound  
  5210 		COMMAND		devsound			new
  5211 		COMMAND		devsound			Open			UnitEnum
  5212 		COMMAND	!AsyncError=-3	devsound			NotifyRecordError
  5213 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  5214 		COMMAND		t_format			new			
  5215 		COMMAND		devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  5216 		//!verify default record configuration			
  5217 		COMMAND		t_format			irate_get		default_record_format
  5218 		COMMAND		t_format			iencoding_get		default_record_format
  5219 		COMMAND		t_format			ichannels_get		default_record_format
  5220 		COMMAND		t_format			ibuffer_size_get	default_record_format
  5221 		COMMAND		devsound			RecordData
  5222 		COMMAND		devsound			CancelNotifyRecordError
  5223 		COMMAND		devsound			CancelNotifyRecordError
  5224 		OUTSTANDING
  5225 		COMMAND		t_format			~
  5226 		COMMAND		devsound  			Close
  5227 		COMMAND		devsound  			~
  5228 	END_TEST_BLOCK	 
  5229 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7076
  5230 
  5231 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7077
  5232 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7077
  5233 //! @SYMAPI			RMdaDevSound::NotifyRecordError(TRequestStatus {ref});
  5234 //!				RMdaDevSound::CancelNotifyRecordError()
  5235 //! @SYMAuthor			Vassili Tsvetkov
  5236 //! @SYMCreationDate		15/06/2008
  5237 //! @SYMTestCaseDesc		Call CancelNotifyRecordError() twice after RecordData() is executed
  5238 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5239 //!				2. Call NotifyRecordError()
  5240 //!				3. Call GetRecordFormat() and verify from [default_record_format]
  5241 //!				4. Call RecordData()
  5242 //!				5. Call CancelNotifyRecordError()
  5243 //!				6. Call CancelNotifyRecordError()
  5244 //!				7. Call Close()
  5245 //! @SYMTestStatus		Implemented
  5246 //! @SYMTestPriority		Critical
  5247 //! @SYMTestExpectedResults	NotifyRecordError() in step 2 completes with KErrCancel, CancelNotifyRecordError() in steps 5-6 complete without error
  5248 //!
  5249 //! @SYMTestType		CIT
  5250 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5251 		CREATE_OBJECT	RMdaDevSound			devsound  
  5252 		COMMAND		devsound			new
  5253 		COMMAND		devsound			Open			UnitEnum
  5254 		COMMAND	!AsyncError=-3	devsound			NotifyRecordError
  5255 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  5256 		COMMAND		t_format			new			
  5257 		COMMAND		devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  5258 		//!verify default record configuration			
  5259 		COMMAND		t_format			irate_get		default_record_format
  5260 		COMMAND		t_format			iencoding_get		default_record_format
  5261 		COMMAND		t_format			ichannels_get		default_record_format
  5262 		COMMAND		t_format			ibuffer_size_get	default_record_format
  5263 		COMMAND		devsound			RecordData
  5264 		ASYNC_DELAY	5000
  5265 		COMMAND		devsound			CancelNotifyRecordError
  5266 		COMMAND		devsound			CancelNotifyRecordError
  5267 		OUTSTANDING
  5268 		COMMAND		t_format			~
  5269 		COMMAND		devsound  			Close
  5270 		COMMAND		devsound  			~
  5271 	END_TEST_BLOCK	 
  5272 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7077
  5273 
  5274 
  5275 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7078
  5276 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7078
  5277 //! @SYMAPI			RMdaDevSound::NotifyRecordError(TRequestStatus {ref});
  5278 //!				RMdaDevSound::CancelNotifyRecordError()
  5279 //! @SYMAuthor			Vassili Tsvetkov
  5280 //! @SYMCreationDate		15/06/2008
  5281 //! @SYMTestCaseDesc		Call CancelNotifyRecordError() twice without RecordData() executed
  5282 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5283 //!				2. Call NotifyRecordError()
  5284 //!				3. Call CancelNotifyRecordError()
  5285 //!				4. Call CancelNotifyRecordError()
  5286 //!				5. Call Close()
  5287 //! @SYMTestStatus		Implemented
  5288 //! @SYMTestPriority		Critical
  5289 //! @SYMTestExpectedResults	NotifyRecordError() in step 2 completes with KErrCancel, CancelNotifyRecordError() in steps 3-4 complete without error
  5290 //!
  5291 //! @SYMTestType		CIT
  5292 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5293 		CREATE_OBJECT	RMdaDevSound			devsound  
  5294 		COMMAND		devsound			new
  5295 		COMMAND		devsound			Open			UnitEnum
  5296 		COMMAND	!AsyncError=-3	devsound			NotifyRecordError
  5297 		ASYNC_DELAY	5000
  5298 		COMMAND		devsound			CancelNotifyRecordError
  5299 		COMMAND		devsound			CancelNotifyRecordError
  5300 		OUTSTANDING
  5301 		COMMAND		devsound  			Close
  5302 		COMMAND		devsound  			~
  5303 	END_TEST_BLOCK		 
  5304 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7078
  5305 
  5306 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7079
  5307 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7079
  5308 //! @SYMAPI			RMdaDevSound::NotifyRecordError(TRequestStatus {ref});
  5309 //!				RMdaDevSound::CancelNotifyRecordError()
  5310 //! @SYMAuthor			Vassili Tsvetkov
  5311 //! @SYMCreationDate		15/06/2008
  5312 //! @SYMTestCaseDesc		Call CancelNotifyRecordError() twice without NotifyRecordError() executed
  5313 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5314 //!				2. Call CancelNotifyRecordError()
  5315 //!				3. Call CancelNotifyRecordError()
  5316 //!				4. Call Close()
  5317 //! @SYMTestStatus		Implemented
  5318 //! @SYMTestPriority		Critical
  5319 //! @SYMTestExpectedResults	CancelNotifyRecordError() in steps 2-3 complete without error
  5320 //!
  5321 //! @SYMTestType		CIT
  5322 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5323 		CREATE_OBJECT	RMdaDevSound			devsound  
  5324 		COMMAND		devsound			new
  5325 		COMMAND		devsound			Open			UnitEnum
  5326 		COMMAND		devsound			CancelNotifyRecordError
  5327 		COMMAND		devsound			CancelNotifyRecordError
  5328 		COMMAND		devsound  			Close
  5329 		COMMAND		devsound  			~
  5330 	END_TEST_BLOCK	 
  5331 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7079
  5332 
  5333 /////////////////////////////////////////////
  5334 // Playback-recording Cancel/Flush tests
  5335 /////////////////////////////////////////////
  5336 
  5337 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7101
  5338 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7101
  5339 //! @SYMAPI			RMdaDevSound::FlushPlayBuffer()
  5340 //! @SYMAuthor			Vassili Tsvetkov
  5341 //! @SYMCreationDate		15/06/2008
  5342 //! @SYMTestCaseDesc		Call FlushPlayBuffer() without calling PlayData() first
  5343 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5344 //!				2. Call FlushPlayBuffer() 
  5345 //!				3. Call Close()
  5346 //! @SYMTestStatus		Implemented
  5347 //! @SYMTestPriority		Critical
  5348 //! @SYMTestExpectedResults	FlushPlayBuffer() completes without errors
  5349 //!
  5350 //! @SYMTestType		CIT
  5351 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5352 		CREATE_OBJECT	RMdaDevSound			devsound  
  5353 		COMMAND		devsound			new
  5354 		COMMAND		devsound			Open			UnitEnum
  5355 		COMMAND		devsound			FlushPlayBuffer
  5356 		COMMAND		devsound  			Close
  5357 		COMMAND		devsound  			~
  5358 	END_TEST_BLOCK		 
  5359 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7101
  5360 
  5361 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7102
  5362 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7102
  5363 //! @SYMAPI			RMdaDevSound::CancelPlayData()
  5364 //! @SYMAuthor			Vassili Tsvetkov
  5365 //! @SYMCreationDate		15/06/2008
  5366 //! @SYMTestCaseDesc		Call CancelPlayData() without calling PlayData() first
  5367 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5368 //!				2. Call CancelPlayData() 
  5369 //!				3. Call Close()
  5370 //! @SYMTestStatus		Implemented
  5371 //! @SYMTestPriority		Critical
  5372 //! @SYMTestExpectedResults	CancelPlayData() completes without errors
  5373 //!
  5374 //! @SYMTestType		CIT
  5375 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5376 		CREATE_OBJECT	RMdaDevSound			devsound  
  5377 		COMMAND		devsound			new
  5378 		COMMAND		devsound			Open			UnitEnum
  5379 		COMMAND		devsound			CancelPlayData
  5380 		COMMAND		devsound  			Close
  5381 		COMMAND		devsound  			~
  5382 	END_TEST_BLOCK		 
  5383 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7102
  5384 
  5385 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7103
  5386 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7103
  5387 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref});
  5388 //!				RMdaDevSound::CancelPlayData()
  5389 //! @SYMAuthor			Vassili Tsvetkov
  5390 //! @SYMCreationDate		15/06/2008
  5391 //! @SYMTestCaseDesc		Call CancelPlayData() 2 times in a row while PlayData() is executed
  5392 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5393 //!				2. Call GetPlayFormat() and verify from [default_play_format]
  5394 //!				3. Call PlayData() with [default_file_cancel]
  5395 //!				4. Call CancelPlayData() 
  5396 //!				5. Call CancelPlayData() 
  5397 //!				6. Call Close()
  5398 //! @SYMTestStatus		Implemented
  5399 //! @SYMTestPriority		Critical
  5400 //! @SYMTestExpectedResults	CancelPlayData() in step 4 and 5 completes without errors, PlayData() in step 3 finished with KErrCancel
  5401 //!
  5402 //! @SYMTestType		CIT
  5403 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5404 		CREATE_OBJECT	RMdaDevSound			devsound  
  5405 		COMMAND		devsound			new
  5406 		COMMAND		devsound			Open			UnitEnum
  5407 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  5408 		COMMAND		t_format			new
  5409 		COMMAND		devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  5410 		//!verify default play configuration			
  5411 		COMMAND		t_format			irate_get		default_play_format
  5412 		COMMAND		t_format			iencoding_get		default_play_format
  5413 		COMMAND		t_format			ichannels_get		default_play_format
  5414 		COMMAND		t_format			ibuffer_size_get	default_play_format
  5415 		COMMAND	!AsyncError=-3	devsound			PlayData		default_file_cancel
  5416 		COMMAND		devsound			CancelPlayData
  5417 		OUTSTANDING
  5418 		COMMAND		t_format			~
  5419 		COMMAND		devsound  			Close
  5420 		COMMAND		devsound  			~
  5421 	END_TEST_BLOCK	 
  5422 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7103
  5423 
  5424 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7104
  5425 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7104
  5426 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref});
  5427 //!				RMdaDevSound::FlushPlayBuffer()
  5428 //! @SYMAuthor			Vassili Tsvetkov
  5429 //! @SYMCreationDate		15/06/2008
  5430 //! @SYMTestCaseDesc		Call FlushPlayBuffer() 2 times in a row while PlayData() is executed
  5431 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5432 //!				2. Call GetPlayFormat() and verify from [default_play_format]
  5433 //!				3. Call PlayData() with [default_file_flush]
  5434 //!				4. Call FlushPlayBuffer() 
  5435 //!				5. Call FlushPlayBuffer() 
  5436 //!				6. Call Close()
  5437 //! @SYMTestStatus		Implemented
  5438 //! @SYMTestPriority		Critical
  5439 //! @SYMTestExpectedResults	FlushPlayBuffer() in step 4 and 5 completes without errors, PlayData() in step 3 finished with KErrCancel
  5440 //!
  5441 //! @SYMTestType		CIT
  5442 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5443 		CREATE_OBJECT	RMdaDevSound			devsound  
  5444 		COMMAND		devsound			new
  5445 		COMMAND		devsound			Open			UnitEnum
  5446 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  5447 		COMMAND		t_format			new
  5448 		COMMAND		devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  5449 		//!verify default play configuration			
  5450 		COMMAND		t_format			irate_get		default_play_format
  5451 		COMMAND		t_format			iencoding_get		default_play_format
  5452 		COMMAND		t_format			ichannels_get		default_play_format
  5453 		COMMAND		t_format			ibuffer_size_get	default_play_format
  5454 		COMMAND	!AsyncError=-3	devsound			PlayData		default_file_flush
  5455 		COMMAND		devsound			FlushPlayBuffer
  5456 		OUTSTANDING
  5457 		COMMAND		t_format			~
  5458 		COMMAND		devsound  			Close
  5459 		COMMAND		devsound  			~
  5460 	END_TEST_BLOCK		 
  5461 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7104
  5462 
  5463 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7105
  5464 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7105
  5465 //! @SYMAPI			RMdaDevSound::FlushRecordBuffer()
  5466 //! @SYMAuthor			Vassili Tsvetkov
  5467 //! @SYMCreationDate		15/06/2008
  5468 //! @SYMTestCaseDesc		Call FlushRecordBuffer() without calling RecordData() first
  5469 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5470 //!				2. Call FlushRecordBuffer() 
  5471 //!				3. Call Close()
  5472 //! @SYMTestStatus		Implemented
  5473 //! @SYMTestPriority		Critical
  5474 //! @SYMTestExpectedResults	FlushRecordBuffer() completes without errors
  5475 //!
  5476 //! @SYMTestType		CIT
  5477 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5478 		CREATE_OBJECT	RMdaDevSound			devsound  
  5479 		COMMAND		devsound			new
  5480 		COMMAND		devsound			Open			UnitEnum
  5481 		COMMAND		devsound			FlushRecordBuffer
  5482 		COMMAND		devsound  			Close
  5483 		COMMAND		devsound  			~
  5484 	END_TEST_BLOCK	 
  5485 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7105
  5486 
  5487 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7106
  5488 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7106
  5489 //! @SYMAPI			RMdaDevSound::CancelRecordData()
  5490 //! @SYMAuthor			Vassili Tsvetkov
  5491 //! @SYMCreationDate		15/06/2008
  5492 //! @SYMTestCaseDesc		Call CancelRecordData() without calling RecordData first
  5493 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5494 //!				2. Call CancelRecordData() 
  5495 //!				3. Call Close()
  5496 //! @SYMTestStatus		Implemented
  5497 //! @SYMTestPriority		Critical
  5498 //! @SYMTestExpectedResults	CancelRecordData() completes without errors
  5499 //!
  5500 //! @SYMTestType		CIT
  5501 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5502 		CREATE_OBJECT	RMdaDevSound			devsound  
  5503 		COMMAND		devsound			new
  5504 		COMMAND		devsound			Open			UnitEnum
  5505 		COMMAND		devsound			CancelRecordData
  5506 		COMMAND		devsound  			Close
  5507 		COMMAND		devsound  			~
  5508 	END_TEST_BLOCK	 
  5509 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7106
  5510 
  5511 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7107
  5512 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7107
  5513 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref});
  5514 //!				RMdaDevSound::CancelRecordData()
  5515 //! @SYMAuthor			Vassili Tsvetkov
  5516 //! @SYMCreationDate		15/06/2008
  5517 //! @SYMTestCaseDesc		Call CancelRecordData() 2 times in a row while RecordData() is executed
  5518 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5519 //!				2. Call SetRecordFormat() with [default_record_format]
  5520 //!				3. Call RecordData() with [record_data_32kb_cancel]
  5521 //!				4. Call CancelRecordData() 
  5522 //!				5. Call CancelRecordData() 
  5523 //!				6. Call Close()
  5524 //! @SYMTestStatus		Implemented
  5525 //! @SYMTestPriority		Critical
  5526 //! @SYMTestExpectedResults	CancelRecordData() in step 4 and 5 completes without errors, RecordData() in step 3 completes with KErrCancel
  5527 //!
  5528 //! @SYMTestType		CIT
  5529 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5530 		CREATE_OBJECT	RMdaDevSound			devsound  
  5531 		COMMAND		devsound			new
  5532 		COMMAND		devsound			Open			UnitEnum
  5533 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  5534 		COMMAND		t_format			new
  5535 		COMMAND		devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  5536 		//!verify default record configuration			
  5537 		COMMAND		t_format			irate_get		default_record_format
  5538 		COMMAND		t_format			iencoding_get		default_record_format
  5539 		COMMAND		t_format			ichannels_get		default_record_format
  5540 		COMMAND		t_format			ibuffer_size_get	default_record_format
  5541 		COMMAND	!AsyncError=-3	devsound			RecordData	record_data_32kb_cancel
  5542 		COMMAND		devsound			CancelRecordData
  5543 		OUTSTANDING
  5544 		COMMAND		t_format			~
  5545 		COMMAND		devsound  			Close
  5546 		COMMAND		devsound  			~
  5547 	END_TEST_BLOCK	 
  5548 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7107
  5549 
  5550 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7108
  5551 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7108
  5552 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref});
  5553 //!				RMdaDevSound::FlushRecordBuffer()
  5554 //! @SYMAuthor			Vassili Tsvetkov
  5555 //! @SYMCreationDate		15/06/2008
  5556 //! @SYMTestCaseDesc		Call FlushRecordBuffer() 2 times in a row while RecordData() is executed
  5557 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5558 //!				2. Call GetRecordFormat() and verify from [default_record_format]
  5559 //!				3. Call RecordData()
  5560 //!				4. Call FlushRecordBuffer() 
  5561 //!				5. Call FlushRecordBuffer() 
  5562 //!				6. Call Close()
  5563 //! @SYMTestStatus		Implemented
  5564 //! @SYMTestPriority		Critical
  5565 //! @SYMTestExpectedResults	FlushRecordBuffer() in step 4 and 5 completes without errors, RecordData() in step 3 finished with KErrNone
  5566 //!
  5567 //! @SYMTestType		CIT
  5568 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5569 		CREATE_OBJECT	RMdaDevSound			devsound  
  5570 		COMMAND		devsound			new
  5571 		COMMAND		devsound			Open			UnitEnum
  5572 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  5573 		COMMAND		t_format			new
  5574 		COMMAND		devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  5575 		//!verify default record configuration			
  5576 		COMMAND		t_format			irate_get		default_record_format
  5577 		COMMAND		t_format			iencoding_get		default_record_format
  5578 		COMMAND		t_format			ichannels_get		default_record_format
  5579 		COMMAND		t_format			ibuffer_size_get	default_record_format
  5580 		COMMAND		devsound			RecordData	record_data_32kb	
  5581 		COMMAND		devsound			FlushRecordBuffer
  5582 		COMMAND		devsound			FlushRecordBuffer
  5583 		OUTSTANDING
  5584 		COMMAND		t_format			~
  5585 		COMMAND		devsound  			Close
  5586 		COMMAND		devsound  			~
  5587 	END_TEST_BLOCK	 
  5588 END_TESTCASE 			BASE-BSP-SOUND-DRIVER-7108
  5589 
  5590 /////////////////////////////////////////////
  5591 // Volume
  5592 /////////////////////////////////////////////
  5593 
  5594 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7201
  5595 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7201					
  5596 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref});
  5597 //!				RMdaDevSound::SetPlayVolume(TInt);
  5598 //!				RMdaDevSound::PlayVolume()
  5599 //! @SYMAuthor			Vassili Tsvetkov
  5600 //! @SYMCreationDate		15/06/2008
  5601 //! @SYMTestCaseDesc		Set play volume with negative integer value.
  5602 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5603 //!				2. Call GetPlayFormat and verify from [default_play_format]
  5604 //!				3. Call SetPlayVolume() with negative integer value from [negative_play_volume]
  5605 //!				4. Call PlayData() with valid sound data from [default_file]
  5606 //!				5. Call PlayVolume() and compare the received value to [min_play_volume]
  5607 //!				6. Call Close().
  5608 //! @SYMTestStatus		Implemented
  5609 //! @SYMTestPriority		Critical
  5610 //! @SYMTestExpectedResults	Setting negative volume value is impossible. PlayVolume in step 4 returns min play volume.
  5611 //!
  5612 //! @SYMTestType		CIT
  5613 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5614 		CREATE_OBJECT	RMdaDevSound			devsound  
  5615 		COMMAND		devsound			new
  5616 		COMMAND		devsound			Open			UnitEnum
  5617 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  5618 		COMMAND		t_format			new
  5619 		COMMAND		devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  5620 		//!verify default play configuration			
  5621 		COMMAND		t_format			irate_get		default_play_format
  5622 		COMMAND		t_format			iencoding_get		default_play_format
  5623 		COMMAND		t_format			ichannels_get		default_play_format
  5624 		COMMAND		t_format			ibuffer_size_get	default_play_format
  5625 		COMMAND		devsound			SetPlayVolume		negative_play_volume
  5626 		COMMAND		devsound			PlayData		default_file	
  5627 		OUTSTANDING
  5628 		COMMAND		devsound			PlayVolume		min_play_volume
  5629 		COMMAND		t_format			~
  5630 		COMMAND		devsound  			Close
  5631 		COMMAND		devsound  			~
  5632 	END_TEST_BLOCK	 
  5633 END_TESTCASE			BASE-BSP-SOUND-DRIVER-7201
  5634 
  5635 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7202
  5636 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7202					
  5637 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref});
  5638 //!				RMdaDevSound::SetPlayVolume(TInt);
  5639 //!				RMdaDevSound::PlayVolume()
  5640 //! @SYMAuthor			Vassili Tsvetkov
  5641 //! @SYMCreationDate		15/06/2008
  5642 //! @SYMTestCaseDesc		Set play volume with too big integer value.
  5643 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5644 //!				2. Call GetPlayFormat and verify from [default_play_format]
  5645 //!				3. Call SetPlayVolume() with too big value from [too_big_play_volume]
  5646 //!				4. Call PlayData() with valid sound data from [default_file]
  5647 //!				5. Call PlayVolume() and compare the received value to [max_play_volume]
  5648 //!				6. Call Close().
  5649 //! @SYMTestStatus		Implemented
  5650 //! @SYMTestPriority		Critical
  5651 //! @SYMTestExpectedResults	Setting too big volume value is impossible. PlayVolume in step 4 returns max play volume.
  5652 //!
  5653 //! @SYMTestType		CIT
  5654 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5655 		CREATE_OBJECT	RMdaDevSound			devsound  
  5656 		COMMAND		devsound			new
  5657 		COMMAND		devsound			Open			UnitEnum
  5658 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  5659 		COMMAND		t_format			new
  5660 		COMMAND		devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  5661 		//!verify default play configuration			
  5662 		COMMAND		t_format			irate_get		default_play_format
  5663 		COMMAND		t_format			iencoding_get		default_play_format
  5664 		COMMAND		t_format			ichannels_get		default_play_format
  5665 		COMMAND		t_format			ibuffer_size_get	default_play_format
  5666 		COMMAND		devsound			SetPlayVolume		too_big_play_volume
  5667 		COMMAND		devsound			PlayData		default_file	
  5668 		OUTSTANDING
  5669 		COMMAND		devsound			PlayVolume		max_play_volume
  5670 		COMMAND		t_format			~
  5671 		COMMAND		devsound  			Close
  5672 		COMMAND		devsound  			~
  5673 	END_TEST_BLOCK	
  5674 END_TESTCASE			BASE-BSP-SOUND-DRIVER-7202
  5675 
  5676 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7203
  5677 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7203					
  5678 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref});
  5679 //!				RMdaDevSound::SetRecordLevel(TInt);
  5680 //!				RMdaDevSound::RecordLevel()
  5681 //! @SYMAuthor			Vassili Tsvetkov
  5682 //! @SYMCreationDate		15/06/2008
  5683 //! @SYMTestCaseDesc		Set record level with negative integer value.
  5684 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5685 //!				2. Call GetRecordFormat and verify from [default_record_format]
  5686 //!				3. Call SetRecordLevel() with negative integer value from [negative_record_level]
  5687 //!				4. Call RecordData() 
  5688 //!				5. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  5689 //!				6. Call RecordLevel() and compare the received value to [min_record_level]
  5690 //!				7. Call Close().
  5691 //! @SYMTestStatus		Implemented
  5692 //! @SYMTestPriority		Critical
  5693 //! @SYMTestExpectedResults	Setting negative volume level value is impossible. RecordLevel in step 4 returns min record level.
  5694 //!
  5695 //! @SYMTestType		CIT
  5696 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5697 		CREATE_OBJECT	RMdaDevSound			devsound  
  5698 		COMMAND		devsound			new
  5699 		COMMAND		devsound			Open			UnitEnum
  5700 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  5701 		COMMAND		t_format			new
  5702 		COMMAND		devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  5703 		//!verify default record configuration			
  5704 		COMMAND		t_format			irate_get		default_record_format
  5705 		COMMAND		t_format			iencoding_get		default_record_format
  5706 		COMMAND		t_format			ichannels_get		default_record_format
  5707 		COMMAND		t_format			ibuffer_size_get	default_record_format
  5708 		COMMAND		devsound			SetRecordLevel		negative_record_level
  5709 		COMMAND		devsound			RecordData		record_data_32kb	
  5710 		OUTSTANDING
  5711 		COMMAND			devsound			FlushRecordBuffer
  5712 		COMMAND		devsound			RecordLevel		min_record_level
  5713 		COMMAND		t_format			~
  5714 		COMMAND		devsound  			Close
  5715 		COMMAND		devsound  			~
  5716 	END_TEST_BLOCK	
  5717 END_TESTCASE			BASE-BSP-SOUND-DRIVER-7203
  5718 
  5719 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7204
  5720 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7204					
  5721 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref});
  5722 //!				RMdaDevSound::SetRecordLevel(TInt);
  5723 //!				RMdaDevSound::RecordLevel()
  5724 //! @SYMAuthor			Vassili Tsvetkov
  5725 //! @SYMCreationDate		15/06/2008
  5726 //! @SYMTestCaseDesc		Set record level with too big value.
  5727 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5728 //!				2. Call GetRecordFormat and verify from [default_record_format]
  5729 //!				3. Call SetRecordLevel() with too big value from [too_big_record_level]
  5730 //!				4. Call RecordData() 
  5731 //!				5. Call FlushRecordBuffer() //needed because otherwise setting format in next step will fail with KErrInUse
  5732 //!				6. Call RecordLevel() and compare the received value to [max_record_level]
  5733 //!				7. Call Close().
  5734 //! @SYMTestStatus		Implemented
  5735 //! @SYMTestPriority		Critical
  5736 //! @SYMTestExpectedResults	Setting too big volume level value is impossible. RecordLevel in step 4 returns max record level.
  5737 //!
  5738 //! @SYMTestType		CIT
  5739 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5740 		CREATE_OBJECT	RMdaDevSound			devsound  
  5741 		COMMAND		devsound			new
  5742 		COMMAND		devsound			Open			UnitEnum
  5743 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  5744 		COMMAND		t_format			new
  5745 		COMMAND		devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  5746 		//!verify default record configuration			
  5747 		COMMAND		t_format			irate_get		default_record_format
  5748 		COMMAND		t_format			iencoding_get		default_record_format
  5749 		COMMAND		t_format			ichannels_get		default_record_format
  5750 		COMMAND		t_format			ibuffer_size_get	default_record_format
  5751 		COMMAND		devsound			SetRecordLevel		too_big_record_level
  5752 		COMMAND		devsound			RecordData		record_data_32kb	
  5753 		OUTSTANDING
  5754 		COMMAND			devsound			FlushRecordBuffer
  5755 		COMMAND		devsound			RecordLevel		max_record_level
  5756 		COMMAND		t_format			~
  5757 		COMMAND		devsound  			Close
  5758 		COMMAND		devsound  			~
  5759 	END_TEST_BLOCK		
  5760 END_TESTCASE			BASE-BSP-SOUND-DRIVER-7204
  5761 
  5762 /////////////////////////////////////////////
  5763 // Corrupted audio
  5764 /////////////////////////////////////////////
  5765 
  5766 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7301
  5767 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7301					
  5768 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref})
  5769 //! @SYMAuthor			Vassili Tsvetkov
  5770 //! @SYMCreationDate		15/06/2008
  5771 //! @SYMTestCaseDesc		Play corrupted audio data.
  5772 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5773 //!				2. Call GetPlayFormat() and verify from [default_play_format]
  5774 //!				3. Call PlayData() with [corrupted_audio_file] 
  5775 //!				4. Call Close().
  5776 //! @SYMTestStatus		Implemented
  5777 //! @SYMTestPriority		Critical
  5778 //! @SYMTestExpectedResults	Playing audio completes without any errors.
  5779 //!
  5780 //! @SYMTestType		CIT
  5781 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5782 		CREATE_OBJECT	RMdaDevSound			devsound  
  5783 		COMMAND		devsound			new
  5784 		COMMAND		devsound			Open			UnitEnum
  5785 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  5786 		COMMAND		t_format			new
  5787 		COMMAND		devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  5788 		//!verify default play configuration			
  5789 		COMMAND		t_format			irate_get		default_play_format
  5790 		COMMAND		t_format			iencoding_get		default_play_format
  5791 		COMMAND		t_format			ichannels_get		default_play_format
  5792 		COMMAND		t_format			ibuffer_size_get	default_play_format
  5793 		COMMAND		devsound			PlayData		corrupted_audio_file
  5794 		OUTSTANDING
  5795 		COMMAND		t_format			~
  5796 		COMMAND		devsound  			Close
  5797 		COMMAND		devsound  			~
  5798 	END_TEST_BLOCK	
  5799 END_TESTCASE			BASE-BSP-SOUND-DRIVER-7301
  5800 
  5801 /////////////////////////////////////////////
  5802 // Combinations of APIs
  5803 /////////////////////////////////////////////
  5804 
  5805 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7401
  5806 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7401					
  5807 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref});
  5808 //!				RMdaDevSound::PausePlayBuffer();
  5809 //!				RMdaDevSound::ResumePlaying();
  5810 //!				RMdaDevSound::SetPlayVolume(TInt);
  5811 //!				RMdaDevSound::PlayVolume()
  5812 //! @SYMAuthor			Vassili Tsvetkov
  5813 //! @SYMCreationDate		15/06/2008
  5814 //! @SYMTestCaseDesc		Play default audio with default volume, pause playing and set volume to 50% and resume playing. 
  5815 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5816 //!				2. Call GetPlayFormat() and verify from [default_play_format]
  5817 //!				3. Call NotifyPlayError() //needed because otherwise PlayData() will not really stop after Outstanding
  5818 //!				4. Call PlayData() with [default_audio_file] 
  5819 //!				5. Call PausePlayBuffer()
  5820 //!				6. Call SetPlayVolume() with 50% volume from [play_volume_quater]
  5821 //!				7. Call ResumePlaying()
  5822 //!				8. PlayVolume() and compare received value with [play_volume_quater]
  5823 //!				9. Call Close().
  5824 //! @SYMTestStatus		Implemented
  5825 //! @SYMTestPriority		Critical
  5826 //! @SYMTestExpectedResults	Volume received in step 7 is equal to [playback_volume_half].
  5827 //!
  5828 //! @SYMTestType		CIT
  5829 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5830 		CREATE_OBJECT	RMdaDevSound			devsound  
  5831 		COMMAND		devsound			new
  5832 		COMMAND		devsound			Open			UnitEnum
  5833 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  5834 		COMMAND		t_format			new
  5835 		COMMAND		devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  5836 		//!verify default play configuration			
  5837 		COMMAND		t_format			irate_get		default_play_format
  5838 		COMMAND		t_format			iencoding_get		default_play_format
  5839 		COMMAND		t_format			ichannels_get		default_play_format
  5840 		COMMAND		t_format			ibuffer_size_get	default_play_format
  5841 		COMMAND !AsyncError=-10	devsound			NotifyPlayError
  5842 		COMMAND		devsound			PlayData		default_file
  5843 		COMMAND		devsound			PausePlayBuffer
  5844 		COMMAND		devsound			SetPlayVolume		play_volume_quater
  5845 		COMMAND		devsound			ResumePlaying
  5846 		OUTSTANDING
  5847 		COMMAND		devsound			PlayVolume		play_volume_quater
  5848 		COMMAND		t_format			~
  5849 		COMMAND		devsound  			Close
  5850 		COMMAND		devsound  			~
  5851 	END_TEST_BLOCK	
  5852 END_TESTCASE			BASE-BSP-SOUND-DRIVER-7401
  5853 
  5854 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7402
  5855 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7402					
  5856 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref});
  5857 //!				RMdaDevSound::FlushPlayBuffer();
  5858 //!				RMdaDevSound::BytesPlayed()
  5859 //! @SYMAuthor			Vassili Tsvetkov
  5860 //! @SYMCreationDate		15/06/2008
  5861 //! @SYMTestCaseDesc		Play default audio file. Flush play buffer after that and verify count of bytes played. 
  5862 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5863 //!				2. Call GetPlayFormat() and verify from [default_play_format]
  5864 //!				3. Call NotifyPlayError() //needed because otherwise PlayData() will not really stop after Outstanding
  5865 //!				4. Call PlayData() with [default_audio_file] 
  5866 //!				5. Delay for 1 sec, then BytesPlayed API is being called after the DMA ISR updates the variable
  5867 //!				6. Call BytesPlayed() where expected result equals [32_kb_played]
  5868 //!				7. Call FlushPlayBuffer()
  5869 //!				8. Delay for 1 sec, then BytesPlayed API is being called after the DMA ISR updates the variable
  5870 //!				9. Call BytesPlayed() where expected result equals [32_kb_played]
  5871 //!				10. Call Close().
  5872 //! @SYMTestStatus		Implemented
  5873 //! @SYMTestPriority		Critical
  5874 //! @SYMTestExpectedResults	Bytes played count is equal with [32_kb_played] in steps 4 and 6.
  5875 //!
  5876 //! @SYMTestType		CIT
  5877 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5878 		CREATE_OBJECT	RMdaDevSound			devsound  
  5879 		COMMAND		devsound			new
  5880 		COMMAND		devsound			Open			UnitEnum
  5881 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  5882 		COMMAND		t_format			new
  5883 		COMMAND		devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  5884 		//!verify default play configuration			
  5885 		COMMAND		t_format			irate_get		default_play_format
  5886 		COMMAND		t_format			iencoding_get		default_play_format
  5887 		COMMAND		t_format			ichannels_get		default_play_format
  5888 		COMMAND		t_format			ibuffer_size_get	default_play_format
  5889 		COMMAND !AsyncError=-10	devsound			NotifyPlayError
  5890 		COMMAND		devsound			PlayData		default_file
  5891 		OUTSTANDING
  5892 		DELAY	5000
  5893 		COMMAND		devsound			BytesPlayed		32_kb_played
  5894 		COMMAND		devsound			FlushPlayBuffer
  5895 		DELAY	5000
  5896 		COMMAND		devsound			BytesPlayed		32_kb_played
  5897 		COMMAND		t_format			~
  5898 		COMMAND		devsound  			Close
  5899 		COMMAND		devsound  			~
  5900 	END_TEST_BLOCK		
  5901 END_TESTCASE			BASE-BSP-SOUND-DRIVER-7402
  5902 
  5903 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7403
  5904 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7403					
  5905 //! @SYMAPI			RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref});
  5906 //!				RMdaDevSound::PausePlayBuffer();
  5907 //!				RMdaDevSound::ResumePlaying();
  5908 //!				RMdaDevSound::BytesPlayed()
  5909 //! @SYMAuthor			Vassili Tsvetkov
  5910 //! @SYMCreationDate		15/06/2008
  5911 //! @SYMTestCaseDesc		Play default audio file. Pause playing and resume again for 3 times. See count of bytes played.
  5912 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5913 //!				2. Call GetPlayFormat() and verify from [default_play_format]
  5914 //!				3. Call NotifyPlayError() //needed because otherwise PlayData() will not really stop after Outstanding
  5915 //!				3. Call PlayData() with [default_audio_file] 
  5916 //!				4. Call PausePlayBuffer() 
  5917 //!				5. Call ResumePlaying() 
  5918 //!				6. Call PausePlayBuffer() 
  5919 //!				7. Call ResumePlaying()
  5920 //!				8. Call PausePlayBuffer() 
  5921 //!				9. Call ResumePlaying()
  5922 //!				10. Delay for 1 sec, then BytesPlayed API is being called after the DMA ISR updates the variable
  5923 //!				11. Call BytesPlayed() where expected result equals [32_kb_played]
  5924 //!				12. Call Close().
  5925 //! @SYMTestStatus		Implemented
  5926 //! @SYMTestPriority		Critical
  5927 //! @SYMTestExpectedResults	Bytes played count is equal with [32_kb_played] in step 10.
  5928 //!
  5929 //! @SYMTestType		CIT
  5930 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5931 		CREATE_OBJECT	RMdaDevSound			devsound  
  5932 		COMMAND		devsound			new
  5933 		COMMAND		devsound			Open			UnitEnum
  5934 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  5935 		COMMAND		t_format			new
  5936 		COMMAND		devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  5937 		//!verify default play configuration			
  5938 		COMMAND		t_format			irate_get		default_play_format
  5939 		COMMAND		t_format			iencoding_get		default_play_format
  5940 		COMMAND		t_format			ichannels_get		default_play_format
  5941 		COMMAND		t_format			ibuffer_size_get	default_play_format
  5942 		COMMAND !AsyncError=-10	devsound			NotifyPlayError
  5943 		COMMAND		devsound			PlayData		default_file
  5944 		COMMAND		devsound			PausePlayBuffer	
  5945 		COMMAND		devsound			ResumePlaying	
  5946 		COMMAND		devsound			PausePlayBuffer	
  5947 		COMMAND		devsound			ResumePlaying	
  5948 		COMMAND		devsound			PausePlayBuffer	
  5949 		COMMAND		devsound			ResumePlaying	
  5950 		OUTSTANDING
  5951 		DELAY		5000
  5952 		COMMAND		devsound			BytesPlayed		32_kb_played
  5953 		COMMAND		t_format			~
  5954 		COMMAND		devsound  			Close
  5955 		COMMAND		devsound  			~
  5956 	END_TEST_BLOCK		
  5957 END_TESTCASE			BASE-BSP-SOUND-DRIVER-7403
  5958 
  5959 
  5960 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7404
  5961 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7404					
  5962 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref});
  5963 //!				RMdaDevSound::CancelRecordData();
  5964 //!				RMdaDevSound::SetRecordLevel(TInt);
  5965 //!				RMdaDevSound::RecordLevel()
  5966 //! @SYMAuthor			Vassili Tsvetkov
  5967 //! @SYMCreationDate		15/06/2008
  5968 //! @SYMTestCaseDesc		Record audio with default record format and default record level. Cancel recording in progress. Set Record level to 50%
  5969 //!				and start recording again. Verify that record level is 50% after recording is completed.
  5970 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  5971 //!				2. Call GetRecordFormat() and verify from [default_record_format]
  5972 //!				3. Call RecordData()  with [record_data_32kb_cancel]
  5973 //!				4. Call CancelRecordData()
  5974 //!				5. Call FlushRecordBuffer() //needed because otherwise operation in next step will fail with KErrInUse
  5975 //!				6. Call SetRecordLevel() with 50% volume from [half_record_level]
  5976 //!				7. Call RecordData()
  5977 //!				8. Call FlushRecordBuffer() //needed because otherwise operation in next step will fail with KErrInUse
  5978 //!				9. RecordLevel() and compare received value with [half_record_level]
  5979 //!				10. Call Close().
  5980 //! @SYMTestStatus		Implemented
  5981 //! @SYMTestPriority		Critical
  5982 //! @SYMTestExpectedResults	Volume received in step 7 is equal to [half_record_level].
  5983 //!
  5984 //! @SYMTestType		CIT
  5985 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  5986 		CREATE_OBJECT	RMdaDevSound			devsound  
  5987 		COMMAND		devsound			new
  5988 		COMMAND		devsound			Open			UnitEnum
  5989 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  5990 		COMMAND		t_format			new
  5991 		COMMAND		devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  5992 		//!verify default play configuration			
  5993 		COMMAND		t_format			irate_get		default_record_format
  5994 		COMMAND		t_format			iencoding_get		default_record_format
  5995 		COMMAND		t_format			ichannels_get		default_record_format
  5996 		COMMAND		t_format			ibuffer_size_get	default_record_format
  5997 		COMMAND	!AsyncError=-3	devsound			RecordData	record_data_32kb_cancel
  5998 		COMMAND		devsound			SetRecordLevel		half_record_level
  5999 		OUTSTANDING
  6000 		COMMAND			devsound			FlushRecordBuffer
  6001 		COMMAND		devsound			RecordData
  6002 		OUTSTANDING
  6003 		COMMAND			devsound			FlushRecordBuffer
  6004 		COMMAND		devsound			RecordLevel		half_record_level
  6005 		COMMAND		t_format			~
  6006 		COMMAND		devsound  			Close
  6007 		COMMAND		devsound  			~
  6008 	END_TEST_BLOCK	
  6009 END_TESTCASE			BASE-BSP-SOUND-DRIVER-7404
  6010 
  6011 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7405
  6012 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7405					
  6013 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref});
  6014 //!				RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref});
  6015 //!				RMdaDevSound::FlushRecordBuffer()
  6016 //! @SYMAuthor			Vassili Tsvetkov
  6017 //! @SYMCreationDate		15/06/2008
  6018 //! @SYMTestCaseDesc		FlushRecordBuffer first and then record audio with default record format and then play recorded audio file.
  6019 //! @SYMTestActions		1. Call Open() with unit [UnitEnum]
  6020 //!				2. Call FlushRecordBuffer()
  6021 //!				3. Call GetRecordFormat() and verify from [default_record_format]
  6022 //!				4. Call RecordData() to [temp_audio_file]
  6023 //!				5. Call GetPlayFormat() and verify from [default_play_format]
  6024 //!				6. Call NotifyPlayError() //needed because otherwise PlayData() will not really stop after Outstanding
  6025 //!				7. Call PlayData() from [temp_audio_file]
  6026 //!				8. Call Close().
  6027 //! @SYMTestStatus		Implemented
  6028 //! @SYMTestPriority		Critical
  6029 //! @SYMTestExpectedResults	Audio is recorded and played properly.
  6030 //!
  6031 //! @SYMTestType		CIT
  6032 	START_TEST_BLOCK	100				t_sound			\base\sound\base-bsp-sound-driver.ini
  6033 		CREATE_OBJECT	RMdaDevSound			devsound  
  6034 		COMMAND		devsound			new
  6035 		COMMAND		devsound			Open			UnitEnum
  6036 		COMMAND		devsound			FlushRecordBuffer
  6037 		CREATE_OBJECT	TCurrentSoundFormat		t_format		
  6038 		COMMAND		t_format			new
  6039 		COMMAND		devsound			GetRecordFormat		BSP-SOUND-DRIVER-GetRecordFormat
  6040 		//!verify default record configuration			
  6041 		COMMAND		t_format			irate_get		default_record_format
  6042 		COMMAND		t_format			iencoding_get		default_record_format
  6043 		COMMAND		t_format			ichannels_get		default_record_format
  6044 		COMMAND		t_format			ibuffer_size_get	default_record_format
  6045 		COMMAND		devsound			RecordData		temp_file		
  6046 		OUTSTANDING
  6047 		COMMAND			devsound			FlushRecordBuffer
  6048 		COMMAND		devsound			GetPlayFormat		BSP-SOUND-DRIVER-GetPlayFormat
  6049 		//!verify default play configuration			
  6050 		COMMAND		t_format			irate_get		default_play_format
  6051 		COMMAND		t_format			iencoding_get		default_play_format
  6052 		COMMAND		t_format			ichannels_get		default_play_format
  6053 		COMMAND		t_format			ibuffer_size_get	default_play_format
  6054 		COMMAND !AsyncError=-10	devsound			NotifyPlayError
  6055 		COMMAND		devsound			PlayData		temp_file
  6056 		OUTSTANDING
  6057 		COMMAND		devsound			utilityDeleteFile	delete_temp_file
  6058 		COMMAND		t_format			~
  6059 		COMMAND		devsound  			Close
  6060 		COMMAND		devsound  			~
  6061 	END_TEST_BLOCK	
  6062 END_TESTCASE			BASE-BSP-SOUND-DRIVER-7405
  6063 
  6064 START_TESTCASE 			BASE-BSP-SOUND-DRIVER-7406
  6065 //! @SYMTestCaseID		BASE-BSP-SOUND-DRIVER-7406					
  6066 //! @SYMAPI			RMdaDevSound::RecordData(TRequestStatus {ref}, TDes8 {ref});
  6067 //!				RMdaDevSound::PlayData(TRequestStatus {ref}, TDes8 {ref});
  6068 //!				RMdaDevSound::CancelRecordData()
  6069 //! @SYMAuthor			Vassili Tsvetkov
  6070 //! @SYMCreationDate		15/06/2008
  6071 //! @SYMTestCaseDesc		CancelRecordData first and then record audio with default record format and then play recorded audio file.