62
|
1 |
/*
|
|
2 |
* Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: MpxCollectionTest test module.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef COLLECTIONTESTS_H
|
|
19 |
#define COLLECTIONTESTS_H
|
|
20 |
|
|
21 |
// INCLUDES
|
|
22 |
#include <mpxcollectionplugin.hrh>
|
|
23 |
#include <mpxcommandgeneraldefs.h>
|
|
24 |
#include <mpxcollectioncommanddefs.h>
|
|
25 |
#include <mpxcollectionmessagedefs.h> //EMPXItemDeleted
|
|
26 |
#include "testmenuview.h"
|
|
27 |
#include "testcommonpluginuids.h"
|
|
28 |
#include "testcollectionplugintype.h"
|
|
29 |
|
|
30 |
// CONSTANTS
|
|
31 |
_LIT(KTestModuleHeaderL1, "**************************************************");
|
|
32 |
_LIT(KTestModuleHeaderL2, "** Test Module: %S");
|
|
33 |
_LIT(KTestModuleHeaderL3, "**");
|
|
34 |
|
|
35 |
_LIT(KTestModuleFooterL1, "**");
|
|
36 |
_LIT(KTestModuleFooterL2, "** Test Module: %S Completed");
|
|
37 |
_LIT(KTestModuleFooterL3, "**************************************************");
|
|
38 |
|
|
39 |
|
|
40 |
_LIT(KTestModuleCaseL1, "--------------------------------------------------");
|
|
41 |
_LIT(KTestModuleCaseL2, "-- Test case: [%d]%S");
|
|
42 |
_LIT(KTestModuleCaseL3, "--");
|
|
43 |
|
|
44 |
_LIT(KTestModuleCaseLeave, "-- Test case failed: left with error: %d");
|
|
45 |
_LIT(KTestModuleCheckptFail, "-- Test case failed at check point: %d");
|
|
46 |
_LIT(KTestModuleTimeout, "-- Test case TIMEOUT");
|
|
47 |
_LIT(KTestModuleUserCancel, "-- Test case user CANCELLED");
|
|
48 |
|
|
49 |
_LIT(KTestModuleInitializeLeft, "-- Test Modules Initialization left with error: %d");
|
|
50 |
_LIT(KTestModuleUninitializeLeft,"-- Test Modules Uninitialization left with error: %d");
|
|
51 |
|
|
52 |
// CONSTANTS
|
|
53 |
// common text
|
|
54 |
const TUint32 KMusicCollectionUID = 0x101FFC3A;
|
|
55 |
const TUint32 KPodcastCollectionUID = 0x101FFC3C;
|
|
56 |
const TInt KColTestPluginIndex = 2;
|
|
57 |
const TInt KRootLvPluginNum = 3;
|
|
58 |
|
|
59 |
_LIT(KTextNotImplemented, "Not Implemented");
|
|
60 |
_LIT(KTextUninstallPlugin, "collectiontestplugin plugin need to be uninstalled");
|
|
61 |
_LIT(KTextImproperMsg, "Improper TMPXCollectionMessage received");
|
|
62 |
_LIT(KTextPanicExpected, "NOTE: PANICE EXPECTED - test case is marked as Failed and skipped");
|
|
63 |
_LIT(KTextConfusingBehaviour,"NOTE: CONFUSING BEHAVIOUR");
|
|
64 |
_LIT(KTextManualCheck, "NOTE: REQUIRE MANUAL CHECK");
|
|
65 |
_LIT(KTextApiDeprecated, "NOTE: API IS DEPRECATED");
|
|
66 |
|
|
67 |
_LIT(KTextHandleColMsg, "Event: %d, Type: %d, Data: %d");
|
|
68 |
_LIT(KTextHandleOpenLArg, "Index: %d, Complete: %d, Error: %d");
|
|
69 |
|
|
70 |
_LIT(KTextPathChangedByOpen,"TMPXCollectionMessage: TMPXCollectionMessage::EPathChanged, EMcPathChangedByOpen");
|
|
71 |
_LIT(KTextCollectionChange, "TMPXCollectionMessage: TMPXCollectionMessage::ECollectionChanged");
|
|
72 |
_LIT(KTextFocusChanged, "TMPXCollectionMessage: TMPXCollectionMessage::EFocusChanged");
|
|
73 |
_LIT(KTextPluginImpUid, "Plugin implementation Id=0x%x");
|
|
74 |
|
|
75 |
// API names
|
|
76 |
_LIT(KTextApiNewL, "Testing MMPXCollectionUtility::NewL");
|
|
77 |
_LIT(KTextApiCollectionIDL, "Testing MMPXCollectionUtility::CollectionIDL");
|
|
78 |
_LIT(KTextApiOpenL, "Testing MMPXCollection::OpenL");
|
|
79 |
_LIT(KTextApiSetFilterL, "Testing MMPXCollection::SetFilterL/FilterL");
|
|
80 |
_LIT(KTextApiUidL, "Testing MMPXCollection::UidL");
|
|
81 |
_LIT(KTextApiPathL, "Testing MMPXCollection::PathL");
|
|
82 |
_LIT(KTextApiBackL, "Testing MMPXCollection::BackL");
|
|
83 |
_LIT(KTextApiIsRemote, "Testing MMPXCollection::IsRemote");
|
|
84 |
_LIT(KTextApiCancelRequest, "Testing MMPXCollection::CancelRequest");
|
|
85 |
_LIT(KTextApiAddL, "Testing MMPXCollection::AddL");
|
|
86 |
_LIT(KTextApiRemoveL, "Testing MMPXCollection::RemoveL");
|
|
87 |
_LIT(KTextApiSetSyncL, "Testing MMPXCollection::SetSyncL");
|
|
88 |
_LIT(KTextApiSetL, "Testing MMPXCollection::SetL");
|
|
89 |
_LIT(KTextApiFindAllL_Asyn, "Testing MMPXCollection::FindAllL_Asyn");
|
|
90 |
_LIT(KTextApiFindAllL_Syn, "Testing MMPXCollection::FindAllL_Syn");
|
|
91 |
_LIT(KTextApiMediaL, "Testing MMPXCollection::MediaL");
|
|
92 |
_LIT(KTextApiCommandL, "Testing MMPXCollection::CommandL");
|
|
93 |
_LIT(KTextApiCommandL_Ext, "Testing MMPXCollection::CommandL_Ext");
|
|
94 |
_LIT(KTextApiGetSupportedTypesL,"Testing MMPXCollection::GetSupportedTypesL");
|
|
95 |
_LIT(KTextApiGetSupportedCapabilitiesL,"Testing MMPXCollection::GetSupportedCapabilitiesL");
|
|
96 |
_LIT(KTextApiCollectionIDL_Col,"Testing MMPXCollection::CollectionIDL");
|
|
97 |
_LIT(KTextApiNotifyL, "Testing MMPXCollection::NotifyL");
|
|
98 |
|
|
99 |
|
|
100 |
_LIT(KTextHandleColMsgL1, "MMPXCollectionObserver::HandleCollectionMessageL-TMPXCollectionMessage");
|
|
101 |
_LIT(KTextHandleColMsgL2, "MMPXCollectionObserver::HandleCollectionMessageL-CMPXMessage");
|
|
102 |
_LIT(KTextHandleOpenL1, "MMPXCollectionObserver::HandleOpenL-CMPXMedia");
|
|
103 |
_LIT(KTextHandleOpenL2, "MMPXCollectionObserver::HandleOpenL-CMPXCollectionPlaylist");
|
|
104 |
_LIT(KTextHandleCommandComplete,"MMPXCollectionObserver::HandleCommandComplete");
|
|
105 |
_LIT(KTextHandleMediaL, "MMPXCollectionObserver::HandleCollectionMediaL");
|
|
106 |
_LIT(KTextHandleRemoveL, "MMPXCollectionRemoveObserver::HandleRemoveL");
|
|
107 |
_LIT(KTextHandleFindAllL, "MMPXCollectionFindObserver::HandleFindAllL");
|
|
108 |
|
|
109 |
// MACROS
|
|
110 |
|
|
111 |
// FORWARD DECLARATIONS
|
|
112 |
class MMPXCollectionUtility;
|
|
113 |
class CStifLogger;
|
|
114 |
|
|
115 |
// DATA TYPES
|
|
116 |
_LIT(KTxtCollectionTests, "CollectionTests");
|
|
117 |
|
|
118 |
// CLASS DECLARATION
|
|
119 |
|
|
120 |
class CCollectionTests : public CTestMenuView,
|
|
121 |
public MMPXCollectionObserver,
|
|
122 |
public MMPXCollectionRemoveObserver,
|
|
123 |
public MMPXCollectionFindObserver
|
|
124 |
{
|
|
125 |
public:
|
|
126 |
|
|
127 |
/**
|
|
128 |
* Two-phased constructor
|
|
129 |
* @return object of CConsoleMain
|
|
130 |
*/
|
|
131 |
static CCollectionTests* NewL(CConsoleMain* aConsoleMain,
|
|
132 |
CTestBaseView* aParent,
|
|
133 |
const TDesC& aName,
|
|
134 |
CStifLogger* aLogger,
|
|
135 |
TInt testIndex);
|
|
136 |
|
|
137 |
/**
|
|
138 |
* Two-phased constructor
|
|
139 |
* @return object of CConsoleMain
|
|
140 |
*/
|
|
141 |
static CCollectionTests* NewLC(CConsoleMain* aConsoleMain,
|
|
142 |
CTestBaseView* aParent,
|
|
143 |
const TDesC& aName,
|
|
144 |
CStifLogger* aLogger,
|
|
145 |
TInt testIndex);
|
|
146 |
|
|
147 |
/**
|
|
148 |
* Destructor of CConsoleMain
|
|
149 |
*/
|
|
150 |
virtual ~CCollectionTests();
|
|
151 |
|
|
152 |
private:
|
|
153 |
|
|
154 |
/**
|
|
155 |
* C++ default constructor.
|
|
156 |
*/
|
|
157 |
CCollectionTests(CConsoleMain* aConsoleMain,
|
|
158 |
CTestBaseView* aParent,
|
|
159 |
const TDesC& aName,
|
|
160 |
CStifLogger* aLogger,
|
|
161 |
TInt testIndex);
|
|
162 |
|
|
163 |
/**
|
|
164 |
* the second phase constructor ConstructL to safely construct things
|
|
165 |
* that can leave
|
|
166 |
*/
|
|
167 |
void ConstructL();
|
|
168 |
|
|
169 |
public:
|
|
170 |
|
|
171 |
/*
|
|
172 |
* Return whether test requires scheduler for aysynchronous wait.
|
|
173 |
*/
|
|
174 |
TBool IsTestSynchronous(int iTestIndex);
|
|
175 |
|
|
176 |
/**
|
|
177 |
* Result from latest test
|
|
178 |
*/
|
|
179 |
TInt GetLatestTestResult();
|
|
180 |
|
|
181 |
/**
|
|
182 |
* Stop the current test
|
|
183 |
*/
|
|
184 |
void TestCompleteL();
|
|
185 |
|
|
186 |
/**
|
|
187 |
* From CTestBaseView
|
|
188 |
* Handle number key press
|
|
189 |
*/
|
|
190 |
void HandleNumKeyL();
|
|
191 |
|
|
192 |
/**
|
|
193 |
* From CTestBaseView
|
|
194 |
* Handle left key press
|
|
195 |
*/
|
|
196 |
void HandleLeftKeyL();
|
|
197 |
|
|
198 |
/**
|
|
199 |
* From CTestBaseView
|
|
200 |
* Handle right/enter key press
|
|
201 |
*/
|
|
202 |
void HandleRightKeyL();
|
|
203 |
|
|
204 |
/**
|
|
205 |
* From CTestBaseView
|
|
206 |
* Cleanup the view before deactivate/destroy view
|
|
207 |
*/
|
|
208 |
void CleanupViewL();
|
|
209 |
|
|
210 |
/**
|
|
211 |
* From CTestBaseView
|
|
212 |
* Initialize the view before display view
|
|
213 |
*/
|
|
214 |
void InitializeViewL();
|
|
215 |
|
|
216 |
void RunNext();
|
|
217 |
|
|
218 |
void StartNextTestL();
|
|
219 |
|
|
220 |
TInt StartTest0001L();
|
|
221 |
TInt StartTest0002L();
|
|
222 |
TInt StartTest0003L();
|
|
223 |
TInt StartTest0004L();
|
|
224 |
TInt StartTest0005L();
|
|
225 |
TInt StartTest0006L();
|
|
226 |
TInt StartTest0007L();
|
|
227 |
TInt StartTest0008L();
|
|
228 |
TInt StartTest0009L();
|
|
229 |
TInt StartTest0010L();
|
|
230 |
TInt StartTest0011L();
|
|
231 |
TInt StartTest0012L();
|
|
232 |
TInt StartTest0013L();
|
|
233 |
TInt StartTest0014L();
|
|
234 |
TInt StartTest0015L();
|
|
235 |
TInt StartTest0016L();
|
|
236 |
TInt StartTest0017L();
|
|
237 |
TInt StartTest0018L();
|
|
238 |
TInt StartTest0019L();
|
|
239 |
TInt StartTest0020L();
|
|
240 |
TInt StartTest0021L();
|
|
241 |
TInt StartTest0022L();
|
|
242 |
TInt StartTest0023L();
|
|
243 |
TInt StartTest0024L();
|
|
244 |
TInt StartTest0025L();
|
|
245 |
TInt StartTest0026L();
|
|
246 |
TInt StartTest0027L();
|
|
247 |
TInt StartTest0028L();
|
|
248 |
TInt StartTest0029L();
|
|
249 |
TInt StartTest0030L();
|
|
250 |
TInt StartTest0031L();
|
|
251 |
TInt StartTest0032L();
|
|
252 |
TInt StartTest0033L();
|
|
253 |
TInt StartTest0034L();
|
|
254 |
TInt StartTest0035L();
|
|
255 |
TInt StartTest0036L();
|
|
256 |
TInt StartTest0037L();
|
|
257 |
TInt StartTest0038L();
|
|
258 |
TInt StartTest0039L();
|
|
259 |
TInt StartTest0040L();
|
|
260 |
TInt StartTest0041L();
|
|
261 |
TInt StartTest0042L();
|
|
262 |
TInt StartTest0043L();
|
|
263 |
TInt StartTest0044L();
|
|
264 |
TInt StartTest0045L();
|
|
265 |
TInt StartTest0046L();
|
|
266 |
TInt StartTest0047L();
|
|
267 |
TInt StartTest0048L();
|
|
268 |
TInt StartTest0049L();
|
|
269 |
TInt StartTest0050L();
|
|
270 |
TInt StartTest0051L();
|
|
271 |
TInt StartTest0052L();
|
|
272 |
TInt StartTest0053L();
|
|
273 |
TInt StartTest0054L();
|
|
274 |
TInt StartTest0055L();
|
|
275 |
TInt StartTest0056L();
|
|
276 |
TInt StartTest0057L();
|
|
277 |
TInt StartTest0058L();
|
|
278 |
TInt StartTest0059L();
|
|
279 |
TInt StartTest0060L();
|
|
280 |
TInt StartTest0061L();
|
|
281 |
TInt StartTest0062L();
|
|
282 |
TInt StartTest0063L();
|
|
283 |
TInt StartTest0064L();
|
|
284 |
TInt StartTest0065L();
|
|
285 |
TInt StartTest0066L();
|
|
286 |
TInt StartTest0067L();
|
|
287 |
TInt StartTest0068L();
|
|
288 |
TInt StartTest0069L();
|
|
289 |
TInt StartTest0070L();
|
|
290 |
TInt StartTest0071L();
|
|
291 |
TInt StartTest0072L();
|
|
292 |
TInt StartTest0073L();
|
|
293 |
TInt StartTest0074L();
|
|
294 |
TInt StartTest0075L();
|
|
295 |
TInt StartTest0076L();
|
|
296 |
TInt StartTest0077L();
|
|
297 |
TInt StartTest0078L();
|
|
298 |
TInt StartTest0079L();
|
|
299 |
TInt StartTest0080L();
|
|
300 |
TInt StartTest0081L();
|
|
301 |
TInt StartTest0082L();
|
|
302 |
TInt StartTest0083L();
|
|
303 |
TInt StartTest0084L();
|
|
304 |
TInt StartTest0085L();
|
|
305 |
TInt StartTest0086L();
|
|
306 |
TInt StartTest0087L();
|
|
307 |
TInt StartTest0088L();
|
|
308 |
TInt StartTest0089L();
|
|
309 |
TInt StartTest0090L();
|
|
310 |
TInt StartTest0091L();
|
|
311 |
TInt StartTest0092L();
|
|
312 |
TInt StartTest0093L();
|
|
313 |
TInt StartTest0094L();
|
|
314 |
TInt StartTest0095L();
|
|
315 |
TInt StartTest0096L();
|
|
316 |
TInt StartTest0097L();
|
|
317 |
TInt StartTest0098L();
|
|
318 |
TInt StartTest0099L();
|
|
319 |
TInt StartTest0100L();
|
|
320 |
TInt StartTest0101L();
|
|
321 |
TInt StartTest0102L();
|
|
322 |
TInt StartTest0103L();
|
|
323 |
TInt StartTest0104L();
|
|
324 |
TInt StartTest0105L();
|
|
325 |
TInt StartTest0106L();
|
|
326 |
TInt StartTest0107L();
|
|
327 |
TInt StartTest0108L();
|
|
328 |
TInt StartTest0109L();
|
|
329 |
TInt StartTest0110L();
|
|
330 |
TInt StartTest0111L();
|
|
331 |
TInt StartTest0112L();
|
|
332 |
TInt StartTest0113L();
|
|
333 |
TInt StartTest0114L();
|
|
334 |
TInt StartTest0115L();
|
|
335 |
TInt StartTest0116L();
|
|
336 |
TInt StartTest0117L();
|
|
337 |
TInt StartTest0118L();
|
|
338 |
TInt StartTest0119L();
|
|
339 |
TInt StartTest0120L();
|
|
340 |
TInt StartTest0121L();
|
|
341 |
TInt StartTest0122L();
|
|
342 |
TInt StartTest0123L();
|
|
343 |
TInt StartTest0124L();
|
|
344 |
TInt StartTest0125L();
|
|
345 |
TInt StartTest0126L();
|
|
346 |
TInt StartTest0127L();
|
|
347 |
TInt StartTest0128L();
|
|
348 |
TInt StartTest0129L();
|
|
349 |
TInt StartTest0130L();
|
|
350 |
TInt StartTest0131L();
|
|
351 |
TInt StartTest0132L();
|
|
352 |
TInt StartTest0133L();
|
|
353 |
TInt StartTest0134L();
|
|
354 |
TInt StartTest0135L();
|
|
355 |
TInt StartTest0136L();
|
|
356 |
TInt StartTest0137L();
|
|
357 |
TInt StartTest0138L();
|
|
358 |
TInt StartTest0139L();
|
|
359 |
TInt StartTest0140L();
|
|
360 |
TInt StartTest0141L();
|
|
361 |
TInt StartTest0142L();
|
|
362 |
TInt StartTest0143L();
|
|
363 |
TInt StartTest0144L();
|
|
364 |
TInt StartTest0145L();
|
|
365 |
TInt StartTest0146L();
|
|
366 |
TInt StartTest0147L();
|
|
367 |
TInt StartTest0148L();
|
|
368 |
TInt StartTest0149L();
|
|
369 |
TInt StartTest0150L();
|
|
370 |
TInt StartTest0151L();
|
|
371 |
TInt StartTest0152L();
|
|
372 |
TInt StartTest0153L();
|
|
373 |
TInt StartTest0154L();
|
|
374 |
TInt StartTest0155L();
|
|
375 |
TInt StartTest0156L();
|
|
376 |
TInt StartTest0157L();
|
|
377 |
TInt StartTest0158L();
|
|
378 |
TInt StartTest0159L();
|
|
379 |
TInt StartTest0160L();
|
|
380 |
TInt StartTest0161L();
|
|
381 |
TInt StartTest0162L();
|
|
382 |
TInt StartTest0163L();
|
|
383 |
TInt StartTest0164L();
|
|
384 |
TInt StartTest0165L();
|
|
385 |
TInt StartTest0166L();
|
|
386 |
TInt StartTest0167L();
|
|
387 |
TInt StartTest0168L();
|
|
388 |
TInt StartTest0169L();
|
|
389 |
TInt StartTest0170L();
|
|
390 |
TInt StartTest0171L();
|
|
391 |
TInt StartTest0172L();
|
|
392 |
TInt StartTest0173L();
|
|
393 |
TInt StartTest0174L();
|
|
394 |
TInt StartTest0175L();
|
|
395 |
TInt StartTest0176L();
|
|
396 |
TInt StartTest0177L();
|
|
397 |
TInt StartTest0178L();
|
|
398 |
TInt StartTest0179L();
|
|
399 |
TInt StartTest0180L();
|
|
400 |
TInt StartTest0181L();
|
|
401 |
TInt StartTest0182L();
|
|
402 |
TInt StartTest0183L();
|
|
403 |
TInt StartTest0184L();
|
|
404 |
TInt StartTest0185L();
|
|
405 |
TInt StartTest0186L();
|
|
406 |
TInt StartTest0187L();
|
|
407 |
TInt StartTest0188L();
|
|
408 |
TInt StartTest0189L();
|
|
409 |
TInt StartTest0190L();
|
|
410 |
TInt StartTest0191L();
|
|
411 |
TInt StartTest0192L();
|
|
412 |
TInt StartTest0193L();
|
|
413 |
TInt StartTest0194L();
|
|
414 |
TInt StartTest0195L();
|
|
415 |
TInt StartTest0196L();
|
|
416 |
TInt StartTest0197L();
|
|
417 |
TInt StartTest0198L();
|
|
418 |
TInt StartTest0199L();
|
|
419 |
TInt StartTest0200L();
|
|
420 |
TInt StartTest0201L();
|
|
421 |
TInt StartTest0202L();
|
|
422 |
|
|
423 |
void DoHandleCollectionTest0001L( const TMPXCollectionMessage& aMessage );
|
|
424 |
void DoHandleCollectionTest0011L( const TMPXCollectionMessage& aMessage );
|
|
425 |
void DoHandleCollectionTest0012L(const CMPXMedia& aEntries,
|
|
426 |
TInt aIndex,TBool aComplete,TInt aError);
|
|
427 |
void DoHandleCollectionTest0021L(const CMPXMedia& aEntries,
|
|
428 |
TInt aIndex,TBool aComplete,TInt aError);
|
|
429 |
void DoHandleCollectionTest0022L( const TMPXCollectionMessage& aMessage );
|
|
430 |
void DoHandleCollectionTest0023L(const CMPXMedia& aEntries,
|
|
431 |
TInt aIndex,TBool aComplete,TInt aError);
|
|
432 |
void DoHandleCollectionTest0029L( const TMPXCollectionMessage& aMessage );
|
|
433 |
void DoHandleCollectionTest0029L(const CMPXMedia& aEntries,
|
|
434 |
TInt aIndex,TBool aComplete,TInt aError);
|
|
435 |
void DoHandleCollectionTest0030L( const TMPXCollectionMessage& aMessage );
|
|
436 |
void DoHandleCollectionTest0031L(const CMPXMedia& aEntries,
|
|
437 |
TInt aIndex,TBool aComplete,TInt aError);
|
|
438 |
void DoHandleCollectionTest0032L( const TMPXCollectionMessage& aMessage );
|
|
439 |
void DoHandleCollectionTest0033L(const CMPXMedia& aEntries,
|
|
440 |
TInt aIndex,TBool aComplete,TInt aError);
|
|
441 |
void DoHandleCollectionTest0034L( const TMPXCollectionMessage& aMessage );
|
|
442 |
void DoHandleCollectionTest0035L(const CMPXMedia& aEntries,
|
|
443 |
TInt aIndex,TBool aComplete,TInt aError);
|
|
444 |
void DoHandleCollectionTest0036L( const TMPXCollectionMessage& aMessage );
|
|
445 |
void DoHandleCollectionTest0036L(const CMPXMedia& aEntries,
|
|
446 |
TInt aIndex,TBool aComplete,TInt aError);
|
|
447 |
void DoHandleCollectionTest0037L( const TMPXCollectionMessage& aMessage );
|
|
448 |
void DoHandleCollectionTest0038L(const CMPXMedia& aEntries,
|
|
449 |
TInt aIndex,TBool aComplete,TInt aError);
|
|
450 |
void DoHandleCollectionTest0039L( const TMPXCollectionMessage& aMessage );
|
|
451 |
void DoHandleCollectionTest0039L(const CMPXMedia& aEntries,
|
|
452 |
TInt aIndex,TBool aComplete,TInt aError);
|
|
453 |
void DoHandleCollectionTest0040L( const TMPXCollectionMessage& aMessage );
|
|
454 |
void DoHandleCollectionTest0041L(const CMPXMedia& aEntries,
|
|
455 |
TInt aIndex,TBool aComplete,TInt aError);
|
|
456 |
void DoHandleCollectionTest0043L( const TMPXCollectionMessage& aMessage );
|
|
457 |
void DoHandleCollectionTest0044L(const CMPXMedia& aEntries,
|
|
458 |
TInt aIndex,TBool aComplete,TInt aError);
|
|
459 |
void DoHandleCollectionTest0047L( const TMPXCollectionMessage& aMessage );
|
|
460 |
void DoHandleCollectionTest0048L(const CMPXMedia& aEntries,
|
|
461 |
TInt aIndex,TBool aComplete,TInt aError);
|
|
462 |
void DoHandleCollectionTest0051L( const TMPXCollectionMessage& aMessage );
|
|
463 |
void DoHandleCollectionTest0052L(const CMPXMedia& aEntries,
|
|
464 |
TInt aIndex,TBool aComplete,TInt aError);
|
|
465 |
void DoHandleCollectionTest0056L( const TMPXCollectionMessage& aMessage );
|
|
466 |
void DoHandleCollectionTest0057L( const TMPXCollectionMessage& aMessage );
|
|
467 |
void DoHandleCollectionTest0058L( const TMPXCollectionMessage& aMessage );
|
|
468 |
void DoHandleCollectionTest0059L( const TMPXCollectionMessage& aMessage );
|
|
469 |
void DoHandleCollectionTest0059L(const CMPXMedia& aEntries,
|
|
470 |
TInt aIndex,TBool aComplete,TInt aError);
|
|
471 |
void DoHandleCollectionTest0060L( const TMPXCollectionMessage& aMessage );
|
|
472 |
void DoHandleCollectionTest0060L(const CMPXMedia& aEntries,
|
|
473 |
TInt aIndex,TBool aComplete,TInt aError);
|
|
474 |
void DoHandleCollectionTest0078L( const TMPXCollectionMessage& aMessage );
|
|
475 |
void DoHandleCollectionTest0079L( const TMPXCollectionMessage& aMessage );
|
|
476 |
void DoHandleCollectionTest0080L( const TMPXCollectionMessage& aMessage );
|
|
477 |
void DoHandleCollectionTest0084L( const TMPXCollectionMessage& aMessage );
|
|
478 |
void DoHandleCollectionTest0085L( const TMPXCollectionMessage& aMessage );
|
|
479 |
void DoHandleCollectionTest0086L( const TMPXCollectionMessage& aMessage );
|
|
480 |
void DoHandleRemoveLTest0088L(MDesCArray& aUriArray, TInt aError);
|
|
481 |
void DoHandleRemoveLTest0089L(MDesCArray& aUriArray, TInt aError);
|
|
482 |
void DoHandleRemoveLTest0090L(MDesCArray& aUriArray, TInt aError);
|
|
483 |
void DoHandleRemoveLTest0091L(MDesCArray& aUriArray, TInt aError);
|
|
484 |
void DoHandleCollectionTest0091L( const TMPXCollectionMessage& aMessage );
|
|
485 |
void DoHandleCollectionTest0099L( const TMPXCollectionMessage& aMessage );
|
|
486 |
void DoHandleCollectionTest0100L( const TMPXCollectionMessage& aMessage );
|
|
487 |
void DoHandleCollectionTest0108L( const TMPXCollectionMessage& aMessage );
|
|
488 |
void DoHandleCollectionTest0109L( const TMPXCollectionMessage& aMessage );
|
|
489 |
void DoHandleCollectionTest0117L( const TMPXCollectionMessage& aMessage );
|
|
490 |
void DoHandleCollectionTest0118L( const TMPXCollectionMessage& aMessage );
|
|
491 |
void DoHandleCollectionTest0119L( const TMPXCollectionMessage& aMessage );
|
|
492 |
void DoHandleCollectionTest0120L( const TMPXCollectionMessage& aMessage );
|
|
493 |
void DoHandleFindAllTest0126L(const CMPXMedia& aResults, TBool aComplete,TInt aError);
|
|
494 |
void DoHandleCollectionTest0126L( const TMPXCollectionMessage& aMessage );
|
|
495 |
void DoHandleFindAllTest0127L(const CMPXMedia& aResults, TBool aComplete,TInt aError);
|
|
496 |
void DoHandleCollectionTest0127L( const TMPXCollectionMessage& aMessage );
|
|
497 |
void DoHandleFindAllTest0128L(const CMPXMedia& aResults, TBool aComplete,TInt aError);
|
|
498 |
void DoHandleFindAllTest0129L(const CMPXMedia& aResults, TBool aComplete,TInt aError);
|
|
499 |
void DoHandleFindAllTest0130L(const CMPXMedia& aResults, TBool aComplete,TInt aError);
|
|
500 |
void DoHandleCollectionTest0130L( const TMPXCollectionMessage& aMessage );
|
|
501 |
void DoHandleCollectionTest0145L( const TMPXCollectionMessage& aMessage );
|
|
502 |
void DoHandleMediaTest0145L(const CMPXMedia& aMedia, TInt aError);
|
|
503 |
void DoHandleMediaTest0146L(const CMPXMedia& aMedia, TInt aError);
|
|
504 |
void DoHandleMediaTest0147L(const CMPXMedia& aMedia, TInt aError);
|
|
505 |
void DoHandleCollectionTest0148L( const TMPXCollectionMessage& aMessage );
|
|
506 |
void DoHandleMediaTest0148L(const CMPXMedia& aMedia, TInt aError);
|
|
507 |
void DoHandleMediaTest0149L(const CMPXMedia& aMedia, TInt aError);
|
|
508 |
void DoHandleCollectionTest0162L( const TMPXCollectionMessage& aMessage );
|
|
509 |
void DoHandleCollectionTest0163L( const TMPXCollectionMessage& aMessage );
|
|
510 |
void DoHandleCollectionTest0171L( const TMPXCollectionMessage& aMessage );
|
|
511 |
void DoHandleCommandCompleteTest0171L(CMPXCommand* aCommandResult, TInt aError);
|
|
512 |
void DoHandleCommandCompleteTest0173L(CMPXCommand* aCommandResult, TInt aError);
|
|
513 |
void DoHandleCollectionTest0173L( const TMPXCollectionMessage& aMessage );
|
|
514 |
void DoHandleCommandCompleteTest0176L(CMPXCommand* aCommandResult, TInt aError);
|
|
515 |
void DoHandleCommandCompleteTest0177L(CMPXCommand* aCommandResult, TInt aError);
|
|
516 |
void DoHandleCollectionTest0177L( const TMPXCollectionMessage& aMessage );
|
|
517 |
void DoHandleCollectionTest0179L( const TMPXCollectionMessage& aMessage );
|
|
518 |
void DoHandleCollectionTest0182L( const TMPXCollectionMessage& aMessage );
|
|
519 |
void DoHandleCommandCompleteTest0184L(CMPXCommand* aCommandResult, TInt aError);
|
|
520 |
void DoHandleCollectionTest0194L( const TMPXCollectionMessage& aMessage );
|
|
521 |
void DoHandleCollectionTest0195L( const TMPXCollectionMessage& aMessage );
|
|
522 |
void DoHandleCollectionTest0196L( const TMPXCollectionMessage& aMessage );
|
|
523 |
void DoHandleCollectionTest0197L( const TMPXCollectionMessage& aMessage );
|
|
524 |
void DoHandleCollectionTest0198L( const TMPXCollectionMessage& aMessage );
|
|
525 |
void DoHandleCollectionTest0199L( const TMPXCollectionMessage& aMessage );
|
|
526 |
void DoHandleCollectionTest0200L( const TMPXCollectionMessage& aMessage );
|
|
527 |
void DoHandleCollectionTest0201L( const TMPXCollectionMessage& aMessage );
|
|
528 |
void DoHandleCollectionTest0202L( const TMPXCollectionMessage& aMessage );
|
|
529 |
|
|
530 |
//***********************************************************************
|
|
531 |
|
|
532 |
/**
|
|
533 |
* From MMPXCollectionObserver
|
|
534 |
* Handle extended media properties
|
|
535 |
* @param aMedia media
|
|
536 |
* @param aError error code
|
|
537 |
*/
|
|
538 |
void HandleCollectionMediaL(
|
|
539 |
const CMPXMedia& aMedia,
|
|
540 |
TInt aError);
|
|
541 |
|
|
542 |
/**
|
|
543 |
* From MMPXCollectionObserver
|
|
544 |
* Handle collection message
|
|
545 |
* @param aMessage collection message
|
|
546 |
*/
|
|
547 |
void HandleCollectionMessageL(const CMPXMessage& aMsg);
|
|
548 |
|
|
549 |
/**
|
|
550 |
* From MMPXCollectionObserver
|
|
551 |
* Handles the collection entries being opened. Typically called
|
|
552 |
* when client has Open()'d a folder
|
|
553 |
*
|
|
554 |
* @param aEntries collection entries opened
|
|
555 |
* @param aIndex focused entry
|
|
556 |
* @param aComplete ETrue no more entries. EFalse more entries
|
|
557 |
* expected
|
|
558 |
* @param aError error code
|
|
559 |
*/
|
|
560 |
void HandleOpenL(const CMPXMedia& aEntries,
|
|
561 |
TInt aIndex,TBool aComplete,TInt aError);
|
|
562 |
|
|
563 |
/**
|
|
564 |
* From MMPXCollectionObserver
|
|
565 |
* Handles the item being opened. Typically called
|
|
566 |
* when client has Open()'d an item. Client typically responds by
|
|
567 |
* 'playing' the item via the playlist
|
|
568 |
*
|
|
569 |
* @param aPlaylist collection playlist, owner ship is transfered
|
|
570 |
* @param aError error code
|
|
571 |
*/
|
|
572 |
void HandleOpenL(const CMPXCollectionPlaylist& aPlaylist,TInt aError);
|
|
573 |
|
|
574 |
|
|
575 |
void HandleCommandComplete(CMPXCommand* aCommandResult, TInt aError);
|
|
576 |
|
|
577 |
//***********************************************************************
|
|
578 |
|
|
579 |
/**
|
|
580 |
* From MMPXCollectionRemoveObserver
|
|
581 |
* Handles removing a collection path
|
|
582 |
* calls back with the list of file paths that were deleted
|
|
583 |
* This callback is only applicable for local file storage plugins.
|
|
584 |
*
|
|
585 |
* @param aUriArray, list of files that were deleted
|
|
586 |
*/
|
|
587 |
void HandleRemoveL(MDesCArray& aUriArray, TInt aError);
|
|
588 |
|
|
589 |
//***********************************************************************
|
|
590 |
|
|
591 |
/**
|
|
592 |
* From MMPXCollectionFindObserver
|
|
593 |
* Handle callback for "find" operation
|
|
594 |
* @param aEntries, CMPXMedia to be returned
|
|
595 |
* @param aComplete ETrue no more entries. EFalse more entries
|
|
596 |
* expected
|
|
597 |
* @param aError error code
|
|
598 |
*/
|
|
599 |
void HandleFindAllL(const CMPXMedia& aResults, TBool aComplete,TInt aError);
|
|
600 |
|
|
601 |
private:
|
|
602 |
|
|
603 |
// Assert function
|
|
604 |
void AssertL(TBool aCondition, TInt aCheckPt);
|
|
605 |
|
|
606 |
// Compare function
|
|
607 |
static TBool CompareByTMPXItemId(const TMPXItemId& aFirst,
|
|
608 |
const TMPXItemId& aSecond);
|
|
609 |
|
|
610 |
// Initialize new collection
|
|
611 |
void Collection1_Initialize();
|
|
612 |
|
|
613 |
// Initialize new collection and open with TMPXOpenMode (Test 9 - )
|
|
614 |
void Collection2_InitializeAndOpenL(TMPXOpenMode aOpenMode);
|
|
615 |
|
|
616 |
private:
|
|
617 |
|
|
618 |
MMPXCollectionUtility* iCollectionUtility1; //owns
|
|
619 |
MMPXCollectionUtility* iCollectionUtility2; //owns
|
|
620 |
CStifLogger* iLogger; //uses
|
|
621 |
TInt iTestIndex;
|
|
622 |
TInt iStopAtTestIndex;
|
|
623 |
TInt iTempCnt;
|
|
624 |
TInt iLatestTestResult;
|
|
625 |
};
|
|
626 |
|
|
627 |
#endif // COLLECTIONTESTS_H
|
|
628 |
|