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 |
// This file contains an example Test step implementation
|
|
15 |
// This demonstrates the various functions provided
|
|
16 |
// by the CTestStep base class which are available within
|
|
17 |
// a test step
|
|
18 |
//
|
|
19 |
//
|
|
20 |
|
|
21 |
// EPOC includes
|
|
22 |
#include <e32base.h>
|
|
23 |
#include <e32test.h>
|
|
24 |
#include <e32keys.h>
|
|
25 |
#include <c32comm.h>
|
|
26 |
#include <f32file.h>
|
|
27 |
#include <etel.h>
|
|
28 |
#include <etelmm.h>
|
|
29 |
#include <testframework.h>
|
|
30 |
|
|
31 |
//#include <MdaAudioSamplePlayer.h>
|
|
32 |
#include <mdaaudiosampleeditor.h>
|
|
33 |
//#include <MdaAudioTonePlayer.h>
|
|
34 |
|
|
35 |
// Test system includes
|
|
36 |
#include <testframework.h>
|
|
37 |
|
|
38 |
// Specific includes for this test suite
|
|
39 |
#include "TestStepUnitMMFAudClient.h"
|
|
40 |
#include "TestSuiteUnitMMFAudClient.h"
|
|
41 |
|
|
42 |
// Specific includes for these test steps
|
|
43 |
#include "TestStepRecorder.h"
|
|
44 |
|
|
45 |
|
|
46 |
#include "MmfAudioController.h"
|
|
47 |
#include "mmfclientaudiorecorder.h"
|
|
48 |
//#include "MmfClientAudioPlayer.h"
|
|
49 |
//#include <mmffourcc.h>
|
|
50 |
//#include <mmfpaniccodes.h>
|
|
51 |
//#include <mmfFormatImplementationUIDs.hrh>
|
|
52 |
// --------------------------------------------
|
|
53 |
|
|
54 |
/**
|
|
55 |
*
|
|
56 |
* Static constructor for CTestStepRecorderPosPlay.
|
|
57 |
*
|
|
58 |
*
|
|
59 |
* @return "CTestStepRecorderPosPlay*"
|
|
60 |
* The constructed CTestStepRecorderPosPlay
|
|
61 |
*
|
|
62 |
* @xxxx
|
|
63 |
*
|
|
64 |
*/
|
|
65 |
CTestStepRecorderPosPlay* CTestStepRecorderPosPlay::NewL(const TDesC& aTestName, TBool aIsConverterTest)
|
|
66 |
{
|
|
67 |
CTestStepRecorderPosPlay* self = new(ELeave) CTestStepRecorderPosPlay(aTestName, aIsConverterTest);
|
|
68 |
return self;
|
|
69 |
}
|
|
70 |
|
|
71 |
/**
|
|
72 |
*
|
|
73 |
* Test step constructor.
|
|
74 |
* Each test step initialises its own name.
|
|
75 |
*
|
|
76 |
* @xxxx
|
|
77 |
*
|
|
78 |
*/
|
|
79 |
CTestStepRecorderPosPlay::CTestStepRecorderPosPlay(const TDesC& aTestName, TBool aIsConverterTest)
|
|
80 |
: iIsConverterTest(aIsConverterTest)
|
|
81 |
{
|
|
82 |
// store the name of this test case
|
|
83 |
// this is the name that is used by the script file
|
|
84 |
iTestStepName = aTestName;
|
|
85 |
}
|
|
86 |
|
|
87 |
/**
|
|
88 |
*
|
|
89 |
* Test step destructor.
|
|
90 |
*
|
|
91 |
* @xxxx
|
|
92 |
*
|
|
93 |
*/
|
|
94 |
CTestStepRecorderPosPlay::~CTestStepRecorderPosPlay()
|
|
95 |
{
|
|
96 |
}
|
|
97 |
|
|
98 |
/**
|
|
99 |
*
|
|
100 |
* Test step Preamble.
|
|
101 |
*
|
|
102 |
* @xxxx
|
|
103 |
*
|
|
104 |
*/
|
|
105 |
enum TVerdict CTestStepRecorderPosPlay::DoTestStepPreambleL(void)
|
|
106 |
{
|
|
107 |
enum TVerdict verdict;
|
|
108 |
// this installs the scheduler
|
|
109 |
verdict = CTestStepUnitMMFAudClient::DoTestStepPreambleL();
|
|
110 |
|
|
111 |
// Printing to the console and log file
|
|
112 |
INFO_PRINTF1(iTestStepName);
|
|
113 |
if (!iIsConverterTest)
|
|
114 |
{
|
|
115 |
INFO_PRINTF1(_L("this is a test of CMdaAudioRecorderUtility::Position()-PlayL()"));
|
|
116 |
}
|
|
117 |
else
|
|
118 |
{
|
|
119 |
INFO_PRINTF1(_L("this is a test of CMdaAudioConvertUtility::Position()-PlayL()"));
|
|
120 |
}
|
|
121 |
|
|
122 |
if(!(GetStringFromConfig(_L("SectionOne"), _L("AudioPlayFName7"), iFileName) && // wav
|
|
123 |
GetStringFromConfig(_L("SectionOne"), _L("AudioFNameToConvert"), iFileName3) // au
|
|
124 |
))
|
|
125 |
{
|
|
126 |
//INFO_PRINTF2(_L("file name %s not found..."), fileptr);
|
|
127 |
return EInconclusive;
|
|
128 |
}
|
|
129 |
|
|
130 |
if (!iIsConverterTest)
|
|
131 |
{
|
|
132 |
// create the Recorder utility
|
|
133 |
if ( (iRecorder = CMMFMdaAudioRecorderUtility::NewL(*this)) == NULL )
|
|
134 |
return EInconclusive;
|
|
135 |
|
|
136 |
iRecorder->OpenFileL( iFileName );
|
|
137 |
CActiveScheduler::Start();
|
|
138 |
if (iRecorder == NULL ||
|
|
139 |
iError != KErrNone ||
|
|
140 |
iRecorder->State() != CMdaAudioRecorderUtility::EOpen)
|
|
141 |
return EInconclusive;
|
|
142 |
|
|
143 |
iMiddle = TTimeIntervalMicroSeconds( iRecorder->Duration().Int64() / 2 );
|
|
144 |
iEnd = iRecorder->Duration();
|
|
145 |
}
|
|
146 |
else
|
|
147 |
{
|
|
148 |
// create the Recorder utility
|
|
149 |
if ( (iConvert = CMdaAudioConvertUtility::NewL(*this)) == NULL )
|
|
150 |
return EInconclusive;
|
|
151 |
|
|
152 |
iConvert->OpenL( iFileName, iFileName3 );
|
|
153 |
CActiveScheduler::Start();
|
|
154 |
if (iConvert == NULL ||
|
|
155 |
iError != KErrNone ||
|
|
156 |
iConvert->State() != CMdaAudioConvertUtility::EOpen)
|
|
157 |
return EInconclusive;
|
|
158 |
|
|
159 |
iMiddle = TTimeIntervalMicroSeconds( iConvert->Duration().Int64() / 2 );
|
|
160 |
iEnd = iConvert->Duration();
|
|
161 |
}
|
|
162 |
|
|
163 |
iBeginning = TTimeIntervalMicroSeconds( 0 );
|
|
164 |
return verdict;
|
|
165 |
}
|
|
166 |
|
|
167 |
/**
|
|
168 |
*
|
|
169 |
* Test step Postamble.
|
|
170 |
*
|
|
171 |
* @xxxx
|
|
172 |
*
|
|
173 |
*/
|
|
174 |
enum TVerdict CTestStepRecorderPosPlay::DoTestStepPostambleL(void)
|
|
175 |
{
|
|
176 |
iFs.Connect();
|
|
177 |
iFileMan = CFileMan::NewL(iFs);
|
|
178 |
iFileMan->Delete(iFileName3);
|
|
179 |
iFs.Close();
|
|
180 |
delete iFileMan;
|
|
181 |
iFileMan = NULL;
|
|
182 |
if (!iIsConverterTest)
|
|
183 |
{
|
|
184 |
delete iRecorder;
|
|
185 |
iRecorder = NULL;
|
|
186 |
}
|
|
187 |
else
|
|
188 |
{
|
|
189 |
delete iConvert;
|
|
190 |
iConvert = NULL;
|
|
191 |
}
|
|
192 |
//[ Destroy the scheduler ]
|
|
193 |
return CTestStepUnitMMFAudClient::DoTestStepPostambleL();
|
|
194 |
}
|
|
195 |
|
|
196 |
/**
|
|
197 |
*
|
|
198 |
* Callback Handle.
|
|
199 |
*
|
|
200 |
* @xxxx
|
|
201 |
*
|
|
202 |
*/
|
|
203 |
void CTestStepRecorderPosPlay::MoscoStateChangeEvent(CBase* /*aObject*/,
|
|
204 |
TInt /*aPreviousState*/,
|
|
205 |
TInt /*aCurrentState*/,
|
|
206 |
TInt aErrorcCode)
|
|
207 |
{
|
|
208 |
iError = aErrorcCode;
|
|
209 |
CActiveScheduler::Stop();
|
|
210 |
}
|
|
211 |
|
|
212 |
/**
|
|
213 |
*
|
|
214 |
* Do the test step.
|
|
215 |
* Each test step must supply an implementation for DoTestStepL.
|
|
216 |
*
|
|
217 |
* @return "TVerdict"
|
|
218 |
* The result of the test step
|
|
219 |
*
|
|
220 |
* @xxxx
|
|
221 |
*
|
|
222 |
*/
|
|
223 |
TVerdict CTestStepRecorderPosPlay::DoTestStepL()
|
|
224 |
{
|
|
225 |
iTestStepResult = EPass;
|
|
226 |
|
|
227 |
if (!iIsConverterTest)
|
|
228 |
{
|
|
229 |
iRecorder->SetPosition(iMiddle);
|
|
230 |
if (iRecorder->Position() != iMiddle )
|
|
231 |
return EFail;
|
|
232 |
|
|
233 |
iRecorder->SetPosition(iBeginning);
|
|
234 |
if (iRecorder->Position() != iBeginning )
|
|
235 |
return EFail;
|
|
236 |
|
|
237 |
iRecorder->SetPosition(iEnd);
|
|
238 |
if (iRecorder->Position() != iEnd )
|
|
239 |
return EFail;
|
|
240 |
|
|
241 |
iRecorder->SetPosition(TTimeIntervalMicroSeconds(1));
|
|
242 |
if (iRecorder->Position() != TTimeIntervalMicroSeconds(1) )
|
|
243 |
return EFail;
|
|
244 |
|
|
245 |
iRecorder->SetPosition(TTimeIntervalMicroSeconds(1000));
|
|
246 |
if (iRecorder->Position() != TTimeIntervalMicroSeconds(1000) )
|
|
247 |
return EFail;
|
|
248 |
|
|
249 |
iRecorder->SetPosition(TTimeIntervalMicroSeconds(1000000));
|
|
250 |
if (iRecorder->Position() != TTimeIntervalMicroSeconds(1000000) )
|
|
251 |
return EFail;
|
|
252 |
}
|
|
253 |
else // iIsConverterTest == ETrue
|
|
254 |
{
|
|
255 |
iConvert->SetPosition(iMiddle);
|
|
256 |
if (iConvert->Position() != iMiddle )
|
|
257 |
return EFail;
|
|
258 |
|
|
259 |
iConvert->SetPosition(iBeginning);
|
|
260 |
if (iConvert->Position() != iBeginning )
|
|
261 |
return EFail;
|
|
262 |
|
|
263 |
iConvert->SetPosition(iEnd);
|
|
264 |
if (iConvert->Position() != iEnd )
|
|
265 |
return EFail;
|
|
266 |
|
|
267 |
iConvert->SetPosition(TTimeIntervalMicroSeconds(1));
|
|
268 |
if (iConvert->Position() != TTimeIntervalMicroSeconds(1) )
|
|
269 |
return EFail;
|
|
270 |
|
|
271 |
iConvert->SetPosition(TTimeIntervalMicroSeconds(1000));
|
|
272 |
if (iConvert->Position() != TTimeIntervalMicroSeconds(1000) )
|
|
273 |
return EFail;
|
|
274 |
|
|
275 |
iConvert->SetPosition(TTimeIntervalMicroSeconds(1000000));
|
|
276 |
if (iConvert->Position() != TTimeIntervalMicroSeconds(1000000) )
|
|
277 |
return EFail;
|
|
278 |
}
|
|
279 |
|
|
280 |
INFO_PRINTF1(_L("finished with this test step"));
|
|
281 |
// test steps return a result
|
|
282 |
return iTestStepResult;
|
|
283 |
}
|
|
284 |
|
|
285 |
/**
|
|
286 |
*
|
|
287 |
* Static constructor for CTestStepRecorderPlayFF.
|
|
288 |
*
|
|
289 |
*
|
|
290 |
* @return "CTestStepRecorderPlayFF*"
|
|
291 |
* The constructed CTestStepRecorderPlayFF
|
|
292 |
*
|
|
293 |
* @xxxx
|
|
294 |
*
|
|
295 |
*/
|
|
296 |
CTestStepRecorderPlayFF* CTestStepRecorderPlayFF::NewL(const TDesC& aTestName)
|
|
297 |
{
|
|
298 |
CTestStepRecorderPlayFF* self = new(ELeave) CTestStepRecorderPlayFF(aTestName);
|
|
299 |
return self;
|
|
300 |
}
|
|
301 |
|
|
302 |
/**
|
|
303 |
*
|
|
304 |
* Test step constructor.
|
|
305 |
* Each test step initialises its own name.
|
|
306 |
*
|
|
307 |
* @xxxx
|
|
308 |
*
|
|
309 |
*/
|
|
310 |
CTestStepRecorderPlayFF::CTestStepRecorderPlayFF(const TDesC& aTestName)
|
|
311 |
{
|
|
312 |
// store the name of this test case
|
|
313 |
// this is the name that is used by the script file
|
|
314 |
iTestStepName = aTestName;
|
|
315 |
}
|
|
316 |
|
|
317 |
/**
|
|
318 |
*
|
|
319 |
* Test step destructor.
|
|
320 |
*
|
|
321 |
* @xxxx
|
|
322 |
*
|
|
323 |
*/
|
|
324 |
CTestStepRecorderPlayFF::~CTestStepRecorderPlayFF()
|
|
325 |
{
|
|
326 |
}
|
|
327 |
|
|
328 |
/**
|
|
329 |
*
|
|
330 |
* Test step Preamble.
|
|
331 |
*
|
|
332 |
* @xxxx
|
|
333 |
*
|
|
334 |
*/
|
|
335 |
enum TVerdict CTestStepRecorderPlayFF::DoTestStepPreambleL(void)
|
|
336 |
{
|
|
337 |
enum TVerdict verdict;
|
|
338 |
// this installs the scheduler
|
|
339 |
verdict = CTestStepUnitMMFAudClient::DoTestStepPreambleL();
|
|
340 |
|
|
341 |
// Printing to the console and log file
|
|
342 |
INFO_PRINTF1(iTestStepName);
|
|
343 |
INFO_PRINTF1(_L("this is a test of CMdaAudioRecorderUtility::PlayL(), Rewind & Fast forward"));
|
|
344 |
|
|
345 |
if(!GetStringFromConfig(_L("SectionOne"), _L("AudioPlayFName2"), iFileName))
|
|
346 |
{
|
|
347 |
INFO_PRINTF2(_L("file name %S not found..."), &iFileName);
|
|
348 |
return EInconclusive;
|
|
349 |
}
|
|
350 |
|
|
351 |
// create the Recorder utility
|
|
352 |
if ( (iRecorder = CMMFMdaAudioRecorderUtility::NewL(*this)) == NULL )
|
|
353 |
return EInconclusive;
|
|
354 |
|
|
355 |
iRecorder->OpenFileL( iFileName );
|
|
356 |
CActiveScheduler::Start();
|
|
357 |
|
|
358 |
if (iRecorder == NULL ||
|
|
359 |
iError != KErrNone ||
|
|
360 |
iRecorder->State() != CMdaAudioRecorderUtility::EOpen)
|
|
361 |
return EInconclusive;
|
|
362 |
|
|
363 |
// initialize a callback timer
|
|
364 |
TRAPD(err, iTimer = CCallbackTimer::NewL(*this));
|
|
365 |
if (err != KErrNone)
|
|
366 |
return EInconclusive;
|
|
367 |
CActiveScheduler::Add(iTimer);
|
|
368 |
|
|
369 |
return verdict;
|
|
370 |
}
|
|
371 |
|
|
372 |
/**
|
|
373 |
*
|
|
374 |
* Test step Postamble.
|
|
375 |
*
|
|
376 |
* @xxxx
|
|
377 |
*
|
|
378 |
*/
|
|
379 |
enum TVerdict CTestStepRecorderPlayFF::DoTestStepPostambleL(void)
|
|
380 |
{
|
|
381 |
delete iTimer;
|
|
382 |
iTimer = NULL;
|
|
383 |
|
|
384 |
delete iRecorder;
|
|
385 |
iRecorder = NULL;
|
|
386 |
|
|
387 |
//[ Destroy the scheduler ]
|
|
388 |
return CTestStepUnitMMFAudClient::DoTestStepPostambleL();
|
|
389 |
}
|
|
390 |
|
|
391 |
/**
|
|
392 |
*
|
|
393 |
* Callback Handle.
|
|
394 |
*
|
|
395 |
* @xxxx
|
|
396 |
*
|
|
397 |
*/
|
|
398 |
void CTestStepRecorderPlayFF::MoscoStateChangeEvent(CBase* /*aObject*/,
|
|
399 |
TInt aPreviousState,
|
|
400 |
TInt aCurrentState,
|
|
401 |
TInt aErrorCode)
|
|
402 |
{
|
|
403 |
iState = aCurrentState;
|
|
404 |
iError = aErrorCode;
|
|
405 |
|
|
406 |
INFO_PRINTF3(_L("MoscoStateChangeEvent(): Prev state = %d, current state = %d"), aPreviousState, aCurrentState);
|
|
407 |
|
|
408 |
iSchedulerStopReason = EStateChange;
|
|
409 |
|
|
410 |
CActiveScheduler::Stop();
|
|
411 |
}
|
|
412 |
|
|
413 |
/**
|
|
414 |
*
|
|
415 |
* Do the test step.
|
|
416 |
* Each test step must supply an implementation for DoTestStepL.
|
|
417 |
*
|
|
418 |
* @return "TVerdict"
|
|
419 |
* The result of the test step
|
|
420 |
*
|
|
421 |
* @xxxx
|
|
422 |
*
|
|
423 |
*/
|
|
424 |
TVerdict CTestStepRecorderPlayFF::DoTestStepL()
|
|
425 |
{
|
|
426 |
const TInt KTenthOfASecond = 100000;
|
|
427 |
const TInt KOneSecond = 1000000;
|
|
428 |
const TInt KMaxRWs = 20;
|
|
429 |
const TInt KMaxFFs = 30;
|
|
430 |
TInt expectedState;
|
|
431 |
|
|
432 |
iTestStepResult = EPass;
|
|
433 |
|
|
434 |
expectedState = CMdaAudioRecorderUtility::EOpen;
|
|
435 |
if (iState != expectedState && iError != KErrNone)
|
|
436 |
{
|
|
437 |
INFO_PRINTF4(_L("Unexpected state; expected = %d, actual = %d, error = %d"), expectedState, iState, iError);
|
|
438 |
return EFail;
|
|
439 |
}
|
|
440 |
|
|
441 |
TTimeIntervalMicroSeconds duration = iRecorder->Duration();
|
|
442 |
INFO_PRINTF2(_L("Duration = %d"), I64INT(duration.Int64()));
|
|
443 |
|
|
444 |
INFO_PRINTF1(_L("Calling PlayL().."));
|
|
445 |
iRecorder->PlayL();
|
|
446 |
CActiveScheduler::Start();
|
|
447 |
expectedState = CMdaAudioRecorderUtility::EPlaying;
|
|
448 |
if (iState != expectedState && iError != KErrNone)
|
|
449 |
{
|
|
450 |
INFO_PRINTF4(_L("Unexpected state; expected = %d, actual = %d, error = %d"), expectedState, iState, iError);
|
|
451 |
return EFail;
|
|
452 |
}
|
|
453 |
|
|
454 |
INFO_PRINTF1(_L("state = EPlaying.."));
|
|
455 |
|
|
456 |
INFO_PRINTF1(_L("Waiting for half way thru play.."));
|
|
457 |
// wait until we're half way thru play
|
|
458 |
iTimer->After(I64INT(duration.Int64() / 2));
|
|
459 |
CActiveScheduler::Start();
|
|
460 |
INFO_PRINTF1(_L("Finished."));
|
|
461 |
|
|
462 |
if (iState != expectedState && iError != KErrNone)
|
|
463 |
{
|
|
464 |
INFO_PRINTF4(_L("Unexpected state; expected = %d, actual = %d, error = %d"), expectedState, iState, iError);
|
|
465 |
return EFail;
|
|
466 |
}
|
|
467 |
|
|
468 |
|
|
469 |
INFO_PRINTF1(_L("Rewinding like mad....."));
|
|
470 |
TInt n;
|
|
471 |
for (n=0; n < KMaxRWs && iState == CMdaAudioRecorderUtility::EPlaying && iError == KErrNone; n++)
|
|
472 |
{
|
|
473 |
iSchedulerStopReason = EUnknown;
|
|
474 |
iTimer->After(KTenthOfASecond);
|
|
475 |
CActiveScheduler::Start();
|
|
476 |
|
|
477 |
TTimeIntervalMicroSeconds position = iRecorder->Position();
|
|
478 |
TTimeIntervalMicroSeconds nextPosition = (position.Int64() - KOneSecond);
|
|
479 |
if (nextPosition.Int64() < 0)
|
|
480 |
nextPosition = 0;
|
|
481 |
|
|
482 |
iRecorder->SetPosition(nextPosition);
|
|
483 |
INFO_PRINTF3(_L("Current position = %d, next = %d"), I64INT(position.Int64()), I64INT(iRecorder->Position().Int64()));
|
|
484 |
|
|
485 |
if (iSchedulerStopReason != ETimer)
|
|
486 |
break;
|
|
487 |
}
|
|
488 |
|
|
489 |
if (iState != expectedState && iError != KErrNone)
|
|
490 |
{
|
|
491 |
INFO_PRINTF4(_L("Unexpected state; expected = %d, actual = %d, error = %d"), expectedState, iState, iError);
|
|
492 |
return EFail;
|
|
493 |
}
|
|
494 |
|
|
495 |
|
|
496 |
|
|
497 |
INFO_PRINTF1(_L("Waiting for half way thru play.."));
|
|
498 |
// wait until we're half way thru play
|
|
499 |
iTimer->After(I64INT(duration.Int64() / 2));
|
|
500 |
CActiveScheduler::Start();
|
|
501 |
INFO_PRINTF1(_L("Finished."));
|
|
502 |
|
|
503 |
if (iState != expectedState && iError != KErrNone)
|
|
504 |
{
|
|
505 |
INFO_PRINTF4(_L("Unexpected state; expected = %d, actual = %d, error = %d"), expectedState, iState, iError);
|
|
506 |
return EFail;
|
|
507 |
}
|
|
508 |
|
|
509 |
|
|
510 |
INFO_PRINTF1(_L("Fast forwarding like mad....."));
|
|
511 |
for (n=0; n < KMaxFFs && iState == CMdaAudioRecorderUtility::EPlaying && iError == KErrNone; n++)
|
|
512 |
{
|
|
513 |
iSchedulerStopReason = EUnknown;
|
|
514 |
iTimer->After(KTenthOfASecond);
|
|
515 |
CActiveScheduler::Start();
|
|
516 |
|
|
517 |
TTimeIntervalMicroSeconds position = iRecorder->Position();
|
|
518 |
TTimeIntervalMicroSeconds nextPosition = (position.Int64() + KOneSecond);
|
|
519 |
if (nextPosition.Int64() > duration.Int64())
|
|
520 |
{
|
|
521 |
nextPosition = duration;
|
|
522 |
}
|
|
523 |
|
|
524 |
iRecorder->SetPosition(nextPosition);
|
|
525 |
INFO_PRINTF4(_L("Current position = %d, next = %d, new = %d"),
|
|
526 |
I64INT(position.Int64()), I64INT(nextPosition.Int64()), I64INT(iRecorder->Position().Int64()));
|
|
527 |
|
|
528 |
if (iSchedulerStopReason != ETimer)
|
|
529 |
break;
|
|
530 |
}
|
|
531 |
|
|
532 |
INFO_PRINTF1(_L("finished playing.."));
|
|
533 |
|
|
534 |
expectedState = CMdaAudioRecorderUtility::EOpen;
|
|
535 |
if (iState != expectedState && iError != KErrNone)
|
|
536 |
{
|
|
537 |
INFO_PRINTF4(_L("Unexpected state; expected = %d, actual = %d, error = %d"), expectedState, iState, iError);
|
|
538 |
return EFail;
|
|
539 |
}
|
|
540 |
|
|
541 |
|
|
542 |
INFO_PRINTF1(_L("finished with this test step"));
|
|
543 |
|
|
544 |
return iTestStepResult;
|
|
545 |
}
|
|
546 |
|
|
547 |
CTestStepRecorderPlayFF::CCallbackTimer::CCallbackTimer(CTestStepRecorderPlayFF& aTest)
|
|
548 |
: CTimer(EPriorityNormal), iTest(aTest)
|
|
549 |
{
|
|
550 |
}
|
|
551 |
|
|
552 |
CTestStepRecorderPlayFF::CCallbackTimer::~CCallbackTimer()
|
|
553 |
{
|
|
554 |
}
|
|
555 |
|
|
556 |
CTestStepRecorderPlayFF::CCallbackTimer* CTestStepRecorderPlayFF::CCallbackTimer::NewL(CTestStepRecorderPlayFF& aTest)
|
|
557 |
{
|
|
558 |
CCallbackTimer* timer = new(ELeave) CCallbackTimer(aTest);
|
|
559 |
CleanupStack::PushL(timer);
|
|
560 |
timer->ConstructL();
|
|
561 |
CleanupStack::Pop(timer);
|
|
562 |
return timer;
|
|
563 |
}
|
|
564 |
|
|
565 |
void CTestStepRecorderPlayFF::CCallbackTimer::RunL()
|
|
566 |
{
|
|
567 |
iTest.iSchedulerStopReason = ETimer;
|
|
568 |
CActiveScheduler::Stop();
|
|
569 |
}
|
|
570 |
|
|
571 |
|
|
572 |
/**
|
|
573 |
*
|
|
574 |
* Static constructor for CTestStepRecorderPlayEOF.
|
|
575 |
*
|
|
576 |
*
|
|
577 |
* @return "CTestStepRecorderPlayEOF*"
|
|
578 |
* The constructed CTestStepRecorderPlayEOF
|
|
579 |
*
|
|
580 |
* @xxxx
|
|
581 |
*
|
|
582 |
*/
|
|
583 |
CTestStepRecorderPlayEOF* CTestStepRecorderPlayEOF::NewL(const TDesC& aTestName)
|
|
584 |
{
|
|
585 |
CTestStepRecorderPlayEOF* self = new(ELeave) CTestStepRecorderPlayEOF(aTestName);
|
|
586 |
return self;
|
|
587 |
}
|
|
588 |
|
|
589 |
/**
|
|
590 |
*
|
|
591 |
* Test step constructor.
|
|
592 |
* Each test step initialises its own name.
|
|
593 |
*
|
|
594 |
* @xxxx
|
|
595 |
*
|
|
596 |
*/
|
|
597 |
CTestStepRecorderPlayEOF::CTestStepRecorderPlayEOF(const TDesC& aTestName)
|
|
598 |
{
|
|
599 |
// store the name of this test case
|
|
600 |
// this is the name that is used by the script file
|
|
601 |
iTestStepName = aTestName;
|
|
602 |
}
|
|
603 |
|
|
604 |
/**
|
|
605 |
*
|
|
606 |
* Test step destructor.
|
|
607 |
*
|
|
608 |
* @xxxx
|
|
609 |
*
|
|
610 |
*/
|
|
611 |
CTestStepRecorderPlayEOF::~CTestStepRecorderPlayEOF()
|
|
612 |
{
|
|
613 |
}
|
|
614 |
|
|
615 |
/**
|
|
616 |
*
|
|
617 |
* Test step Preamble.
|
|
618 |
*
|
|
619 |
* @xxxx
|
|
620 |
*
|
|
621 |
*/
|
|
622 |
enum TVerdict CTestStepRecorderPlayEOF::DoTestStepPreambleL(void)
|
|
623 |
{
|
|
624 |
enum TVerdict verdict;
|
|
625 |
// this installs the scheduler
|
|
626 |
verdict = CTestStepUnitMMFAudClient::DoTestStepPreambleL();
|
|
627 |
|
|
628 |
// Printing to the console and log file
|
|
629 |
INFO_PRINTF1(iTestStepName);
|
|
630 |
INFO_PRINTF1(_L("this is a test of CMdaAudioRecorderUtility..."));
|
|
631 |
INFO_PRINTF1(_L("Play a clip from the middle to EOF, then set the position to the clip's"));
|
|
632 |
INFO_PRINTF1(_L("duration, call play and then immediately read the position and check it's"));
|
|
633 |
INFO_PRINTF1(_L("not longer than the file's duration"));
|
|
634 |
|
|
635 |
if(!GetStringFromConfig(_L("SectionOne"), _L("AudioPlayFName2"), iFileName))
|
|
636 |
{
|
|
637 |
INFO_PRINTF2(_L("file name %S not found..."), &iFileName);
|
|
638 |
return EInconclusive;
|
|
639 |
}
|
|
640 |
|
|
641 |
// create the Recorder utility
|
|
642 |
if ( (iRecorder = CMMFMdaAudioRecorderUtility::NewL(*this)) == NULL )
|
|
643 |
return EInconclusive;
|
|
644 |
|
|
645 |
iRecorder->OpenFileL( iFileName );
|
|
646 |
CActiveScheduler::Start();
|
|
647 |
|
|
648 |
if (iRecorder == NULL ||
|
|
649 |
iError != KErrNone ||
|
|
650 |
iRecorder->State() != CMdaAudioRecorderUtility::EOpen)
|
|
651 |
return EInconclusive;
|
|
652 |
|
|
653 |
// initialize a callback timer
|
|
654 |
TRAPD(err, iTimer = CCallbackTimer::NewL(*this));
|
|
655 |
if (err != KErrNone)
|
|
656 |
return EInconclusive;
|
|
657 |
CActiveScheduler::Add(iTimer);
|
|
658 |
|
|
659 |
return verdict;
|
|
660 |
}
|
|
661 |
|
|
662 |
/**
|
|
663 |
*
|
|
664 |
* Test step Postamble.
|
|
665 |
*
|
|
666 |
* @xxxx
|
|
667 |
*
|
|
668 |
*/
|
|
669 |
enum TVerdict CTestStepRecorderPlayEOF::DoTestStepPostambleL(void)
|
|
670 |
{
|
|
671 |
delete iTimer;
|
|
672 |
iTimer = NULL;
|
|
673 |
|
|
674 |
delete iRecorder;
|
|
675 |
iRecorder = NULL;
|
|
676 |
|
|
677 |
//[ Destroy the scheduler ]
|
|
678 |
return CTestStepUnitMMFAudClient::DoTestStepPostambleL();
|
|
679 |
}
|
|
680 |
|
|
681 |
/**
|
|
682 |
*
|
|
683 |
* Callback Handle.
|
|
684 |
*
|
|
685 |
* @xxxx
|
|
686 |
*
|
|
687 |
*/
|
|
688 |
void CTestStepRecorderPlayEOF::MoscoStateChangeEvent(CBase* /*aObject*/,
|
|
689 |
TInt aPreviousState,
|
|
690 |
TInt aCurrentState,
|
|
691 |
TInt aErrorCode)
|
|
692 |
{
|
|
693 |
iState = aCurrentState;
|
|
694 |
iError = aErrorCode;
|
|
695 |
|
|
696 |
INFO_PRINTF3(_L("MoscoStateChangeEvent(): Prev state = %d, current state = %d"), aPreviousState, aCurrentState);
|
|
697 |
|
|
698 |
iSchedulerStopReason = EStateChange;
|
|
699 |
|
|
700 |
CActiveScheduler::Stop();
|
|
701 |
}
|
|
702 |
|
|
703 |
/**
|
|
704 |
*
|
|
705 |
* Do the test step.
|
|
706 |
* Each test step must supply an implementation for DoTestStepL.
|
|
707 |
*
|
|
708 |
* @return "TVerdict"
|
|
709 |
* The result of the test step
|
|
710 |
*
|
|
711 |
* @xxxx
|
|
712 |
*
|
|
713 |
*/
|
|
714 |
TVerdict CTestStepRecorderPlayEOF::DoTestStepL()
|
|
715 |
{
|
|
716 |
TInt expectedState;
|
|
717 |
|
|
718 |
iTestStepResult = EPass;
|
|
719 |
|
|
720 |
expectedState = CMdaAudioRecorderUtility::EOpen;
|
|
721 |
if (iState != expectedState && iError != KErrNone)
|
|
722 |
{
|
|
723 |
INFO_PRINTF4(_L("Unexpected state; expected = %d, actual = %d, error = %d"), expectedState, iState, iError);
|
|
724 |
return EFail;
|
|
725 |
}
|
|
726 |
|
|
727 |
TTimeIntervalMicroSeconds duration = iRecorder->Duration();
|
|
728 |
INFO_PRINTF2(_L("Duration = %d"), I64INT(duration.Int64()));
|
|
729 |
|
|
730 |
|
|
731 |
TTimeIntervalMicroSeconds midPosition = TTimeIntervalMicroSeconds(duration.Int64() / 2);
|
|
732 |
INFO_PRINTF2(_L("Setting position to %d"), I64INT(midPosition.Int64()));
|
|
733 |
iRecorder->SetPosition(midPosition);
|
|
734 |
|
|
735 |
INFO_PRINTF1(_L("Calling PlayL().."));
|
|
736 |
iRecorder->PlayL();
|
|
737 |
CActiveScheduler::Start();
|
|
738 |
expectedState = CMdaAudioRecorderUtility::EPlaying;
|
|
739 |
if (iState != expectedState && iError != KErrNone)
|
|
740 |
{
|
|
741 |
INFO_PRINTF4(_L("Unexpected state; expected = %d, actual = %d, error = %d"), expectedState, iState, iError);
|
|
742 |
return EFail;
|
|
743 |
}
|
|
744 |
|
|
745 |
INFO_PRINTF1(_L("Waiting for EOF.."));
|
|
746 |
CActiveScheduler::Start();
|
|
747 |
INFO_PRINTF1(_L("finished playing.."));
|
|
748 |
expectedState = CMdaAudioRecorderUtility::EOpen;
|
|
749 |
if (iState != expectedState && iError != KErrNone)
|
|
750 |
{
|
|
751 |
INFO_PRINTF4(_L("Unexpected state; expected = %d, actual = %d, error = %d"), expectedState, iState, iError);
|
|
752 |
return EFail;
|
|
753 |
}
|
|
754 |
|
|
755 |
INFO_PRINTF2(_L("Setting position = Duration = %d"), I64INT(duration.Int64()));
|
|
756 |
iRecorder->SetPosition(duration);
|
|
757 |
|
|
758 |
INFO_PRINTF1(_L("Calling PlayL() again.."));
|
|
759 |
iRecorder->PlayL();
|
|
760 |
|
|
761 |
|
|
762 |
TTimeIntervalMicroSeconds position = iRecorder->Position();
|
|
763 |
INFO_PRINTF2(_L("Current position = %d"), I64INT(position.Int64()));
|
|
764 |
if (position.Int64() > duration.Int64())
|
|
765 |
{
|
|
766 |
INFO_PRINTF1(_L("Position is longer than the duration"));
|
|
767 |
return EFail;
|
|
768 |
}
|
|
769 |
|
|
770 |
|
|
771 |
CActiveScheduler::Start();
|
|
772 |
|
|
773 |
expectedState = CMdaAudioRecorderUtility::EPlaying;
|
|
774 |
if (iState != expectedState && iError != KErrNone)
|
|
775 |
{
|
|
776 |
INFO_PRINTF4(_L("Unexpected state; expected = %d, actual = %d, error = %d"), expectedState, iState, iError);
|
|
777 |
return EFail;
|
|
778 |
}
|
|
779 |
INFO_PRINTF1(_L("state = EPlaying.."));
|
|
780 |
|
|
781 |
INFO_PRINTF1(_L("Waiting for EOF.."));
|
|
782 |
CActiveScheduler::Start();
|
|
783 |
INFO_PRINTF1(_L("Finished."));
|
|
784 |
expectedState = CMdaAudioRecorderUtility::EOpen;
|
|
785 |
if (iState != expectedState && iError != KErrNone)
|
|
786 |
{
|
|
787 |
INFO_PRINTF4(_L("Unexpected state; expected = %d, actual = %d, error = %d"), expectedState, iState, iError);
|
|
788 |
return EFail;
|
|
789 |
}
|
|
790 |
|
|
791 |
expectedState = CMdaAudioRecorderUtility::EOpen;
|
|
792 |
if (iState != expectedState && iError != KErrNone)
|
|
793 |
{
|
|
794 |
INFO_PRINTF4(_L("Unexpected state; expected = %d, actual = %d, error = %d"), expectedState, iState, iError);
|
|
795 |
return EFail;
|
|
796 |
}
|
|
797 |
|
|
798 |
|
|
799 |
//##############################################################
|
|
800 |
|
|
801 |
iRecorder->Stop();
|
|
802 |
|
|
803 |
TTimeIntervalMicroSeconds sillyPosition =
|
|
804 |
TTimeIntervalMicroSeconds(duration.Int64() + 1000000);
|
|
805 |
INFO_PRINTF2(_L("Setting position past EOF = %d"), I64INT(sillyPosition.Int64()));
|
|
806 |
iRecorder->SetPosition(sillyPosition);
|
|
807 |
|
|
808 |
INFO_PRINTF1(_L("Calling PlayL() again.."));
|
|
809 |
iRecorder->PlayL();
|
|
810 |
|
|
811 |
|
|
812 |
position = iRecorder->Position();
|
|
813 |
INFO_PRINTF2(_L("Current position = %d"), I64INT(position.Int64()));
|
|
814 |
if (position.Int64() > duration.Int64())
|
|
815 |
{
|
|
816 |
INFO_PRINTF1(_L("Position is longer than the duration (before play has started - OK)"));
|
|
817 |
// return EFail;
|
|
818 |
}
|
|
819 |
|
|
820 |
|
|
821 |
CActiveScheduler::Start();
|
|
822 |
|
|
823 |
expectedState = CMdaAudioRecorderUtility::EOpen;
|
|
824 |
if (iState != expectedState && iError != KErrArgument)
|
|
825 |
{
|
|
826 |
INFO_PRINTF4(_L("Unexpected state; expected = %d, actual = %d, error = %d"), expectedState, iState, iError);
|
|
827 |
return EFail;
|
|
828 |
}
|
|
829 |
//##############################################################
|
|
830 |
INFO_PRINTF1(_L("finished with this test step"));
|
|
831 |
|
|
832 |
return iTestStepResult;
|
|
833 |
}
|
|
834 |
|
|
835 |
CTestStepRecorderPlayEOF::CCallbackTimer::CCallbackTimer(CTestStepRecorderPlayEOF& aTest)
|
|
836 |
: CTimer(EPriorityNormal), iTest(aTest)
|
|
837 |
{
|
|
838 |
}
|
|
839 |
|
|
840 |
CTestStepRecorderPlayEOF::CCallbackTimer::~CCallbackTimer()
|
|
841 |
{
|
|
842 |
}
|
|
843 |
|
|
844 |
CTestStepRecorderPlayEOF::CCallbackTimer* CTestStepRecorderPlayEOF::CCallbackTimer::NewL(CTestStepRecorderPlayEOF& aTest)
|
|
845 |
{
|
|
846 |
CCallbackTimer* timer = new(ELeave) CCallbackTimer(aTest);
|
|
847 |
CleanupStack::PushL(timer);
|
|
848 |
timer->ConstructL();
|
|
849 |
CleanupStack::Pop(timer);
|
|
850 |
return timer;
|
|
851 |
}
|
|
852 |
|
|
853 |
void CTestStepRecorderPlayEOF::CCallbackTimer::RunL()
|
|
854 |
{
|
|
855 |
iTest.iSchedulerStopReason = ETimer;
|
|
856 |
CActiveScheduler::Stop();
|
|
857 |
}
|
|
858 |
|
|
859 |
/**
|
|
860 |
*
|
|
861 |
* Static constructor for CTestStepRecorderPlayStopPosStop.
|
|
862 |
*
|
|
863 |
*
|
|
864 |
* @return "CTestStepRecorderPlayStopPosStop*"
|
|
865 |
* The constructed CTestStepRecorderPlayStopPosStop
|
|
866 |
*
|
|
867 |
* @xxxx
|
|
868 |
*
|
|
869 |
*/
|
|
870 |
CTestStepRecorderPlayStopPosStop* CTestStepRecorderPlayStopPosStop::NewL()
|
|
871 |
{
|
|
872 |
CTestStepRecorderPlayStopPosStop* self = new(ELeave) CTestStepRecorderPlayStopPosStop;
|
|
873 |
return self;
|
|
874 |
}
|
|
875 |
|
|
876 |
|
|
877 |
/**
|
|
878 |
*
|
|
879 |
* Test step constructor.
|
|
880 |
* Each test step initialises its own name.
|
|
881 |
*
|
|
882 |
* @xxxx
|
|
883 |
*
|
|
884 |
*/
|
|
885 |
|
|
886 |
CTestStepRecorderPlayStopPosStop::CTestStepRecorderPlayStopPosStop()
|
|
887 |
{
|
|
888 |
// store the name of this test case
|
|
889 |
// this is the name that is used by the script file
|
|
890 |
iTestStepName = _L("MM-MMF-ACLNT-U-0857-HP");
|
|
891 |
|
|
892 |
}
|
|
893 |
|
|
894 |
/**
|
|
895 |
*
|
|
896 |
* Test step destructor.
|
|
897 |
*
|
|
898 |
* @xxxx
|
|
899 |
*
|
|
900 |
*/
|
|
901 |
|
|
902 |
CTestStepRecorderPlayStopPosStop::~CTestStepRecorderPlayStopPosStop()
|
|
903 |
{
|
|
904 |
}
|
|
905 |
|
|
906 |
/**
|
|
907 |
*
|
|
908 |
* Test step Preamble.
|
|
909 |
*
|
|
910 |
* @xxxx
|
|
911 |
*
|
|
912 |
*/
|
|
913 |
|
|
914 |
TVerdict CTestStepRecorderPlayStopPosStop::DoTestStepPreambleL(void)
|
|
915 |
{
|
|
916 |
TVerdict verdict=EPass;
|
|
917 |
// this installs the scheduler
|
|
918 |
if((verdict = CTestStepUnitMMFAudClient::DoTestStepPreambleL()) != EPass)
|
|
919 |
{
|
|
920 |
return EInconclusive;
|
|
921 |
}
|
|
922 |
|
|
923 |
// Printing to the console and log file
|
|
924 |
INFO_PRINTF2(_L("%S"), &iTestStepName);
|
|
925 |
INFO_PRINTF1(_L("this is a test of calling Play, Stop, SetPosition"));
|
|
926 |
INFO_PRINTF1(_L("and then call Stop again & verifying the position is set to the beginning"));
|
|
927 |
|
|
928 |
if(!GetStringFromConfig(_L("SectionOne"), _L("AudioPlayFName10"), iFileName))
|
|
929 |
{
|
|
930 |
return EInconclusive;
|
|
931 |
}
|
|
932 |
// create the Recorder utility
|
|
933 |
TRAPD(error, iRecorderUtility = CMdaAudioRecorderUtility::NewL(*this));
|
|
934 |
if (error != KErrNone)
|
|
935 |
{
|
|
936 |
return EInconclusive;
|
|
937 |
}
|
|
938 |
return verdict;
|
|
939 |
}
|
|
940 |
|
|
941 |
/**
|
|
942 |
*
|
|
943 |
* Test step Postamble.
|
|
944 |
*
|
|
945 |
* @xxxx
|
|
946 |
*
|
|
947 |
*/
|
|
948 |
TVerdict CTestStepRecorderPlayStopPosStop::DoTestStepPostambleL(void)
|
|
949 |
{
|
|
950 |
delete iRecorderUtility;
|
|
951 |
iRecorderUtility = NULL;
|
|
952 |
|
|
953 |
//[ Destroy the scheduler ]
|
|
954 |
return CTestStepUnitMMFAudClient::DoTestStepPostambleL();
|
|
955 |
}
|
|
956 |
|
|
957 |
/**
|
|
958 |
*
|
|
959 |
* Callback Handle.
|
|
960 |
*
|
|
961 |
* @xxxx
|
|
962 |
*
|
|
963 |
*/
|
|
964 |
/**
|
|
965 |
*
|
|
966 |
* Callback Handle.
|
|
967 |
*
|
|
968 |
* @xxxx
|
|
969 |
*
|
|
970 |
*/
|
|
971 |
void CTestStepRecorderPlayStopPosStop::MoscoStateChangeEvent(CBase* /*aObject*/,
|
|
972 |
TInt aPreviousState,
|
|
973 |
TInt aCurrentState,
|
|
974 |
TInt aErrorCode)
|
|
975 |
{
|
|
976 |
iCurrentState = aCurrentState;
|
|
977 |
iError = aErrorCode;
|
|
978 |
|
|
979 |
INFO_PRINTF3(_L("MoscoStateChangeEvent(): Prev state = %d, current state = %d"), aPreviousState, aCurrentState);
|
|
980 |
|
|
981 |
CActiveScheduler::Stop();
|
|
982 |
}
|
|
983 |
|
|
984 |
|
|
985 |
|
|
986 |
TVerdict CTestStepRecorderPlayStopPosStop::DoTestStepL()
|
|
987 |
{
|
|
988 |
iTestStepResult = EPass;
|
|
989 |
|
|
990 |
INFO_PRINTF1(_L("Opening file using player utility..."));
|
|
991 |
|
|
992 |
// open the sound file
|
|
993 |
TRAP(iError, iRecorderUtility->OpenFileL(iFileName));
|
|
994 |
if (iError != KErrNone)
|
|
995 |
{
|
|
996 |
return EInconclusive;
|
|
997 |
}
|
|
998 |
// wait for open to complete
|
|
999 |
CActiveScheduler::Start();
|
|
1000 |
|
|
1001 |
TInt expectedState = CMdaAudioRecorderUtility::EOpen;
|
|
1002 |
if (iCurrentState != expectedState && iError != KErrNone)
|
|
1003 |
{
|
|
1004 |
INFO_PRINTF4(_L("Unexpected state; expected = %d, actual = %d, error = %d"), expectedState, iCurrentState, iError);
|
|
1005 |
return EFail;
|
|
1006 |
}
|
|
1007 |
|
|
1008 |
|
|
1009 |
TTimeIntervalMicroSeconds playStart = TTimeIntervalMicroSeconds(0);
|
|
1010 |
TTimeIntervalMicroSeconds playEnd = iRecorderUtility->Duration();
|
|
1011 |
|
|
1012 |
iRecorderUtility->SetPlayWindow(playStart, playEnd);
|
|
1013 |
|
|
1014 |
INFO_PRINTF1(_L("calling play..."));
|
|
1015 |
|
|
1016 |
iRecorderUtility->PlayL();
|
|
1017 |
|
|
1018 |
CActiveScheduler::Start();
|
|
1019 |
|
|
1020 |
expectedState = CMdaAudioRecorderUtility::EPlaying;
|
|
1021 |
if (iCurrentState != expectedState && iError != KErrNone)
|
|
1022 |
{
|
|
1023 |
INFO_PRINTF4(_L("Unexpected state; expected = %d, actual = %d, error = %d"), expectedState, iCurrentState, iError);
|
|
1024 |
return EFail;
|
|
1025 |
}
|
|
1026 |
|
|
1027 |
User::After(500000);
|
|
1028 |
|
|
1029 |
iRecorderUtility->Stop();
|
|
1030 |
|
|
1031 |
TTimeIntervalMicroSeconds step = TTimeIntervalMicroSeconds(200000);
|
|
1032 |
|
|
1033 |
iRecorderUtility->SetPosition(step);
|
|
1034 |
|
|
1035 |
iRecorderUtility->Stop();
|
|
1036 |
|
|
1037 |
TTimeIntervalMicroSeconds position = iRecorderUtility->Position();
|
|
1038 |
|
|
1039 |
if (position.Int64() != playStart.Int64())
|
|
1040 |
{
|
|
1041 |
return EFail;
|
|
1042 |
}
|
|
1043 |
|
|
1044 |
|
|
1045 |
iRecorderUtility->Close();
|
|
1046 |
|
|
1047 |
return iTestStepResult;
|
|
1048 |
|
|
1049 |
}
|
|
1050 |
|