|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // The TEFUnit test suite for CallCompletion in the Common TSY. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 */ |
|
21 |
|
22 #include "cctsycallcompletionfu.h" |
|
23 #include <etel.h> |
|
24 #include <etelmm.h> |
|
25 #include <et_clsvr.h> |
|
26 #include <ctsy/mmtsy_names.h> |
|
27 #include <ctsy/serviceapi/mmtsy_ipcdefs.h> |
|
28 #include "tmockltsydata.h" |
|
29 #include <ctsy/serviceapi/gsmerror.h> |
|
30 #include <mmretrieve.h> |
|
31 #include "cctsyactiveretriever.h" |
|
32 |
|
33 CTestSuite* CCTsyCallCompletionFU::CreateSuiteL(const TDesC& aName) |
|
34 { |
|
35 SUB_SUITE; |
|
36 |
|
37 ADD_TEST_STEP_ISO_CPP(CCTsyCallCompletionFU, TestStart0001L); |
|
38 ADD_TEST_STEP_ISO_CPP(CCTsyCallCompletionFU, TestRejectCCBS0001L); |
|
39 ADD_TEST_STEP_ISO_CPP(CCTsyCallCompletionFU, TestRejectCCBS0002L); |
|
40 ADD_TEST_STEP_ISO_CPP(CCTsyCallCompletionFU, TestRejectCCBS0003L); |
|
41 ADD_TEST_STEP_ISO_CPP(CCTsyCallCompletionFU, TestActivateCCBS0001L); |
|
42 ADD_TEST_STEP_ISO_CPP(CCTsyCallCompletionFU, TestActivateCCBS0002L); |
|
43 ADD_TEST_STEP_ISO_CPP(CCTsyCallCompletionFU, TestActivateCCBS0003L); |
|
44 ADD_TEST_STEP_ISO_CPP(CCTsyCallCompletionFU, TestGetCCBSStatus0001L); |
|
45 ADD_TEST_STEP_ISO_CPP(CCTsyCallCompletionFU, TestDeactivateCCBS0001L); |
|
46 ADD_TEST_STEP_ISO_CPP(CCTsyCallCompletionFU, TestAcceptCCBSRecall0001L); |
|
47 ADD_TEST_STEP_ISO_CPP(CCTsyCallCompletionFU, TestNotifyCCBSRecall0001L); |
|
48 ADD_TEST_STEP_ISO_CPP(CCTsyCallCompletionFU, TestRefuseCCBSRecall0001L); |
|
49 ADD_TEST_STEP_ISO_CPP(CCTsyCallCompletionFU, TestNotifyCCBSStatusChange0001L); |
|
50 |
|
51 END_SUITE; |
|
52 } |
|
53 |
|
54 |
|
55 // |
|
56 // Actual test cases |
|
57 // |
|
58 |
|
59 |
|
60 /** |
|
61 @SYMTestCaseID BA-CTSY-CCOM-RMPCL-0001 |
|
62 @SYMComponent telephony_ctsy |
|
63 @SYMTestCaseDesc Test support in CTSY for CRetrieveMobilePhoneCcbsList::Start |
|
64 @SYMTestPriority High |
|
65 @SYMTestActions Invokes CRetrieveMobilePhoneCcbsList::Start |
|
66 @SYMTestExpectedResults Pass |
|
67 @SYMTestType CT |
|
68 */ |
|
69 void CCTsyCallCompletionFU::TestStart0001L() |
|
70 { |
|
71 |
|
72 OpenEtelServerL(EUseExtendedError); |
|
73 CleanupStack::PushL(TCleanupItem(Cleanup,this)); |
|
74 OpenPhoneL(); |
|
75 |
|
76 RBuf8 data; |
|
77 CleanupClosePushL(data); |
|
78 |
|
79 //------------------------------------------------------------------------- |
|
80 // TEST C: Successful completion request of |
|
81 // CRetrieveMobilePhoneCcbsList::Start when result is not cached. |
|
82 //------------------------------------------------------------------------- |
|
83 |
|
84 CFilteringActiveScheduler scheduler; |
|
85 CActiveScheduler::Install(&scheduler); |
|
86 |
|
87 CRetrieveMobilePhoneCcbsList* retrieveMobilePhoneCcbsList = CRetrieveMobilePhoneCcbsList::NewL(iPhone); |
|
88 CleanupStack::PushL(retrieveMobilePhoneCcbsList); |
|
89 |
|
90 CActiveRetriever::ResetRequestsNumber(); |
|
91 CActiveRetriever activeMobilePhoneCcbsListRetriever(*retrieveMobilePhoneCcbsList); |
|
92 scheduler.AddRetrieverL(activeMobilePhoneCcbsListRetriever); |
|
93 |
|
94 retrieveMobilePhoneCcbsList->Start(activeMobilePhoneCcbsListRetriever.Status()); |
|
95 activeMobilePhoneCcbsListRetriever.Activate(); |
|
96 scheduler.StartScheduler(); |
|
97 |
|
98 ASSERT_EQUALS(0, CActiveRetriever::ResetRequestsNumber()); |
|
99 ASSERT_EQUALS(KErrNotSupported, activeMobilePhoneCcbsListRetriever.iStatus.Int()); |
|
100 |
|
101 AssertMockLtsyStatusL(); |
|
102 |
|
103 CleanupStack::PopAndDestroy(1); // retrieveMobilePhoneCcbsList |
|
104 CActiveScheduler::Install(NULL); |
|
105 CleanupStack::PopAndDestroy(2, this); // data, this |
|
106 |
|
107 } |
|
108 |
|
109 |
|
110 /** |
|
111 @SYMTestCaseID BA-CTSY-CCOM-CRC-0001 |
|
112 @SYMComponent telephony_ctsy |
|
113 @SYMTestCaseDesc Test support in CTSY for RMobileCall::RejectCCBS for voice calls |
|
114 @SYMTestPriority High |
|
115 @SYMTestActions Invokes RMobileCall::RejectCCBS for voice calls |
|
116 @SYMTestExpectedResults Pass |
|
117 @SYMTestType CT |
|
118 */ |
|
119 void CCTsyCallCompletionFU::TestRejectCCBS0001L() |
|
120 { |
|
121 |
|
122 OpenEtelServerL(EUseExtendedError); |
|
123 CleanupStack::PushL(TCleanupItem(Cleanup,this)); |
|
124 OpenPhoneL(); |
|
125 |
|
126 RMobileCall mobileCall; |
|
127 RLine line; |
|
128 |
|
129 TInt err = line.Open(iPhone, KMmTsyVoice1LineName); |
|
130 ASSERT_EQUALS(KErrNone, err) |
|
131 CleanupClosePushL(line); |
|
132 |
|
133 err = OpenNewCall(line, mobileCall, KMmTsyVoice1LineName); |
|
134 ASSERT_EQUALS(KErrNone, err) |
|
135 CleanupClosePushL(mobileCall); |
|
136 |
|
137 err = mobileCall.RejectCCBS(); |
|
138 ASSERT_EQUALS(KErrNotSupported, err) |
|
139 |
|
140 AssertMockLtsyStatusL(); |
|
141 CleanupStack::PopAndDestroy(2); // mobileCall, line |
|
142 |
|
143 err = line.Open(iPhone, KMmTsyVoice2LineName); |
|
144 ASSERT_EQUALS(KErrNone, err) |
|
145 CleanupClosePushL(line); |
|
146 |
|
147 err = OpenNewCall(line, mobileCall, KMmTsyVoice2LineName); |
|
148 ASSERT_EQUALS(KErrNone, err) |
|
149 CleanupClosePushL(mobileCall); |
|
150 |
|
151 err = mobileCall.RejectCCBS(); |
|
152 ASSERT_EQUALS(KErrNotSupported, err) |
|
153 |
|
154 AssertMockLtsyStatusL(); |
|
155 CleanupStack::PopAndDestroy(2); // mobileCall, line |
|
156 CleanupStack::PopAndDestroy(this); |
|
157 |
|
158 } |
|
159 |
|
160 |
|
161 /** |
|
162 @SYMTestCaseID BA-CTSY-CCOM-CRC-0002 |
|
163 @SYMComponent telephony_ctsy |
|
164 @SYMTestCaseDesc Test support in CTSY for RMobileCall::RejectCCBS for data calls |
|
165 @SYMTestPriority High |
|
166 @SYMTestActions Invokes RMobileCall::RejectCCBS for data calls |
|
167 @SYMTestExpectedResults Pass |
|
168 @SYMTestType CT |
|
169 */ |
|
170 void CCTsyCallCompletionFU::TestRejectCCBS0002L() |
|
171 { |
|
172 |
|
173 OpenEtelServerL(EUseExtendedError); |
|
174 CleanupStack::PushL(TCleanupItem(Cleanup,this)); |
|
175 OpenPhoneL(); |
|
176 |
|
177 RMobileCall mobileCall; |
|
178 RLine line; |
|
179 |
|
180 TInt err = line.Open(iPhone, KMmTsyDataLineName); |
|
181 ASSERT_EQUALS(KErrNone, err) |
|
182 CleanupClosePushL(line); |
|
183 |
|
184 err = OpenNewCall(line, mobileCall, KMmTsyDataLineName); |
|
185 ASSERT_EQUALS(KErrNone, err) |
|
186 CleanupClosePushL(mobileCall); |
|
187 |
|
188 err = mobileCall.RejectCCBS(); |
|
189 ASSERT_EQUALS(KErrNotSupported, err) |
|
190 |
|
191 AssertMockLtsyStatusL(); |
|
192 CleanupStack::PopAndDestroy(2); // mobileCall, line |
|
193 CleanupStack::PopAndDestroy(this); |
|
194 |
|
195 } |
|
196 |
|
197 |
|
198 /** |
|
199 @SYMTestCaseID BA-CTSY-CCOM-CRC-0003 |
|
200 @SYMComponent telephony_ctsy |
|
201 @SYMTestCaseDesc Test support in CTSY for RMobileCall::RejectCCBS for fax calls |
|
202 @SYMTestPriority High |
|
203 @SYMTestActions Invokes RMobileCall::RejectCCBS for fax calls |
|
204 @SYMTestExpectedResults Pass |
|
205 @SYMTestType CT |
|
206 */ |
|
207 void CCTsyCallCompletionFU::TestRejectCCBS0003L() |
|
208 { |
|
209 |
|
210 OpenEtelServerL(EUseExtendedError); |
|
211 CleanupStack::PushL(TCleanupItem(Cleanup,this)); |
|
212 OpenPhoneL(); |
|
213 |
|
214 RMobileCall mobileCall; |
|
215 RLine line; |
|
216 |
|
217 TInt err = line.Open(iPhone, KMmTsyFaxLineName); |
|
218 ASSERT_EQUALS(KErrNone, err) |
|
219 CleanupClosePushL(line); |
|
220 |
|
221 err = OpenNewCall(line, mobileCall, KMmTsyFaxLineName); |
|
222 ASSERT_EQUALS(KErrNone, err) |
|
223 CleanupClosePushL(mobileCall); |
|
224 |
|
225 err = mobileCall.RejectCCBS(); |
|
226 ASSERT_EQUALS(KErrNotSupported, err) |
|
227 |
|
228 AssertMockLtsyStatusL(); |
|
229 CleanupStack::PopAndDestroy(2); // mobileCall, line |
|
230 CleanupStack::PopAndDestroy(this); |
|
231 |
|
232 } |
|
233 |
|
234 |
|
235 /** |
|
236 @SYMTestCaseID BA-CTSY-CCOM-CAC-0001 |
|
237 @SYMComponent telephony_ctsy |
|
238 @SYMTestCaseDesc Test support in CTSY for RMobileCall::ActivateCCBS for voice calls |
|
239 @SYMTestPriority High |
|
240 @SYMTestActions Invokes RMobileCall::ActivateCCBS for voice calls |
|
241 @SYMTestExpectedResults Pass |
|
242 @SYMTestType CT |
|
243 */ |
|
244 void CCTsyCallCompletionFU::TestActivateCCBS0001L() |
|
245 { |
|
246 |
|
247 OpenEtelServerL(EUseExtendedError); |
|
248 CleanupStack::PushL(TCleanupItem(Cleanup,this)); |
|
249 OpenPhoneL(); |
|
250 |
|
251 RMobileCall mobileCall; |
|
252 RLine line; |
|
253 |
|
254 TInt err = line.Open(iPhone, KMmTsyVoice1LineName); |
|
255 ASSERT_EQUALS(KErrNone, err) |
|
256 CleanupClosePushL(line); |
|
257 |
|
258 err = OpenNewCall(line, mobileCall, KMmTsyVoice1LineName); |
|
259 ASSERT_EQUALS(KErrNone, err) |
|
260 CleanupClosePushL(mobileCall); |
|
261 |
|
262 TRequestStatus reqStatus; |
|
263 TInt index(0); |
|
264 mobileCall.ActivateCCBS(reqStatus, index); |
|
265 User::WaitForRequest(reqStatus); |
|
266 ASSERT_EQUALS(KErrNotSupported, reqStatus.Int()); |
|
267 |
|
268 AssertMockLtsyStatusL(); |
|
269 CleanupStack::PopAndDestroy(2); // mobileCall, line |
|
270 |
|
271 err = line.Open(iPhone, KMmTsyVoice2LineName); |
|
272 ASSERT_EQUALS(KErrNone, err) |
|
273 CleanupClosePushL(line); |
|
274 |
|
275 err = OpenNewCall(line, mobileCall, KMmTsyVoice2LineName); |
|
276 ASSERT_EQUALS(KErrNone, err) |
|
277 CleanupClosePushL(mobileCall); |
|
278 |
|
279 mobileCall.ActivateCCBS(reqStatus, index); |
|
280 User::WaitForRequest(reqStatus); |
|
281 ASSERT_EQUALS(KErrNotSupported, reqStatus.Int()); |
|
282 |
|
283 AssertMockLtsyStatusL(); |
|
284 CleanupStack::PopAndDestroy(2); // mobileCall, line |
|
285 CleanupStack::PopAndDestroy(this); |
|
286 |
|
287 } |
|
288 |
|
289 |
|
290 /** |
|
291 @SYMTestCaseID BA-CTSY-CCOM-CAC-0002 |
|
292 @SYMComponent telephony_ctsy |
|
293 @SYMTestCaseDesc Test support in CTSY for RMobileCall::ActivateCCBS for data calls |
|
294 @SYMTestPriority High |
|
295 @SYMTestActions Invokes RMobileCall::ActivateCCBS for data calls |
|
296 @SYMTestExpectedResults Pass |
|
297 @SYMTestType CT |
|
298 */ |
|
299 void CCTsyCallCompletionFU::TestActivateCCBS0002L() |
|
300 { |
|
301 |
|
302 OpenEtelServerL(EUseExtendedError); |
|
303 CleanupStack::PushL(TCleanupItem(Cleanup,this)); |
|
304 OpenPhoneL(); |
|
305 |
|
306 RMobileCall mobileCall; |
|
307 RLine line; |
|
308 |
|
309 TInt err = line.Open(iPhone, KMmTsyDataLineName); |
|
310 ASSERT_EQUALS(KErrNone, err) |
|
311 CleanupClosePushL(line); |
|
312 |
|
313 err = OpenNewCall(line, mobileCall, KMmTsyDataLineName); |
|
314 ASSERT_EQUALS(KErrNone, err) |
|
315 CleanupClosePushL(mobileCall); |
|
316 |
|
317 TRequestStatus reqStatus; |
|
318 TInt index(0); |
|
319 mobileCall.ActivateCCBS(reqStatus, index); |
|
320 User::WaitForRequest(reqStatus); |
|
321 ASSERT_EQUALS(KErrNotSupported, reqStatus.Int()); |
|
322 |
|
323 AssertMockLtsyStatusL(); |
|
324 CleanupStack::PopAndDestroy(2); // mobileCall, line |
|
325 CleanupStack::PopAndDestroy(this); |
|
326 |
|
327 } |
|
328 |
|
329 |
|
330 /** |
|
331 @SYMTestCaseID BA-CTSY-CCOM-CAC-0003 |
|
332 @SYMComponent telephony_ctsy |
|
333 @SYMTestCaseDesc Test support in CTSY for RMobileCall::ActivateCCBS for fax calls |
|
334 @SYMTestPriority High |
|
335 @SYMTestActions Invokes RMobileCall::ActivateCCBS for fax calls |
|
336 @SYMTestExpectedResults Pass |
|
337 @SYMTestType CT |
|
338 */ |
|
339 void CCTsyCallCompletionFU::TestActivateCCBS0003L() |
|
340 { |
|
341 |
|
342 OpenEtelServerL(EUseExtendedError); |
|
343 CleanupStack::PushL(TCleanupItem(Cleanup,this)); |
|
344 OpenPhoneL(); |
|
345 |
|
346 RMobileCall mobileCall; |
|
347 RLine line; |
|
348 |
|
349 TInt err = line.Open(iPhone, KMmTsyFaxLineName); |
|
350 ASSERT_EQUALS(KErrNone, err) |
|
351 CleanupClosePushL(line); |
|
352 |
|
353 err = OpenNewCall(line, mobileCall, KMmTsyFaxLineName); |
|
354 ASSERT_EQUALS(KErrNone, err) |
|
355 CleanupClosePushL(mobileCall); |
|
356 |
|
357 TRequestStatus reqStatus; |
|
358 TInt index(0); |
|
359 mobileCall.ActivateCCBS(reqStatus, index); |
|
360 User::WaitForRequest(reqStatus); |
|
361 ASSERT_EQUALS(KErrNotSupported, reqStatus.Int()); |
|
362 |
|
363 AssertMockLtsyStatusL(); |
|
364 CleanupStack::PopAndDestroy(2); // mobileCall, line |
|
365 CleanupStack::PopAndDestroy(this); |
|
366 |
|
367 } |
|
368 |
|
369 |
|
370 /** |
|
371 @SYMTestCaseID BA-CTSY-CCOM-MGCCBSS-0001 |
|
372 @SYMComponent telephony_ctsy |
|
373 @SYMTestCaseDesc Test support in CTSY for RMobilePhone::GetCCBSStatus |
|
374 @SYMTestPriority High |
|
375 @SYMTestActions Invokes RMobilePhone::GetCCBSStatus |
|
376 @SYMTestExpectedResults Pass |
|
377 @SYMTestType CT |
|
378 */ |
|
379 void CCTsyCallCompletionFU::TestGetCCBSStatus0001L() |
|
380 { |
|
381 |
|
382 OpenEtelServerL(EUseExtendedError); |
|
383 CleanupStack::PushL(TCleanupItem(Cleanup,this)); |
|
384 OpenPhoneL(); |
|
385 |
|
386 TRequestStatus reqStatus; |
|
387 RMobilePhone::TMobilePhoneCCBSStatus ccbsStatus(RMobilePhone::ECcbsActive); |
|
388 RMobilePhone::TMobileInfoLocation location(RMobilePhone::EInfoLocationCachePreferred); |
|
389 iPhone.GetCCBSStatus(reqStatus, ccbsStatus, location); |
|
390 User::WaitForRequest(reqStatus); |
|
391 ASSERT_EQUALS(KErrNotSupported, reqStatus.Int()); |
|
392 |
|
393 AssertMockLtsyStatusL(); |
|
394 CleanupStack::PopAndDestroy(this); |
|
395 |
|
396 } |
|
397 |
|
398 |
|
399 /** |
|
400 @SYMTestCaseID BA-CTSY-CCOM-MDCCBS-0001 |
|
401 @SYMComponent telephony_ctsy |
|
402 @SYMTestCaseDesc Test support in CTSY for RMobilePhone::DeactivateCCBS |
|
403 @SYMTestPriority High |
|
404 @SYMTestActions Invokes RMobilePhone::DeactivateCCBS |
|
405 @SYMTestExpectedResults Pass |
|
406 @SYMTestType CT |
|
407 */ |
|
408 void CCTsyCallCompletionFU::TestDeactivateCCBS0001L() |
|
409 { |
|
410 |
|
411 OpenEtelServerL(EUseExtendedError); |
|
412 CleanupStack::PushL(TCleanupItem(Cleanup,this)); |
|
413 OpenPhoneL(); |
|
414 |
|
415 TRequestStatus reqStatus; |
|
416 TInt index(0); |
|
417 iPhone.DeactivateCCBS(reqStatus, index); |
|
418 User::WaitForRequest(reqStatus); |
|
419 ASSERT_EQUALS(KErrNotSupported, reqStatus.Int()); |
|
420 |
|
421 AssertMockLtsyStatusL(); |
|
422 CleanupStack::PopAndDestroy(this); |
|
423 |
|
424 } |
|
425 |
|
426 |
|
427 /** |
|
428 @SYMTestCaseID BA-CTSY-CCOM-MACCBSR-0001 |
|
429 @SYMComponent telephony_ctsy |
|
430 @SYMTestCaseDesc Test support in CTSY for RMobilePhone::AcceptCCBSRecall |
|
431 @SYMTestPriority High |
|
432 @SYMTestActions Invokes RMobilePhone::AcceptCCBSRecall |
|
433 @SYMTestExpectedResults Pass |
|
434 @SYMTestType CT |
|
435 */ |
|
436 void CCTsyCallCompletionFU::TestAcceptCCBSRecall0001L() |
|
437 { |
|
438 |
|
439 OpenEtelServerL(EUseExtendedError); |
|
440 CleanupStack::PushL(TCleanupItem(Cleanup,this)); |
|
441 OpenPhoneL(); |
|
442 |
|
443 TRequestStatus reqStatus; |
|
444 TInt index(0); |
|
445 TName callName; |
|
446 iPhone.AcceptCCBSRecall(reqStatus, index, callName); |
|
447 User::WaitForRequest(reqStatus); |
|
448 ASSERT_EQUALS(KErrNotSupported, reqStatus.Int()); |
|
449 |
|
450 AssertMockLtsyStatusL(); |
|
451 CleanupStack::PopAndDestroy(this); |
|
452 |
|
453 } |
|
454 |
|
455 |
|
456 /** |
|
457 @SYMTestCaseID BA-CTSY-CCOM-MNCCBSR-0001 |
|
458 @SYMComponent telephony_ctsy |
|
459 @SYMTestCaseDesc Test support in CTSY for RMobilePhone::NotifyCCBSRecall |
|
460 @SYMTestPriority High |
|
461 @SYMTestActions Invokes RMobilePhone::NotifyCCBSRecall |
|
462 @SYMTestExpectedResults Pass |
|
463 @SYMTestType CT |
|
464 */ |
|
465 void CCTsyCallCompletionFU::TestNotifyCCBSRecall0001L() |
|
466 { |
|
467 |
|
468 OpenEtelServerL(EUseExtendedError); |
|
469 CleanupStack::PushL(TCleanupItem(Cleanup,this)); |
|
470 OpenPhoneL(); |
|
471 |
|
472 TRequestStatus reqStatus; |
|
473 TBuf8<1> buf; |
|
474 iPhone.NotifyCCBSRecall(reqStatus, buf); |
|
475 User::WaitForRequest(reqStatus); |
|
476 ASSERT_EQUALS(KErrNotSupported, reqStatus.Int()); |
|
477 |
|
478 AssertMockLtsyStatusL(); |
|
479 CleanupStack::PopAndDestroy(this); |
|
480 |
|
481 } |
|
482 |
|
483 |
|
484 /** |
|
485 @SYMTestCaseID BA-CTSY-CCOM-MRCCBSR-0001 |
|
486 @SYMComponent telephony_ctsy |
|
487 @SYMTestCaseDesc Test support in CTSY for RMobilePhone::RefuseCCBSRecall |
|
488 @SYMTestPriority High |
|
489 @SYMTestActions Invokes RMobilePhone::RefuseCCBSRecall |
|
490 @SYMTestExpectedResults Pass |
|
491 @SYMTestType CT |
|
492 */ |
|
493 void CCTsyCallCompletionFU::TestRefuseCCBSRecall0001L() |
|
494 { |
|
495 |
|
496 OpenEtelServerL(EUseExtendedError); |
|
497 CleanupStack::PushL(TCleanupItem(Cleanup,this)); |
|
498 OpenPhoneL(); |
|
499 |
|
500 TInt index(0); |
|
501 TInt err = iPhone.RefuseCCBSRecall(index); |
|
502 ASSERT_EQUALS(KErrNotSupported, err) |
|
503 |
|
504 AssertMockLtsyStatusL(); |
|
505 CleanupStack::PopAndDestroy(this); |
|
506 |
|
507 } |
|
508 |
|
509 |
|
510 /** |
|
511 @SYMTestCaseID BA-CTSY-CCOM-MNCCBSSC-0001 |
|
512 @SYMComponent telephony_ctsy |
|
513 @SYMTestCaseDesc Test support in CTSY for RMobilePhone::NotifyCCBSStatusChange |
|
514 @SYMTestPriority High |
|
515 @SYMTestActions Invokes RMobilePhone::NotifyCCBSStatusChange |
|
516 @SYMTestExpectedResults Pass |
|
517 @SYMTestType CT |
|
518 */ |
|
519 void CCTsyCallCompletionFU::TestNotifyCCBSStatusChange0001L() |
|
520 { |
|
521 |
|
522 OpenEtelServerL(EUseExtendedError); |
|
523 CleanupStack::PushL(TCleanupItem(Cleanup,this)); |
|
524 OpenPhoneL(); |
|
525 |
|
526 TRequestStatus reqStatus; |
|
527 RMobilePhone::TMobilePhoneCCBSStatus ccbsStatus(RMobilePhone::ECcbsActive); |
|
528 iPhone.NotifyCCBSStatusChange(reqStatus, ccbsStatus); |
|
529 User::WaitForRequest(reqStatus); |
|
530 ASSERT_EQUALS(KErrNotSupported, reqStatus.Int()); |
|
531 |
|
532 AssertMockLtsyStatusL(); |
|
533 CleanupStack::PopAndDestroy(this); |
|
534 |
|
535 } |
|
536 |
|
537 |
|
538 |