1 /* |
|
2 * Copyright (c) 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: Test Class which has the list of test cases |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include <e32svr.h> |
|
22 #include <StifParser.h> |
|
23 #include <Stiftestinterface.h> |
|
24 |
|
25 #include "testlc.h" |
|
26 #include "testlcservice.h" |
|
27 #include "testlocationappinfo.h" |
|
28 #include "testlocationappfilter.h" |
|
29 #include "testlocationappinfoarray.h" |
|
30 |
|
31 // ============================ MEMBER FUNCTIONS =============================== |
|
32 |
|
33 // ----------------------------------------------------------------------------- |
|
34 // CTestLc::Delete |
|
35 // Delete here all resources allocated and opened from test methods. |
|
36 // Called from destructor. |
|
37 // ----------------------------------------------------------------------------- |
|
38 // |
|
39 void CTestLc::Delete() |
|
40 { |
|
41 |
|
42 } |
|
43 |
|
44 // ----------------------------------------------------------------------------- |
|
45 // CTestLc::RunMethodL |
|
46 // Run specified method. Contains also table of test mothods and their names. |
|
47 // ----------------------------------------------------------------------------- |
|
48 // |
|
49 TInt CTestLc::RunMethodL( |
|
50 CStifItemParser& aItem ) |
|
51 { |
|
52 |
|
53 static TStifFunctionInfo const KFunctions[] = |
|
54 { |
|
55 ENTRY( "CheckServiceNewL", CTestLc::CheckServiceNewL ), |
|
56 ENTRY( "CheckServiceNewLC", CTestLc::CheckServiceNewLC ), |
|
57 ENTRY( "TestGetLocationApplicationsL", CTestLc::TestGetLocationApplicationsL ), |
|
58 ENTRY( "TestGetLocationApplicationsAsynL", CTestLc::TestGetLocationApplicationsAsynL ), |
|
59 ENTRY( "TestGetLocationApplicationsFilterL", CTestLc::TestGetLocationApplicationsFilterL ), |
|
60 ENTRY( "TestGetLocationApplicationsFilterAsynL", CTestLc::TestGetLocationApplicationsFilterAsynL ), |
|
61 ENTRY( "TestSetRemoveObserverL", CTestLc::TestSetRemoveObserverL ), |
|
62 ENTRY( "TestCancelGetLocationApplications", CTestLc::TestCancelGetLocationApplications ), |
|
63 ENTRY( "TestCLcLaunchParamNewL", CTestLc::TestCLcLaunchParamNewL ), |
|
64 ENTRY( "TestCLcLaunchParamNewLC", CTestLc::TestCLcLaunchParamNewLC ), |
|
65 |
|
66 ENTRY( "CheckNewL", CTestLc::CheckNewL ), |
|
67 ENTRY( "CheckNewLC", CTestLc::CheckNewLC ), |
|
68 ENTRY( "CheckCopyNewL", CTestLc::CheckCopyNewL ), |
|
69 ENTRY( "CheckCopyNewLC", CTestLc::CheckCopyNewLC ), |
|
70 ENTRY( "CheckId", CTestLc::CheckId ), |
|
71 ENTRY( "CheckName", CTestLc::CheckName ), |
|
72 ENTRY( "CheckLaunchMode", CTestLc::CheckLaunchMode ), |
|
73 ENTRY( "CheckSystemCharacteristics", CTestLc::CheckSystemCharacteristics ), |
|
74 ENTRY( "CheckApplicationCharacteristics", CTestLc::CheckApplicationCharacteristics ), |
|
75 |
|
76 ENTRY( "CheckArrayNewL", CTestLc::CheckArrayNewL ), |
|
77 ENTRY( "CheckArrayNewLC", CTestLc::CheckArrayNewLC ), |
|
78 ENTRY( "CheckCount", CTestLc::CheckCount ), |
|
79 ENTRY( "CheckAppendL", CTestLc::CheckAppendL ), |
|
80 ENTRY( "CheckRemoveL", CTestLc::CheckRemoveL ), |
|
81 ENTRY( "CheckResetL", CTestLc::CheckResetL ), |
|
82 ENTRY( "CheckOperatorL", CTestLc::CheckOperatorL ), |
|
83 |
|
84 ENTRY( "CheckTLcLocationAppFilter", CTestLc::CheckTLcLocationAppFilter ), |
|
85 ENTRY( "CheckFilterSystemCharacteristics", CTestLc::CheckFilterSystemCharacteristics ), |
|
86 ENTRY( "CheckFilterApplicationCharacteristics", CTestLc::CheckFilterApplicationCharacteristics ), |
|
87 ENTRY( "CheckSysCharFilterConfiguration", CTestLc::CheckSysCharFilterConfiguration ), |
|
88 ENTRY( "CheckAppCharFilterConfiguration", CTestLc::CheckAppCharFilterConfiguration ), |
|
89 |
|
90 |
|
91 //ADD NEW ENTRY HERE |
|
92 |
|
93 }; |
|
94 |
|
95 const TInt count = sizeof( KFunctions ) / |
|
96 sizeof( TStifFunctionInfo ); |
|
97 |
|
98 return RunInternalL( KFunctions, count, aItem ); |
|
99 |
|
100 } |
|
101 |
|
102 // --------------------------------------------------------- |
|
103 // CTestLc::CheckServiceNewL |
|
104 // |
|
105 // (other items are commented in a header). |
|
106 // --------------------------------------------------------- |
|
107 // |
|
108 TInt CTestLc::CheckServiceNewL( CStifItemParser& /*aItem*/ ) |
|
109 { |
|
110 CTestLcService* testLcService = new(ELeave) |
|
111 CTestLcService(iLog); |
|
112 TInt err = testLcService->CheckServiceNewL(); |
|
113 delete testLcService; |
|
114 return err; |
|
115 } |
|
116 |
|
117 // --------------------------------------------------------- |
|
118 // CTestLc::CheckServiceNewLC |
|
119 // |
|
120 // (other items are commented in a header). |
|
121 // --------------------------------------------------------- |
|
122 // |
|
123 TInt CTestLc::CheckServiceNewLC( CStifItemParser& /*aItem*/ ) |
|
124 { |
|
125 CTestLcService* testLcService = new(ELeave) |
|
126 CTestLcService(iLog); |
|
127 TInt err = testLcService->CheckServiceNewLC(); |
|
128 delete testLcService; |
|
129 return err; |
|
130 } |
|
131 |
|
132 // --------------------------------------------------------- |
|
133 // CTestLcService::TestGetLocationApplicationsL |
|
134 // |
|
135 // (other items are commented in a header). |
|
136 // --------------------------------------------------------- |
|
137 // |
|
138 TInt CTestLc::TestGetLocationApplicationsL( CStifItemParser& /*aItem*/ ) |
|
139 { |
|
140 CTestLcService* testLcService = new(ELeave) |
|
141 CTestLcService(iLog); |
|
142 TInt err = testLcService->TestGetLocationApplicationsL(); |
|
143 delete testLcService; |
|
144 return err; |
|
145 } |
|
146 |
|
147 // --------------------------------------------------------- |
|
148 // CTestLcService::TestGetLocationApplicationsAsynL |
|
149 // |
|
150 // (other items are commented in a header). |
|
151 // --------------------------------------------------------- |
|
152 // |
|
153 TInt CTestLc::TestGetLocationApplicationsAsynL( CStifItemParser& /*aItem*/ ) |
|
154 { |
|
155 CTestLcService* testLcService = new(ELeave) |
|
156 CTestLcService(iLog); |
|
157 TInt err = testLcService->TestGetLocationApplicationsAsynL(); |
|
158 delete testLcService; |
|
159 return err; |
|
160 } |
|
161 |
|
162 // --------------------------------------------------------- |
|
163 // CTestLcService::TestGetLocationApplicationsFilterL |
|
164 // |
|
165 // (other items are commented in a header). |
|
166 // --------------------------------------------------------- |
|
167 // |
|
168 TInt CTestLc::TestGetLocationApplicationsFilterL( CStifItemParser& /*aItem*/ ) |
|
169 { |
|
170 CTestLcService* testLcService = new(ELeave) |
|
171 CTestLcService(iLog); |
|
172 TInt err = testLcService->TestGetLocationApplicationsFilterL(); |
|
173 delete testLcService; |
|
174 return err; |
|
175 } |
|
176 |
|
177 // --------------------------------------------------------- |
|
178 // CTestLcService::TestGetLocationApplicationsFilterAsynL |
|
179 // |
|
180 // (other items are commented in a header). |
|
181 // --------------------------------------------------------- |
|
182 // |
|
183 TInt CTestLc::TestGetLocationApplicationsFilterAsynL( CStifItemParser& /*aItem*/ ) |
|
184 { |
|
185 CTestLcService* testLcService = new(ELeave) |
|
186 CTestLcService(iLog); |
|
187 TInt err = testLcService->TestGetLocationApplicationsFilterAsynL(); |
|
188 delete testLcService; |
|
189 return err; |
|
190 } |
|
191 |
|
192 // --------------------------------------------------------- |
|
193 // CTestLcService::TestSetRemoveObserverL |
|
194 // |
|
195 // (other items are commented in a header). |
|
196 // --------------------------------------------------------- |
|
197 // |
|
198 TInt CTestLc::TestSetRemoveObserverL( CStifItemParser& aItem ) |
|
199 { |
|
200 TInt choice; |
|
201 User::LeaveIfError(aItem.GetNextInt(choice)); |
|
202 |
|
203 CTestLcService* testLcService = new(ELeave) |
|
204 CTestLcService(iLog); |
|
205 TInt err = testLcService->TestSetRemoveObserverL(choice); |
|
206 delete testLcService; |
|
207 return err; |
|
208 } |
|
209 |
|
210 // --------------------------------------------------------- |
|
211 // CTestLcService::TestCancelGetLocationApplications |
|
212 // |
|
213 // (other items are commented in a header). |
|
214 // --------------------------------------------------------- |
|
215 // |
|
216 TInt CTestLc::TestCancelGetLocationApplications( CStifItemParser& /*aItem*/ ) |
|
217 { |
|
218 CTestLcService* testLcService = new(ELeave) |
|
219 CTestLcService(iLog); |
|
220 TInt err = testLcService->TestCancelGetLocationApplications(); |
|
221 delete testLcService; |
|
222 return err; |
|
223 } |
|
224 |
|
225 // --------------------------------------------------------- |
|
226 // CTestLcService::TestCLcLaunchParamNewL |
|
227 // |
|
228 // (other items are commented in a header). |
|
229 // --------------------------------------------------------- |
|
230 // |
|
231 TInt CTestLc::TestCLcLaunchParamNewL( CStifItemParser& /*aItem*/ ) |
|
232 { |
|
233 CTestLcService* testLcService = new(ELeave) |
|
234 CTestLcService(iLog); |
|
235 TInt err = testLcService->TestCLcLaunchParamNewL(); |
|
236 delete testLcService; |
|
237 return err; |
|
238 } |
|
239 |
|
240 // --------------------------------------------------------- |
|
241 // CTestLcService::TestCLcLaunchParamNewLC |
|
242 // |
|
243 // (other items are commented in a header). |
|
244 // --------------------------------------------------------- |
|
245 // |
|
246 TInt CTestLc::TestCLcLaunchParamNewLC( CStifItemParser& /*aItem*/ ) |
|
247 { |
|
248 CTestLcService* testLcService = new(ELeave) |
|
249 CTestLcService(iLog); |
|
250 TInt err = testLcService->TestCLcLaunchParamNewLC(); |
|
251 delete testLcService; |
|
252 return err; |
|
253 } |
|
254 |
|
255 //-------------------Info |
|
256 |
|
257 // --------------------------------------------------------- |
|
258 // CTestLc::CheckNewL |
|
259 // |
|
260 // (other items were commented in a header). |
|
261 // --------------------------------------------------------- |
|
262 // |
|
263 TInt CTestLc::CheckNewL( CStifItemParser& /*aItem*/ ) |
|
264 { |
|
265 CTestLocationAppInfo* testLocationAppInfo = new(ELeave) |
|
266 CTestLocationAppInfo(iLog); |
|
267 TInt err = testLocationAppInfo->CheckNewL(); |
|
268 delete testLocationAppInfo; |
|
269 return err; |
|
270 } |
|
271 |
|
272 // --------------------------------------------------------- |
|
273 // CTestLc::CheckNewLC |
|
274 // |
|
275 // (other items were commented in a header). |
|
276 // --------------------------------------------------------- |
|
277 // |
|
278 TInt CTestLc::CheckNewLC( CStifItemParser& /*aItem*/ ) |
|
279 { |
|
280 CTestLocationAppInfo* testLocationAppInfo = new(ELeave) |
|
281 CTestLocationAppInfo(iLog); |
|
282 TInt err = testLocationAppInfo->CheckNewLC(); |
|
283 delete testLocationAppInfo; |
|
284 return err; |
|
285 } |
|
286 |
|
287 // --------------------------------------------------------- |
|
288 // CTestLc::CheckCopyNewL |
|
289 // |
|
290 // (other items were commented in a header). |
|
291 // --------------------------------------------------------- |
|
292 // |
|
293 TInt CTestLc::CheckCopyNewL( CStifItemParser& /*aItem*/ ) |
|
294 { |
|
295 CTestLocationAppInfo* testLocationAppInfo = new(ELeave) |
|
296 CTestLocationAppInfo(iLog); |
|
297 TInt err = testLocationAppInfo->CheckCopyNewL(); |
|
298 delete testLocationAppInfo; |
|
299 return err; |
|
300 } |
|
301 |
|
302 // --------------------------------------------------------- |
|
303 // CTestLc::CheckCopyNewLC |
|
304 // |
|
305 // (other items were commented in a header). |
|
306 // --------------------------------------------------------- |
|
307 // |
|
308 TInt CTestLc::CheckCopyNewLC( CStifItemParser& /*aItem*/ ) |
|
309 { |
|
310 CTestLocationAppInfo* testLocationAppInfo = new(ELeave) |
|
311 CTestLocationAppInfo(iLog); |
|
312 TInt err = testLocationAppInfo->CheckCopyNewLC(); |
|
313 delete testLocationAppInfo; |
|
314 return err; |
|
315 } |
|
316 |
|
317 // --------------------------------------------------------- |
|
318 // CTestLc::CheckId |
|
319 // |
|
320 // (other items were commented in a header). |
|
321 // --------------------------------------------------------- |
|
322 // |
|
323 TInt CTestLc::CheckId( CStifItemParser& /*aItem*/ ) |
|
324 { |
|
325 CTestLocationAppInfo* testLocationAppInfo = new(ELeave) |
|
326 CTestLocationAppInfo(iLog); |
|
327 TInt err = testLocationAppInfo->CheckId(); |
|
328 delete testLocationAppInfo; |
|
329 return err; |
|
330 } |
|
331 |
|
332 |
|
333 // --------------------------------------------------------- |
|
334 // CTestLc::CheckName |
|
335 // |
|
336 // (other items were commented in a header). |
|
337 // --------------------------------------------------------- |
|
338 // |
|
339 TInt CTestLc::CheckName( CStifItemParser& /*aItem*/ ) |
|
340 { |
|
341 CTestLocationAppInfo* testLocationAppInfo = new(ELeave) |
|
342 CTestLocationAppInfo(iLog); |
|
343 TInt err = testLocationAppInfo->CheckName(); |
|
344 delete testLocationAppInfo; |
|
345 return err; |
|
346 } |
|
347 |
|
348 // --------------------------------------------------------- |
|
349 // CTestLc::CheckLaunchMode |
|
350 // |
|
351 // (other items were commented in a header). |
|
352 // --------------------------------------------------------- |
|
353 // |
|
354 TInt CTestLc::CheckLaunchMode( CStifItemParser& /*aItem*/ ) |
|
355 { |
|
356 CTestLocationAppInfo* testLocationAppInfo = new(ELeave) |
|
357 CTestLocationAppInfo(iLog); |
|
358 TInt err = testLocationAppInfo->CheckLaunchMode(); |
|
359 delete testLocationAppInfo; |
|
360 return err; |
|
361 } |
|
362 |
|
363 |
|
364 // --------------------------------------------------------- |
|
365 // CTestLc::CheckSystemCharacteristics |
|
366 // |
|
367 // (other items were commented in a header). |
|
368 // --------------------------------------------------------- |
|
369 // |
|
370 TInt CTestLc::CheckSystemCharacteristics( CStifItemParser& /*aItem*/ ) |
|
371 { |
|
372 CTestLocationAppInfo* testLocationAppInfo = new(ELeave) |
|
373 CTestLocationAppInfo(iLog); |
|
374 TInt err = testLocationAppInfo->CheckSystemCharacteristics(); |
|
375 delete testLocationAppInfo; |
|
376 return err; |
|
377 } |
|
378 |
|
379 // --------------------------------------------------------- |
|
380 // CTestLc::CheckApplicationCharacteristics |
|
381 // |
|
382 // (other items were commented in a header). |
|
383 // --------------------------------------------------------- |
|
384 // |
|
385 TInt CTestLc::CheckApplicationCharacteristics( CStifItemParser& /*aItem*/ ) |
|
386 { |
|
387 CTestLocationAppInfo* testLocationAppInfo = new(ELeave) |
|
388 CTestLocationAppInfo(iLog); |
|
389 TInt err = testLocationAppInfo->CheckApplicationCharacteristics(); |
|
390 delete testLocationAppInfo; |
|
391 return err; |
|
392 } |
|
393 |
|
394 //-------------------Array |
|
395 |
|
396 // --------------------------------------------------------- |
|
397 // CTestLc::CheckArrayNewL |
|
398 // |
|
399 // (other items were commented in a header). |
|
400 // --------------------------------------------------------- |
|
401 // |
|
402 TInt CTestLc::CheckArrayNewL( CStifItemParser& /*aItem*/ ) |
|
403 { |
|
404 CTestLocationAppInfoArray* testLocationAppInfoArray = new(ELeave) |
|
405 CTestLocationAppInfoArray(iLog); |
|
406 TInt err = testLocationAppInfoArray->CheckArrayNewL(); |
|
407 delete testLocationAppInfoArray; |
|
408 return err; |
|
409 } |
|
410 |
|
411 // --------------------------------------------------------- |
|
412 // CTestLc::CheckArrayNewLC |
|
413 // |
|
414 // (other items were commented in a header). |
|
415 // --------------------------------------------------------- |
|
416 // |
|
417 TInt CTestLc::CheckArrayNewLC( CStifItemParser& /*aItem*/ ) |
|
418 { |
|
419 CTestLocationAppInfoArray* testLocationAppInfoArray = new(ELeave) |
|
420 CTestLocationAppInfoArray(iLog); |
|
421 TInt err = testLocationAppInfoArray->CheckArrayNewLC(); |
|
422 delete testLocationAppInfoArray; |
|
423 return err; |
|
424 } |
|
425 |
|
426 // --------------------------------------------------------- |
|
427 // CTestLc::CheckCount |
|
428 // |
|
429 // (other items were commented in a header). |
|
430 // --------------------------------------------------------- |
|
431 // |
|
432 TInt CTestLc::CheckCount( CStifItemParser& /*aItem*/ ) |
|
433 { |
|
434 CTestLocationAppInfoArray* testLocationAppInfoArray = new(ELeave) |
|
435 CTestLocationAppInfoArray(iLog); |
|
436 TInt err = testLocationAppInfoArray->CheckCount(); |
|
437 delete testLocationAppInfoArray; |
|
438 return err; |
|
439 } |
|
440 |
|
441 // --------------------------------------------------------- |
|
442 // CTestLc::CheckAppendL |
|
443 // |
|
444 // (other items were commented in a header). |
|
445 // --------------------------------------------------------- |
|
446 // |
|
447 TInt CTestLc::CheckAppendL( CStifItemParser& /*aItem*/ ) |
|
448 { |
|
449 CTestLocationAppInfoArray* testLocationAppInfoArray = new(ELeave) |
|
450 CTestLocationAppInfoArray(iLog); |
|
451 TInt err = testLocationAppInfoArray->CheckAppendL(); |
|
452 delete testLocationAppInfoArray; |
|
453 return err; |
|
454 } |
|
455 |
|
456 // --------------------------------------------------------- |
|
457 // CTestLc::CheckRemoveL |
|
458 // |
|
459 // (other items were commented in a header). |
|
460 // --------------------------------------------------------- |
|
461 // |
|
462 TInt CTestLc::CheckRemoveL( CStifItemParser& /*aItem*/ ) |
|
463 { |
|
464 CTestLocationAppInfoArray* testLocationAppInfoArray = new(ELeave) |
|
465 CTestLocationAppInfoArray(iLog); |
|
466 TInt err = testLocationAppInfoArray->CheckRemoveL(); |
|
467 delete testLocationAppInfoArray; |
|
468 return err; |
|
469 } |
|
470 |
|
471 // --------------------------------------------------------- |
|
472 // CTestLc::CheckResetL |
|
473 // |
|
474 // (other items were commented in a header). |
|
475 // --------------------------------------------------------- |
|
476 // |
|
477 TInt CTestLc::CheckResetL( CStifItemParser& /*aItem*/ ) |
|
478 { |
|
479 CTestLocationAppInfoArray* testLocationAppInfoArray = new(ELeave) |
|
480 CTestLocationAppInfoArray(iLog); |
|
481 TInt err = testLocationAppInfoArray->CheckResetL(); |
|
482 delete testLocationAppInfoArray; |
|
483 return err; |
|
484 } |
|
485 |
|
486 // --------------------------------------------------------- |
|
487 // CTestLc::CheckOperatorL |
|
488 // |
|
489 // (other items were commented in a header). |
|
490 // --------------------------------------------------------- |
|
491 // |
|
492 TInt CTestLc::CheckOperatorL( CStifItemParser& /*aItem*/ ) |
|
493 { |
|
494 CTestLocationAppInfoArray* testLocationAppInfoArray = new(ELeave) |
|
495 CTestLocationAppInfoArray(iLog); |
|
496 TInt err = testLocationAppInfoArray->CheckOperatorL(); |
|
497 delete testLocationAppInfoArray; |
|
498 return err; |
|
499 } |
|
500 |
|
501 //-----------Filter |
|
502 // --------------------------------------------------------- |
|
503 // CTestLc::CheckTLcLocationAppFilter |
|
504 // |
|
505 // (other items were commented in a header). |
|
506 // --------------------------------------------------------- |
|
507 // |
|
508 TInt CTestLc::CheckTLcLocationAppFilter( CStifItemParser& /*aItem*/ ) |
|
509 { |
|
510 CTestLocationAppFilter* testLocationAppFilter = new(ELeave) |
|
511 CTestLocationAppFilter(iLog); |
|
512 TInt err = testLocationAppFilter->CheckTLcLocationAppFilter( ); |
|
513 delete testLocationAppFilter; |
|
514 return err; |
|
515 } |
|
516 |
|
517 // --------------------------------------------------------- |
|
518 // CTestLc::CheckFilterSystemCharacteristics |
|
519 // |
|
520 // (other items were commented in a header). |
|
521 // --------------------------------------------------------- |
|
522 // |
|
523 TInt CTestLc::CheckFilterSystemCharacteristics( CStifItemParser& aItem ) |
|
524 { |
|
525 TInt choice; |
|
526 User::LeaveIfError(aItem.GetNextInt(choice)); |
|
527 |
|
528 CTestLocationAppFilter* testLocationAppFilter = new(ELeave) |
|
529 CTestLocationAppFilter(iLog); |
|
530 TInt err = testLocationAppFilter->CheckFilterSystemCharacteristics( choice ); |
|
531 delete testLocationAppFilter; |
|
532 return err; |
|
533 } |
|
534 |
|
535 // --------------------------------------------------------- |
|
536 // CTestLc::CheckFilterApplicationCharacteristics |
|
537 // |
|
538 // (other items were commented in a header). |
|
539 // --------------------------------------------------------- |
|
540 // |
|
541 TInt CTestLc::CheckFilterApplicationCharacteristics( CStifItemParser& aItem ) |
|
542 { |
|
543 TInt choice; |
|
544 User::LeaveIfError(aItem.GetNextInt(choice)); |
|
545 |
|
546 CTestLocationAppFilter* testLocationAppFilter = new(ELeave) |
|
547 CTestLocationAppFilter(iLog); |
|
548 TInt err = testLocationAppFilter->CheckFilterApplicationCharacteristics( choice ); |
|
549 delete testLocationAppFilter; |
|
550 return err; |
|
551 } |
|
552 |
|
553 // --------------------------------------------------------- |
|
554 // CTestLc::CheckSysCharFilterConfiguration |
|
555 // |
|
556 // (other items were commented in a header). |
|
557 // --------------------------------------------------------- |
|
558 // |
|
559 TInt CTestLc::CheckSysCharFilterConfiguration( CStifItemParser& aItem ) |
|
560 { |
|
561 TInt choice; |
|
562 User::LeaveIfError(aItem.GetNextInt(choice)); |
|
563 |
|
564 CTestLocationAppFilter* testLocationAppFilter = new(ELeave) |
|
565 CTestLocationAppFilter(iLog); |
|
566 TInt err = testLocationAppFilter->CheckSysCharFilterConfiguration( choice ); |
|
567 delete testLocationAppFilter; |
|
568 return err; |
|
569 } |
|
570 |
|
571 // --------------------------------------------------------- |
|
572 // CTestLc::CheckAppCharFilterConfiguration |
|
573 // |
|
574 // (other items were commented in a header). |
|
575 // --------------------------------------------------------- |
|
576 // |
|
577 TInt CTestLc::CheckAppCharFilterConfiguration( CStifItemParser& aItem ) |
|
578 { |
|
579 TInt choice; |
|
580 User::LeaveIfError(aItem.GetNextInt(choice)); |
|
581 |
|
582 CTestLocationAppFilter* testLocationAppFilter = new(ELeave) |
|
583 CTestLocationAppFilter(iLog); |
|
584 TInt err = testLocationAppFilter->CheckAppCharFilterConfiguration( choice ); |
|
585 delete testLocationAppFilter; |
|
586 return err; |
|
587 } |
|
588 |
|
589 // End of File |
|