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 |
// These test steps create audio player utilities whose
|
|
15 |
// controllers share a single heap.
|
|
16 |
//
|
|
17 |
//
|
|
18 |
|
|
19 |
// EPOC includes
|
|
20 |
#include <e32base.h>
|
|
21 |
#include <e32test.h>
|
|
22 |
#include <e32keys.h>
|
|
23 |
#include <c32comm.h>
|
|
24 |
#include <f32file.h>
|
|
25 |
#include <etel.h>
|
|
26 |
#include <etelmm.h>
|
|
27 |
#include <testframework.h>
|
|
28 |
|
|
29 |
#include <mdaaudiosampleplayer.h>
|
|
30 |
|
|
31 |
// Test system includes
|
|
32 |
#include <testframework.h>
|
|
33 |
|
|
34 |
// Specific includes for this test suite
|
|
35 |
#include "TestStepUnitMMFAudClient.h"
|
|
36 |
|
|
37 |
// Specific includes for these test steps
|
|
38 |
#include "TestStepPlayerSharedHeap.h"
|
|
39 |
|
|
40 |
#include "mmfclientaudioplayer.h"
|
|
41 |
|
|
42 |
// For custom controller
|
|
43 |
#include "../../ctlfrm/TS_CMMFTestController/CmmfTestControllerUIDs.hrh"
|
|
44 |
#include "../../ctlfrm/TS_Codes.h"
|
|
45 |
|
|
46 |
// --------------------------------------------
|
|
47 |
|
|
48 |
const TInt KMaxPlayers = 24;
|
|
49 |
// would definitely exceed the chunk limit if there players were
|
|
50 |
// using separate heaps (which they shouldn't in this test)
|
|
51 |
|
|
52 |
|
|
53 |
const TInt KNoSharedPlayer = 2;
|
|
54 |
// which of the created players should be given its own heap on mixed style tests
|
|
55 |
// This must always be true: KNoSharedPlayer < KMaxPlayers
|
|
56 |
|
|
57 |
|
|
58 |
const TInt KRepeatAmount = 16;
|
|
59 |
// how often CTestStepPlayerSharedHeapRepeatMultiFilePlayer should create and delete players
|
|
60 |
|
|
61 |
|
|
62 |
const TUid KTstControllerUid = {KMmfTestControllerUid}; //(0x101F88D8)
|
|
63 |
// custom controller ID
|
|
64 |
|
|
65 |
// --------------------------------------------
|
|
66 |
|
|
67 |
|
|
68 |
/**
|
|
69 |
*
|
|
70 |
* Static constructor for CTestStepPlayerSharedHeapMultiFilePlayer.
|
|
71 |
*
|
|
72 |
*
|
|
73 |
* @return "CTestStepPlayerSharedHeapMultiFilePlayer*"
|
|
74 |
* The constructed CTestStepPlayerSharedHeapMultiFilePlayer
|
|
75 |
*
|
|
76 |
* @xxxx
|
|
77 |
*
|
|
78 |
*/
|
|
79 |
CTestStepPlayerSharedHeapMultiFilePlayer* CTestStepPlayerSharedHeapMultiFilePlayer::NewL(const TDesC& aName, TBool aMixHeapStyle )
|
|
80 |
{
|
|
81 |
CTestStepPlayerSharedHeapMultiFilePlayer* self = new(ELeave) CTestStepPlayerSharedHeapMultiFilePlayer( aName, aMixHeapStyle );
|
|
82 |
return self;
|
|
83 |
}
|
|
84 |
|
|
85 |
/**
|
|
86 |
*
|
|
87 |
* Test step constructor.
|
|
88 |
* Each test step initialises its own name.
|
|
89 |
*
|
|
90 |
* @xxxx
|
|
91 |
*
|
|
92 |
*/
|
|
93 |
CTestStepPlayerSharedHeapMultiFilePlayer::CTestStepPlayerSharedHeapMultiFilePlayer(const TDesC& aName, TBool aMixHeapStyle )
|
|
94 |
: iMixHeapStyle( aMixHeapStyle )
|
|
95 |
{
|
|
96 |
// store the name of this test case
|
|
97 |
// this is the name that is used by the script file
|
|
98 |
iTestStepName = aName;
|
|
99 |
|
|
100 |
iHeapSize = 128 * 1024;
|
|
101 |
}
|
|
102 |
|
|
103 |
/**
|
|
104 |
*
|
|
105 |
* Test step destructor.
|
|
106 |
*
|
|
107 |
* @xxxx
|
|
108 |
*
|
|
109 |
*/
|
|
110 |
CTestStepPlayerSharedHeapMultiFilePlayer::~CTestStepPlayerSharedHeapMultiFilePlayer()
|
|
111 |
{
|
|
112 |
}
|
|
113 |
|
|
114 |
/**
|
|
115 |
* Implementation of the MMdaAudioPlayerCallback interface functions
|
|
116 |
**/
|
|
117 |
void CTestStepPlayerSharedHeapMultiFilePlayer::MapcInitComplete(TInt aError,
|
|
118 |
const TTimeIntervalMicroSeconds &/*aDuration*/)
|
|
119 |
{
|
|
120 |
iError = aError;
|
|
121 |
|
|
122 |
if( aError )
|
|
123 |
{
|
|
124 |
INFO_PRINTF2(_L(" Callback error (%d) while opening player."), aError);
|
|
125 |
}
|
|
126 |
/*else
|
|
127 |
{
|
|
128 |
INFO_PRINTF1(_L(" Player opened successfully."));
|
|
129 |
}*/
|
|
130 |
CActiveScheduler::Stop();
|
|
131 |
}
|
|
132 |
|
|
133 |
void CTestStepPlayerSharedHeapMultiFilePlayer::MapcPlayComplete(TInt aError)
|
|
134 |
{
|
|
135 |
iError = aError;
|
|
136 |
CActiveScheduler::Stop();
|
|
137 |
}
|
|
138 |
|
|
139 |
/**
|
|
140 |
*
|
|
141 |
* Test step Preamble.
|
|
142 |
*
|
|
143 |
* @xxxx
|
|
144 |
*
|
|
145 |
*/
|
|
146 |
enum TVerdict CTestStepPlayerSharedHeapMultiFilePlayer::DoTestStepPreambleL(void)
|
|
147 |
{
|
|
148 |
enum TVerdict verdict;
|
|
149 |
// this installs the scheduler
|
|
150 |
verdict = CTestStepUnitMMFAudClient::DoTestStepPreambleL();
|
|
151 |
|
|
152 |
// Printing to the console and log file
|
|
153 |
INFO_PRINTF1( iTestStepName );
|
|
154 |
|
|
155 |
iError = KErrNone; //KErrTimedOut;
|
|
156 |
|
|
157 |
if(!GetStringFromConfig(_L("SectionOne"), _L("AudioPlayFName1"), iFileName))
|
|
158 |
{
|
|
159 |
return EInconclusive;
|
|
160 |
}
|
|
161 |
|
|
162 |
|
|
163 |
return verdict;
|
|
164 |
}
|
|
165 |
|
|
166 |
/**
|
|
167 |
*
|
|
168 |
* Test step Postamble.
|
|
169 |
*
|
|
170 |
* @xxxx
|
|
171 |
*
|
|
172 |
*/
|
|
173 |
enum TVerdict CTestStepPlayerSharedHeapMultiFilePlayer::DoTestStepPostambleL(void)
|
|
174 |
{
|
|
175 |
// close array
|
|
176 |
iPlayers.Close();
|
|
177 |
|
|
178 |
INFO_PRINTF1(_L("finished with this test step"));
|
|
179 |
|
|
180 |
//[ Destroy the scheduler ]
|
|
181 |
return CTestStepUnitMMFAudClient::DoTestStepPostambleL();
|
|
182 |
}
|
|
183 |
|
|
184 |
/**
|
|
185 |
*
|
|
186 |
* The commands to be included in the TRAP command
|
|
187 |
*
|
|
188 |
* @xxxx
|
|
189 |
*
|
|
190 |
*/
|
|
191 |
CMdaAudioPlayerUtility* CTestStepPlayerSharedHeapMultiFilePlayer::CreateAndOpenPlayerL( TInt aIteration )
|
|
192 |
{
|
|
193 |
CMdaAudioPlayerUtility* player = NULL;
|
|
194 |
|
|
195 |
TRAPD( err, player = CMdaAudioPlayerUtility::NewL(*this) );
|
|
196 |
User::LeaveIfError( err );
|
|
197 |
CleanupStack::PushL(player);
|
|
198 |
|
|
199 |
if( ! (iMixHeapStyle && (aIteration == KNoSharedPlayer)) )
|
|
200 |
{
|
|
201 |
INFO_PRINTF2(_L(" Player on iteration %2d is using a shared heap."), aIteration );
|
|
202 |
player->UseSharedHeap(); // ensure that underlying controller uses a shared heap
|
|
203 |
}
|
|
204 |
else
|
|
205 |
{
|
|
206 |
INFO_PRINTF2(_L(" Player on iteration %2d has its own heap."), aIteration );
|
|
207 |
}
|
|
208 |
|
|
209 |
player->OpenFileL( iFileName ); // this creates a new controller
|
|
210 |
|
|
211 |
CActiveScheduler::Start(); // wait for open to complete
|
|
212 |
|
|
213 |
User::LeaveIfError( iError ); // if had error return from callback
|
|
214 |
|
|
215 |
CleanupStack::Pop(player);
|
|
216 |
return player;
|
|
217 |
}
|
|
218 |
|
|
219 |
/**
|
|
220 |
*
|
|
221 |
* Get's the Audio Player State
|
|
222 |
*
|
|
223 |
* @xxxx
|
|
224 |
*
|
|
225 |
*/
|
|
226 |
|
|
227 |
TInt CTestStepPlayerSharedHeapMultiFilePlayer::GetAudPlayerState(CMdaAudioPlayerUtility* aPlayer, TInt& aState)
|
|
228 |
{
|
|
229 |
if (aPlayer == NULL)
|
|
230 |
return KErrNotReady;
|
|
231 |
aState = this->iState;
|
|
232 |
return KErrNone;
|
|
233 |
}
|
|
234 |
|
|
235 |
/**
|
|
236 |
*
|
|
237 |
* Get's the Audio Player Source Handle
|
|
238 |
*
|
|
239 |
* @xxxx
|
|
240 |
*
|
|
241 |
*/
|
|
242 |
TInt CTestStepPlayerSharedHeapMultiFilePlayer::GetAudPlayerSourceHandle(CMdaAudioPlayerUtility* aPlayer,
|
|
243 |
TMMFMessageDestination* /*aSrcHandle*/)
|
|
244 |
{
|
|
245 |
if (aPlayer == NULL)
|
|
246 |
return KErrNotReady;
|
|
247 |
return KErrNone;
|
|
248 |
}
|
|
249 |
|
|
250 |
|
|
251 |
|
|
252 |
/**
|
|
253 |
*
|
|
254 |
* Creates KMaxPlayers players, performs the desired test on one of them
|
|
255 |
* and then closes them all and cleans up.
|
|
256 |
* If problems are encountered the returned result will reflect this.
|
|
257 |
*
|
|
258 |
* @return "TVerdict"
|
|
259 |
* The result of the tests
|
|
260 |
*
|
|
261 |
* @xxxx
|
|
262 |
*
|
|
263 |
*/
|
|
264 |
TVerdict CTestStepPlayerSharedHeapMultiFilePlayer::DoTestL( TTestType aTestType )
|
|
265 |
{
|
|
266 |
iTestStepResult = EPass;
|
|
267 |
TInt err = KErrNone;
|
|
268 |
|
|
269 |
__MM_HEAP_MARK;
|
|
270 |
|
|
271 |
TInt i=0;
|
|
272 |
for( ; i < KMaxPlayers; ++i )
|
|
273 |
{
|
|
274 |
iError = KErrNone;
|
|
275 |
|
|
276 |
CMdaAudioPlayerUtility* player = NULL;
|
|
277 |
|
|
278 |
TRAPD(err, player = CreateAndOpenPlayerL(i) );
|
|
279 |
|
|
280 |
if (err == KErrNone && iError == KErrNone)
|
|
281 |
{
|
|
282 |
// see if valid result and break if wrong - might be premature result
|
|
283 |
TInt err1 = KErrNone;
|
|
284 |
TInt err2 = KErrNone;
|
|
285 |
TInt state = 0;
|
|
286 |
TMMFMessageDestination* srcHandle = NULL;
|
|
287 |
err1 = GetAudPlayerState(player, state);
|
|
288 |
err2 = GetAudPlayerSourceHandle(player, srcHandle);
|
|
289 |
if ( err1 != KErrNone ||
|
|
290 |
err2 != KErrNone ||
|
|
291 |
&srcHandle == NULL ||
|
|
292 |
state != CTestStepPlayerSharedHeapMultiFilePlayer::EStopped ||
|
|
293 |
player->Duration() == TTimeIntervalMicroSeconds(0) || // we know the duration of the file is more than 0
|
|
294 |
iError != KErrNone)
|
|
295 |
{
|
|
296 |
// dodgy player
|
|
297 |
|
|
298 |
INFO_PRINTF2(_L(" Dodgy player on iteration %2d"), i);
|
|
299 |
iTestStepResult = EFail;
|
|
300 |
|
|
301 |
delete player;
|
|
302 |
player = NULL;
|
|
303 |
break;
|
|
304 |
}
|
|
305 |
else
|
|
306 |
{
|
|
307 |
// no errors
|
|
308 |
// append player to array
|
|
309 |
if( (err = iPlayers.Append( player )) != KErrNone )
|
|
310 |
{
|
|
311 |
INFO_PRINTF2(_L("Fail to append player on iteration %2d"), i);
|
|
312 |
// this doesn't indicate a failure in what we're testing here
|
|
313 |
iTestStepResult = EInconclusive;
|
|
314 |
|
|
315 |
delete player;
|
|
316 |
player = NULL;
|
|
317 |
break;
|
|
318 |
}
|
|
319 |
}
|
|
320 |
}
|
|
321 |
else
|
|
322 |
{
|
|
323 |
INFO_PRINTF4(_L("Fail to open player on iteration %2d - %d %d"), i, err, iError);
|
|
324 |
break;
|
|
325 |
}
|
|
326 |
}
|
|
327 |
|
|
328 |
// check outcome of making players
|
|
329 |
if ( err || iError )
|
|
330 |
{
|
|
331 |
if ((err && err != KErrNoMemory) || (err == KErrNone && iError != KErrNoMemory))
|
|
332 |
{
|
|
333 |
// a genuine error
|
|
334 |
|
|
335 |
if( err )
|
|
336 |
{
|
|
337 |
INFO_PRINTF3(_L("Error %d occured while trying to create player #%d"), err, i );
|
|
338 |
}
|
|
339 |
else
|
|
340 |
{
|
|
341 |
INFO_PRINTF3(_L("Error %d occured while opening player #%d"), iError, i );
|
|
342 |
}
|
|
343 |
|
|
344 |
iTestStepResult = EFail;
|
|
345 |
}
|
|
346 |
else
|
|
347 |
{
|
|
348 |
// we ran out of memory
|
|
349 |
INFO_PRINTF2(_L("Teststep ran out of memory while creating player #%d"), i );
|
|
350 |
iTestStepResult = EFail;
|
|
351 |
}
|
|
352 |
}
|
|
353 |
// else no errors
|
|
354 |
|
|
355 |
|
|
356 |
// perform test on 1st player (unless there were errors above)
|
|
357 |
if( (iTestStepResult == EPass) && (iPlayers.Count() > 0 ) )
|
|
358 |
{
|
|
359 |
switch( aTestType )
|
|
360 |
{
|
|
361 |
case EPlay:
|
|
362 |
{
|
|
363 |
(iPlayers[0])->Play();
|
|
364 |
CActiveScheduler::Start();
|
|
365 |
|
|
366 |
if( iError )
|
|
367 |
{
|
|
368 |
// playback died
|
|
369 |
INFO_PRINTF2(_L("Error %d occured while playing"), iError );
|
|
370 |
iTestStepResult = EFail;
|
|
371 |
}
|
|
372 |
|
|
373 |
break;
|
|
374 |
}
|
|
375 |
|
|
376 |
|
|
377 |
case EPanic:
|
|
378 |
{
|
|
379 |
// panic player
|
|
380 |
|
|
381 |
// load a custom controller (using the share heap)
|
|
382 |
// that can be panicked and see if we recover OK
|
|
383 |
TMMFPrioritySettings settings;
|
|
384 |
TInt error = KErrNone;
|
|
385 |
RMMFController controller;
|
|
386 |
|
|
387 |
settings.iPriority = 1;
|
|
388 |
settings.iPref = EMdaPriorityPreferenceTime;
|
|
389 |
settings.iState = EMMFStateIdle;
|
|
390 |
|
|
391 |
error = controller.Open(KTstControllerUid, settings, ETrue); // use shared heap
|
|
392 |
INFO_PRINTF2(_L("Custom controller Open: %d"), error);
|
|
393 |
|
|
394 |
if( ! error )
|
|
395 |
{
|
|
396 |
// panic the controller
|
|
397 |
// this command will complete immediately and
|
|
398 |
// then panic
|
|
399 |
TUid uid;
|
|
400 |
uid = TUid::Uid(0x101f72B4);
|
|
401 |
TMMFMessageDestinationPckg destPckg(uid);
|
|
402 |
//TRequestStatus status = KRequestPending;
|
|
403 |
controller.CustomCommandSync(destPckg,
|
|
404 |
EMMFTestCustomCommandPanic,
|
|
405 |
KNullDesC8,
|
|
406 |
KNullDesC8);
|
|
407 |
|
|
408 |
// need to allow some time to make
|
|
409 |
// sure the thread has actually been panicked when we close it
|
|
410 |
User::After( TTimeIntervalMicroSeconds32(5000000) ); // 5 seconds
|
|
411 |
}
|
|
412 |
|
|
413 |
// controller should have panicked by now
|
|
414 |
controller.Close();
|
|
415 |
|
|
416 |
break;
|
|
417 |
}
|
|
418 |
|
|
419 |
|
|
420 |
// default: // do nothing
|
|
421 |
}
|
|
422 |
}
|
|
423 |
|
|
424 |
// cleanup
|
|
425 |
for( i = 0; i < iPlayers.Count(); ++i )
|
|
426 |
{
|
|
427 |
delete iPlayers[i];
|
|
428 |
|
|
429 |
iPlayers[i] = NULL;
|
|
430 |
}
|
|
431 |
iPlayers.Reset();
|
|
432 |
|
|
433 |
__MM_HEAP_MARKEND;
|
|
434 |
|
|
435 |
// test steps return a result
|
|
436 |
return iTestStepResult;
|
|
437 |
}
|
|
438 |
|
|
439 |
/**
|
|
440 |
*
|
|
441 |
* Do the test step.
|
|
442 |
* Each test step must supply an implementation for DoTestStepL.
|
|
443 |
*
|
|
444 |
* @return "TVerdict"
|
|
445 |
* The result of the test step
|
|
446 |
*
|
|
447 |
* @xxxx
|
|
448 |
*
|
|
449 |
*/
|
|
450 |
TVerdict CTestStepPlayerSharedHeapMultiFilePlayer::DoTestStepL()
|
|
451 |
{
|
|
452 |
INFO_PRINTF1(_L("This is a test that several player utilities using a shared heap can be created."));
|
|
453 |
|
|
454 |
return DoTestL( EPlay );
|
|
455 |
}
|
|
456 |
|
|
457 |
|
|
458 |
//===========================================================================================
|
|
459 |
|
|
460 |
/**
|
|
461 |
*
|
|
462 |
* Static constructor for CTestStepPlayerSharedHeapRepeatMultiFilePlayer.
|
|
463 |
*
|
|
464 |
*
|
|
465 |
* @return "CTestStepPlayerSharedHeapRepeatMultiFilePlayer*"
|
|
466 |
* The constructed CTestStepPlayerSharedHeapRepeatMultiFilePlayer
|
|
467 |
*
|
|
468 |
* @xxxx
|
|
469 |
*
|
|
470 |
*/
|
|
471 |
CTestStepPlayerSharedHeapRepeatMultiFilePlayer* CTestStepPlayerSharedHeapRepeatMultiFilePlayer::NewL(const TDesC& aName, TBool aMixHeapStyle )
|
|
472 |
{
|
|
473 |
CTestStepPlayerSharedHeapRepeatMultiFilePlayer* self = new(ELeave) CTestStepPlayerSharedHeapRepeatMultiFilePlayer( aName, aMixHeapStyle );
|
|
474 |
return self;
|
|
475 |
}
|
|
476 |
|
|
477 |
/**
|
|
478 |
*
|
|
479 |
* Test step constructor.
|
|
480 |
* Each test step initialises its own name.
|
|
481 |
*
|
|
482 |
* @xxxx
|
|
483 |
*
|
|
484 |
*/
|
|
485 |
CTestStepPlayerSharedHeapRepeatMultiFilePlayer::CTestStepPlayerSharedHeapRepeatMultiFilePlayer(const TDesC& aName, TBool aMixHeapStyle )
|
|
486 |
: CTestStepPlayerSharedHeapMultiFilePlayer( aName, aMixHeapStyle )
|
|
487 |
{
|
|
488 |
}
|
|
489 |
|
|
490 |
/**
|
|
491 |
*
|
|
492 |
* Test step destructor.
|
|
493 |
*
|
|
494 |
* @xxxx
|
|
495 |
*
|
|
496 |
*/
|
|
497 |
CTestStepPlayerSharedHeapRepeatMultiFilePlayer::~CTestStepPlayerSharedHeapRepeatMultiFilePlayer()
|
|
498 |
{
|
|
499 |
}
|
|
500 |
|
|
501 |
/**
|
|
502 |
*
|
|
503 |
* Do the test step.
|
|
504 |
* Each test step must supply an implementation for DoTestStepL.
|
|
505 |
*
|
|
506 |
* @return "TVerdict"
|
|
507 |
* The result of the test step
|
|
508 |
*
|
|
509 |
* @xxxx
|
|
510 |
*
|
|
511 |
*/
|
|
512 |
TVerdict CTestStepPlayerSharedHeapRepeatMultiFilePlayer::DoTestStepL()
|
|
513 |
{
|
|
514 |
INFO_PRINTF1(_L("This is a test that several player utilities using a shared heap can be created."));
|
|
515 |
|
|
516 |
TVerdict result = EPass;
|
|
517 |
|
|
518 |
__MM_HEAP_MARK;
|
|
519 |
|
|
520 |
for(TInt i=0; i < KRepeatAmount; ++i)
|
|
521 |
{
|
|
522 |
INFO_PRINTF2(_L("Create and delete iteration %d."), i );
|
|
523 |
result = DoTestL( EPlay );
|
|
524 |
|
|
525 |
if( result != EPass )
|
|
526 |
{
|
|
527 |
INFO_PRINTF2(_L("Iteration %d failed. Stopping."), i );
|
|
528 |
break;
|
|
529 |
}
|
|
530 |
}
|
|
531 |
|
|
532 |
__MM_HEAP_MARKEND;
|
|
533 |
|
|
534 |
return result;
|
|
535 |
}
|
|
536 |
|
|
537 |
// =============================================================
|
|
538 |
|
|
539 |
/**
|
|
540 |
*
|
|
541 |
* Static constructor for CTestStepPlayerSharedHeapPanicMultiFilePlayer.
|
|
542 |
*
|
|
543 |
*
|
|
544 |
* @return "CTestStepPlayerSharedHeapPanicMultiFilePlayer*"
|
|
545 |
* The constructed CTestStepPlayerSharedHeapPanicMultiFilePlayer
|
|
546 |
*
|
|
547 |
* @xxxx
|
|
548 |
*
|
|
549 |
*/
|
|
550 |
CTestStepPlayerSharedHeapPanicMultiFilePlayer* CTestStepPlayerSharedHeapPanicMultiFilePlayer::NewL(const TDesC& aName, TBool aMixHeapStyle )
|
|
551 |
{
|
|
552 |
CTestStepPlayerSharedHeapPanicMultiFilePlayer* self = new(ELeave) CTestStepPlayerSharedHeapPanicMultiFilePlayer( aName, aMixHeapStyle );
|
|
553 |
return self;
|
|
554 |
}
|
|
555 |
|
|
556 |
/**
|
|
557 |
*
|
|
558 |
* Test step constructor.
|
|
559 |
* Each test step initialises its own name.
|
|
560 |
*
|
|
561 |
* @xxxx
|
|
562 |
*
|
|
563 |
*/
|
|
564 |
CTestStepPlayerSharedHeapPanicMultiFilePlayer::CTestStepPlayerSharedHeapPanicMultiFilePlayer(const TDesC& aName, TBool aMixHeapStyle )
|
|
565 |
: CTestStepPlayerSharedHeapMultiFilePlayer( aName, aMixHeapStyle )
|
|
566 |
{
|
|
567 |
}
|
|
568 |
|
|
569 |
/**
|
|
570 |
*
|
|
571 |
* Test step destructor.
|
|
572 |
*
|
|
573 |
* @xxxx
|
|
574 |
*
|
|
575 |
*/
|
|
576 |
CTestStepPlayerSharedHeapPanicMultiFilePlayer::~CTestStepPlayerSharedHeapPanicMultiFilePlayer()
|
|
577 |
{
|
|
578 |
}
|
|
579 |
|
|
580 |
/**
|
|
581 |
*
|
|
582 |
* Do the test step.
|
|
583 |
* Each test step must supply an implementation for DoTestStepL.
|
|
584 |
*
|
|
585 |
* @return "TVerdict"
|
|
586 |
* The result of the test step
|
|
587 |
*
|
|
588 |
* @xxxx
|
|
589 |
*
|
|
590 |
*/
|
|
591 |
TVerdict CTestStepPlayerSharedHeapPanicMultiFilePlayer::DoTestStepL()
|
|
592 |
{
|
|
593 |
INFO_PRINTF1(_L("This is a test that shared heap layers can recover from a panic."));
|
|
594 |
|
|
595 |
return DoTestL( EPanic );
|
|
596 |
}
|
|
597 |
|