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) 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 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: tsysinfonetworktests |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
||
20 |
||
21 |
// INCLUDE FILES |
|
22 |
#include <e32svr.h> |
|
23 |
#include <StifParser.h> |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
24 |
#include <StifTestInterface.h> |
19 | 25 |
#include <f32file.h> |
26 |
||
27 |
#include "tsysinfonetworktests.h" |
|
28 |
#include "sysinfoservice.h" |
|
29 |
#include "entitykeys.h" |
|
30 |
#include "tsysinfosigstrengthasyn.h" |
|
31 |
#include "tsysinfonetworkmodenotify.h" |
|
32 |
#include "tsysinforegstatusnotify.h" |
|
33 |
#include "tsysinfohomenetworkasync.h" |
|
34 |
#include "tsysinfohomenetworknotify.h" |
|
35 |
#include "tsysinfocurrentnetworkasync.h" |
|
36 |
#include "tsysinfocurrentnetworknotify.h" |
|
37 |
#include "tsysinfocellidnotify.h" |
|
38 |
#include "tsysinfocellidasync.h" |
|
39 |
#include "tsysinfolacasync.h" |
|
40 |
#include "tsysinfolacnotify.h" |
|
41 |
#include "tsysinfosiglevelasync.h" |
|
42 |
#include "tsysinfosiglevelnotify.h" |
|
43 |
#include "tsysinfosigstrengthnotify.h" |
|
44 |
||
45 |
||
46 |
using namespace SysInfo; |
|
47 |
||
48 |
// ----------------------------------------------------------------------------- |
|
49 |
// CTSysInfoNetworkTests::Delete |
|
50 |
// Delete here all resources allocated and opened from test methods. |
|
51 |
// Called from destructor. |
|
52 |
// ----------------------------------------------------------------------------- |
|
53 |
// |
|
54 |
void CTSysInfoNetworkTests::Delete() |
|
55 |
{ |
|
56 |
||
57 |
} |
|
58 |
||
59 |
// ----------------------------------------------------------------------------- |
|
60 |
// CTSysInfoNetworkTests::RunMethodL |
|
61 |
// Run specified method. Contains also table of test mothods and their names. |
|
62 |
// ----------------------------------------------------------------------------- |
|
63 |
// |
|
64 |
TInt CTSysInfoNetworkTests::RunMethodL( |
|
65 |
CStifItemParser& aItem ) |
|
66 |
{ |
|
67 |
||
68 |
static TStifFunctionInfo const KFunctions[] = |
|
69 |
{ |
|
70 |
// Copy this line for every implemented function. |
|
71 |
// First string is the function name used in TestScripter script file. |
|
72 |
// Second is the actual implementation member function. |
|
73 |
||
74 |
ENTRY( "SignalStrengthAsyc-M", CTSysInfoNetworkTests::SignalStrengthAsyncL), |
|
75 |
ENTRY( "SignalStrengthNoti-M", CTSysInfoNetworkTests::SignalStrengthNotiL), |
|
76 |
ENTRY( "SignalLevelAsyc-M", CTSysInfoNetworkTests::SignalLevelAsyncL), |
|
77 |
ENTRY( "SignalLevelNoti-M", CTSysInfoNetworkTests::SignalLevelNotiL), |
|
78 |
ENTRY( "RegisteredOnHomeNw-M", CTSysInfoNetworkTests::RegisteredOnHomeNwL), |
|
79 |
ENTRY( "RegStatusNoService-M", CTSysInfoNetworkTests::RegStatusNoServiceL), |
|
80 |
ENTRY( "RegStatusNotify-M", CTSysInfoNetworkTests::RegStatusNotifyL), |
|
81 |
ENTRY( "NetworkModeGSM-M", CTSysInfoNetworkTests::GetNwModeGSML), |
|
82 |
ENTRY( "NetworkModeNotify-M", CTSysInfoNetworkTests::NetworkModeNotifyL), |
|
83 |
ENTRY( "HomeNetworkAsyc-M", CTSysInfoNetworkTests::HomeNwAsyncL), |
|
84 |
ENTRY( "HomeNetworkNotify-M", CTSysInfoNetworkTests::HomeNetworkNotifyL), |
|
85 |
ENTRY( "CurrentNwAsync-M", CTSysInfoNetworkTests::CurrentNwAsyncL), |
|
86 |
ENTRY( "CurrentNwNoti-M", CTSysInfoNetworkTests::CurrentNwNotiL), |
|
87 |
ENTRY( "LACAsync-M", CTSysInfoNetworkTests::LACAsyncL), |
|
88 |
ENTRY( "LACNoti-M", CTSysInfoNetworkTests::LACNotiL), |
|
89 |
ENTRY( "CellIdNotify-M", CTSysInfoNetworkTests::CellIdNotifyL), |
|
90 |
ENTRY( "CellIdAsync-M", CTSysInfoNetworkTests::CellIdAsyncL), |
|
91 |
}; |
|
92 |
||
93 |
const TInt count = sizeof( KFunctions ) / |
|
94 |
sizeof( TStifFunctionInfo ); |
|
95 |
||
96 |
return RunInternalL( KFunctions, count, aItem ); |
|
97 |
} |
|
98 |
||
99 |
TInt CTSysInfoNetworkTests::RegisteredOnHomeNwL(CStifItemParser& /*aItem*/) |
|
100 |
{ |
|
101 |
_LIT( KExample, "RegisteredOnHomeNwL" ); |
|
102 |
iLog->Log( KExample ); |
|
103 |
TInt Err(PASS); |
|
104 |
||
105 |
__UHEAP_MARK; |
|
106 |
CSysInfoService *obj = CSysInfoService::NewL(); |
|
107 |
CleanupStack::PushL(obj); |
|
108 |
||
109 |
CSysData* output ; |
|
110 |
||
111 |
TRAPD(err,obj->GetInfoL(KNetwork,KRegistrationStatus,output)); |
|
112 |
if (!err) |
|
113 |
{ |
|
114 |
if(!output) |
|
115 |
{ |
|
116 |
Err |= FAIL; |
|
117 |
iLog->Log( _L("Output data Set to NULL") ); |
|
118 |
} |
|
119 |
else |
|
120 |
{ |
|
121 |
CleanupStack::PushL(output); |
|
122 |
if( CSysData::EStatus != output->DataType() ) |
|
123 |
{ |
|
124 |
iLog->Log( _L("Invalid output data") ); |
|
125 |
Err |= FAIL; |
|
126 |
} |
|
127 |
else |
|
128 |
{ |
|
129 |
TInt Registration = ((CStatus*)output)->Status(); |
|
130 |
||
131 |
if( REGISTEREDONHOMENW != Registration ) |
|
132 |
{ |
|
133 |
Err |= FAIL; |
|
134 |
iLog->Log( _L("Incorrect NW regitration status") ); |
|
135 |
} |
|
136 |
||
137 |
TInt networkMode= ((CStatus*)output)->Status(); |
|
138 |
||
139 |
TBuf<20> buf; |
|
140 |
buf.AppendNum(networkMode); |
|
141 |
iLog->Log(buf); |
|
142 |
||
143 |
Err = PASS; |
|
144 |
||
145 |
||
146 |
} |
|
147 |
CleanupStack::PopAndDestroy(output); |
|
148 |
||
149 |
} |
|
150 |
} |
|
151 |
else |
|
152 |
{ |
|
153 |
Err |= err; |
|
154 |
iLog->Log( _L("GetInfo API returned error") ); |
|
155 |
} |
|
156 |
CleanupStack::PopAndDestroy(obj); |
|
157 |
||
158 |
__UHEAP_MARKEND; |
|
159 |
return Err; |
|
160 |
} |
|
161 |
||
162 |
TInt CTSysInfoNetworkTests::RegStatusNoServiceL(CStifItemParser& /*aItem*/) |
|
163 |
{ |
|
164 |
_LIT( KExample, "RegStatusNoServiceL" ); |
|
165 |
iLog->Log( KExample ); |
|
166 |
TInt Err(PASS); |
|
167 |
||
168 |
__UHEAP_MARK; |
|
169 |
CSysInfoService *obj = CSysInfoService::NewL(); |
|
170 |
CleanupStack::PushL(obj); |
|
171 |
||
172 |
CSysData* output; |
|
173 |
||
174 |
TRAPD(err,obj->GetInfoL(KNetwork,KRegistrationStatus,output)); |
|
175 |
if (!err) |
|
176 |
{ |
|
177 |
if(!output) |
|
178 |
{ |
|
179 |
Err |= FAIL; |
|
180 |
iLog->Log( _L("Output data Set to NULL") ); |
|
181 |
} |
|
182 |
else |
|
183 |
{ |
|
184 |
CleanupStack::PushL(output); |
|
185 |
if( CSysData::EStatus != output->DataType() ) |
|
186 |
{ |
|
187 |
iLog->Log( _L("Invalid output data") ); |
|
188 |
Err |= FAIL; |
|
189 |
} |
|
190 |
else |
|
191 |
{ |
|
192 |
TInt Registration = ((CStatus*)output)->Status(); |
|
193 |
||
194 |
if( NOSERVICE != Registration ) |
|
195 |
{ |
|
196 |
Err |= FAIL; |
|
197 |
iLog->Log( _L("Incorrect NW regitration status") ); |
|
198 |
} |
|
199 |
} |
|
200 |
CleanupStack::PopAndDestroy(output); |
|
201 |
} |
|
202 |
} |
|
203 |
else |
|
204 |
{ |
|
205 |
Err |= err; |
|
206 |
iLog->Log( _L("GetInfo API returned error") ); |
|
207 |
} |
|
208 |
||
209 |
CleanupStack::PopAndDestroy(obj); |
|
210 |
__UHEAP_MARKEND; |
|
211 |
return Err; |
|
212 |
} |
|
213 |
||
214 |
TInt CTSysInfoNetworkTests::GetNwModeGSML(CStifItemParser& /*aItem*/) |
|
215 |
{ |
|
216 |
_LIT( KExample, "GetNwModeGSML" ); |
|
217 |
iLog->Log( KExample ); |
|
218 |
TInt Err(PASS); |
|
219 |
||
220 |
__UHEAP_MARK; |
|
221 |
CSysInfoService *obj = CSysInfoService::NewL(); |
|
222 |
CleanupStack::PushL(obj); |
|
223 |
||
224 |
CSysData* output; |
|
225 |
||
226 |
TRAPD(err,obj->GetInfoL(KNetwork,KNetworkMode,output)); |
|
227 |
if (!err) |
|
228 |
{ |
|
229 |
if(!output) |
|
230 |
{ |
|
231 |
Err |= FAIL; |
|
232 |
iLog->Log( _L("Output data Set to NULL") ); |
|
233 |
} |
|
234 |
else |
|
235 |
{ |
|
236 |
CleanupStack::PushL(output); |
|
237 |
if( CSysData::EStatus != output->DataType() ) |
|
238 |
{ |
|
239 |
iLog->Log( _L("Invalid output data") ); |
|
240 |
Err |= FAIL; |
|
241 |
} |
|
242 |
else |
|
243 |
{ |
|
244 |
TInt NwMode = ((CStatus*)output)->Status(); |
|
245 |
||
246 |
if( ENWNetworkModeGsm != NwMode ) |
|
247 |
{ |
|
248 |
Err |= FAIL; |
|
249 |
iLog->Log( _L("Incorrect NW Mode") ); |
|
250 |
} |
|
251 |
||
252 |
} |
|
253 |
CleanupStack::PopAndDestroy(output); |
|
254 |
||
255 |
} |
|
256 |
} |
|
257 |
else |
|
258 |
{ |
|
259 |
Err |= err; |
|
260 |
iLog->Log( _L("GetInfo API returned error") ); |
|
261 |
} |
|
262 |
||
263 |
CleanupStack::PopAndDestroy(obj); |
|
264 |
__UHEAP_MARKEND; |
|
265 |
return Err; |
|
266 |
} |
|
267 |
||
268 |
||
269 |
TInt CTSysInfoNetworkTests::SignalStrengthAsyncL(CStifItemParser& aItem) |
|
270 |
{ |
|
271 |
_LIT( KExample, "SignalStrengthAsyncL" ); |
|
272 |
iLog->Log( KExample ); |
|
273 |
TInt Err(PASS); |
|
274 |
||
275 |
__UHEAP_MARK; |
|
276 |
||
277 |
TInt InputStrength; |
|
278 |
aItem.GetNextInt(InputStrength); |
|
279 |
||
280 |
CSignalStrAsync* test = CSignalStrAsync::NewL(iLog,InputStrength); |
|
281 |
test->Start(); |
|
282 |
Err = test->Result(); |
|
283 |
delete test; |
|
284 |
||
285 |
__UHEAP_MARKEND; |
|
286 |
return Err; |
|
287 |
} |
|
288 |
||
289 |
||
290 |
TInt CTSysInfoNetworkTests::SignalStrengthNotiL(CStifItemParser& aItem) |
|
291 |
{ |
|
292 |
_LIT( KExample, "SignalStrengthNotiL" ); |
|
293 |
iLog->Log( KExample ); |
|
294 |
TInt Err(PASS); |
|
295 |
||
296 |
__UHEAP_MARK; |
|
297 |
||
298 |
TInt InputStrength; |
|
299 |
aItem.GetNextInt(InputStrength); |
|
300 |
||
301 |
CSignalStrNotify* test = CSignalStrNotify::NewL(iLog,InputStrength); |
|
302 |
test->Start(); |
|
303 |
Err = test->Result(); |
|
304 |
delete test; |
|
305 |
||
306 |
__UHEAP_MARKEND; |
|
307 |
return Err; |
|
308 |
} |
|
309 |
||
310 |
TInt CTSysInfoNetworkTests::SignalLevelAsyncL(CStifItemParser& /*aItem*/) |
|
311 |
{ |
|
312 |
_LIT( KExample, "SignalStrengthAsyncL" ); |
|
313 |
iLog->Log( KExample ); |
|
314 |
TInt Err(PASS); |
|
315 |
||
316 |
__UHEAP_MARK; |
|
317 |
||
318 |
CSysInfoService *obj = CSysInfoService::NewL(); |
|
319 |
CleanupStack::PushL(obj); |
|
320 |
||
321 |
CSysData* output=NULL; |
|
322 |
||
323 |
_LIT(KSignalLevel,"SignalLevel"); |
|
324 |
||
325 |
TRAPD(err,obj->GetInfoL(KNetwork,KSignalLevel,1,this)); |
|
326 |
if ( err == KErrNotFound ) |
|
327 |
{ |
|
328 |
Err = PASS; |
|
329 |
iLog->Log( _L("Signal Level Not Found ")); |
|
330 |
} |
|
331 |
else |
|
332 |
{ |
|
333 |
Err |= FAIL; |
|
334 |
iLog->Log( _L("GetInfo API returned error: %d Expected Error: %d"), err,KErrNotFound); |
|
335 |
} |
|
336 |
CleanupStack::PopAndDestroy(obj); |
|
337 |
__UHEAP_MARKEND; |
|
338 |
return Err; |
|
339 |
} |
|
340 |
||
341 |
void CTSysInfoNetworkTests::HandleResponseL(const TDesC& /*aEntity*/,const TDesC& /*aKey*/, |
|
342 |
CSysData* /*aOutput*/, TInt32 /*aTransID*/, TSysRequest::TRequestType /*aType*/,TInt /*aError*/) |
|
343 |
{ |
|
344 |
||
345 |
} |
|
346 |
||
347 |
TInt CTSysInfoNetworkTests::SignalLevelNotiL(CStifItemParser& /*aItem*/) |
|
348 |
{ |
|
349 |
_LIT( KExample, "SignalLevelNotiL" ); |
|
350 |
iLog->Log( KExample ); |
|
351 |
TInt Err(PASS); |
|
352 |
||
353 |
__UHEAP_MARK; |
|
354 |
||
355 |
||
356 |
CSysInfoService *obj = CSysInfoService::NewL(); |
|
357 |
CleanupStack::PushL(obj); |
|
358 |
||
359 |
CSysData* output=NULL; |
|
360 |
||
361 |
_LIT(KSignalLevel,"SignalLevel"); |
|
362 |
||
363 |
TRAPD(err,obj->GetNotificationL(KNetwork,KSignalLevel,1,this)); |
|
364 |
if ( err == KErrNotFound ) |
|
365 |
{ |
|
366 |
Err = PASS; |
|
367 |
iLog->Log( _L("Signal Level Not supported ")); |
|
368 |
} |
|
369 |
else |
|
370 |
{ |
|
371 |
Err |= FAIL; |
|
372 |
iLog->Log( _L("GetInfo API returned error: %d Expected Error: %d"), err,KErrNotFound); |
|
373 |
} |
|
374 |
||
375 |
CleanupStack::PopAndDestroy(obj); |
|
376 |
__UHEAP_MARKEND; |
|
377 |
return Err; |
|
378 |
} |
|
379 |
||
380 |
||
381 |
||
382 |
TInt CTSysInfoNetworkTests::NetworkModeNotifyL(CStifItemParser& /*aItem*/) |
|
383 |
{ |
|
384 |
||
385 |
_LIT( KExample, "NetworkModeNotifyL" ); |
|
386 |
iLog->Log( KExample ); |
|
387 |
TInt Err(PASS); |
|
388 |
||
389 |
__UHEAP_MARK; |
|
390 |
||
391 |
CNetModeNotify* test = CNetModeNotify::NewL(iLog); |
|
392 |
test->Start(); |
|
393 |
Err = test->Result(); |
|
394 |
delete test; |
|
395 |
||
396 |
__UHEAP_MARKEND; |
|
397 |
return Err; |
|
398 |
} |
|
399 |
||
400 |
||
401 |
TInt CTSysInfoNetworkTests::RegStatusNotifyL(CStifItemParser& /*aItem*/) |
|
402 |
{ |
|
403 |
||
404 |
_LIT( KExample, "RegStatusNotifyL" ); |
|
405 |
iLog->Log( KExample ); |
|
406 |
TInt Err(PASS); |
|
407 |
||
408 |
__UHEAP_MARK; |
|
409 |
||
410 |
CRegStatusNotify* test = CRegStatusNotify::NewL(iLog); |
|
411 |
test->Start(); |
|
412 |
Err = test->Result(); |
|
413 |
delete test; |
|
414 |
||
415 |
__UHEAP_MARKEND; |
|
416 |
return Err; |
|
417 |
} |
|
418 |
||
419 |
||
420 |
TInt CTSysInfoNetworkTests::HomeNwAsyncL(CStifItemParser& /*aItem*/) |
|
421 |
{ |
|
422 |
||
423 |
_LIT( KExample, "HomeNwAsyncL" ); |
|
424 |
iLog->Log( KExample ); |
|
425 |
TInt Err(PASS); |
|
426 |
||
427 |
__UHEAP_MARK; |
|
428 |
||
429 |
CHomeNwAsync* test = CHomeNwAsync::NewL(iLog); |
|
430 |
test->Start(); |
|
431 |
Err = test->Result(); |
|
432 |
if(Err == KErrNotFound) |
|
433 |
{ |
|
434 |
iLog->Log( _L("HomeNetwork Not Found" )); |
|
435 |
Err = KErrNone; |
|
436 |
} |
|
437 |
else |
|
438 |
{ |
|
439 |
iLog->Log( _L("Incorrect error returned" )); |
|
440 |
Err = KErrGeneral; |
|
441 |
} |
|
442 |
delete test; |
|
443 |
||
444 |
__UHEAP_MARKEND; |
|
445 |
return Err; |
|
446 |
} |
|
447 |
||
448 |
TInt CTSysInfoNetworkTests::HomeNetworkNotifyL(CStifItemParser& /*aItem*/) |
|
449 |
{ |
|
450 |
||
451 |
_LIT( KExample, "HomeNetworkNotifyL" ); |
|
452 |
iLog->Log( KExample ); |
|
453 |
TInt Err(PASS); |
|
454 |
||
455 |
__UHEAP_MARK; |
|
456 |
||
457 |
CHomeNetworkNotify* test = CHomeNetworkNotify::NewL(iLog); |
|
458 |
test->Start(); |
|
459 |
Err = test->Result(); |
|
460 |
delete test; |
|
461 |
||
462 |
__UHEAP_MARKEND; |
|
463 |
return Err; |
|
464 |
} |
|
465 |
||
466 |
TInt CTSysInfoNetworkTests::CurrentNwAsyncL(CStifItemParser& /*aItem*/) |
|
467 |
{ |
|
468 |
||
469 |
_LIT( KExample, "CurrentNwAsyncL" ); |
|
470 |
iLog->Log( KExample ); |
|
471 |
TInt Err(PASS); |
|
472 |
||
473 |
__UHEAP_MARK; |
|
474 |
||
475 |
CCurrentNetAsync* test = CCurrentNetAsync::NewL(iLog); |
|
476 |
test->Start(); |
|
477 |
Err = test->Result(); |
|
478 |
delete test; |
|
479 |
||
480 |
__UHEAP_MARKEND; |
|
481 |
return Err; |
|
482 |
} |
|
483 |
||
484 |
TInt CTSysInfoNetworkTests::CurrentNwNotiL(CStifItemParser& /*aItem*/) |
|
485 |
{ |
|
486 |
||
487 |
_LIT( KExample, "CurrentNwNotiL" ); |
|
488 |
iLog->Log( KExample ); |
|
489 |
TInt Err(PASS); |
|
490 |
||
491 |
__UHEAP_MARK; |
|
492 |
||
493 |
CCurrentNetNotify* test = CCurrentNetNotify::NewL(iLog); |
|
494 |
test->Start(); |
|
495 |
Err = test->Result(); |
|
496 |
delete test; |
|
497 |
||
498 |
__UHEAP_MARKEND; |
|
499 |
return Err; |
|
500 |
} |
|
501 |
||
502 |
||
503 |
||
504 |
TInt CTSysInfoNetworkTests::LACAsyncL(CStifItemParser& /*aItem*/) |
|
505 |
{ |
|
506 |
||
507 |
_LIT( KExample, "LACAsyncL" ); |
|
508 |
iLog->Log( KExample ); |
|
509 |
TInt Err(PASS); |
|
510 |
||
511 |
__UHEAP_MARK; |
|
512 |
||
513 |
CLacAsync* test = CLacAsync::NewL(iLog); |
|
514 |
test->Start(); |
|
515 |
Err = test->Result(); |
|
516 |
delete test; |
|
517 |
||
518 |
__UHEAP_MARKEND; |
|
519 |
return Err; |
|
520 |
} |
|
521 |
||
522 |
TInt CTSysInfoNetworkTests::LACNotiL(CStifItemParser& /*aItem*/) |
|
523 |
{ |
|
524 |
||
525 |
_LIT( KExample, "LACNotiL" ); |
|
526 |
iLog->Log( KExample ); |
|
527 |
TInt Err(PASS); |
|
528 |
||
529 |
__UHEAP_MARK; |
|
530 |
||
531 |
CLacNotify* test = CLacNotify::NewL(iLog); |
|
532 |
test->Start(); |
|
533 |
Err = test->Result(); |
|
534 |
delete test; |
|
535 |
||
536 |
__UHEAP_MARKEND; |
|
537 |
return Err; |
|
538 |
} |
|
539 |
||
540 |
TInt CTSysInfoNetworkTests::CellIdNotifyL(CStifItemParser& /*aItem*/) |
|
541 |
{ |
|
542 |
||
543 |
_LIT( KExample, "CellIdNotifyL" ); |
|
544 |
iLog->Log( KExample ); |
|
545 |
TInt Err(PASS); |
|
546 |
||
547 |
__UHEAP_MARK; |
|
548 |
||
549 |
CCellidNotify* test = CCellidNotify::NewL(iLog); |
|
550 |
test->Start(); |
|
551 |
Err = test->Result(); |
|
552 |
delete test; |
|
553 |
||
554 |
__UHEAP_MARKEND; |
|
555 |
return Err; |
|
556 |
} |
|
557 |
||
558 |
TInt CTSysInfoNetworkTests::CellIdAsyncL(CStifItemParser& /*aItem*/) |
|
559 |
{ |
|
560 |
||
561 |
_LIT( KExample, "CellIdAsyncL" ); |
|
562 |
iLog->Log( KExample ); |
|
563 |
TInt Err(PASS); |
|
564 |
||
565 |
__UHEAP_MARK; |
|
566 |
||
567 |
||
568 |
CCellidAsync* test = CCellidAsync::NewL(iLog); |
|
569 |
test->Start(); |
|
570 |
Err = test->Result(); |
|
571 |
delete test; |
|
572 |
||
573 |
__UHEAP_MARKEND; |
|
574 |
return Err; |
|
575 |
} |