|
0
|
1 |
// Copyright (c) 2004-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 |
#ifndef __TSU_MMF_SBCCODEC_H__
|
|
|
17 |
#define __TSU_MMF_SBCCODEC_H__
|
|
|
18 |
|
|
|
19 |
#include <testframework.h>
|
|
|
20 |
#include <mmf/server/mmfcodec.h>
|
|
|
21 |
#include <mmf/server/mmfbuffer.h>
|
|
|
22 |
#include <mmf/server/mmfdatabuffer.h>
|
|
|
23 |
#include <mmf/common/mmfutilities.h>
|
|
|
24 |
#include <mmf/common/mmffourcc.h>
|
|
|
25 |
|
|
|
26 |
#include <mmf/common/mmfcontroller.h>
|
|
|
27 |
#include <mmf/common/mmfcontrollerpluginresolver.h>
|
|
|
28 |
#include <mmf/plugin/mmfplugininterfaceuids.hrh>
|
|
|
29 |
|
|
|
30 |
#include "SBCFrameParameters.h"
|
|
|
31 |
|
|
|
32 |
/**
|
|
|
33 |
* @class CTestStep_MMF_SbcCodec TSU_MMF_SbcCodec.h "TSU_MMF_SbcCodec.h"
|
|
|
34 |
* @brief Test step class for testing sbc codec.
|
|
|
35 |
* It's a base class for all test steps.
|
|
|
36 |
*/
|
|
|
37 |
class CTestStep_MMF_SbcCodec : public CTestStep
|
|
|
38 |
{
|
|
|
39 |
public:
|
|
|
40 |
CTestStep_MMF_SbcCodec();
|
|
|
41 |
virtual ~CTestStep_MMF_SbcCodec();
|
|
|
42 |
|
|
|
43 |
protected:
|
|
|
44 |
TVerdict TestNewL(TUid aCodecUID);
|
|
|
45 |
TVerdict TestNewL(const TFourCC& aSrcFourCC, const TFourCC& aDstFourCC);
|
|
|
46 |
TVerdict TestProcessL();
|
|
|
47 |
TVerdict TestEncodeL(TInt aTestNumber, TInt aSrcBufSize, TInt aDstBufSize);
|
|
|
48 |
TVerdict TestRepositionL();
|
|
|
49 |
TVerdict TestChangeConfigL();
|
|
|
50 |
|
|
|
51 |
TVerdict TestMemoryScribbleL();
|
|
|
52 |
TVerdict TestMemoryLeakL();
|
|
|
53 |
TVerdict TestNewLOutOfMemoryL();
|
|
|
54 |
TVerdict TestProcessLOutOfMemoryL();
|
|
|
55 |
|
|
|
56 |
private:
|
|
|
57 |
const TDesC& GetTestFileName(TInt aTestNumber);
|
|
|
58 |
const TDesC& GetRefFileName(TInt aTestNumber);
|
|
|
59 |
void ReadSourceL(const TDesC& fileName, TDes8& aSrcBuffer, TInt aPosition);
|
|
|
60 |
void WriteDstToFileL(const TDesC& fileName, const TDes8& aSrcBuffer, TInt aPosition);
|
|
|
61 |
TInt CompareFileL(const TDesC& aFileName);
|
|
|
62 |
TVerdict ProcessOnceForNewL(CMMFCodec* aCodec);
|
|
|
63 |
};
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
/**
|
|
|
67 |
* @class CTest_MMF_ACOD_U_001
|
|
|
68 |
* @test Req. under test REQ2716
|
|
|
69 |
*/
|
|
|
70 |
class CTest_MMF_SbcCodec_U_001 : public CTestStep_MMF_SbcCodec
|
|
|
71 |
{
|
|
|
72 |
public:
|
|
|
73 |
CTest_MMF_SbcCodec_U_001();
|
|
|
74 |
~CTest_MMF_SbcCodec_U_001() {}
|
|
|
75 |
virtual TVerdict DoTestStepL();
|
|
|
76 |
};
|
|
|
77 |
|
|
|
78 |
/**
|
|
|
79 |
* @class CTest_MMF_ACOD_U_002
|
|
|
80 |
* @test Req. under test REQ2716
|
|
|
81 |
*/
|
|
|
82 |
class CTest_MMF_SbcCodec_U_002 : public CTestStep_MMF_SbcCodec
|
|
|
83 |
{
|
|
|
84 |
public:
|
|
|
85 |
CTest_MMF_SbcCodec_U_002();
|
|
|
86 |
~CTest_MMF_SbcCodec_U_002() {}
|
|
|
87 |
virtual TVerdict DoTestStepL();
|
|
|
88 |
};
|
|
|
89 |
|
|
|
90 |
/**
|
|
|
91 |
* @class CTest_MMF_ACOD_U_010
|
|
|
92 |
* @test Req. under test REQ2716
|
|
|
93 |
*/
|
|
|
94 |
class CTest_MMF_SbcCodec_U_010 : public CTestStep_MMF_SbcCodec
|
|
|
95 |
{
|
|
|
96 |
public:
|
|
|
97 |
CTest_MMF_SbcCodec_U_010();
|
|
|
98 |
~CTest_MMF_SbcCodec_U_010() {}
|
|
|
99 |
virtual TVerdict DoTestStepL();
|
|
|
100 |
};
|
|
|
101 |
|
|
|
102 |
/**
|
|
|
103 |
* @class CTest_MMF_ACOD_U_011
|
|
|
104 |
* @test Req. under test REQ2716
|
|
|
105 |
*/
|
|
|
106 |
class CTest_MMF_SbcCodec_U_011 : public CTestStep_MMF_SbcCodec
|
|
|
107 |
{
|
|
|
108 |
public:
|
|
|
109 |
CTest_MMF_SbcCodec_U_011();
|
|
|
110 |
~CTest_MMF_SbcCodec_U_011() {}
|
|
|
111 |
virtual TVerdict DoTestStepL();
|
|
|
112 |
};
|
|
|
113 |
|
|
|
114 |
/**
|
|
|
115 |
* @class CTest_MMF_ACOD_U_012
|
|
|
116 |
* @test Req. under test REQ2716
|
|
|
117 |
*/
|
|
|
118 |
class CTest_MMF_SbcCodec_U_012 : public CTestStep_MMF_SbcCodec
|
|
|
119 |
{
|
|
|
120 |
public:
|
|
|
121 |
CTest_MMF_SbcCodec_U_012();
|
|
|
122 |
~CTest_MMF_SbcCodec_U_012() {}
|
|
|
123 |
virtual TVerdict DoTestStepL();
|
|
|
124 |
};
|
|
|
125 |
|
|
|
126 |
/**
|
|
|
127 |
* @class CTest_MMF_ACOD_U_013
|
|
|
128 |
* @test Req. under test REQ2716
|
|
|
129 |
*/
|
|
|
130 |
class CTest_MMF_SbcCodec_U_013 : public CTestStep_MMF_SbcCodec
|
|
|
131 |
{
|
|
|
132 |
public:
|
|
|
133 |
CTest_MMF_SbcCodec_U_013();
|
|
|
134 |
~CTest_MMF_SbcCodec_U_013() {}
|
|
|
135 |
virtual TVerdict DoTestStepL();
|
|
|
136 |
};
|
|
|
137 |
|
|
|
138 |
/**
|
|
|
139 |
* @class CTest_MMF_ACOD_U_014
|
|
|
140 |
* @test Req. under test REQ2716
|
|
|
141 |
*/
|
|
|
142 |
class CTest_MMF_SbcCodec_U_014 : public CTestStep_MMF_SbcCodec
|
|
|
143 |
{
|
|
|
144 |
public:
|
|
|
145 |
CTest_MMF_SbcCodec_U_014();
|
|
|
146 |
~CTest_MMF_SbcCodec_U_014() {}
|
|
|
147 |
virtual TVerdict DoTestStepL();
|
|
|
148 |
};
|
|
|
149 |
|
|
|
150 |
/**
|
|
|
151 |
* @class CTest_MMF_ACOD_U_015
|
|
|
152 |
* @test Req. under test REQ2716
|
|
|
153 |
*/
|
|
|
154 |
class CTest_MMF_SbcCodec_U_015 : public CTestStep_MMF_SbcCodec
|
|
|
155 |
{
|
|
|
156 |
public:
|
|
|
157 |
CTest_MMF_SbcCodec_U_015();
|
|
|
158 |
~CTest_MMF_SbcCodec_U_015() {}
|
|
|
159 |
virtual TVerdict DoTestStepL();
|
|
|
160 |
};
|
|
|
161 |
|
|
|
162 |
/**
|
|
|
163 |
* @class CTest_MMF_ACOD_U_016
|
|
|
164 |
* @test Req. under test REQ2716
|
|
|
165 |
*/
|
|
|
166 |
class CTest_MMF_SbcCodec_U_016 : public CTestStep_MMF_SbcCodec
|
|
|
167 |
{
|
|
|
168 |
public:
|
|
|
169 |
CTest_MMF_SbcCodec_U_016();
|
|
|
170 |
~CTest_MMF_SbcCodec_U_016() {}
|
|
|
171 |
virtual TVerdict DoTestStepL();
|
|
|
172 |
};
|
|
|
173 |
|
|
|
174 |
/**
|
|
|
175 |
* @class CTest_MMF_ACOD_U_021
|
|
|
176 |
* @test Req. under test REQ2716
|
|
|
177 |
*/
|
|
|
178 |
class CTest_MMF_SbcCodec_U_021 : public CTestStep_MMF_SbcCodec
|
|
|
179 |
{
|
|
|
180 |
public:
|
|
|
181 |
CTest_MMF_SbcCodec_U_021();
|
|
|
182 |
~CTest_MMF_SbcCodec_U_021() {}
|
|
|
183 |
virtual TVerdict DoTestStepL();
|
|
|
184 |
};
|
|
|
185 |
|
|
|
186 |
/**
|
|
|
187 |
* @class CTest_MMF_ACOD_U_022
|
|
|
188 |
* @test Req. under test REQ2716
|
|
|
189 |
*/
|
|
|
190 |
class CTest_MMF_SbcCodec_U_022 : public CTestStep_MMF_SbcCodec
|
|
|
191 |
{
|
|
|
192 |
public:
|
|
|
193 |
CTest_MMF_SbcCodec_U_022();
|
|
|
194 |
~CTest_MMF_SbcCodec_U_022() {}
|
|
|
195 |
virtual TVerdict DoTestStepL();
|
|
|
196 |
};
|
|
|
197 |
|
|
|
198 |
/**
|
|
|
199 |
* @class CTest_MMF_ACOD_U_023
|
|
|
200 |
* @test Req. under test REQ2716
|
|
|
201 |
*/
|
|
|
202 |
class CTest_MMF_SbcCodec_U_023 : public CTestStep_MMF_SbcCodec
|
|
|
203 |
{
|
|
|
204 |
public:
|
|
|
205 |
CTest_MMF_SbcCodec_U_023();
|
|
|
206 |
~CTest_MMF_SbcCodec_U_023() {}
|
|
|
207 |
virtual TVerdict DoTestStepL();
|
|
|
208 |
};
|
|
|
209 |
|
|
|
210 |
/**
|
|
|
211 |
* @class CTest_MMF_ACOD_U_024
|
|
|
212 |
* @test Req. under test REQ2716
|
|
|
213 |
*/
|
|
|
214 |
class CTest_MMF_SbcCodec_U_024 : public CTestStep_MMF_SbcCodec
|
|
|
215 |
{
|
|
|
216 |
public:
|
|
|
217 |
CTest_MMF_SbcCodec_U_024();
|
|
|
218 |
~CTest_MMF_SbcCodec_U_024() {}
|
|
|
219 |
virtual TVerdict DoTestStepL();
|
|
|
220 |
};
|
|
|
221 |
|
|
|
222 |
|
|
|
223 |
#endif //__TSU_MMF_SBCCODEC_H__
|
|
|
224 |
|