0
|
1 |
// Copyright (c) 2006-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 converter utilities whose
|
|
15 |
// controllers share a single heap.
|
|
16 |
//
|
|
17 |
//
|
|
18 |
|
|
19 |
|
|
20 |
#ifndef TESTSTEPCONVERTERSHAREDHEAP_H
|
|
21 |
#define TESTSTEPCONVERTERSHAREDHEAP_H
|
|
22 |
|
|
23 |
#include<mda/client/utility.h>
|
|
24 |
/**
|
|
25 |
*
|
|
26 |
* Creates multiple file converters whose controllers share a single heap.
|
|
27 |
* Plays one to make sure they work OK.
|
|
28 |
*
|
|
29 |
* @lib "TSU_MMF_ACLNT_01.lib"
|
|
30 |
*
|
|
31 |
* @xxxx
|
|
32 |
*
|
|
33 |
*/
|
|
34 |
class CTestStepConverterSharedHeapMultiFile : public CTestStepUnitMMFAudClient,
|
|
35 |
public MMdaObjectStateChangeObserver
|
|
36 |
{
|
|
37 |
protected:
|
|
38 |
enum TTestType
|
|
39 |
{
|
|
40 |
ENone,
|
|
41 |
EConvert,
|
|
42 |
EPanic
|
|
43 |
};
|
|
44 |
|
|
45 |
public:
|
|
46 |
static CTestStepConverterSharedHeapMultiFile* NewL( const TDesC& aName, TBool aMixHeapStyle = EFalse );
|
|
47 |
~CTestStepConverterSharedHeapMultiFile();
|
|
48 |
enum TVerdict DoTestStepPreambleL(void);
|
|
49 |
enum TVerdict DoTestStepPostambleL(void);
|
|
50 |
virtual TVerdict DoTestStepL();
|
|
51 |
|
|
52 |
TInt GetAudConverterSourceHandle(CMdaAudioConvertUtility* aRecorder,
|
|
53 |
TMMFMessageDestination* /*aSrcHandle*/);
|
|
54 |
|
|
55 |
// from MMdaObjectStateChangeObserver
|
|
56 |
void MoscoStateChangeEvent(CBase* /*aObject*/, TInt /*aPreviousState*/, TInt /*aCurrentState*/, TInt /*aErrorcCode*/);
|
|
57 |
|
|
58 |
protected:
|
|
59 |
CTestStepConverterSharedHeapMultiFile( const TDesC& aName, TBool aMixHeapStyle );
|
|
60 |
enum TVerdict DoTestL( TTestType aTestType );
|
|
61 |
|
|
62 |
private:
|
|
63 |
CMdaAudioConvertUtility* CreateAndOpenConverterL( TInt aIteration );
|
|
64 |
|
|
65 |
protected:
|
|
66 |
TInt iError;
|
|
67 |
TBool iMixHeapStyle;
|
|
68 |
|
|
69 |
private:
|
|
70 |
RPointerArray<CMdaAudioConvertUtility> iConverters; // array of converters
|
|
71 |
CMdaAudioConvertUtility* iConvert;
|
|
72 |
CFileMan* iFileMan;
|
|
73 |
TPtrC iFileName2;
|
|
74 |
};
|
|
75 |
|
|
76 |
#endif // TESTSTEPCONVERTERSHAREDHEAP_H
|