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