0
|
1 |
// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
// EPOC includes
|
|
17 |
#include <e32base.h>
|
|
18 |
|
|
19 |
#include <mdaaudiosampleplayer.h>
|
|
20 |
#include <mdaaudiosampleeditor.h>
|
|
21 |
#include <mdaaudiotoneplayer.h>
|
|
22 |
|
|
23 |
// Test system includes
|
|
24 |
#include <testframework.h>
|
|
25 |
#include "TestStepUnitMMFAudClient.h"
|
|
26 |
#include "TestSuiteUnitMMFAudClient.h"
|
|
27 |
|
|
28 |
#include "OneExampleUnitMMFAudClientTest.h"
|
|
29 |
#include "TestStepPlayerNew.h"
|
|
30 |
#include "TestStepPlayerManip.h"
|
|
31 |
#include "TestStepPlayerAllocFailNew.h"
|
|
32 |
#include "TestStepPlayerAllocFailOpen.h"
|
|
33 |
|
|
34 |
#include "TestStepRecorder.h"
|
|
35 |
#include "TestStepRecorderAllocFail.h"
|
|
36 |
|
|
37 |
#include "TestStepTone.h"
|
|
38 |
#include "TestStepConvert.h"
|
|
39 |
#include "TestStepAudOutStream.h"
|
|
40 |
#include "TestStepAudOutStreamGSM610.h"
|
|
41 |
#include "TestStepAudInStream.h"
|
|
42 |
#include "TestStepPlayerBitRate.h"
|
|
43 |
#include "TestStepRecorderBitRate.h"
|
|
44 |
#include "TestStepMiscAud.h"
|
|
45 |
#include "TestStepResourceNotification.h"
|
|
46 |
#include "TestStepPlayerSharedHeap.h"
|
|
47 |
|
|
48 |
#include "TestStepAudioPlayerDRM.h"
|
|
49 |
#include "TestStepAudioRecorderDRM.h"
|
|
50 |
#include "TestStepRecorderSharedHeap.h"
|
|
51 |
#include "TestStepConverterSharedHeap.h"
|
|
52 |
#include "TestStepCtrlSetRepeatsCustomCommands.h"
|
|
53 |
|
|
54 |
/**
|
|
55 |
*
|
|
56 |
* Create an instance of this test suite.
|
|
57 |
*
|
|
58 |
* NewTestSuiteUnitMMFAudClientL is exported at ordinal 1.
|
|
59 |
* This provides the interface to allow the Test Framework
|
|
60 |
* to create instances of this test suite.
|
|
61 |
*
|
|
62 |
* @return "CTestSuiteUnitMMFAudClient*"
|
|
63 |
* The newly created test suite
|
|
64 |
*/
|
|
65 |
EXPORT_C CTestSuiteUnitMMFAudClient* NewTestSuiteUnitMMFAudClientL()
|
|
66 |
{
|
|
67 |
CTestSuiteUnitMMFAudClient* result = new (ELeave) CTestSuiteUnitMMFAudClient;
|
|
68 |
CleanupStack::PushL(result);
|
|
69 |
result->ConstructL();
|
|
70 |
CleanupStack::Pop(); // result
|
|
71 |
return result;
|
|
72 |
}
|
|
73 |
|
|
74 |
/**
|
|
75 |
*
|
|
76 |
* CTestSuiteUnitMMFAudClient destructor
|
|
77 |
*
|
|
78 |
* @xxxx
|
|
79 |
*
|
|
80 |
*/
|
|
81 |
CTestSuiteUnitMMFAudClient::~CTestSuiteUnitMMFAudClient()
|
|
82 |
{
|
|
83 |
}
|
|
84 |
|
|
85 |
/**
|
|
86 |
*
|
|
87 |
* This test suite version string
|
|
88 |
*
|
|
89 |
* @xxxx
|
|
90 |
*
|
|
91 |
*/
|
|
92 |
_LIT(KTxtVersion,"0.1a (build 13-Aug-2002)");
|
|
93 |
|
|
94 |
/**
|
|
95 |
*
|
|
96 |
* Get test suite version.
|
|
97 |
*
|
|
98 |
* @return "TPtrC"
|
|
99 |
* The version string.
|
|
100 |
*
|
|
101 |
* @xxxx
|
|
102 |
*
|
|
103 |
*/
|
|
104 |
TPtrC CTestSuiteUnitMMFAudClient::GetVersion() const
|
|
105 |
{
|
|
106 |
return KTxtVersion();
|
|
107 |
}
|
|
108 |
|
|
109 |
/**
|
|
110 |
*
|
|
111 |
* Add a test step into the suite.
|
|
112 |
*
|
|
113 |
* @param "CTestStepUnitMMFAudClient* aTestStep"
|
|
114 |
* The test step to be added.
|
|
115 |
* @xxxx
|
|
116 |
*
|
|
117 |
*/
|
|
118 |
void CTestSuiteUnitMMFAudClient::AddTestStepL( CTestStepUnitMMFAudClient* aTestStep )
|
|
119 |
{
|
|
120 |
// test steps contain a pointer back to the suite which owns them
|
|
121 |
aTestStep->SetUnitMMFAudClientSuite(this);
|
|
122 |
|
|
123 |
// add the step using tyhe base class method
|
|
124 |
CTestSuite::AddTestStepL(aTestStep);
|
|
125 |
}
|
|
126 |
|
|
127 |
void CTestSuiteUnitMMFAudClient::AddTestStepL( RTestStep* aTestStep )
|
|
128 |
{
|
|
129 |
|
|
130 |
// add the step using tyhe base class method
|
|
131 |
CTestSuite::AddTestStepL(aTestStep);
|
|
132 |
}
|
|
133 |
|
|
134 |
/**
|
|
135 |
*
|
|
136 |
* Initialiser for test suite.
|
|
137 |
* This creates all the test steps and stores them
|
|
138 |
* inside CTestSuiteUnitMMFAudClient
|
|
139 |
*
|
|
140 |
* @xxxx
|
|
141 |
*
|
|
142 |
*/
|
|
143 |
void CTestSuiteUnitMMFAudClient::InitialiseL()
|
|
144 |
{
|
|
145 |
InitSystemPath();
|
|
146 |
// store the name of this test suite
|
|
147 |
iSuiteName = _L("TSU_MMF_ACLNT_01");
|
|
148 |
|
|
149 |
// add test steps
|
|
150 |
AddTestStepL(CTestStepPlayerNew::NewL());
|
|
151 |
AddTestStepL(CTestStepPlayerNewFilePlayer::NewL());
|
|
152 |
AddTestStepL(CTestStepPlayerNewDescPlayer::NewL());
|
|
153 |
AddTestStepL(CTestStepPlayerNewPriorPrefer::NewL());
|
|
154 |
AddTestStepL(CTestStepPlayerNewPrefer::NewL());
|
|
155 |
AddTestStepL(CTestStepPlayerPlay::NewL());
|
|
156 |
AddTestStepL(CTestStepPlayerPlayTwice::NewL());
|
|
157 |
AddTestStepL(CTestStepPlayerPlayThreeTimes::NewL());
|
|
158 |
AddTestStepL(CTestStepPlayerClosePlay::NewL());
|
|
159 |
AddTestStepL(CTestStepPlayerOpenUrl::NewL());
|
|
160 |
|
|
161 |
AddTestStepL(CTestStepPlayerPlayAu::NewL());
|
|
162 |
AddTestStepL(CTestStepCheckHeaderTag::NewL());
|
|
163 |
AddTestStepL(CTestStepPlayerFileHandle::NewL());
|
|
164 |
AddTestStepL(CTestStepPlayerStop::NewL());
|
|
165 |
AddTestStepL(CTestStepPlayerDuration::NewL());
|
|
166 |
AddTestStepL(CTestStepPlayerRepeats::NewL(_L("MM-MMF-ACLNT-U-0036-CP"), _L("SectionOne"), _L("AudioPlayFName1")));
|
|
167 |
//Test step for tone repeats
|
|
168 |
AddTestStepL(CTestStepPlayerRepeats::NewL(_L("MM-MMF-ACLNT-U-0067-HP"), _L("SectionOne"), _L("AudioPlayFName12")));
|
|
169 |
AddTestStepL(CTestStepPlayerVol::NewL());
|
|
170 |
AddTestStepL(CTestStepPlayerVolRamp::NewL());
|
|
171 |
AddTestStepL(CTestStepPlayerPosition::NewL());
|
|
172 |
AddTestStepL(CTestStepPlayerPlayWindow::NewL());
|
|
173 |
AddTestStepL(CTestStepPlayerBalance::NewL());
|
|
174 |
AddTestStepL(CTestStepPlayerClose::NewL());
|
|
175 |
AddTestStepL(CTestStepPlayerMeta::NewL());
|
|
176 |
AddTestStepL(CTestStepPlayerPriority::NewL());
|
|
177 |
AddTestStepL(CTestStepPlayerPauseSetPosPlay::NewL());
|
|
178 |
AddTestStepL(CTestStepPlayerPlayWaitSetPos::NewL());
|
|
179 |
AddTestStepL(CTestStepMultipleSetPlayerPriority::NewL());
|
|
180 |
AddTestStepL(CTestStepPlayerPlayPausePlay::NewL());
|
|
181 |
|
|
182 |
AddTestStepL(CTestStepPlayerGetImplementationInfo::NewL());
|
|
183 |
AddTestStepL(CTestStepPlayerSendCustomCommandSync::NewL());
|
|
184 |
AddTestStepL(CTestStepPlayerSendCustomCommandAsync::NewL());
|
|
185 |
AddTestStepL(CTestStepPlayerReloadingTest::NewL());
|
|
186 |
//DEF083334 SWSV_604_R4B_Video: Real media icon still visible when changing to a non realVideo file
|
|
187 |
AddTestStepL(CTestStepPlayerCheckImplementationInfo::NewL());
|
|
188 |
|
|
189 |
AddTestStepL(CTestStepPlayerAllocFailNew::NewL());
|
|
190 |
AddTestStepL(CTestStepPlayerAllocFailNewFilePlayer::NewL());
|
|
191 |
AddTestStepL(CTestStepPlayerAllocFailPlay::NewL());
|
|
192 |
AddTestStepL(CTestStepPlayerAllocFailNewDescPlayer::NewL());
|
|
193 |
|
|
194 |
AddTestStepL(CTestStepPlayerAllocFailOpenFile::NewL(EFalse));
|
|
195 |
AddTestStepL(CTestStepPlayerAllocFailOpenDesc::NewL());
|
|
196 |
|
|
197 |
AddTestStepL(CTestStepRecorderNew::NewL());
|
|
198 |
AddTestStepL(CTestStepRecorderOpen::NewL());
|
|
199 |
AddTestStepL(CTestStepRecorderOpenFile::NewL(ETrue));
|
|
200 |
AddTestStepL(CTestStepRecorderOpenFile::NewL(EFalse));
|
|
201 |
AddTestStepL(CTestStepRecorderOpenDesc::NewL());
|
|
202 |
AddTestStepL(CTestStepRecorderOpenUrl::NewL());
|
|
203 |
AddTestStepL(CTestStepRecorderRecord::NewL());
|
|
204 |
AddTestStepL(CTestStepRecorderError::NewL());
|
|
205 |
|
|
206 |
AddTestStepL(CTestStepRecorderRecordPause::NewL(_L("MM-MMF-ACLNT-U-0210-CP")));
|
|
207 |
//Test Step added for DEF140670
|
|
208 |
AddTestStepL(CTestStepRecorderRecordPause::NewL(_L("MM-MMF-ACLNT-U-0211-CP")));
|
|
209 |
|
|
210 |
AddTestStepL(CTestStepRecorderReopen::NewL());
|
|
211 |
AddTestStepL(CTestStepRecorderRecordPlay::NewL());
|
|
212 |
|
|
213 |
AddTestStepL(CTestStepRecorderPlayRecordPlay::NewL());
|
|
214 |
|
|
215 |
AddTestStepL(CTestStepRecorderClearWindowPlay::NewL());
|
|
216 |
AddTestStepL(CTestStepRecorderDuration::NewL());
|
|
217 |
AddTestStepL(CTestStepRecorderType::NewL());
|
|
218 |
AddTestStepL(CTestStepRecorderState::NewL());
|
|
219 |
AddTestStepL(CTestStepRecorderRepeats::NewL());
|
|
220 |
AddTestStepL(CTestStepRecorderVolRamp::NewL());
|
|
221 |
AddTestStepL(CTestStepRecorderVol::NewL());
|
|
222 |
AddTestStepL(CTestStepRecorderBalancePlay::NewL());
|
|
223 |
AddTestStepL(CTestStepRecorderBalanceRecord::NewL());
|
|
224 |
AddTestStepL(CTestStepRecorderGain::NewL());
|
|
225 |
// some recorder tests are used for converter utility testing
|
|
226 |
// because they tests the same API, which is implemented independently
|
|
227 |
// both in the converter and recorder utility classes
|
|
228 |
AddTestStepL(CTestStepRecorderWindowPlay::NewL(_L("MM-MMF-ACLNT-U-0246-HP"), EFalse));
|
|
229 |
AddTestStepL(CTestStepRecorderWindowPlayTwice::NewL(_L("MM-MMF-ACLNT-U-0830-HP")));
|
|
230 |
AddTestStepL(CTestStepRecorderPosPlay::NewL(_L("MM-MMF-ACLNT-U-0232-HP"), EFalse));
|
|
231 |
AddTestStepL(CTestStepRecorderCrop::NewL(_L("MM-MMF-ACLNT-U-0240-HP"), EFalse));
|
|
232 |
AddTestStepL(CTestStepRecorderSetPriority::NewL());
|
|
233 |
AddTestStepL(CTestStepRecorderRecordTimeAvail::NewL());
|
|
234 |
AddTestStepL(CTestStepRecorderSetMaxWriteLen::NewL(_L("MM-MMF-ACLNT-U-0250-HP"), EFalse));
|
|
235 |
AddTestStepL(CTestStepRecorderGetNumMeta::NewL());
|
|
236 |
AddTestStepL(CTestStepRecorderGetMeta::NewL());
|
|
237 |
AddTestStepL(CTestStepRecorderAddDelMeta::NewL());
|
|
238 |
AddTestStepL(CTestStepRecorderReplaceMeta::NewL());
|
|
239 |
AddTestStepL(CTestStepRecorderDestinDataType::NewL(_L("MM-MMF-ACLNT-U-0264-HP"), EFalse));
|
|
240 |
AddTestStepL(CTestStepRecorderBitRate::NewL(_L("MM-MMF-ACLNT-U-0265-HP"), EFalse));
|
|
241 |
AddTestStepL(CTestStepRecorderSampleRate::NewL(_L("MM-MMF-ACLNT-U-0266-HP"), EFalse));
|
|
242 |
AddTestStepL(CTestStepRecorderFormat::NewL(_L("MM-MMF-ACLNT-U-0267-HP"), EFalse));
|
|
243 |
AddTestStepL(CTestStepRecorderChannels::NewL(_L("MM-MMF-ACLNT-U-0268-HP"), EFalse));
|
|
244 |
AddTestStepL(CTestStepRecorderGetImplementationInfo::NewL());
|
|
245 |
AddTestStepL(CTestStepRecorderSendCustomCommandSync::NewL());
|
|
246 |
AddTestStepL(CTestStepRecorderSendCustomCommandAsync::NewL());
|
|
247 |
AddTestStepL(CTestStepRecorderReloadingTest::NewL());
|
|
248 |
//DEF083334 SWSV_604_R4B_Video: Real media icon still visible when changing to a non realVideo file
|
|
249 |
AddTestStepL(CTestStepRecorderCheckPlayImplementationInfo::NewL());
|
|
250 |
//DEF083334 SWSV_604_R4B_Video: Real media icon still visible when changing to a non realVideo file
|
|
251 |
AddTestStepL(CTestStepRecorderCheckRecordImplementationInfo::NewL());
|
|
252 |
|
|
253 |
AddTestStepL(CTestStepRecorderAllocFailNew::NewL());
|
|
254 |
AddTestStepL(CTestStepRecorderAllocFailOpenFile::NewL(EFalse));
|
|
255 |
AddTestStepL(CTestStepRecorderAllocFailOpenDesc::NewL());
|
|
256 |
AddTestStepL(CTestStepRecorderAllocFailOpenUrl::NewL());
|
|
257 |
AddTestStepL(CTestStepRecorderAllocFailOpen::NewL());
|
|
258 |
AddTestStepL(CTestStepRecorderAllocFailPlay::NewL());
|
|
259 |
AddTestStepL(CTestStepRecorderAllocFailRecord::NewL());
|
|
260 |
AddTestStepL(CTestStepRecorderAllocFailCrop::NewL());
|
|
261 |
|
|
262 |
AddTestStepL(CTestStepToneNew::NewL());
|
|
263 |
AddTestStepL(CTestStepToneNewPriorPref::NewL());
|
|
264 |
AddTestStepL(CTestStepTonePrepareToPlayTone::NewL());
|
|
265 |
AddTestStepL(CTestStepTonePrepareToPlayTonePlay::NewL());
|
|
266 |
AddTestStepL(CTestStepTonePrepareToPlayDualTonePlay::NewL());
|
|
267 |
AddTestStepL(CTestStepTonePrepareToPlayDTMFString::NewL());
|
|
268 |
AddTestStepL(CTestStepTonePrepareToPlayFileSeq::NewL());
|
|
269 |
// INC087436: 3.1. DRM NRT audio files are not working properly as calender alarm tone
|
|
270 |
AddTestStepL(CTestStepTonePrepareToPlayDRMFileSeq::NewL());
|
|
271 |
AddTestStepL(CTestStepTonePrepareToPlayDescSeq::NewL());
|
|
272 |
AddTestStepL(CTestStepTonePrepareToPlayFixedSeq::NewL());
|
|
273 |
AddTestStepL(CTestStepToneCancelPlay::NewL());
|
|
274 |
AddTestStepL(CTestStepToneCancelPrepare::NewL());
|
|
275 |
AddTestStepL(CTestStepToneSetDTMFLengths::NewL());
|
|
276 |
AddTestStepL(CTestStepToneSetVolume::NewL());
|
|
277 |
AddTestStepL(CTestStepToneGetVolume::NewL());
|
|
278 |
AddTestStepL(CTestStepToneSetPriority::NewL());
|
|
279 |
AddTestStepL(CTestStepToneSetRepeats::NewL());
|
|
280 |
AddTestStepL(CTestStepToneSetVolumeRamp::NewL());
|
|
281 |
AddTestStepL(CTestStepToneGetFixedSeq::NewL());
|
|
282 |
AddTestStepL(CTestStepToneState::NewL());
|
|
283 |
|
|
284 |
AddTestStepL(CTestStepToneAllocFailNew::NewL());
|
|
285 |
|
|
286 |
AddTestStepL(CTestStepConvertAllocFailNew::NewL());
|
|
287 |
AddTestStepL(CTestStepConvertAllocFailOpen::NewL());
|
|
288 |
|
|
289 |
AddTestStepL(CTestStepConvertNew::NewL());
|
|
290 |
AddTestStepL(CTestStepConvertOpen::NewL());
|
|
291 |
AddTestStepL(CTestStepConvertOpenLocFormat::NewL());
|
|
292 |
AddTestStepL(CTestStepConvertOpenLocFormat2::NewL());
|
|
293 |
AddTestStepL(CTestStepConvertOpenLocFormat3::NewL());
|
|
294 |
|
|
295 |
AddTestStepL(CTestStepConvertGetImplementationInfo::NewL());
|
|
296 |
AddTestStepL(CTestStepConvertSendCustomCommandSync::NewL());
|
|
297 |
AddTestStepL(CTestStepConvertSendCustomCommandAsync::NewL());
|
|
298 |
//DEF083334 SWSV_604_R4B_Video: Real media icon still visible when changing to a non realVideo file
|
|
299 |
AddTestStepL(CTestStepConvertCheckImplementationInfo::NewL());
|
|
300 |
|
|
301 |
// the following converter tests are implemented by the corresponding
|
|
302 |
// recorder tests since it's the same API implemented independently in both
|
|
303 |
// recorder and converter classes.
|
|
304 |
AddTestStepL(CTestStepRecorderDestinDataType::NewL(_L("MM-MMF-ACLNT-U-0557-HP"), ETrue));
|
|
305 |
AddTestStepL(CTestStepRecorderBitRate::NewL(_L("MM-MMF-ACLNT-U-0558-HP"), ETrue));
|
|
306 |
AddTestStepL(CTestStepRecorderSampleRate::NewL(_L("MM-MMF-ACLNT-U-0559-HP"), ETrue));
|
|
307 |
AddTestStepL(CTestStepRecorderFormat::NewL(_L("MM-MMF-ACLNT-U-0560-HP"), ETrue));
|
|
308 |
AddTestStepL(CTestStepRecorderChannels::NewL(_L("MM-MMF-ACLNT-U-0561-HP"), ETrue));
|
|
309 |
AddTestStepL(CTestStepRecorderPosPlay::NewL(_L("MM-MMF-ACLNT-U-0562-HP"), ETrue));
|
|
310 |
AddTestStepL(CTestStepRecorderWindowPlay::NewL(_L("MM-MMF-ACLNT-U-0564-HP"), ETrue));
|
|
311 |
AddTestStepL(CTestStepRecorderSetMaxWriteLen::NewL(_L("MM-MMF-ACLNT-U-0565-HP"), ETrue));
|
|
312 |
AddTestStepL(CTestStepRecorderCrop::NewL(_L("MM-MMF-ACLNT-U-0566-HP"), ETrue));
|
|
313 |
|
|
314 |
AddTestStepL(CTestStepAudOutStream::NewL());
|
|
315 |
AddTestStepL(CTestStepAudOutStreamNew::NewL());
|
|
316 |
AddTestStepL(CTestStepAudOutStreamOpen::NewL());
|
|
317 |
AddTestStepL(CTestStepAudOutStreamOpenZero::NewL());
|
|
318 |
|
|
319 |
AddTestStepL(CTestStepAudOutStreamWrite::NewL());
|
|
320 |
AddTestStepL(CTestStepAudOutStreamSetProp::NewL());
|
|
321 |
AddTestStepL(CTestStepAudOutStreamSetVol::NewL());
|
|
322 |
AddTestStepL(CTestStepAudOutStreamSetPrior::NewL());
|
|
323 |
AddTestStepL(CTestStepAudOutStreamSetBalance::NewL());
|
|
324 |
AddTestStepL(CTestStepAudOutStreamPosition::NewL());
|
|
325 |
AddTestStepL(CTestStepAudOutStreamStop::NewL());
|
|
326 |
AddTestStepL(CTestStepAudOutStreamGetBytes::NewL());
|
|
327 |
AddTestStepL(CTestStepAudOutStreamMapChannels::NewL());
|
|
328 |
AddTestStepL(CTestStepAudOutStreamDataType::NewL());
|
|
329 |
|
|
330 |
|
|
331 |
AddTestStepL(CTestStepAudOutStreamFormats::NewL(0));
|
|
332 |
AddTestStepL(CTestStepAudOutStreamFormats::NewL(1));
|
|
333 |
AddTestStepL(CTestStepAudOutStreamFormats::NewL(2));
|
|
334 |
AddTestStepL(CTestStepAudOutStreamFormats::NewL(3));
|
|
335 |
AddTestStepL(CTestStepAudOutStreamFormats::NewL(4));
|
|
336 |
AddTestStepL(CTestStepAudOutStreamFormats::NewL(5));
|
|
337 |
AddTestStepL(CTestStepAudOutStreamFormats::NewL(6));
|
|
338 |
AddTestStepL(CTestStepAudOutStreamFormats::NewL(7));
|
|
339 |
AddTestStepL(CTestStepAudOutStreamFormats::NewL(8));
|
|
340 |
AddTestStepL(CTestStepAudOutStreamFormats::NewL(9));
|
|
341 |
AddTestStepL(CTestStepAudOutStreamFormats::NewL(10));
|
|
342 |
|
|
343 |
// PDEF092098: DevSound fails to update policy if error occurs in StartPlayDataL
|
|
344 |
AddTestStepL(CTestStepAudOutStreamImadPolicy::NewL(11));
|
|
345 |
|
|
346 |
AddTestStepL(CTestStepAudOutStreamPlayError::NewL(12));
|
|
347 |
|
|
348 |
AddTestStepL(CTestStepAudOutStreamGSM610Formats::NewL(0));
|
|
349 |
|
|
350 |
AddTestStepL(CTestStepAudInStreamNew::NewL());
|
|
351 |
AddTestStepL(CTestStepAudInStreamOpen::NewL());
|
|
352 |
|
|
353 |
AddTestStepL(CTestStepAudInStreamRead::NewL(0));
|
|
354 |
AddTestStepL(CTestStepAudInStreamRead::NewL(1));
|
|
355 |
AddTestStepL(CTestStepAudInStreamRead::NewL(2));
|
|
356 |
AddTestStepL(CTestStepAudInStreamRead::NewL(3));
|
|
357 |
AddTestStepL(CTestStepAudInStreamRead::NewL(4));
|
|
358 |
AddTestStepL(CTestStepAudInStreamRead::NewL(5));
|
|
359 |
AddTestStepL(CTestStepAudInStreamRead::NewL(6));
|
|
360 |
|
|
361 |
AddTestStepL(CTestStepAudInStreamSetProp::NewL());
|
|
362 |
AddTestStepL(CTestStepAudInStreamSetGain::NewL());
|
|
363 |
AddTestStepL(CTestStepAudInStreamSetPrior::NewL());
|
|
364 |
AddTestStepL(CTestStepAudInStreamSetBalance::NewL());
|
|
365 |
AddTestStepL(CTestStepAudInStreamPosition::NewL());
|
|
366 |
AddTestStepL(CTestStepAudInStreamStop::NewL());
|
|
367 |
AddTestStepL(CTestStepAudInStreamGetBytes::NewL());
|
|
368 |
AddTestStepL(CTestStepAudInStreamDataType::NewL());
|
|
369 |
|
|
370 |
AddTestStepL(CTestStepTonePrepareToPlayIllegalDTMFString::NewL());
|
|
371 |
|
|
372 |
// Test to check record to wav from audio input
|
|
373 |
// with nonexistent file
|
|
374 |
//<In Progress>
|
|
375 |
AddTestStepL(CTestStepRecorderRecordWav::NewL());
|
|
376 |
|
|
377 |
AddTestStepL(CTestStepRecorderMaxWriteLength::NewL());
|
|
378 |
|
|
379 |
//
|
|
380 |
AddTestStepL(CTestStepRecorderRecordAu::NewL());
|
|
381 |
|
|
382 |
//
|
|
383 |
AddTestStepL(CTestStepRecorderRecordRaw::NewL());
|
|
384 |
|
|
385 |
//
|
|
386 |
AddTestStepL(CTestStepRecorderRecordWavGsm::NewL());
|
|
387 |
|
|
388 |
//
|
|
389 |
AddTestStepL(CTestStepRecorderRecordWavGsmFail::NewL());
|
|
390 |
|
|
391 |
// Negative test for setting invalid channels and sample rates
|
|
392 |
AddTestStepL(CTestStepAudOutStreamSetPropNeg::NewL());
|
|
393 |
|
|
394 |
//[ add test to test cropping a descriptor ]
|
|
395 |
AddTestStepL( CTestStepRecCropDescriptor::NewL( _L("MM-MMF-ACLNT-U-0568-HP"), ETrue));
|
|
396 |
|
|
397 |
AddTestStepL( CTestStepRecCropDescriptor::NewL( _L("MM-MMF-ACLNT-U-0569-HP"), EFalse));
|
|
398 |
|
|
399 |
// DEF036477
|
|
400 |
AddTestStepL(CTestStepRecorderSimultaneousPlay1::NewL());
|
|
401 |
|
|
402 |
// INC0037165
|
|
403 |
// These tests added mainly for manual verification that fix
|
|
404 |
// for the above defect causes no regressions. Requires debugger.
|
|
405 |
AddTestStepL(CTestStepRecorderSimultaneousPlay2::NewL());
|
|
406 |
AddTestStepL(CTestStepRecorderSimultaneousPlay3::NewL());
|
|
407 |
|
|
408 |
// DEF038640
|
|
409 |
// Interrupt a low priority recorder with a higher priority recorder
|
|
410 |
// playing the same file
|
|
411 |
AddTestStepL(CTestStepRecorderSimultaneousPlay4::NewL());
|
|
412 |
|
|
413 |
// DEF038653
|
|
414 |
// Open a low priority recorder and a higher priority recorder
|
|
415 |
// with the same file & get the duration in each case
|
|
416 |
AddTestStepL(CTestStepRecorderSimultaneousPlay5::NewL());
|
|
417 |
|
|
418 |
// DEF037064
|
|
419 |
AddTestStepL(CTestStepRecorderPlayTwice::NewL());
|
|
420 |
|
|
421 |
// DEF037433 Player Utility is in stopped state inbetween repeat plays (SetRepeats())
|
|
422 |
AddTestStepL(CTestStepPlayerRepeatsState::NewL());
|
|
423 |
|
|
424 |
// DEF038345 - MMF Audio - fast forward and rewind buttons not working correctly
|
|
425 |
AddTestStepL(CTestStepRecorderPlayFF::NewL(_L("MM-MMF-ACLNT-U-0822-HP")));
|
|
426 |
|
|
427 |
|
|
428 |
// DEF039325 - open an MP3 file with using the test MP3 format plugin
|
|
429 |
AddTestStepL(CTestStepRecorderOpenMp3File::NewL());
|
|
430 |
|
|
431 |
// INC038974 - SetPlayWindow,play,pause,ClearPlayWindow,pause,stop,play
|
|
432 |
// make sure second play starts from start of file
|
|
433 |
AddTestStepL(CTestStepPlayerPlayAndClearWindow::NewL());
|
|
434 |
|
|
435 |
// DEF040281 - Audio input streaming crashes on completion on hardware device
|
|
436 |
AddTestStepL(CTestStepAudInStreamMemLeak::NewL());
|
|
437 |
|
|
438 |
// INC042196 - SetPosition() on WAV files takes a long time to change position of the file (2 s
|
|
439 |
AddTestStepL(CTestStepRecorderSetPosition::NewL());
|
|
440 |
|
|
441 |
// DEF042395 Audio recording tck failure
|
|
442 |
AddTestStepL(CTestStepRecorderRecordStop::NewL());
|
|
443 |
// INC042545 - Phone freezes when playing *.wav audio with FF and Stop.
|
|
444 |
AddTestStepL(CTestStepRecorderPlayEOF::NewL(_L("MM-MMF-ACLNT-U-0827-HP")));
|
|
445 |
|
|
446 |
// Tests for INC044215 investigation
|
|
447 |
AddTestStepL(CTestStepConvertOpenLocFormat4::NewL());
|
|
448 |
|
|
449 |
// DEF044042 - Test playing zero length tone on CMdaAudioToneUtility
|
|
450 |
AddTestStepL(CTestStepTonePlayZeroLength::NewL());
|
|
451 |
|
|
452 |
// PREQ 715 - Request the bit rate of the file being played.
|
|
453 |
AddTestStepL(CTestStepPlayerBitRateWav::NewL());
|
|
454 |
AddTestStepL(CTestStepPlayerBitRateAU::NewL());
|
|
455 |
AddTestStepL(CTestStepRecorderBitRateWav::NewL());
|
|
456 |
AddTestStepL(CTestStepRecorderBitRateAu::NewL());
|
|
457 |
|
|
458 |
// INC045926- NTT-Charlie Launch-Charlie doesn't play WAV,IMAADPCM file formats.
|
|
459 |
AddTestStepL(CTestStepPlayerPlayWav::NewL());
|
|
460 |
|
|
461 |
// DEF044042 - Test playing zero length tone on CMdaAudioToneUtility
|
|
462 |
AddTestStepL(CTestStepTonePlayZeroLength::NewL());
|
|
463 |
|
|
464 |
// PREQ 715 - Request the bit rate of the file being played.
|
|
465 |
AddTestStepL(CTestStepPlayerBitRateWav::NewL());
|
|
466 |
AddTestStepL(CTestStepPlayerBitRateAU::NewL());
|
|
467 |
AddTestStepL(CTestStepRecorderBitRateWav::NewL());
|
|
468 |
AddTestStepL(CTestStepRecorderBitRateAu::NewL());
|
|
469 |
|
|
470 |
// INC045926- NTT-Charlie Launch-Charlie doesn't play WAV,IMAADPCM file formats.
|
|
471 |
AddTestStepL(CTestStepPlayerPlayWav::NewL());
|
|
472 |
// INC047838 Voice Recorder: sound is played on the newly recorded clip while mute was
|
|
473 |
AddTestStepL(CTestStepRecorderPlayAfterRecording::NewL());
|
|
474 |
|
|
475 |
AddTestStepL(CTestStepPlayerAllocFailOpenFile::NewL(ETrue));
|
|
476 |
AddTestStepL(CTestStepRecorderAllocFailOpenFile::NewL(ETrue));
|
|
477 |
|
|
478 |
//INC048184 Time bar in gallery music player does not start from zero,for the following sequence
|
|
479 |
//SetPlayWindow,Play,Stop,fast farward,close,play and check if the position is setback to playstart
|
|
480 |
AddTestStepL(CTestStepPlayerPlayStopFFPlayNext::NewL());
|
|
481 |
|
|
482 |
//INC048184 Time bar in gallery music player does not start from zero,for the following sequence
|
|
483 |
//SetPlayWindow,Play,Stop,SetPosition,Stop and check if the position is setback to playstart
|
|
484 |
AddTestStepL(CTestStepRecorderPlayStopPosStop::NewL());
|
|
485 |
|
|
486 |
// Test bit rate for dev CR
|
|
487 |
AddTestStepL(new (ELeave) RTestStepAudInStreamBitRate);
|
|
488 |
AddTestStepL(RTestStepAudInStreamBitRateOOM::NewL());
|
|
489 |
|
|
490 |
// Test the actual bitrate interface itself
|
|
491 |
AddTestStepL(CTestStepAudInStreamTestBitrate::NewL());
|
|
492 |
|
|
493 |
// Test Stop procedures of InputStream
|
|
494 |
// DEF095804 CMdaAudioInputStream loses not complete buffers from DevSound
|
|
495 |
AddTestStepL(CTestStepAudInStreamTestReqStop::NewL(this));
|
|
496 |
AddTestStepL(CTestStepAudInStreamTestReqStopThenStop::NewL(this));
|
|
497 |
//PDEF121312:CMMFMdaAudioInputStream::BufferToBeEmptied() might delete an invalid pointer
|
|
498 |
AddTestStepL(CTestStepAudInStreamTestStopFromBufferCopied::NewL(this));
|
|
499 |
|
|
500 |
// Add CustomInterface() tests
|
|
501 |
CTestSuite::AddTestStepL(RTestStepAudInStreamCustIntf::NewL());
|
|
502 |
CTestSuite::AddTestStepL(RTestStepAudOutStreamCustIntf::NewL());
|
|
503 |
CTestSuite::AddTestStepL(RTestStepTonePlayCustIntf::NewL());
|
|
504 |
|
|
505 |
// GT 0222 MS3.6, PREQ777 DRM Support
|
|
506 |
// CMdaAudioPlayerUtility
|
|
507 |
AddTestStepL(CTestMmfDRMAudioPlayFileSource::NewL()); //MM-MMF-ACLNT-U-0901-HP
|
|
508 |
AddTestStepL(CTestMmfDRMAudioPlayFileHandleSource::NewL()); //MM-MMF-ACLNT-U-0902-HP
|
|
509 |
AddTestStepL(CTestMmfDRMAudioPPCSFileSource::NewL()); //MM-MMF-ACLNT-U-0903-HP
|
|
510 |
AddTestStepL(CTestMmfDRMAudioPlayAllocFileSource::NewL()); //MM-MMF-ACLNT-U-0904-HP
|
|
511 |
AddTestStepL(CTestMmfDRMAudioPlayUniqueIdFileSource::NewL()); //MM-MMF-ACLNT-U-0905-HP
|
|
512 |
AddTestStepL(CTestMmfDRMAudioPlayAllocFileHandleSource::NewL());//MM-MMF-ACLNT-U-0906-HP
|
|
513 |
AddTestStepL(CTestMmfDRMAudioOpenUnknownFileSource::NewL()); //MM-MMF-ACLNT-U-0921-HP
|
|
514 |
AddTestStepL(CTestMmfDRMAudioPlayNoRightsFileSource::NewL()); //MM-MMF-ACLNT-U-0922-HP
|
|
515 |
AddTestStepL(CTestMmfDRMAudioPlayRightsCountFileSource::NewL());//MM-MMF-ACLNT-U-0923-HP
|
|
516 |
AddTestStepL(CTestMmfDRMAudioPlayInvalidIdFileSource::NewL()); //MM-MMF-ACLNT-U-0924-HP
|
|
517 |
AddTestStepL(CTestMmfDRMAudioPlayAndStopFileSource::NewL()); //MM-MMF-ACLNT-U-0907-HP
|
|
518 |
AddTestStepL(CTestMmfDRMAudioPPCFFileSource::NewL()); //MM-MMF-ACLNT-U-0909-HP
|
|
519 |
|
|
520 |
// CMdaAudioRecorderUtility
|
|
521 |
AddTestStepL(CTestMmfDRMAudioRecPlayFileSource::NewL()); //MM-MMF-ACLNT-U-0911-HP
|
|
522 |
AddTestStepL(CTestMmfDRMAudioRecPlayFileHandleSource::NewL()); //MM-MMF-ACLNT-U-0912-HP
|
|
523 |
AddTestStepL(CTestMmfDRMAudioRecPlayStopFileSource::NewL()); //MM-MMF-ACLNT-U-0913-HP
|
|
524 |
AddTestStepL(CTestMmfDRMAudioRecPlayAllocFileSource::NewL()); //MM-MMF-ACLNT-U-0914-HP
|
|
525 |
AddTestStepL(CTestMmfDRMAudioRecPlayUniqueIdFileSource::NewL()); //MM-MMF-ACLNT-U-0915-HP
|
|
526 |
AddTestStepL(CTestMmfDRMAudioRecPlayAllocFileHandleSource::NewL());//MM-MMF-ACLNT-U-0916-HP
|
|
527 |
AddTestStepL(CTestMmfDRMAudioRecOpenUnknownFileSource::NewL()); //MM-MMF-ACLNT-U-0931-HP
|
|
528 |
AddTestStepL(CTestMmfDRMAudioRecPlayNoRightsFileSource::NewL()); //MM-MMF-ACLNT-U-0932-HP
|
|
529 |
AddTestStepL(CTestMmfDRMAudioRecPlayInvalidIdFileSource::NewL()); //MM-MMF-ACLNT-U-0933-HP
|
|
530 |
// INC060658 CMdaAudioRecorderUtility::OpenDesL fails with KErrNotFound
|
|
531 |
AddTestStepL(CTestStepRecUtilOpenDesByUid::NewL());
|
|
532 |
// DEF061942 KERN-EXEC:15 in the AudioPolicy server
|
|
533 |
AddTestStepL(CTestStepRecorderNotifyCheck::NewL());
|
|
534 |
// DEF061821 - CMdaAudioRecorderUtility::PlayL() fail case when registered for notification
|
|
535 |
AddTestStepL(CTestStepNotifyRegister::NewL());
|
|
536 |
// DEF061822 aNotificationData in the MarncResourceAvailable() callback contains wrong data
|
|
537 |
AddTestStepL(CTestStepResNotificationData::NewL()); //MM-MMF-ACLNT-U-0953-HP
|
|
538 |
// DEF068366 Using record utility, callback of PlaybackBalance APIs fail.
|
|
539 |
AddTestStepL(CTestStepRecorderSetBalRecordGetBal::NewL());
|
|
540 |
|
|
541 |
AddTestStepL(CTestStepPlaybackDurationInformation::NewL()); // MM-MMF-ACLNT-U-0960-HP
|
|
542 |
AddTestStepL(CTestStepRecorderDurationInformation::NewL()); // MM-MMF-ACLNT-U-0961-HP
|
|
543 |
|
|
544 |
AddTestStepL(CTestStepPlayerSharedHeapMultiFilePlayer::NewL( _L("MM-MMF-ACLNT-U-2000-HP"), EFalse ));
|
|
545 |
AddTestStepL(CTestStepPlayerSharedHeapMultiFilePlayer::NewL( _L("MM-MMF-ACLNT-U-2001-HP"), ETrue ));
|
|
546 |
|
|
547 |
AddTestStepL(CTestStepPlayerSharedHeapRepeatMultiFilePlayer::NewL( _L("MM-MMF-ACLNT-U-2002-HP"), EFalse ));
|
|
548 |
AddTestStepL(CTestStepPlayerSharedHeapRepeatMultiFilePlayer::NewL( _L("MM-MMF-ACLNT-U-2003-HP"), ETrue ));
|
|
549 |
|
|
550 |
AddTestStepL(CTestStepRecorderSharedHeapMultiFilePlayer::NewL( _L("MM-MMF-ACLNT-U-2006-HP"), EFalse ));
|
|
551 |
AddTestStepL(CTestStepConverterSharedHeapMultiFile::NewL( _L("MM-MMF-ACLNT-U-2007-HP"), EFalse ));
|
|
552 |
|
|
553 |
AddTestStepL(CTestStepRecorderOpenviaUriTag::NewL());
|
|
554 |
AddTestStepL(CTestStepRecorderOpenTryNextCtrl::NewL());
|
|
555 |
AddTestStepL(CTestStepPlayerOpenviaUriTag::NewL());
|
|
556 |
AddTestStepL(CTestStepPlayerOpenTryNextCtrl::NewL());
|
|
557 |
AddTestStepL(CTestStepRecorderLowMaxVol::NewL()); // MM-MMF-ACLNT-U-0965-HP
|
|
558 |
AddTestStepL(CTestStepPlayerLowMaxVol::NewL()); // MM-MMF-ACLNT-U-0967-HP
|
|
559 |
AddTestStepL(CTestStepPlayerRepeatsPause::NewL()); // MM-MMF-ACLNT-U-0968-HP
|
|
560 |
AddTestStepL(CTestMmfAclntRecFileInvDesForm::NewL()); // MM-MMF-ACLNT-U-0969-HP
|
|
561 |
AddTestStepL(RAudioPlayCompleteTest::NewL(_L("MM-MMF-ACLNT-U-0065-HP"), _L("c:\\mm\\mmf\\testfiles\\aclnt\\cdec_ff_wav_fr.wav")));
|
|
562 |
AddTestStepL(CTestStepRecorderVolError::NewL());
|
|
563 |
|
|
564 |
/*
|
|
565 |
// Excluding these tests until _DEBUG panic in RMMFControllerProxy::Close() has been
|
|
566 |
// removed or modified.
|
|
567 |
// Otherwise these test steps fail when they shouldn't
|
|
568 |
AddTestStepL(CTestStepPlayerSharedHeapPanicMultiFilePlayer::NewL( _L("MM-MMF-ACLNT-U-2004-HP"), EFalse ));
|
|
569 |
AddTestStepL(CTestStepPlayerSharedHeapPanicMultiFilePlayer::NewL( _L("MM-MMF-ACLNT-U-2005-HP"), ETrue ));
|
|
570 |
*/
|
|
571 |
AddTestStepL(RTestStepConvertAudio::NewL(_L("MM-MMF-ACLNT-U-0574-HP"),
|
|
572 |
_L("c:\\mm\\mmf\\testfiles\\aclnt\\IMAADPCM4Bit8KhzMono512Block.wav"),
|
|
573 |
_L("c:\\mm\\mmf\\testfiles\\aclnt\\PCM16FromImaadpcmwith512block.wav"),
|
|
574 |
_L("c:\\mm\\mmf\\testfiles\\aclnt\\Refimaadpcmwith512block2pcm16.wav")));
|
|
575 |
|
|
576 |
// INC107513 Startup tone is played before tone initialization is completed.
|
|
577 |
AddTestStepL(RTestStepTonePlayBeforeInitialized::NewL());
|
|
578 |
AddTestStepL(CTsuClientUtilityControllerLoading::NewL(_L("MM-MMF-ACLNT-U-0066-HP"),
|
|
579 |
_L("c:\\mm\\testformat.tsa")));
|
|
580 |
AddTestStepL(CAsyncTestStepCtrlSetRepeatsCustomCommands::NewL(_L("MM-MMF-ACLNT-U-0068-HP"),_L("SectionOne"), _L("AudioPlayFName2")));
|
|
581 |
AddTestStepL(CTestStepAudOutStreamConcurrentOpen::NewL());
|
|
582 |
|
|
583 |
//DEF121928 - Concurrently calling RecordL by audiorecorder in 3 threads make server panics
|
|
584 |
AddTestStepL(RAudioConcurrentRecTest::NewL(_L("MM-MMF-ACLNT-U-0972-CP"), EMdaPriorityMin, EMdaPriorityNormal, EMdaPriorityMax));
|
|
585 |
AddTestStepL(RAudioConcurrentRecTest::NewL(_L("MM-MMF-ACLNT-U-0973-CP"), EMdaPriorityMax, EMdaPriorityNormal, EMdaPriorityMin));
|
|
586 |
AddTestStepL(RAudioConcurrentRecTest::NewL(_L("MM-MMF-ACLNT-U-0974-CP"), EMdaPriorityNormal, EMdaPriorityMax, EMdaPriorityMin));
|
|
587 |
|
|
588 |
AddTestStepL(RTestStepTonePlayWhenBusy::NewL());
|
|
589 |
|
|
590 |
//DEF120897:CMdaAudioOutputStream depending on devsound underflow events, against new behav
|
|
591 |
//KeepOpenAtEnd Mode and Auto RequestStop
|
|
592 |
AddTestStepL(RAudioOPStreamRequestStop::NewL(_L("MM-MMF-ACLNT-U-0975-CP"), ETrue, ETrue, EFalse));
|
|
593 |
//KeepOpenAtEnd Mode and Explicit RequestStop after sometime
|
|
594 |
AddTestStepL(RAudioOPStreamRequestStop::NewL(_L("MM-MMF-ACLNT-U-0976-CP"), ETrue, EFalse, EFalse));
|
|
595 |
//KeepOpenAtEnd Mode Negative test: Try calling WriteL after calling RequestStop
|
|
596 |
AddTestStepL(RAudioOPStreamRequestStop::NewL(_L("MM-MMF-ACLNT-U-0977-CP"), ETrue, ETrue, ETrue));
|
|
597 |
//Non KeepOpenAtEnd Mode
|
|
598 |
AddTestStepL(RAudioOPStreamRequestStop::NewL(_L("MM-MMF-ACLNT-U-0978-CP"), EFalse, EFalse, EFalse));
|
|
599 |
//Restart the play in KeepOpenAtEnd mode
|
|
600 |
AddTestStepL(RAudioOPStreamRequestStop::NewL(_L("MM-MMF-ACLNT-U-0979-CP"), ETrue, ETrue, EFalse, ETrue));
|
|
601 |
//Restart the play in Non KeepOpenAtEnd mode
|
|
602 |
AddTestStepL(RAudioOPStreamRequestStop::NewL(_L("MM-MMF-ACLNT-U-0980-CP"), EFalse, EFalse, EFalse, ETrue));
|
|
603 |
|
|
604 |
//DEF125377 - Test negative frequency and duration values passed to CMdaAudioToneUtility
|
|
605 |
AddTestStepL(CTestStepTonePlayDualToneInvalidFreq::NewL(_L("MM-MMF-ACLNT-U-0981-CP")));
|
|
606 |
AddTestStepL(CTestStepTonePlayDualToneInvalidFreq::NewL(_L("MM-MMF-ACLNT-U-0982-CP")));
|
|
607 |
AddTestStepL(CTestStepTonePlayDualToneInvalidFreq::NewL(_L("MM-MMF-ACLNT-U-0983-CP")));
|
|
608 |
|
|
609 |
// PDEF131534 SPPR_PERF: Music player crashes when opening corrupted wav file
|
|
610 |
AddTestStepL(RAudioOpenCorrupt::NewL(_L("MM-MMF-ACLNT-U-0984-HP"), _L("c:\\mm\\mmf\\testfiles\\aclnt\\CorruptSampleRate.wav")));
|
|
611 |
AddTestStepL(CTestStepAudInStreamDestroy::NewL(this));
|
|
612 |
|
|
613 |
//DEF127630:Fix for INC108007 appears to close
|
|
614 |
AddTestStepL(RAudioPlayPanicTest::NewL(_L("MM-MMF-ACLNT-U-0986-CP"), _L("c:\\mm\\mmf\\testfiles\\aclnt\\playtest.pnc")));
|
|
615 |
AddTestStepL(RAudioRecPanicTest::NewL(_L("MM-MMF-ACLNT-U-0987-CP"), _L("c:\\mm\\mmf\\testfiles\\aclnt\\rectest.pnc")));
|
|
616 |
AddTestStepL(RTestStepConvertPanic::NewL(_L("MM-MMF-ACLNT-U-0988-CP"), _L("c:\\mm\\mmf\\testfiles\\aclnt\\playtest.pnc"),
|
|
617 |
_L("c:\\mm\\mmf\\testfiles\\aclnt\\convert.pnc"), _L("")));
|
|
618 |
}
|
|
619 |
|
|
620 |
/**
|
|
621 |
*
|
|
622 |
* InitSystemPath
|
|
623 |
* This sets up the default path
|
|
624 |
*
|
|
625 |
*/
|
|
626 |
void CTestSuiteUnitMMFAudClient::InitSystemPath()
|
|
627 |
{
|
|
628 |
_LIT(KAudioStremOutSourcePathOnC,"c:\\mm\\mmf\\testfiles\\aclnt\\");
|
|
629 |
|
|
630 |
RFs fs;
|
|
631 |
TUint att;
|
|
632 |
TInt ret = fs.Connect();
|
|
633 |
__ASSERT_ALWAYS(ret == KErrNone,User::Panic(_L("Sys path not setup"),ret));
|
|
634 |
|
|
635 |
if (fs.Att(KAudioStremOutSourcePathOnC,att) == KErrNone)
|
|
636 |
iDefaultPath = KAudioStremOutSourcePathOnC;
|
|
637 |
else
|
|
638 |
User::Panic(_L("Test files not found"),KErrNotFound);
|
|
639 |
|
|
640 |
fs.Close();
|
|
641 |
}
|
|
642 |
|
|
643 |
|
|
644 |
/**
|
|
645 |
*
|
|
646 |
* get default path
|
|
647 |
*
|
|
648 |
* @xxx
|
|
649 |
*
|
|
650 |
*/
|
|
651 |
const TDesC& CTestSuiteUnitMMFAudClient::DefaultPath() const
|
|
652 |
{
|
|
653 |
return iDefaultPath;
|
|
654 |
}
|
|
655 |
|
|
656 |
// -------------------------
|