sl@0
|
1 |
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
#ifndef TSU3GPLIBRARYAPINEGATIVE_H
|
sl@0
|
17 |
#define TSU3GPLIBRARYAPINEGATIVE_H
|
sl@0
|
18 |
|
sl@0
|
19 |
#include "tsu3gplibraryapi.h"
|
sl@0
|
20 |
|
sl@0
|
21 |
|
sl@0
|
22 |
class C3GPLibParser_Negative : public C3GPLibParser_base
|
sl@0
|
23 |
{
|
sl@0
|
24 |
public:
|
sl@0
|
25 |
void CallVideoApiL(C3GPParse* aParse, TInt aExpectedError);
|
sl@0
|
26 |
void CallAudioApiL(C3GPParse* aParse, TInt aExpectedError);
|
sl@0
|
27 |
void CallBufferModeApiL(C3GPParse* aParse, TInt aExpectedError);
|
sl@0
|
28 |
void CallCommonApiL(C3GPParse* aParse, TInt aExpectedError);
|
sl@0
|
29 |
void CallVideoDecoderInfoApiL(C3GPParse* aParse, TInt aExpectedError);
|
sl@0
|
30 |
void CallAudioDecoderInfoApiL(C3GPParse* aParse, TInt aExpectedError);
|
sl@0
|
31 |
void CallUDTApiL(C3GPParse* aParse, TUint32 aUdtType, TUint& aIndex, TInt aExpectedError, T3GPUdtaLocation aLocation = E3GPUdtaVideoTrak);
|
sl@0
|
32 |
};
|
sl@0
|
33 |
|
sl@0
|
34 |
_LIT(KTestCase_0101, "MM-3GP-PARSE-U-0101-CP");
|
sl@0
|
35 |
class C3GPLibParser_0101 : public C3GPLibParser_Negative
|
sl@0
|
36 |
{
|
sl@0
|
37 |
public:
|
sl@0
|
38 |
C3GPLibParser_0101();
|
sl@0
|
39 |
TVerdict doTestStepL();
|
sl@0
|
40 |
private:
|
sl@0
|
41 |
void EmptyFileFailedCorruptL(C3GPParse* aParser);
|
sl@0
|
42 |
};
|
sl@0
|
43 |
|
sl@0
|
44 |
_LIT(KTestCase_0102, "MM-3GP-PARSE-U-0102-CP");
|
sl@0
|
45 |
class C3GPLibParser_0102 : public CTestStep
|
sl@0
|
46 |
{
|
sl@0
|
47 |
public:
|
sl@0
|
48 |
C3GPLibParser_0102();
|
sl@0
|
49 |
TVerdict doTestStepL();
|
sl@0
|
50 |
};
|
sl@0
|
51 |
|
sl@0
|
52 |
_LIT(KTestCase_0104, "MM-3GP-PARSE-U-0104-CP");
|
sl@0
|
53 |
class C3GPLibParser_0104 : public C3GPLibParser_Negative
|
sl@0
|
54 |
{
|
sl@0
|
55 |
public:
|
sl@0
|
56 |
C3GPLibParser_0104();
|
sl@0
|
57 |
TVerdict doTestStepL();
|
sl@0
|
58 |
};
|
sl@0
|
59 |
|
sl@0
|
60 |
_LIT(KTestCase_0106, "MM-3GP-PARSE-U-0106-CP");
|
sl@0
|
61 |
class C3GPLibParser_0106 : public C3GPLibParser_Negative
|
sl@0
|
62 |
{
|
sl@0
|
63 |
public:
|
sl@0
|
64 |
C3GPLibParser_0106();
|
sl@0
|
65 |
TVerdict doTestStepL();
|
sl@0
|
66 |
private:
|
sl@0
|
67 |
void AllApiFailedNotReadyL(C3GPParse* aParser);
|
sl@0
|
68 |
};
|
sl@0
|
69 |
|
sl@0
|
70 |
_LIT(KTestCase_0107, "MM-3GP-PARSE-U-0107-CP");
|
sl@0
|
71 |
class C3GPLibParser_0107 : public C3GPLibParser_Negative
|
sl@0
|
72 |
{
|
sl@0
|
73 |
public:
|
sl@0
|
74 |
C3GPLibParser_0107();
|
sl@0
|
75 |
TVerdict doTestStepL();
|
sl@0
|
76 |
private:
|
sl@0
|
77 |
void InvalidFrameTypeL(C3GPParse* aParser);
|
sl@0
|
78 |
};
|
sl@0
|
79 |
|
sl@0
|
80 |
_LIT(KTestCase_0108, "MM-3GP-PARSE-U-0108-CP");
|
sl@0
|
81 |
class C3GPLibParser_0108 : public C3GPLibParser_Negative
|
sl@0
|
82 |
{
|
sl@0
|
83 |
public:
|
sl@0
|
84 |
C3GPLibParser_0108();
|
sl@0
|
85 |
TVerdict doTestStepL();
|
sl@0
|
86 |
private:
|
sl@0
|
87 |
void AllInvalidFrameIndexL(C3GPParse* aParser);
|
sl@0
|
88 |
};
|
sl@0
|
89 |
|
sl@0
|
90 |
_LIT(KTestCase_0109, "MM-3GP-PARSE-U-0109-CP");
|
sl@0
|
91 |
class C3GPLibParser_0109 : public C3GPLibParser_Negative
|
sl@0
|
92 |
{
|
sl@0
|
93 |
public:
|
sl@0
|
94 |
C3GPLibParser_0109();
|
sl@0
|
95 |
TVerdict doTestStepL();
|
sl@0
|
96 |
private:
|
sl@0
|
97 |
void InvalidFrameTypePanicL(C3GPParse* aParser);
|
sl@0
|
98 |
};
|
sl@0
|
99 |
|
sl@0
|
100 |
_LIT(KTestCase_0110, "MM-3GP-PARSE-U-0110-CP");
|
sl@0
|
101 |
class C3GPLibParser_0110 : public C3GPLibParser_Negative
|
sl@0
|
102 |
{
|
sl@0
|
103 |
public:
|
sl@0
|
104 |
C3GPLibParser_0110();
|
sl@0
|
105 |
TVerdict doTestStepL();
|
sl@0
|
106 |
private:
|
sl@0
|
107 |
void InvalidUdtLocationL(C3GPParse* aParser);
|
sl@0
|
108 |
};
|
sl@0
|
109 |
|
sl@0
|
110 |
_LIT(KTestCase_0111, "MM-3GP-PARSE-U-0111-CP");
|
sl@0
|
111 |
class C3GPLibParser_0111 : public C3GPLibParser_Negative
|
sl@0
|
112 |
{
|
sl@0
|
113 |
public:
|
sl@0
|
114 |
C3GPLibParser_0111();
|
sl@0
|
115 |
TVerdict doTestStepL();
|
sl@0
|
116 |
private:
|
sl@0
|
117 |
void AllVideoAudioApiFailedL(C3GPParse* aParser);
|
sl@0
|
118 |
};
|
sl@0
|
119 |
|
sl@0
|
120 |
_LIT(KTestCase_0119, "MM-3GP-PARSE-U-0119-CP");
|
sl@0
|
121 |
class C3GPLibParser_0119 : public C3GPLibParser_Negative
|
sl@0
|
122 |
{
|
sl@0
|
123 |
public:
|
sl@0
|
124 |
C3GPLibParser_0119();
|
sl@0
|
125 |
TVerdict doTestStepL();
|
sl@0
|
126 |
private:
|
sl@0
|
127 |
void SeekTestL(C3GPParse* aParser);
|
sl@0
|
128 |
};
|
sl@0
|
129 |
|
sl@0
|
130 |
_LIT(KTestCase_0120, "MM-3GP-PARSE-U-0120-CP");
|
sl@0
|
131 |
class C3GPLibParser_0120 : public C3GPLibParser_Negative
|
sl@0
|
132 |
{
|
sl@0
|
133 |
public:
|
sl@0
|
134 |
C3GPLibParser_0120();
|
sl@0
|
135 |
TVerdict doTestStepL();
|
sl@0
|
136 |
private:
|
sl@0
|
137 |
void VideoAttributesL(C3GPParse* aParser);
|
sl@0
|
138 |
};
|
sl@0
|
139 |
|
sl@0
|
140 |
_LIT(KTestCase_0126, "MM-3GP-PARSE-U-0126-CP");
|
sl@0
|
141 |
class C3GPLibParser_0126 : public CTestStep
|
sl@0
|
142 |
{
|
sl@0
|
143 |
public:
|
sl@0
|
144 |
C3GPLibParser_0126();
|
sl@0
|
145 |
TVerdict doTestStepL();
|
sl@0
|
146 |
};
|
sl@0
|
147 |
|
sl@0
|
148 |
_LIT(KTestCase_0127, "MM-3GP-PARSE-U-0127-CP");
|
sl@0
|
149 |
class C3GPLibParser_0127 : public C3GPLibParser_0014
|
sl@0
|
150 |
{
|
sl@0
|
151 |
public:
|
sl@0
|
152 |
C3GPLibParser_0127();
|
sl@0
|
153 |
TVerdict doTestStepL();
|
sl@0
|
154 |
private:
|
sl@0
|
155 |
void TestEmptyBufferL(C3GPParse* aParser);
|
sl@0
|
156 |
};
|
sl@0
|
157 |
|
sl@0
|
158 |
_LIT(KTestCase_0130, "MM-3GP-PARSE-U-0130-CP");
|
sl@0
|
159 |
class C3GPLibParser_0130 : public C3GPLib_AsyncObserver
|
sl@0
|
160 |
{
|
sl@0
|
161 |
public:
|
sl@0
|
162 |
C3GPLibParser_0130();
|
sl@0
|
163 |
TVerdict doTestStepL();
|
sl@0
|
164 |
TVerdict doTestStepPreambleL();
|
sl@0
|
165 |
TVerdict doTestStepPostambleL();
|
sl@0
|
166 |
private:
|
sl@0
|
167 |
void ReadFrameAsyncWoOpenL(C3GPParse* aParser);
|
sl@0
|
168 |
private:
|
sl@0
|
169 |
CActiveScheduler* iScheduler;
|
sl@0
|
170 |
};
|
sl@0
|
171 |
|
sl@0
|
172 |
_LIT(KTestCase_0131, "MM-3GP-PARSE-U-0131-CP");
|
sl@0
|
173 |
class C3GPLibParser_0131 : public C3GPLib_AsyncObserver
|
sl@0
|
174 |
{
|
sl@0
|
175 |
public:
|
sl@0
|
176 |
C3GPLibParser_0131();
|
sl@0
|
177 |
TVerdict doTestStepL();
|
sl@0
|
178 |
TVerdict doTestStepPreambleL();
|
sl@0
|
179 |
TVerdict doTestStepPostambleL();
|
sl@0
|
180 |
private:
|
sl@0
|
181 |
void ReadFrameAsyncAfterOpenL(C3GPParse* aParser);
|
sl@0
|
182 |
private:
|
sl@0
|
183 |
CActiveScheduler* iScheduler;
|
sl@0
|
184 |
};
|
sl@0
|
185 |
|
sl@0
|
186 |
_LIT(KTestCase_0135, "MM-3GP-PARSE-U-0135-CP");
|
sl@0
|
187 |
class C3GPLibParser_0135 : public C3GPLibParser_base
|
sl@0
|
188 |
{
|
sl@0
|
189 |
public:
|
sl@0
|
190 |
C3GPLibParser_0135();
|
sl@0
|
191 |
TVerdict doTestStepL();
|
sl@0
|
192 |
private:
|
sl@0
|
193 |
void GetFrameTypeNegativeL(C3GPParse* aParser);
|
sl@0
|
194 |
};
|
sl@0
|
195 |
|
sl@0
|
196 |
_LIT(KTestCase_0136, "MM-3GP-PARSE-U-0136-CP");
|
sl@0
|
197 |
class C3GPLibParser_0136 : public C3GPLib_AsyncObserver
|
sl@0
|
198 |
{
|
sl@0
|
199 |
public:
|
sl@0
|
200 |
C3GPLibParser_0136();
|
sl@0
|
201 |
TVerdict doTestStepL();
|
sl@0
|
202 |
TVerdict doTestStepPreambleL();
|
sl@0
|
203 |
TVerdict doTestStepPostambleL();
|
sl@0
|
204 |
|
sl@0
|
205 |
private:
|
sl@0
|
206 |
void ReadFrameAsyncInBufferModeL(C3GPParse* aParser);
|
sl@0
|
207 |
void OpenFileInBufferModeL(C3GPParse& aParser);
|
sl@0
|
208 |
|
sl@0
|
209 |
private:
|
sl@0
|
210 |
CActiveScheduler* iScheduler;
|
sl@0
|
211 |
};
|
sl@0
|
212 |
|
sl@0
|
213 |
_LIT(KTestCase_0137, "MM-3GP-PARSE-U-0137-CP");
|
sl@0
|
214 |
class C3GPLibParser_0137 : public C3GPLibParser_base
|
sl@0
|
215 |
{
|
sl@0
|
216 |
public:
|
sl@0
|
217 |
C3GPLibParser_0137();
|
sl@0
|
218 |
TVerdict doTestStepL();
|
sl@0
|
219 |
private:
|
sl@0
|
220 |
void GetVideoAudioAttributesL(C3GPParse* aParser);
|
sl@0
|
221 |
};
|
sl@0
|
222 |
|
sl@0
|
223 |
_LIT(KTestCase_0138, "MM-3GP-PARSE-U-0138-CP");
|
sl@0
|
224 |
class C3GPLibParser_0138 : public C3GPLibParser_base
|
sl@0
|
225 |
{
|
sl@0
|
226 |
public:
|
sl@0
|
227 |
C3GPLibParser_0138();
|
sl@0
|
228 |
TVerdict doTestStepL();
|
sl@0
|
229 |
private:
|
sl@0
|
230 |
void ReadFrameL(C3GPParse* aParser);
|
sl@0
|
231 |
};
|
sl@0
|
232 |
|
sl@0
|
233 |
_LIT(KTestCase_0139, "MM-3GP-PARSE-U-0139-CP");
|
sl@0
|
234 |
class C3GPLibParser_0139 : public C3GPLib_AsyncObserver
|
sl@0
|
235 |
{
|
sl@0
|
236 |
public:
|
sl@0
|
237 |
C3GPLibParser_0139();
|
sl@0
|
238 |
TVerdict doTestStepL();
|
sl@0
|
239 |
TVerdict doTestStepPreambleL();
|
sl@0
|
240 |
TVerdict doTestStepPostambleL();
|
sl@0
|
241 |
private:
|
sl@0
|
242 |
void ReadFrameAsyncL(C3GPParse* aParser);
|
sl@0
|
243 |
TInt DoReadFrameAsync(C3GPParse* aParser, TBool aCancel = EFalse);
|
sl@0
|
244 |
private:
|
sl@0
|
245 |
CActiveScheduler* iScheduler;
|
sl@0
|
246 |
};
|
sl@0
|
247 |
|
sl@0
|
248 |
_LIT(K3GPSingleDataSourceTest, "3GPSingleDataSourceTest");
|
sl@0
|
249 |
class C3GPSingleDataSourceTest : public CTestStep
|
sl@0
|
250 |
{
|
sl@0
|
251 |
public:
|
sl@0
|
252 |
TVerdict doTestStepPreambleL();
|
sl@0
|
253 |
TVerdict doTestStepPostambleL();
|
sl@0
|
254 |
TVerdict doTestStepL();
|
sl@0
|
255 |
|
sl@0
|
256 |
public:
|
sl@0
|
257 |
C3GPParse* iParser;
|
sl@0
|
258 |
};
|
sl@0
|
259 |
|
sl@0
|
260 |
#endif
|
sl@0
|
261 |
|