First public contribution.
1 // Copyright (c) 2008-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef TSU3GPLIBRARYAPINEGATIVE_H
17 #define TSU3GPLIBRARYAPINEGATIVE_H
19 #include "tsu3gplibraryapi.h"
22 class C3GPLibParser_Negative : public C3GPLibParser_base
25 void CallVideoApiL(C3GPParse* aParse, TInt aExpectedError);
26 void CallAudioApiL(C3GPParse* aParse, TInt aExpectedError);
27 void CallBufferModeApiL(C3GPParse* aParse, TInt aExpectedError);
28 void CallCommonApiL(C3GPParse* aParse, TInt aExpectedError);
29 void CallVideoDecoderInfoApiL(C3GPParse* aParse, TInt aExpectedError);
30 void CallAudioDecoderInfoApiL(C3GPParse* aParse, TInt aExpectedError);
31 void CallUDTApiL(C3GPParse* aParse, TUint32 aUdtType, TUint& aIndex, TInt aExpectedError, T3GPUdtaLocation aLocation = E3GPUdtaVideoTrak);
34 _LIT(KTestCase_0101, "MM-3GP-PARSE-U-0101-CP");
35 class C3GPLibParser_0101 : public C3GPLibParser_Negative
39 TVerdict doTestStepL();
41 void EmptyFileFailedCorruptL(C3GPParse* aParser);
44 _LIT(KTestCase_0102, "MM-3GP-PARSE-U-0102-CP");
45 class C3GPLibParser_0102 : public CTestStep
49 TVerdict doTestStepL();
52 _LIT(KTestCase_0104, "MM-3GP-PARSE-U-0104-CP");
53 class C3GPLibParser_0104 : public C3GPLibParser_Negative
57 TVerdict doTestStepL();
60 _LIT(KTestCase_0106, "MM-3GP-PARSE-U-0106-CP");
61 class C3GPLibParser_0106 : public C3GPLibParser_Negative
65 TVerdict doTestStepL();
67 void AllApiFailedNotReadyL(C3GPParse* aParser);
70 _LIT(KTestCase_0107, "MM-3GP-PARSE-U-0107-CP");
71 class C3GPLibParser_0107 : public C3GPLibParser_Negative
75 TVerdict doTestStepL();
77 void InvalidFrameTypeL(C3GPParse* aParser);
80 _LIT(KTestCase_0108, "MM-3GP-PARSE-U-0108-CP");
81 class C3GPLibParser_0108 : public C3GPLibParser_Negative
85 TVerdict doTestStepL();
87 void AllInvalidFrameIndexL(C3GPParse* aParser);
90 _LIT(KTestCase_0109, "MM-3GP-PARSE-U-0109-CP");
91 class C3GPLibParser_0109 : public C3GPLibParser_Negative
95 TVerdict doTestStepL();
97 void InvalidFrameTypePanicL(C3GPParse* aParser);
100 _LIT(KTestCase_0110, "MM-3GP-PARSE-U-0110-CP");
101 class C3GPLibParser_0110 : public C3GPLibParser_Negative
104 C3GPLibParser_0110();
105 TVerdict doTestStepL();
107 void InvalidUdtLocationL(C3GPParse* aParser);
110 _LIT(KTestCase_0111, "MM-3GP-PARSE-U-0111-CP");
111 class C3GPLibParser_0111 : public C3GPLibParser_Negative
114 C3GPLibParser_0111();
115 TVerdict doTestStepL();
117 void AllVideoAudioApiFailedL(C3GPParse* aParser);
120 _LIT(KTestCase_0119, "MM-3GP-PARSE-U-0119-CP");
121 class C3GPLibParser_0119 : public C3GPLibParser_Negative
124 C3GPLibParser_0119();
125 TVerdict doTestStepL();
127 void SeekTestL(C3GPParse* aParser);
130 _LIT(KTestCase_0120, "MM-3GP-PARSE-U-0120-CP");
131 class C3GPLibParser_0120 : public C3GPLibParser_Negative
134 C3GPLibParser_0120();
135 TVerdict doTestStepL();
137 void VideoAttributesL(C3GPParse* aParser);
140 _LIT(KTestCase_0126, "MM-3GP-PARSE-U-0126-CP");
141 class C3GPLibParser_0126 : public CTestStep
144 C3GPLibParser_0126();
145 TVerdict doTestStepL();
148 _LIT(KTestCase_0127, "MM-3GP-PARSE-U-0127-CP");
149 class C3GPLibParser_0127 : public C3GPLibParser_0014
152 C3GPLibParser_0127();
153 TVerdict doTestStepL();
155 void TestEmptyBufferL(C3GPParse* aParser);
158 _LIT(KTestCase_0130, "MM-3GP-PARSE-U-0130-CP");
159 class C3GPLibParser_0130 : public C3GPLib_AsyncObserver
162 C3GPLibParser_0130();
163 TVerdict doTestStepL();
164 TVerdict doTestStepPreambleL();
165 TVerdict doTestStepPostambleL();
167 void ReadFrameAsyncWoOpenL(C3GPParse* aParser);
169 CActiveScheduler* iScheduler;
172 _LIT(KTestCase_0131, "MM-3GP-PARSE-U-0131-CP");
173 class C3GPLibParser_0131 : public C3GPLib_AsyncObserver
176 C3GPLibParser_0131();
177 TVerdict doTestStepL();
178 TVerdict doTestStepPreambleL();
179 TVerdict doTestStepPostambleL();
181 void ReadFrameAsyncAfterOpenL(C3GPParse* aParser);
183 CActiveScheduler* iScheduler;
186 _LIT(KTestCase_0135, "MM-3GP-PARSE-U-0135-CP");
187 class C3GPLibParser_0135 : public C3GPLibParser_base
190 C3GPLibParser_0135();
191 TVerdict doTestStepL();
193 void GetFrameTypeNegativeL(C3GPParse* aParser);
196 _LIT(KTestCase_0136, "MM-3GP-PARSE-U-0136-CP");
197 class C3GPLibParser_0136 : public C3GPLib_AsyncObserver
200 C3GPLibParser_0136();
201 TVerdict doTestStepL();
202 TVerdict doTestStepPreambleL();
203 TVerdict doTestStepPostambleL();
206 void ReadFrameAsyncInBufferModeL(C3GPParse* aParser);
207 void OpenFileInBufferModeL(C3GPParse& aParser);
210 CActiveScheduler* iScheduler;
213 _LIT(KTestCase_0137, "MM-3GP-PARSE-U-0137-CP");
214 class C3GPLibParser_0137 : public C3GPLibParser_base
217 C3GPLibParser_0137();
218 TVerdict doTestStepL();
220 void GetVideoAudioAttributesL(C3GPParse* aParser);
223 _LIT(KTestCase_0138, "MM-3GP-PARSE-U-0138-CP");
224 class C3GPLibParser_0138 : public C3GPLibParser_base
227 C3GPLibParser_0138();
228 TVerdict doTestStepL();
230 void ReadFrameL(C3GPParse* aParser);
233 _LIT(KTestCase_0139, "MM-3GP-PARSE-U-0139-CP");
234 class C3GPLibParser_0139 : public C3GPLib_AsyncObserver
237 C3GPLibParser_0139();
238 TVerdict doTestStepL();
239 TVerdict doTestStepPreambleL();
240 TVerdict doTestStepPostambleL();
242 void ReadFrameAsyncL(C3GPParse* aParser);
243 TInt DoReadFrameAsync(C3GPParse* aParser, TBool aCancel = EFalse);
245 CActiveScheduler* iScheduler;
248 _LIT(K3GPSingleDataSourceTest, "3GPSingleDataSourceTest");
249 class C3GPSingleDataSourceTest : public CTestStep
252 TVerdict doTestStepPreambleL();
253 TVerdict doTestStepPostambleL();
254 TVerdict doTestStepL();