author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 24 Nov 2009 08:56:33 +0200 | |
changeset 33 | 50974a8b132e |
parent 19 | 989d2f495d90 |
permissions | -rw-r--r-- |
19 | 1 |
/* |
2 |
* Copyright (c) 2006-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 the License "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: ?Description |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
||
20 |
// INCLUDE FILES |
|
21 |
#include <e32svr.h> |
|
22 |
#include <StifParser.h> |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
23 |
#include <StifTestInterface.h> |
19 | 24 |
//#include"appmanagertest.h" |
25 |
#include "tappmgrtest.h" |
|
26 |
#include "appmanagerservice.h" |
|
27 |
#include "appmanagercommon.h" |
|
28 |
#include <f32file.h> |
|
29 |
#include <e32des16.h> |
|
30 |
#include <e32base.h> |
|
31 |
||
32 |
#include "testappobserver.h" |
|
33 |
const TInt KDocMaxDigitsInHexString = 8; // 32 bits. |
|
34 |
const TInt KLen = 4; // "//" for count these |
|
35 |
||
36 |
_LIT(KScheme,"s60uid://0x"); |
|
37 |
_LIT(KKill," is killed!! \n"); |
|
38 |
// EXTERNAL DATA STRUCTURES |
|
39 |
//extern ?external_data; |
|
40 |
||
41 |
// EXTERNAL FUNCTION PROTOTYPES |
|
42 |
//extern ?external_function( ?arg_type,?arg_type ); |
|
43 |
||
44 |
// CONSTANTS |
|
45 |
//const ?type ?constant_var = ?constant; |
|
46 |
||
47 |
// MACROS |
|
48 |
//#define ?macro ?macro_def |
|
49 |
||
50 |
// LOCAL CONSTANTS AND MACROS |
|
51 |
//const ?type ?constant_var = ?constant; |
|
52 |
//#define ?macro_name ?macro_def |
|
53 |
||
54 |
// MODULE DATA STRUCTURES |
|
55 |
//enum ?declaration |
|
56 |
//typedef ?declaration |
|
57 |
||
58 |
// LOCAL FUNCTION PROTOTYPES |
|
59 |
//?type ?function_name( ?arg_type, ?arg_type ); |
|
60 |
||
61 |
// FORWARD DECLARATIONS |
|
62 |
//class ?FORWARD_CLASSNAME; |
|
63 |
||
64 |
// ============================= LOCAL FUNCTIONS =============================== |
|
65 |
||
66 |
// ----------------------------------------------------------------------------- |
|
67 |
// ?function_name ?description. |
|
68 |
// ?description |
|
69 |
// Returns: ?value_1: ?description |
|
70 |
// ?value_n: ?description_line1 |
|
71 |
// ?description_line2 |
|
72 |
// ----------------------------------------------------------------------------- |
|
73 |
// |
|
74 |
/* |
|
75 |
?type ?function_name( |
|
76 |
?arg_type arg, // ?description |
|
77 |
?arg_type arg) // ?description |
|
78 |
{ |
|
79 |
||
80 |
?code // ?comment |
|
81 |
||
82 |
// ?comment |
|
83 |
?code |
|
84 |
} |
|
85 |
*/ |
|
86 |
||
87 |
// ============================ MEMBER FUNCTIONS =============================== |
|
88 |
||
89 |
// ----------------------------------------------------------------------------- |
|
90 |
// Csapi_getheader:Delete |
|
91 |
// Delete here all resources allocated and opened from test methods. |
|
92 |
// Called from destructor. |
|
93 |
// ----------------------------------------------------------------------------- |
|
94 |
// |
|
95 |
void CAppManagerTest::Delete() |
|
96 |
{ |
|
97 |
||
98 |
} |
|
99 |
||
100 |
// ----------------------------------------------------------------------------- |
|
101 |
// Csapi_getheader:RunMethodL |
|
102 |
// Run specified method. Contains also table of test mothods and their names. |
|
103 |
// ----------------------------------------------------------------------------- |
|
104 |
// |
|
105 |
TInt CAppManagerTest::RunMethodL( |
|
106 |
CStifItemParser& aItem ) |
|
107 |
{ |
|
108 |
||
109 |
static TStifFunctionInfo const KFunctions[] = |
|
110 |
{ |
|
111 |
ENTRY( "getlisttest", CAppManagerTest::getlisttestL ), |
|
112 |
ENTRY( "getlistnegativetestL", CAppManagerTest::getlistnegativetestL ), |
|
113 |
ENTRY( "launchApp", CAppManagerTest::launchAppL ), |
|
114 |
ENTRY( "launchJar", CAppManagerTest::launchJarL ), |
|
115 |
ENTRY( "launchDoc", CAppManagerTest::launchDocL ), |
|
116 |
ENTRY( "CancellaunchAppL", CAppManagerTest::CancellaunchAppL ), |
|
117 |
}; |
|
118 |
||
119 |
const TInt count = sizeof( KFunctions ) / |
|
120 |
sizeof( TStifFunctionInfo ); |
|
121 |
||
122 |
return RunInternalL( KFunctions, count, aItem ); |
|
123 |
||
124 |
} |
|
125 |
||
126 |
// ----------------------------------------------------------------------------- |
|
127 |
// CAppManagerTest:getlistapplication1_testL |
|
128 |
// Example test method function. |
|
129 |
// (other items were commented in a header). |
|
130 |
// ----------------------------------------------------------------------------- |
|
131 |
// |
|
132 |
TInt CAppManagerTest::getlisttestL( CStifItemParser& aItem ) |
|
133 |
{ |
|
134 |
||
135 |
__UHEAP_MARK; |
|
136 |
TPtrC16 content; |
|
137 |
TPtrC16 docname; |
|
138 |
TPtrC16 mimetype16; |
|
139 |
TInt expected; |
|
140 |
TInt noOfmaps; |
|
141 |
TPtrC16 filename; |
|
142 |
TInt result =KErrNone ;// KErrGeneral; // 0 means pass and -1 means Fail |
|
143 |
||
144 |
aItem.GetNextString(content); |
|
145 |
aItem.GetNextString(docname); |
|
146 |
aItem.GetNextString(mimetype16); |
|
147 |
aItem.GetNextInt(expected); |
|
148 |
aItem.GetNextString(filename); |
|
149 |
aItem.GetNextInt(noOfmaps); |
|
150 |
||
151 |
||
152 |
||
153 |
||
154 |
// Convert 16 Bit values into 8 bit as SAPI accept 8 bit Des |
|
155 |
TBuf8<30> mimetype ; |
|
156 |
mimetype.Copy(mimetype16); |
|
157 |
||
158 |
||
159 |
CAppManagerService* test = CAppManagerService::NewL(); |
|
160 |
CleanupStack::PushL(test); |
|
161 |
||
162 |
||
163 |
CFilterParam* param = NULL; |
|
164 |
||
165 |
if(docname.CompareF(_L("NULL")) != 0 ) |
|
166 |
{ |
|
167 |
param = CFilterParam::NewL(); |
|
168 |
CleanupStack::PushL(param); |
|
169 |
param->SetDocName(docname); |
|
170 |
} |
|
171 |
||
172 |
||
173 |
if(mimetype.CompareF(_L8("NULL")) != 0) |
|
174 |
{ |
|
175 |
if(!param) |
|
176 |
{ |
|
177 |
param = CFilterParam::NewL(); |
|
178 |
CleanupStack::PushL(param); |
|
179 |
} |
|
180 |
||
181 |
param->SetmimeType(mimetype); |
|
182 |
} |
|
183 |
||
184 |
TInt err= 0; |
|
185 |
MIterator* iter; |
|
186 |
if(param) |
|
187 |
{ |
|
188 |
TRAP(err,test->GetListL(iter,content,param)); |
|
189 |
} |
|
190 |
else |
|
191 |
{ |
|
192 |
TRAP(err,test->GetListL(iter,content)); |
|
193 |
} |
|
194 |
||
195 |
||
196 |
||
197 |
||
198 |
||
199 |
||
200 |
CleanupStack::PushL(iter); |
|
201 |
||
202 |
||
203 |
if(noOfmaps > 0) |
|
204 |
{ |
|
205 |
RArray<TInt> uidArray; |
|
206 |
TInt matchedOutput =0; |
|
207 |
TInt32 appuid; |
|
208 |
TInt index; |
|
209 |
TPtrC16 appuidstring; |
|
210 |
for(TInt i =0 ;i < noOfmaps; i++ ) |
|
211 |
{ |
|
212 |
aItem.GetNextString( appuidstring ); |
|
213 |
ConvertHexStringToInt32(appuidstring,appuid ); |
|
214 |
uidArray.Append(appuid); |
|
215 |
} |
|
216 |
||
217 |
MInfoMap* infomap = NULL; |
|
218 |
_LIT8(UidKey,"Uid");// Key In The Map |
|
219 |
TPtrC KeyValue;// value of that key |
|
220 |
||
221 |
||
222 |
while( (uidArray.Count()>0) && iter->NextL(infomap) ) |
|
223 |
{ |
|
224 |
//KeyValue.Zero(); |
|
225 |
infomap->FindL(UidKey, KeyValue); |
|
226 |
ConvertHexStringToInt32(KeyValue,appuid ); |
|
227 |
||
228 |
if( ( index = uidArray.Find( appuid ) )!= KErrNotFound) |
|
229 |
{ |
|
230 |
matchedOutput++; |
|
231 |
uidArray.Remove(index); |
|
232 |
uidArray.Compress(); |
|
233 |
} |
|
234 |
||
235 |
delete infomap; |
|
236 |
infomap = NULL; |
|
237 |
} |
|
238 |
||
239 |
//iter->Reset(); has to implement by lokesh |
|
240 |
if( matchedOutput != noOfmaps ) |
|
241 |
{ |
|
242 |
//Test case failed |
|
243 |
err = KErrGeneral; |
|
244 |
} |
|
245 |
uidArray.Reset(); |
|
246 |
uidArray.Close(); |
|
247 |
} |
|
248 |
||
249 |
||
250 |
/*------------------------------------Output For Manual Testing ---------------------------------*/ |
|
251 |
RFs fs; |
|
252 |
TEntry entry; |
|
253 |
TInt dir_ret=0; |
|
254 |
||
255 |
//Check for directory. |
|
256 |
User::LeaveIfError(fs.Connect()); |
|
257 |
CleanupClosePushL(fs); |
|
258 |
dir_ret=fs.Entry(_L("c:\\Data\\AppManager\\"),entry); |
|
259 |
||
260 |
||
261 |
//Write the output only if the directory is present.Means Manual testing mode |
|
262 |
if(KErrNone==dir_ret) |
|
263 |
{ |
|
264 |
if(filename.CompareF(_L("NULL"))!= 0) |
|
265 |
{ |
|
266 |
||
267 |
// Convert 16 Bit values into 8 bit as SAPI accept 8 bit Des |
|
268 |
TBuf8<30> content8 ; |
|
269 |
content8.Copy(content); |
|
270 |
||
271 |
||
272 |
// Show the output |
|
273 |
RFile file; |
|
274 |
||
275 |
TInt errfile=0; |
|
276 |
TEntry entry; |
|
277 |
/*if( fs.Entry(_L("c:\\Data\\AppManager\\"),entry) != KErrNone) |
|
278 |
{ |
|
279 |
TInt ret = fs.MkDir(_L("c:\\Data\\AppManager\\")); |
|
280 |
}*/ |
|
281 |
TBuf<100> flname(_L("c:\\data\\AppManager\\")); |
|
282 |
||
283 |
flname.Append(filename); |
|
284 |
flname.Append(_L(".txt")); |
|
285 |
||
286 |
errfile =file.Replace(fs,flname, EFileWrite | EFileStreamText); |
|
287 |
CleanupClosePushL(file); |
|
288 |
||
289 |
MInfoMap* infomap = NULL; |
|
290 |
TBuf8<100> filebuf; |
|
291 |
TInt index =0 ; |
|
292 |
TBuf8<50> Key;// Key In The Map |
|
293 |
TPtrC KeyValue;// value of that key |
|
294 |
||
295 |
filebuf.Append(_L8("TestCase \n")); |
|
296 |
filebuf.Append(_L8("Content = ")); |
|
297 |
filebuf.Append(content8); |
|
298 |
filebuf.Append(_L8(",")); |
|
299 |
||
300 |
filebuf.Append(_L8("docname = ")); |
|
301 |
filebuf.Append(docname); |
|
302 |
filebuf.Append(_L8(",")); |
|
303 |
||
304 |
filebuf.Append(_L8("mimetype16 = ")); |
|
305 |
filebuf.Append(mimetype16); |
|
306 |
filebuf.Append(_L8("\n")); |
|
307 |
||
308 |
file.Write(filebuf); |
|
309 |
filebuf.Zero(); |
|
310 |
||
311 |
TInt count =1; |
|
312 |
||
313 |
while(iter->NextL(infomap)) |
|
314 |
{ |
|
315 |
filebuf.Append(_L8(" :- ")); |
|
316 |
filebuf.AppendNum(count); |
|
317 |
file.Write(content8); |
|
318 |
file.Write(filebuf); |
|
319 |
file.Write(_L8("\n")); |
|
320 |
filebuf.Zero(); |
|
321 |
file.Write(_L8("----------------------------------------------------\n")); |
|
322 |
||
323 |
for(index =0 ;index <infomap->Count(); index++ ) |
|
324 |
{ |
|
325 |
infomap->AtL(index,Key); |
|
326 |
infomap->FindL(Key, KeyValue); |
|
327 |
file.Write(Key); |
|
328 |
file.Write(_L8("\t")); |
|
329 |
filebuf.Copy(KeyValue); |
|
330 |
file.Write(filebuf); |
|
331 |
file.Write(_L8("\n")); |
|
332 |
filebuf.Zero(); |
|
333 |
Key.Zero(); |
|
334 |
//KeyValue.Zero(); |
|
335 |
}// Map |
|
336 |
||
337 |
delete infomap; |
|
338 |
infomap = NULL; |
|
339 |
file.Write(_L8("----------------------------------------------------\n\n")); |
|
340 |
||
341 |
count++; |
|
342 |
}//Iterator |
|
343 |
||
344 |
CleanupStack::PopAndDestroy();//File |
|
345 |
||
346 |
||
347 |
} |
|
348 |
} |
|
349 |
CleanupStack::PopAndDestroy();//File Session |
|
350 |
||
351 |
/*------------------------------------Output For Manual Testing ---------------------------------*/ |
|
352 |
||
353 |
CleanupStack::Pop(iter);//Iterator release |
|
354 |
delete iter; |
|
355 |
iter = NULL; |
|
356 |
||
357 |
||
358 |
||
359 |
||
360 |
||
361 |
||
362 |
if(!expected) |
|
363 |
{ |
|
364 |
//Postive Test Case |
|
365 |
if(err != KErrNone) |
|
366 |
{ |
|
367 |
result = KErrGeneral; |
|
368 |
} |
|
369 |
||
370 |
} |
|
371 |
else |
|
372 |
{ |
|
373 |
if (err == KErrNone) |
|
374 |
{ |
|
375 |
result = KErrGeneral; |
|
376 |
} |
|
377 |
//Neagative Test Case |
|
378 |
} |
|
379 |
||
380 |
||
381 |
if(param) |
|
382 |
CleanupStack::PopAndDestroy();//Filter Parameter |
|
383 |
||
384 |
CleanupStack::PopAndDestroy();//core class |
|
385 |
__UHEAP_MARKEND; |
|
386 |
return result; |
|
387 |
||
388 |
||
389 |
} |
|
390 |
||
391 |
// ----------------------------------------------------------------------------- |
|
392 |
// CAppManagerTest:getListneagtive Test case |
|
393 |
// Example test method function. |
|
394 |
// (other items were commented in a header). |
|
395 |
// ----------------------------------------------------------------------------- |
|
396 |
// |
|
397 |
TInt CAppManagerTest::getlistnegativetestL( CStifItemParser& aItem ) |
|
398 |
{ |
|
399 |
||
400 |
//__UHEAP_MARK; |
|
401 |
TPtrC16 content; |
|
402 |
TPtrC16 docname; |
|
403 |
TPtrC16 mimetype16; |
|
404 |
TPtrC16 testCaseType; |
|
405 |
||
406 |
TInt result =KErrNone ;// KErrGeneral; // 0 means pass and -1 means Fail |
|
407 |
TInt ind = 0; |
|
408 |
||
409 |
aItem.GetNextString(content); // 1 |
|
410 |
aItem.GetNextString(docname); // 2 |
|
411 |
aItem.GetNextString(mimetype16); // 3 |
|
412 |
aItem.GetNextString(testCaseType);//4 TestCaseType |
|
413 |
aItem.GetNextInt(ind); |
|
414 |
||
415 |
||
416 |
||
417 |
// Convert 16 Bit values into 8 bit as SAPI accept 8 bit Des |
|
418 |
TBuf8<30> mimetype ; |
|
419 |
mimetype.Copy(mimetype16); |
|
420 |
||
421 |
||
422 |
CAppManagerService* test = CAppManagerService::NewL(); |
|
423 |
CleanupStack::PushL(test); |
|
424 |
||
425 |
||
426 |
CFilterParam* param = NULL; |
|
427 |
||
428 |
if(docname.CompareF(_L("NULL")) != 0 ) |
|
429 |
{ |
|
430 |
param = CFilterParam::NewL(); |
|
431 |
CleanupStack::PushL(param); |
|
432 |
param->SetDocName(docname); |
|
433 |
} |
|
434 |
||
435 |
||
436 |
if(mimetype.CompareF(_L8("NULL")) != 0) |
|
437 |
{ |
|
438 |
if(!param) |
|
439 |
{ |
|
440 |
param = CFilterParam::NewL(); |
|
441 |
CleanupStack::PushL(param); |
|
442 |
} |
|
443 |
||
444 |
param->SetmimeType(mimetype); |
|
445 |
} |
|
446 |
||
447 |
TInt err= 0; |
|
448 |
MIterator* iter; |
|
449 |
if(param) |
|
450 |
{ |
|
451 |
TRAP(err,test->GetListL(iter,content,param)); |
|
452 |
} |
|
453 |
else |
|
454 |
{ |
|
455 |
TRAP(err,test->GetListL(iter,content)); |
|
456 |
} |
|
457 |
||
458 |
CleanupStack::PushL(iter); |
|
459 |
||
460 |
MInfoMap* infomap = NULL; |
|
461 |
||
462 |
TInt index =0 ; |
|
463 |
TBuf8<50> Key;// Key In The Map |
|
464 |
TPtrC KeyValue;// value of that key |
|
465 |
TPtrC FirstKeyValue;// value of that key |
|
466 |
||
467 |
if( testCaseType.CompareF(_L("Index"))==KErrNone ) |
|
468 |
{ |
|
469 |
index = -1; |
|
470 |
iter->NextL(infomap); |
|
471 |
if (infomap->AtL(index,Key) == EFalse ) |
|
472 |
result = KErrNone; |
|
473 |
else |
|
474 |
result = KErrGeneral ; |
|
475 |
||
476 |
} |
|
477 |
else if( testCaseType.CompareF(_L("Key"))==KErrNone ) |
|
478 |
{ |
|
479 |
iter->NextL(infomap); |
|
480 |
if (infomap->FindL(_L8("WrongKey"), KeyValue) == EFalse ) |
|
481 |
result = KErrNone; |
|
482 |
else |
|
483 |
result = KErrGeneral ; |
|
484 |
} |
|
485 |
||
486 |
else if( testCaseType.CompareF(_L("Reset"))==KErrNone ) |
|
487 |
{ |
|
488 |
TInt count =0 ; |
|
489 |
while(iter->NextL(infomap)) |
|
490 |
{ |
|
491 |
if(count == 0 ) |
|
492 |
{ |
|
493 |
infomap->FindL(_L8("UID"), FirstKeyValue); |
|
494 |
count++ ; |
|
495 |
} |
|
496 |
||
497 |
} |
|
498 |
iter->Reset(); |
|
499 |
iter->NextL(infomap); |
|
500 |
||
501 |
infomap->FindL(_L8("UID"), KeyValue); |
|
502 |
||
503 |
||
504 |
if(KeyValue.CompareF(FirstKeyValue)== KErrNone ) |
|
505 |
result = KErrNone; |
|
506 |
else |
|
507 |
result = KErrGeneral ; |
|
508 |
} |
|
509 |
||
510 |
else |
|
511 |
{ |
|
512 |
result = KErrGeneral ; |
|
513 |
} |
|
514 |
||
515 |
||
516 |
CleanupStack::Pop(iter);//Iterator release |
|
517 |
delete iter; |
|
518 |
iter = NULL; |
|
519 |
||
520 |
if(param) |
|
521 |
CleanupStack::PopAndDestroy();//Filter Parameter |
|
522 |
||
523 |
CleanupStack::PopAndDestroy();//core class |
|
524 |
//__UHEAP_MARKEND; |
|
525 |
return result; |
|
526 |
||
527 |
||
528 |
} |
|
529 |
||
530 |
||
531 |
||
532 |
||
533 |
||
534 |
||
535 |
||
536 |
||
537 |
||
538 |
// ----------------------------------------------------------------------------- |
|
539 |
// CAppManagerTest:CancellaunchAppL |
|
540 |
// Example test method function. |
|
541 |
// (other items were commented in a header). |
|
542 |
// ----------------------------------------------------------------------------- |
|
543 |
// |
|
544 |
||
545 |
TInt CAppManagerTest::CancellaunchAppL( CStifItemParser& aItem ) |
|
546 |
{ |
|
547 |
__UHEAP_MARK; |
|
548 |
TOptions options; |
|
549 |
TDocument criteria; |
|
550 |
TInt expected; |
|
551 |
CAppManagerService* coreClass = CAppManagerService::NewL(); |
|
552 |
CleanupStack::PushL(coreClass); |
|
553 |
/*--------Test Logic Starts-----------*/ |
|
554 |
TPtrC16 temp; |
|
555 |
TBuf<30> appId; |
|
556 |
TPtrC16 cmdLine16; |
|
557 |
TPtrC16 document; |
|
558 |
TPtrC16 mode; |
|
559 |
TPtrC16 postion; |
|
560 |
TPtrC16 callback; |
|
561 |
TInt err; |
|
562 |
TInt result =KErrNone ;// KErrGeneral; // 0 means pass and -1 means Fail |
|
563 |
||
564 |
aItem.GetNextString( temp ); |
|
565 |
appId.Append( temp ); |
|
566 |
appId.Append(_L("//")); |
|
567 |
aItem.GetNextString( temp ); |
|
568 |
appId.Append( temp ); |
|
569 |
||
570 |
||
571 |
aItem.GetNextString(cmdLine16); |
|
572 |
aItem.GetNextString(document); |
|
573 |
aItem.GetNextString(mode); |
|
574 |
aItem.GetNextString(postion); |
|
575 |
aItem.GetNextString(callback); |
|
576 |
aItem.GetNextInt(expected); |
|
577 |
||
578 |
TBuf8<30> cmdLine ; |
|
579 |
if( cmdLine16.CompareF(_L("NULL")) != 0 ) |
|
580 |
{ |
|
581 |
// Convert 16 Bit values into 8 bit as SAPI accept 8 bit Des |
|
582 |
cmdLine.Copy(cmdLine16); |
|
583 |
} |
|
584 |
else |
|
585 |
{ |
|
586 |
cmdLine.Copy(KNullDesC8); |
|
587 |
} |
|
588 |
||
589 |
if( document.CompareF(_L("NULL")) != 0 ) |
|
590 |
{ |
|
591 |
options.iDocument.Set(document); |
|
592 |
} |
|
593 |
||
594 |
if( mode.CompareF(_L("NULL")) != 0 ) |
|
595 |
{ |
|
596 |
options.iMode.Set(mode); |
|
597 |
} |
|
598 |
||
599 |
if( postion.CompareF(_L("NULL")) != 0 ) |
|
600 |
{ |
|
601 |
options.iPostion.Set(postion); |
|
602 |
} |
|
603 |
||
604 |
if( callback.CompareF(_L("Callback")) == 0 ) |
|
605 |
{ |
|
606 |
//Aysnch Call; |
|
607 |
CActiveSchedulerWait *wait = new CActiveSchedulerWait(); |
|
608 |
CleanupStack::PushL( wait); |
|
609 |
CAppObserver* callback = CAppObserver::NewL(wait); |
|
610 |
CleanupStack::PushL( callback); |
|
611 |
TRAP( err,coreClass->LaunchApplicationL( appId,cmdLine,options,callback,1) ); |
|
612 |
||
613 |
||
614 |
//Reason of failure can be either 0 or some negative value which incates |
|
615 |
//error but it cant be greater than 0 |
|
616 |
||
617 |
if(err == 0) |
|
618 |
{ |
|
619 |
if( coreClass->Cancel(1)== KErrNone ) |
|
620 |
{ |
|
621 |
result = KErrNone; |
|
622 |
||
623 |
} |
|
624 |
} |
|
625 |
else |
|
626 |
{ |
|
627 |
result = KErrGeneral; |
|
628 |
} |
|
629 |
||
630 |
CleanupStack::PopAndDestroy(); |
|
631 |
CleanupStack::PopAndDestroy(); |
|
632 |
} |
|
633 |
else |
|
634 |
{ |
|
635 |
result = KErrGeneral; |
|
636 |
} |
|
637 |
||
638 |
if(!expected) |
|
639 |
{ |
|
640 |
//Postive Test Case |
|
641 |
if(err != KErrNone) |
|
642 |
{ |
|
643 |
result = KErrGeneral; |
|
644 |
} |
|
645 |
||
646 |
} |
|
647 |
else |
|
648 |
{ |
|
649 |
if (err == KErrNone) |
|
650 |
{ |
|
651 |
result = KErrGeneral; |
|
652 |
} |
|
653 |
//Neagative Test Case |
|
654 |
} |
|
655 |
||
656 |
||
657 |
/*--------Test Logic Ends -----------*/ |
|
658 |
CleanupStack::PopAndDestroy(coreClass); |
|
659 |
__UHEAP_MARK; |
|
660 |
return result; |
|
661 |
||
662 |
} |
|
663 |
||
664 |
||
665 |
// ----------------------------------------------------------------------------- |
|
666 |
// CAppManagerTest:launchAppL |
|
667 |
// Example test method function. |
|
668 |
// (other items were commented in a header). |
|
669 |
// ----------------------------------------------------------------------------- |
|
670 |
// |
|
671 |
||
672 |
TInt CAppManagerTest::launchAppL( CStifItemParser& aItem ) |
|
673 |
{ |
|
674 |
__UHEAP_MARK; |
|
675 |
||
676 |
TOptions options; |
|
677 |
TDocument criteria; |
|
678 |
TInt expected; |
|
679 |
CAppManagerService* coreClass = CAppManagerService::NewL(); |
|
680 |
CleanupStack::PushL(coreClass); |
|
681 |
/*--------Test Logic Starts-----------*/ |
|
682 |
TPtrC16 temp; |
|
683 |
TBuf<30> appId; |
|
684 |
TPtrC16 cmdLine16; |
|
685 |
TPtrC16 document; |
|
686 |
TPtrC16 mode; |
|
687 |
TPtrC16 postion; |
|
688 |
TPtrC16 callback; |
|
689 |
TInt err; |
|
690 |
TInt result =KErrNone ;// KErrGeneral; // 0 means pass and -1 means Fail |
|
691 |
||
692 |
aItem.GetNextString( temp ); |
|
693 |
appId.Append( temp ); |
|
694 |
appId.Append(_L("//")); |
|
695 |
aItem.GetNextString( temp ); |
|
696 |
appId.Append( temp ); |
|
697 |
||
698 |
aItem.GetNextString(cmdLine16); |
|
699 |
aItem.GetNextString(document); |
|
700 |
aItem.GetNextString(mode); |
|
701 |
aItem.GetNextString(postion); |
|
702 |
aItem.GetNextString(callback); |
|
703 |
aItem.GetNextInt(expected); |
|
704 |
||
705 |
TBuf8<30> cmdLine ; |
|
706 |
if( cmdLine16.CompareF(_L("NULL")) != 0 ) |
|
707 |
{ |
|
708 |
// Convert 16 Bit values into 8 bit as SAPI accept 8 bit Des |
|
709 |
cmdLine.Copy(cmdLine16); |
|
710 |
} |
|
711 |
else |
|
712 |
{ |
|
713 |
cmdLine.Copy(KNullDesC8); |
|
714 |
} |
|
715 |
||
716 |
if( document.CompareF(_L("NULL")) != 0 ) |
|
717 |
{ |
|
718 |
options.iDocument.Set(document); |
|
719 |
} |
|
720 |
||
721 |
if( mode.CompareF(_L("NULL")) != 0 ) |
|
722 |
{ |
|
723 |
options.iMode.Set(mode); |
|
724 |
} |
|
725 |
||
726 |
if( postion.CompareF(_L("NULL")) != 0 ) |
|
727 |
{ |
|
728 |
options.iPostion.Set(postion); |
|
729 |
} |
|
730 |
||
731 |
if( callback.CompareF(_L("NULL")) != 0 ) |
|
732 |
{ |
|
733 |
//Aysnch Call; |
|
734 |
CActiveSchedulerWait *wait = new CActiveSchedulerWait(); |
|
735 |
CleanupStack::PushL( wait); |
|
736 |
CAppObserver* callback = CAppObserver::NewL(wait); |
|
737 |
CleanupStack::PushL( callback); |
|
738 |
TRAP( err,coreClass->LaunchApplicationL( appId,cmdLine,options,callback,1) ); |
|
739 |
||
740 |
//Reason of failure can be either 0 or some negative value which incates |
|
741 |
//error but it cant be greater than 0 |
|
742 |
||
743 |
if(err == 0) |
|
744 |
{ |
|
745 |
wait->Start(); |
|
746 |
// application launch |
|
747 |
if ( callback->iReason > 0 ) |
|
748 |
{ |
|
749 |
//but we didn't get notifaction |
|
750 |
||
751 |
//Reason of failure can be either 0 or some negative value which incates |
|
752 |
//error but it cant be greater than 0 |
|
753 |
err = KErrGeneral; |
|
754 |
} |
|
755 |
} |
|
756 |
||
757 |
CleanupStack::PopAndDestroy(); |
|
758 |
CleanupStack::PopAndDestroy(); |
|
759 |
} |
|
760 |
else |
|
761 |
{ |
|
762 |
//Synch call |
|
763 |
TRAP( err,coreClass->LaunchApplicationL( appId,cmdLine,options) ); |
|
764 |
} |
|
765 |
||
766 |
if(!expected) |
|
767 |
{ |
|
768 |
//Postive Test Case |
|
769 |
if(err != KErrNone) |
|
770 |
{ |
|
771 |
result = KErrGeneral; |
|
772 |
} |
|
773 |
||
774 |
} |
|
775 |
else |
|
776 |
{ |
|
777 |
if (err == KErrNone) |
|
778 |
{ |
|
779 |
result = KErrGeneral; |
|
780 |
} |
|
781 |
//Neagative Test Case |
|
782 |
} |
|
783 |
||
784 |
||
785 |
/*--------Test Logic Ends -----------*/ |
|
786 |
//Now Kill the App that has been launched. |
|
787 |
if(err == KErrNone) |
|
788 |
{ |
|
789 |
TBuf<30> uidsearch; |
|
790 |
TPtrC internaluid; |
|
791 |
||
792 |
//Format it! |
|
793 |
uidsearch.Append(_L("*[")); |
|
794 |
internaluid.Set(appId.Mid(11)); //Stripping first11 chars. |
|
795 |
uidsearch.Append(internaluid); |
|
796 |
uidsearch.Append(_L("]*")); |
|
797 |
||
798 |
killapp(uidsearch); |
|
799 |
} |
|
800 |
||
801 |
CleanupStack::PopAndDestroy(coreClass); |
|
802 |
__UHEAP_MARK; |
|
803 |
return result; |
|
804 |
||
805 |
} |
|
806 |
||
807 |
||
808 |
// ----------------------------------------------------------------------------- |
|
809 |
// CAppManagerTest:launchDocL |
|
810 |
// Example test method function. |
|
811 |
// (other items were commented in a header). |
|
812 |
// ----------------------------------------------------------------------------- |
|
813 |
// |
|
814 |
||
815 |
TInt CAppManagerTest::launchDocL( CStifItemParser& aItem ) |
|
816 |
{ |
|
817 |
||
818 |
||
819 |
__UHEAP_MARK; |
|
820 |
TOptions options; |
|
821 |
TDocument criteria; |
|
822 |
TInt expected; |
|
823 |
CAppManagerService* coreClass = CAppManagerService::NewL(); |
|
824 |
CleanupStack::PushL(coreClass); |
|
825 |
/*--------Test Logic Starts-----------*/ |
|
826 |
||
827 |
TBuf<30> filename; |
|
828 |
TPtrC16 path; |
|
829 |
TPtrC16 handle; |
|
830 |
TPtrC16 mimetype16; |
|
831 |
TPtrC16 mode; |
|
832 |
TPtrC16 callback; |
|
833 |
TInt err; |
|
834 |
TInt result =KErrNone ;// KErrGeneral; // 0 means pass and -1 means Fail |
|
835 |
||
836 |
||
837 |
aItem.GetNextString(path); |
|
838 |
aItem.GetNextString(handle); |
|
839 |
aItem.GetNextString(mimetype16); |
|
840 |
aItem.GetNextString(mode); |
|
841 |
aItem.GetNextString(callback); |
|
842 |
aItem.GetNextInt(expected); |
|
843 |
||
844 |
||
845 |
if( path.CompareF(_L("NULL")) != 0 ) |
|
846 |
{ |
|
847 |
criteria.iPath.Set(path); |
|
848 |
} |
|
849 |
||
850 |
||
851 |
||
852 |
||
853 |
if( handle.CompareF(_L("NULL")) != 0 ) |
|
854 |
{ |
|
855 |
RFs fileSession; |
|
856 |
User::LeaveIfError(fileSession.Connect()); |
|
857 |
RFile file; |
|
858 |
User::LeaveIfError(fileSession.ShareProtected()); |
|
859 |
file.Open(fileSession,handle,EFileShareReadersOnly); |
|
860 |
criteria.iHandle.Duplicate(file); |
|
861 |
} |
|
862 |
||
863 |
||
864 |
||
865 |
if( mode.CompareF(_L("NULL")) != 0 ) |
|
866 |
{ |
|
867 |
options.iMode.Set(mode); |
|
868 |
} |
|
869 |
||
870 |
||
871 |
||
872 |
TBuf8<30> mimetype ; |
|
873 |
if( mimetype16.CompareF(_L("NULL")) != 0 ) |
|
874 |
{ |
|
875 |
// Convert 16 Bit values into 8 bit as SAPI accept 8 bit Des |
|
876 |
mimetype.Copy(mimetype16); |
|
877 |
} |
|
878 |
else |
|
879 |
{ |
|
880 |
mimetype.Copy(KNullDesC8); |
|
881 |
} |
|
882 |
||
883 |
||
884 |
||
885 |
if( callback.CompareF(_L("NULL")) != 0 ) |
|
886 |
{ |
|
887 |
//Aysnch Call; |
|
888 |
CActiveSchedulerWait *wait = new CActiveSchedulerWait(); |
|
889 |
CleanupStack::PushL( wait); |
|
890 |
CAppObserver* callback = CAppObserver::NewL(wait); |
|
891 |
CleanupStack::PushL( callback); |
|
892 |
TRAP( err,coreClass->LaunchDocumentL(criteria,mimetype,options,filename,callback,1) ); |
|
893 |
||
894 |
//Reason of failure can be either 0 or some negative value which incates |
|
895 |
//error but it cant be greater than 0 |
|
896 |
||
897 |
if(err == 0) |
|
898 |
{ |
|
899 |
wait->Start(); |
|
900 |
// application launch |
|
901 |
if ( callback->iReason > 0 ) |
|
902 |
{ |
|
903 |
//but we didn't get notifaction |
|
904 |
||
905 |
//Reason of failure can be either 0 or some negative value which incates |
|
906 |
//error but it cant be greater than 0 |
|
907 |
err = KErrGeneral; |
|
908 |
} |
|
909 |
} |
|
910 |
||
911 |
CleanupStack::PopAndDestroy(); |
|
912 |
CleanupStack::PopAndDestroy(); |
|
913 |
} |
|
914 |
else |
|
915 |
{ |
|
916 |
//Synch call |
|
917 |
TRAP( err,coreClass->LaunchDocumentL(criteria,mimetype,options,filename) ); |
|
918 |
} |
|
919 |
||
920 |
if(!expected) |
|
921 |
{ |
|
922 |
//Postive Test Case |
|
923 |
if(err != KErrNone) |
|
924 |
{ |
|
925 |
result = KErrGeneral; |
|
926 |
} |
|
927 |
||
928 |
} |
|
929 |
else |
|
930 |
{ |
|
931 |
if (err == KErrNone) |
|
932 |
{ |
|
933 |
result = KErrGeneral; |
|
934 |
} |
|
935 |
//Neagative Test Case |
|
936 |
} |
|
937 |
||
938 |
||
939 |
/*--------Test Logic Ends -----------*/ |
|
940 |
||
941 |
/*Now kill the App that was launched*/ |
|
942 |
if (err == KErrNone) |
|
943 |
{ |
|
944 |
RApaLsSession bdApaLsSession; |
|
945 |
User::LeaveIfError(bdApaLsSession.Connect()); |
|
946 |
||
947 |
TUid anuid; |
|
948 |
TDataType ada(mimetype); |
|
949 |
bdApaLsSession.AppForDocument(criteria.iPath,anuid, ada); |
|
950 |
killapp(anuid.Name()); |
|
951 |
bdApaLsSession.Close(); |
|
952 |
} |
|
953 |
||
954 |
CleanupStack::PopAndDestroy(coreClass); |
|
955 |
__UHEAP_MARK; |
|
956 |
return result; |
|
957 |
||
958 |
} |
|
959 |
||
960 |
||
961 |
||
962 |
//Helper Function |
|
963 |
||
964 |
TInt CAppManagerTest::ConvertHexStringToInt32(const TDesC& aHexString,TInt32& aInt32 ) |
|
965 |
{ |
|
966 |
aInt32 = 0; |
|
967 |
||
968 |
TInt pos = aHexString.LocateF( 'x' ); |
|
969 |
if ( pos == KErrNotFound ) |
|
970 |
{ |
|
971 |
pos = 0; |
|
972 |
} |
|
973 |
else |
|
974 |
{ |
|
975 |
pos++; |
|
976 |
} |
|
977 |
||
978 |
if( ( aHexString.Length() - pos ) > KDocMaxDigitsInHexString ) |
|
979 |
{ |
|
980 |
return KErrArgument; // Error: value too big. |
|
981 |
} |
|
982 |
TPtrC aHexStringPtr( aHexString.Mid( pos ) ); |
|
983 |
||
984 |
TInt64 value64; |
|
985 |
if ( TLex( aHexStringPtr ).Val( value64, EHex ) != KErrNone ) |
|
986 |
{ |
|
987 |
return KErrArgument; // Error: conversion failed. |
|
988 |
} |
|
989 |
aInt32 = value64; |
|
990 |
||
991 |
return KErrNone; |
|
992 |
} |
|
993 |
||
994 |
||
995 |
||
996 |
// ----------------------------------------------------------------------------- |
|
997 |
// CAppManagerTest:launchAppL |
|
998 |
// Example test method function. |
|
999 |
// (other items were commented in a header). |
|
1000 |
// ----------------------------------------------------------------------------- |
|
1001 |
// |
|
1002 |
||
1003 |
TInt CAppManagerTest::launchJarL( CStifItemParser& aItem ) |
|
1004 |
{ |
|
1005 |
__UHEAP_MARK; |
|
1006 |
TOptions options; |
|
1007 |
TDocument criteria; |
|
1008 |
TInt expected; |
|
1009 |
CAppManagerService* coreClass = CAppManagerService::NewL(); |
|
1010 |
CleanupStack::PushL(coreClass); |
|
1011 |
/*--------Test Logic Starts-----------*/ |
|
1012 |
TPtrC16 temp; |
|
1013 |
TBuf<30> appId; |
|
1014 |
TPtrC16 cmdLine16; |
|
1015 |
TPtrC16 document; |
|
1016 |
TPtrC16 mode; |
|
1017 |
TPtrC16 postion; |
|
1018 |
TPtrC16 callback; |
|
1019 |
TInt err; |
|
1020 |
TInt result =KErrNone ;// KErrGeneral; // 0 means pass and -1 means Fail |
|
1021 |
||
1022 |
aItem.GetNextString( temp ); |
|
1023 |
appId.Append( temp ); |
|
1024 |
appId.Append(_L("//")); |
|
1025 |
||
1026 |
||
1027 |
/*-------------------------Get JAR UId ------------------------------*/ |
|
1028 |
||
1029 |
aItem.GetNextString( temp ); |
|
1030 |
//Here we need to take uid from get list corresponding caption |
|
1031 |
//appId.Append( temp ); |
|
1032 |
||
1033 |
||
1034 |
MIterator* iter; |
|
1035 |
||
1036 |
TRAP(err,coreClass->GetListL(iter,_L("Application"))); |
|
1037 |
||
1038 |
CleanupStack::PushL(iter); |
|
1039 |
||
1040 |
||
1041 |
MInfoMap* infomap = NULL; |
|
1042 |
TPtrC KeyValue;// value of that key |
|
1043 |
while(iter->NextL(infomap)) |
|
1044 |
{ |
|
1045 |
infomap->FindL(_L8("Caption"), KeyValue); |
|
1046 |
||
1047 |
if( KeyValue.CompareF(temp)== 0 ) |
|
1048 |
{ |
|
1049 |
infomap->FindL(_L8("Uid"), KeyValue); |
|
1050 |
appId.Append( KeyValue ); |
|
1051 |
} |
|
1052 |
||
1053 |
delete infomap; |
|
1054 |
} |
|
1055 |
||
1056 |
CleanupStack::Pop(iter); |
|
1057 |
delete iter; |
|
1058 |
||
1059 |
||
1060 |
/*------------------------------------------------------------------*/ |
|
1061 |
||
1062 |
aItem.GetNextString(cmdLine16); |
|
1063 |
aItem.GetNextString(document); |
|
1064 |
aItem.GetNextString(mode); |
|
1065 |
aItem.GetNextString(postion); |
|
1066 |
aItem.GetNextString(callback); |
|
1067 |
aItem.GetNextInt(expected); |
|
1068 |
||
1069 |
TBuf8<30> cmdLine ; |
|
1070 |
if( cmdLine16.CompareF(_L("NULL")) != 0 ) |
|
1071 |
{ |
|
1072 |
// Convert 16 Bit values into 8 bit as SAPI accept 8 bit Des |
|
1073 |
cmdLine.Copy(cmdLine16); |
|
1074 |
} |
|
1075 |
else |
|
1076 |
{ |
|
1077 |
cmdLine.Copy(KNullDesC8); |
|
1078 |
} |
|
1079 |
||
1080 |
if( document.CompareF(_L("NULL")) != 0 ) |
|
1081 |
{ |
|
1082 |
options.iDocument.Set(document); |
|
1083 |
} |
|
1084 |
||
1085 |
if( mode.CompareF(_L("NULL")) != 0 ) |
|
1086 |
{ |
|
1087 |
options.iMode.Set(mode); |
|
1088 |
} |
|
1089 |
||
1090 |
if( postion.CompareF(_L("NULL")) != 0 ) |
|
1091 |
{ |
|
1092 |
options.iPostion.Set(postion); |
|
1093 |
} |
|
1094 |
||
1095 |
if( callback.CompareF(_L("NULL")) != 0 ) |
|
1096 |
{ |
|
1097 |
//Aysnch Call; |
|
1098 |
CActiveSchedulerWait *wait = new CActiveSchedulerWait(); |
|
1099 |
CleanupStack::PushL( wait); |
|
1100 |
CAppObserver* callback = CAppObserver::NewL(wait); |
|
1101 |
CleanupStack::PushL( callback); |
|
1102 |
TRAP( err,coreClass->LaunchApplicationL( appId,cmdLine,options,callback,1) ); |
|
1103 |
||
1104 |
//Reason of failure can be either 0 or some negative value which incates |
|
1105 |
//error but it cant be greater than 0 |
|
1106 |
||
1107 |
if(err == 0) |
|
1108 |
{ |
|
1109 |
wait->Start(); |
|
1110 |
// application launch |
|
1111 |
if ( callback->iReason > 0 ) |
|
1112 |
{ |
|
1113 |
//but we didn't get notifaction |
|
1114 |
||
1115 |
//Reason of failure can be either 0 or some negative value which incates |
|
1116 |
//error but it cant be greater than 0 |
|
1117 |
err = KErrGeneral; |
|
1118 |
} |
|
1119 |
} |
|
1120 |
||
1121 |
CleanupStack::PopAndDestroy(); |
|
1122 |
CleanupStack::PopAndDestroy(); |
|
1123 |
} |
|
1124 |
else |
|
1125 |
{ |
|
1126 |
//Synch call |
|
1127 |
TRAP( err,coreClass->LaunchApplicationL( appId,cmdLine,options) ); |
|
1128 |
} |
|
1129 |
||
1130 |
if(!expected) |
|
1131 |
{ |
|
1132 |
//Postive Test Case |
|
1133 |
if(err != KErrNone) |
|
1134 |
{ |
|
1135 |
result = KErrGeneral; |
|
1136 |
} |
|
1137 |
||
1138 |
} |
|
1139 |
else |
|
1140 |
{ |
|
1141 |
if (err == KErrNone) |
|
1142 |
{ |
|
1143 |
result = KErrGeneral; |
|
1144 |
} |
|
1145 |
//Neagative Test Case |
|
1146 |
} |
|
1147 |
||
1148 |
||
1149 |
/*--------Test Logic Ends -----------*/ |
|
1150 |
//Now Kill the App that has been launched. |
|
1151 |
if(err == KErrNone) |
|
1152 |
{ |
|
1153 |
TBuf<30> uidsearch; |
|
1154 |
TPtrC internaluid; |
|
1155 |
||
1156 |
//Format it! |
|
1157 |
uidsearch.Append(_L("*[")); |
|
1158 |
internaluid.Set(appId.Mid(11)); //Stripping first11 chars. |
|
1159 |
uidsearch.Append(internaluid); |
|
1160 |
uidsearch.Append(_L("]*")); |
|
1161 |
||
1162 |
killapp(uidsearch); |
|
1163 |
} |
|
1164 |
||
1165 |
CleanupStack::PopAndDestroy(coreClass); |
|
1166 |
__UHEAP_MARK; |
|
1167 |
return result; |
|
1168 |
||
1169 |
} |
|
1170 |
||
1171 |
void CAppManagerTest::killapp(TBuf<30> appId) //appId in format [101f4d90] |
|
1172 |
{ |
|
1173 |
||
1174 |
RFs FileSession; |
|
1175 |
RFile Applist; |
|
1176 |
TInt ret; |
|
1177 |
||
1178 |
||
1179 |
FileSession.Connect(); |
|
1180 |
CleanupClosePushL(FileSession); |
|
1181 |
||
1182 |
TBuf<100> flname(_L("c:\\data\\AppManager\\AppList.txt")); |
|
1183 |
ret=Applist.Open(FileSession, flname,EFileWrite | EFileStreamText); |
|
1184 |
CleanupClosePushL(Applist); |
|
1185 |
||
1186 |
||
1187 |
if(ret==KErrNone) //The file is for debug purposes only.Create it if neeeded |
|
1188 |
{ |
|
1189 |
TInt SeekPos=0; |
|
1190 |
TBuf8<100> filebuf; |
|
1191 |
Applist.Seek(ESeekEnd,SeekPos); |
|
1192 |
||
1193 |
||
1194 |
filebuf.Append(appId); |
|
1195 |
filebuf.Append(_L8("-------- \n ")); |
|
1196 |
Applist.Write(SeekPos,filebuf); |
|
1197 |
filebuf.Zero(); |
|
1198 |
} |
|
1199 |
||
1200 |
||
1201 |
TFindProcess findProcess(appId); |
|
1202 |
TFullName procresult; |
|
1203 |
while (findProcess.Next(procresult) == KErrNone) |
|
1204 |
{ |
|
1205 |
RProcess p; |
|
1206 |
CleanupClosePushL(p); |
|
1207 |
||
1208 |
//filebuf.Append(procresult); |
|
1209 |
||
1210 |
if (p.Open(findProcess, EOwnerThread) == KErrNone) |
|
1211 |
{ |
|
1212 |
p.Kill(0); |
|
1213 |
p.Close(); |
|
1214 |
//filebuf.Append(KKill); |
|
1215 |
} |
|
1216 |
CleanupStack::PopAndDestroy(); |
|
1217 |
} |
|
1218 |
||
1219 |
CleanupStack::PopAndDestroy();//File |
|
1220 |
CleanupStack::PopAndDestroy();//File Session |
|
1221 |
||
1222 |
} |
|
1223 |
||
1224 |
||
1225 |
// ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
1226 |
// None |
|
1227 |
||
1228 |
// End of File |