24
|
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 |
// Test step definitions for the AlternateLineService functional unit.
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
/**
|
|
19 |
@internalTechnology
|
|
20 |
*/
|
|
21 |
|
|
22 |
#include <ctsy/rmmcustomapi.h> // ALS support is part of CustomApi
|
|
23 |
|
|
24 |
#include "cctsyintegrationtestalternatelineservice.h"
|
|
25 |
#include "cctsyinidata.h"
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
CCTSYIntegrationTestAlternateLineServiceBase::CCTSYIntegrationTestAlternateLineServiceBase(CEtelSessionMgr& aEtelSessionMgr)
|
|
30 |
: CCTSYIntegrationTestSuiteStepBase(aEtelSessionMgr), iNetworkTestHelper(*this), iCallControlTestHelper(*this)
|
|
31 |
/**
|
|
32 |
* Constructor
|
|
33 |
*/
|
|
34 |
{
|
|
35 |
}
|
|
36 |
|
|
37 |
CCTSYIntegrationTestAlternateLineServiceBase::~CCTSYIntegrationTestAlternateLineServiceBase()
|
|
38 |
/*
|
|
39 |
* Destructor
|
|
40 |
*/
|
|
41 |
{
|
|
42 |
}
|
|
43 |
|
|
44 |
|
|
45 |
CCTSYIntegrationTestAlternateLineService0001::CCTSYIntegrationTestAlternateLineService0001(CEtelSessionMgr& aEtelSessionMgr)
|
|
46 |
: CCTSYIntegrationTestAlternateLineServiceBase(aEtelSessionMgr)
|
|
47 |
/**
|
|
48 |
* Constructor.
|
|
49 |
*/
|
|
50 |
{
|
|
51 |
SetTestStepName(CCTSYIntegrationTestAlternateLineService0001::GetTestStepName());
|
|
52 |
}
|
|
53 |
|
|
54 |
CCTSYIntegrationTestAlternateLineService0001::~CCTSYIntegrationTestAlternateLineService0001()
|
|
55 |
/**
|
|
56 |
* Destructor.
|
|
57 |
*/
|
|
58 |
{
|
|
59 |
}
|
|
60 |
|
|
61 |
TVerdict CCTSYIntegrationTestAlternateLineService0001::doTestStepL()
|
|
62 |
/**
|
|
63 |
* @SYMTestCaseID BA-CTSY-INT-ALLS-0001
|
|
64 |
* @SYMFssID BA/CTSY/ALLS-0001
|
|
65 |
* @SYMTestCaseDesc Get and set ALS line when ALS is not supported by SIM
|
|
66 |
* @SYMTestPriority High
|
|
67 |
* @SYMTestActions RMobilePhone::SetALSLine, RMobilePhone::GetALSLine
|
|
68 |
* @SYMTestExpectedResults Pass - ALS line of unknown or not available returned.
|
|
69 |
* @SYMTestType CIT
|
|
70 |
* @SYMTestCaseDependencies live/automatic
|
|
71 |
*
|
|
72 |
* Reason for test: Verify ALS returned is correct.
|
|
73 |
*
|
|
74 |
* @return - TVerdict code
|
|
75 |
*/
|
|
76 |
{
|
|
77 |
|
|
78 |
//
|
|
79 |
// SET UP
|
|
80 |
//
|
|
81 |
|
|
82 |
RMobilePhone& phone = iEtelSessionMgr.GetPhoneL(KMainServer,KMainPhone);
|
|
83 |
RMmCustomAPI& customApi = iEtelSessionMgr.GetCustomApiL(KMainServer, KMainPhone, KMainCustomApi);
|
|
84 |
// Use CustomApi to request we check whether SIM supports ALS by calling RMmCustomAPI::CheckAlsPpSupport.
|
|
85 |
// This also initialises CTSY's CenRep.
|
|
86 |
TExtEtelRequestStatus checkAlsPpSupportStatus(customApi, ECustomSetDriveModeIPC);
|
|
87 |
CleanupStack::PushL(checkAlsPpSupportStatus);
|
|
88 |
RMmCustomAPI::TAlsSupport alsSupported;
|
|
89 |
customApi.CheckAlsPpSupport(checkAlsPpSupportStatus, alsSupported);
|
|
90 |
ASSERT_EQUALS(WaitForRequestWithTimeOut(checkAlsPpSupportStatus, ETimeMedium), KErrNone,
|
|
91 |
_L("RRMmCustomAPI::CheckAlsPpSupport timed out"));
|
|
92 |
ASSERT_EQUALS(checkAlsPpSupportStatus.Int(), KErrNone,
|
|
93 |
_L("RMmCustomAPI::CheckAlsPpSupport returned an error"));
|
|
94 |
ASSERT_EQUALS(alsSupported, RMmCustomAPI::EAlsSupportOff,
|
|
95 |
_L("RRMmCustomAPI::CheckAlsPpSupport did not return correct status for SIM's ALS Support."));
|
|
96 |
|
|
97 |
// Call TNetworkTsyTestHelper::WaitForRegisteredOnHomeNetworkL
|
|
98 |
CHECK_EQUALS_L(iNetworkTestHelper.WaitForRegisteredOnHomeNetworkL(phone), KErrNone, _L("TNetworkTsyTestHelper::WaitForRegisteredOnHomeNetworkL returned with an error"));
|
|
99 |
|
|
100 |
//
|
|
101 |
// SET UP END
|
|
102 |
//
|
|
103 |
|
|
104 |
StartTest();
|
|
105 |
|
|
106 |
//
|
|
107 |
// TEST START
|
|
108 |
//
|
|
109 |
|
|
110 |
// Check RMobilePhone::GetALSLine returns aALSLine = EAlternateLineUnknown or aALSLine = EAlternateLineNotAvailable
|
|
111 |
RMobilePhone::TMobilePhoneALSLine alsLine;
|
|
112 |
ASSERT_EQUALS(phone.GetALSLine(alsLine), KErrNone, _L("RMobilePhone::GetALSLine returned error."));
|
|
113 |
|
|
114 |
ERR_PRINTF2(_L("<font color=Orange>@CTSYKnownFailure: defect id = %d</font>"), 10058);
|
|
115 |
ASSERT_TRUE(alsLine == (RMobilePhone::EAlternateLineUnknown | RMobilePhone::EAlternateLineNotAvailable),
|
|
116 |
_L("RMobilePhone::GetALSLine returned incorrect line status.") );
|
|
117 |
|
|
118 |
// Post notifier for RMobilePhone::NotifyALSLineChange
|
|
119 |
TExtEtelRequestStatus notifyALSLineChangeStatus(phone, EMobilePhoneNotifyALSLineChange);
|
|
120 |
CleanupStack::PushL(notifyALSLineChangeStatus);
|
|
121 |
RMobilePhone::TMobilePhoneALSLine alsLineNotif;
|
|
122 |
phone.NotifyALSLineChange(notifyALSLineChangeStatus, alsLineNotif);
|
|
123 |
|
|
124 |
// Check RMobilePhone::SetALSLine with aALSLine=EAlternateLineAuxiliary completes with KErrNotSupported
|
|
125 |
RMobilePhone::TMobilePhoneALSLine alsLineSet = RMobilePhone::EAlternateLineAuxiliary;
|
|
126 |
TExtEtelRequestStatus notifyMobilePhoneSetALSLineStatus(phone, EMobilePhoneSetALSLine);
|
|
127 |
CleanupStack::PushL(notifyMobilePhoneSetALSLineStatus);
|
|
128 |
phone.SetALSLine(notifyMobilePhoneSetALSLineStatus, alsLineSet);
|
|
129 |
|
|
130 |
ASSERT_EQUALS(WaitForRequestWithTimeOut(notifyMobilePhoneSetALSLineStatus, ETimeMedium), KErrNone,
|
|
131 |
_L("RMobilePhone::SetALSLine timed-out."));
|
|
132 |
ASSERT_EQUALS(notifyMobilePhoneSetALSLineStatus.Int(), KErrNotSupported,
|
|
133 |
_L("RMobilePhone::SetALSLine did not return with status KErrNotSupported."));
|
|
134 |
|
|
135 |
// Check RMobilePhone::NotifyALSLineChange completes with KErrNotSupported
|
|
136 |
ASSERT_EQUALS(WaitForRequestWithTimeOut(notifyALSLineChangeStatus, ETimeMedium), KErrNotSupported,
|
|
137 |
_L("RMobilePhone::NotifyALSLineChange timed-out"));
|
|
138 |
ASSERT_EQUALS(notifyALSLineChangeStatus.Int(), KErrNotSupported,
|
|
139 |
_L("RMobilePhone::NotifyALSLineChange did not return KErrNotSupported."));
|
|
140 |
|
|
141 |
//
|
|
142 |
// TEST END
|
|
143 |
//
|
|
144 |
|
|
145 |
StartCleanup();
|
|
146 |
|
|
147 |
CleanupStack::PopAndDestroy(3, &checkAlsPpSupportStatus);
|
|
148 |
|
|
149 |
return TestStepResult();
|
|
150 |
}
|
|
151 |
|
|
152 |
TPtrC CCTSYIntegrationTestAlternateLineService0001::GetTestStepName()
|
|
153 |
/**
|
|
154 |
* @return The test step name.
|
|
155 |
*/
|
|
156 |
{
|
|
157 |
return _L("CCTSYIntegrationTestAlternateLineService0001");
|
|
158 |
}
|
|
159 |
|
|
160 |
|
|
161 |
|
|
162 |
CCTSYIntegrationTestAlternateLineService0002::CCTSYIntegrationTestAlternateLineService0002(CEtelSessionMgr& aEtelSessionMgr)
|
|
163 |
: CCTSYIntegrationTestAlternateLineServiceBase(aEtelSessionMgr)
|
|
164 |
/**
|
|
165 |
* Constructor.
|
|
166 |
*/
|
|
167 |
{
|
|
168 |
SetTestStepName(CCTSYIntegrationTestAlternateLineService0002::GetTestStepName());
|
|
169 |
}
|
|
170 |
|
|
171 |
CCTSYIntegrationTestAlternateLineService0002::~CCTSYIntegrationTestAlternateLineService0002()
|
|
172 |
/**
|
|
173 |
* Destructor.
|
|
174 |
*/
|
|
175 |
{
|
|
176 |
}
|
|
177 |
|
|
178 |
TVerdict CCTSYIntegrationTestAlternateLineService0002::doTestStepL()
|
|
179 |
/**
|
|
180 |
* @SYMTestCaseID BA-CTSY-INT-ALLS-0002
|
|
181 |
* @SYMFssID BA/CTSY/ALLS-0002
|
|
182 |
* @SYMTestCaseDesc Set and get the ALS line.
|
|
183 |
* @SYMTestPriority High
|
|
184 |
* @SYMTestActions RMobilePhone::NotifyALSLineChange, RMobilePhone::SetALSLine
|
|
185 |
* @SYMTestExpectedResults Pass - ALS line notification completes.
|
|
186 |
* @SYMTestType CIT
|
|
187 |
* @SYMTestCaseDependencies live/manual
|
|
188 |
*
|
|
189 |
* Reason for test: Verify ALS notification completes.
|
|
190 |
*
|
|
191 |
* @return - TVerdict code
|
|
192 |
*/
|
|
193 |
{
|
|
194 |
|
|
195 |
//
|
|
196 |
// SET UP
|
|
197 |
//
|
|
198 |
|
|
199 |
RMobilePhone& phone = iEtelSessionMgr.GetPhoneL(KMainServer,KMainPhone);
|
|
200 |
|
|
201 |
// Call TNetworkTsyTestHelper::WaitForRegisteredOnHomeNetworkL
|
|
202 |
CHECK_EQUALS_L(iNetworkTestHelper.WaitForRegisteredOnHomeNetworkL(phone), KErrNone, _L("TNetworkTsyTestHelper::WaitForRegisteredOnHomeNetworkL returned with an error"));
|
|
203 |
|
|
204 |
//
|
|
205 |
// SET UP END
|
|
206 |
//
|
|
207 |
|
|
208 |
StartTest();
|
|
209 |
|
|
210 |
//
|
|
211 |
// TEST START
|
|
212 |
//
|
|
213 |
|
|
214 |
|
|
215 |
// Insert SIM which supports a primary voice line and an aux voice line.
|
|
216 |
DisplayUserInteractionPromptL(_L("Ensure you are using a SIM that has ALS enabled."), ETimeLong);
|
|
217 |
|
|
218 |
// Post notifier for RMobilePhone::NotifyALSLineChange
|
|
219 |
TExtEtelRequestStatus notifyALSLineChangeStatus(phone, EMobilePhoneNotifyALSLineChange);
|
|
220 |
CleanupStack::PushL(notifyALSLineChangeStatus);
|
|
221 |
RMobilePhone::TMobilePhoneALSLine alsLineNotif;
|
|
222 |
phone.NotifyALSLineChange(notifyALSLineChangeStatus, alsLineNotif);
|
|
223 |
|
|
224 |
// Set the ALS line with RMobilePhone::SetALSLine with aALSLine=EAlternateLineAuxiliary
|
|
225 |
RMobilePhone::TMobilePhoneALSLine alsLineSet = RMobilePhone::EAlternateLineAuxiliary;
|
|
226 |
TExtEtelRequestStatus notifyMobilePhoneSetALSLineStatus(phone, EMobilePhoneSetALSLine);
|
|
227 |
CleanupStack::PushL(notifyMobilePhoneSetALSLineStatus);
|
|
228 |
phone.SetALSLine(notifyMobilePhoneSetALSLineStatus, alsLineSet);
|
|
229 |
ASSERT_EQUALS(WaitForRequestWithTimeOut(notifyMobilePhoneSetALSLineStatus, ETimeMedium), KErrNone,
|
|
230 |
_L("RMobilePhone::SetALSLine timed-out."));
|
|
231 |
ASSERT_EQUALS(notifyMobilePhoneSetALSLineStatus.Int(), KErrNone,
|
|
232 |
_L("RMobilePhone::SetALSLine returned error status."));
|
|
233 |
|
|
234 |
// Check RMobilePhone::NotifyALSLineChange completes with aALSLine=EAlternateLineAuxiliary
|
|
235 |
ASSERT_EQUALS(WaitForRequestWithTimeOut(notifyALSLineChangeStatus, ETimeMedium), KErrNone,
|
|
236 |
_L("RMobilePhone::NotifyALSLineChange timed-out."));
|
|
237 |
ASSERT_EQUALS(notifyALSLineChangeStatus.Int(), KErrNone,
|
|
238 |
_L("RMobilePhone::NotifyALSLineChange returned with an error status."));
|
|
239 |
ASSERT_EQUALS(alsLineNotif, alsLineSet,
|
|
240 |
_L("RMobilePhone::NotifyALSLineChange returned unexpected ALS line."));
|
|
241 |
|
|
242 |
// Check RMobilePhone::GetALSLine returns aALSLine=EAlternateLineAuxiliary
|
|
243 |
RMobilePhone::TMobilePhoneALSLine alsLineGet;
|
|
244 |
ASSERT_EQUALS(phone.GetALSLine(alsLineGet), KErrNone, _L("RMobilePhone::GetALSLine returned error."));
|
|
245 |
ASSERT_EQUALS(alsLineGet, alsLineSet,
|
|
246 |
_L("RMobilePhone::GetALSLine returned incorrect ALS line."));
|
|
247 |
|
|
248 |
// Post notifier for RMobilePhone::NotifyALSLineChange
|
|
249 |
phone.NotifyALSLineChange(notifyALSLineChangeStatus, alsLineNotif);
|
|
250 |
|
|
251 |
// Set the ALS line with RMobilePhone::SetALSLine with aALSLine=EAlternateLinePrimary
|
|
252 |
alsLineSet = RMobilePhone::EAlternateLinePrimary;
|
|
253 |
phone.SetALSLine(notifyMobilePhoneSetALSLineStatus, alsLineSet);
|
|
254 |
ASSERT_EQUALS(WaitForRequestWithTimeOut(notifyMobilePhoneSetALSLineStatus, ETimeMedium), KErrNone,
|
|
255 |
_L("RMobilePhone::SetALSLine timed-out."));
|
|
256 |
ASSERT_EQUALS(notifyMobilePhoneSetALSLineStatus.Int(), KErrNone,
|
|
257 |
_L("RMobilePhone::SetALSLine returned error status."));
|
|
258 |
|
|
259 |
// Check RMobilePhone::NotifyALSLineChange completes with aALSLine=EAlternateLinePrimary
|
|
260 |
ASSERT_EQUALS(WaitForRequestWithTimeOut(notifyALSLineChangeStatus, ETimeMedium), KErrNone,
|
|
261 |
_L("RMobilePhone::NotifyALSLineChange timed-out."));
|
|
262 |
ASSERT_EQUALS(notifyALSLineChangeStatus.Int(), KErrNone,
|
|
263 |
_L("RMobilePhone::NotifyALSLineChange returned with an error status."));
|
|
264 |
ASSERT_EQUALS(alsLineNotif, alsLineSet,
|
|
265 |
_L("RMobilePhone::NotifyALSLineChange returned unexpected ALS line."));
|
|
266 |
|
|
267 |
// Check RMobilePhone::GetALSLine returns aALSLine=EAlternateLinePrimary
|
|
268 |
ASSERT_EQUALS(phone.GetALSLine(alsLineGet), KErrNone, _L("RMobilePhone::GetALSLine returned error."));
|
|
269 |
ASSERT_EQUALS(alsLineGet, alsLineSet,
|
|
270 |
_L("RMobilePhone::GetALSLine returned incorrect ALS line."));
|
|
271 |
|
|
272 |
//
|
|
273 |
// TEST END
|
|
274 |
//
|
|
275 |
|
|
276 |
StartCleanup();
|
|
277 |
|
|
278 |
CleanupStack::PopAndDestroy(2, ¬ifyALSLineChangeStatus);
|
|
279 |
|
|
280 |
return TestStepResult();
|
|
281 |
}
|
|
282 |
|
|
283 |
TPtrC CCTSYIntegrationTestAlternateLineService0002::GetTestStepName()
|
|
284 |
/**
|
|
285 |
* @return The test step name.
|
|
286 |
*/
|
|
287 |
{
|
|
288 |
return _L("CCTSYIntegrationTestAlternateLineService0002");
|
|
289 |
}
|
|
290 |
|
|
291 |
|
|
292 |
|
|
293 |
CCTSYIntegrationTestAlternateLineService0003::CCTSYIntegrationTestAlternateLineService0003(CEtelSessionMgr& aEtelSessionMgr)
|
|
294 |
: CCTSYIntegrationTestAlternateLineServiceBase(aEtelSessionMgr)
|
|
295 |
/**
|
|
296 |
* Constructor.
|
|
297 |
*/
|
|
298 |
{
|
|
299 |
SetTestStepName(CCTSYIntegrationTestAlternateLineService0003::GetTestStepName());
|
|
300 |
}
|
|
301 |
|
|
302 |
CCTSYIntegrationTestAlternateLineService0003::~CCTSYIntegrationTestAlternateLineService0003()
|
|
303 |
/**
|
|
304 |
* Destructor.
|
|
305 |
*/
|
|
306 |
{
|
|
307 |
}
|
|
308 |
|
|
309 |
TVerdict CCTSYIntegrationTestAlternateLineService0003::doTestStepL()
|
|
310 |
/**
|
|
311 |
* @SYMTestCaseID BA-CTSY-INT-ALLS-0003
|
|
312 |
* @SYMFssID BA/CTSY/ALLS-0003
|
|
313 |
* @SYMTestCaseDesc Make a call using alternate line.
|
|
314 |
* @SYMTestPriority High
|
|
315 |
* @SYMTestActions RCall::HangUp, RMobileLine::NotifyMobileLineStatusChange, RMobileCall::GetMobileCallStatus, RCall::Dial, RLine::GetCaps, RCall::NotifyStatusChange, RMobileCall::NotifyMobileCallStatusChange, RMobileLine::GetMobileLineStatus, RLine::GetStatus, RCall::GetStatus
|
|
316 |
* @SYMTestExpectedResults Pass - Call is connected.
|
|
317 |
* @SYMTestType CIT
|
|
318 |
* @SYMTestCaseDependencies live/manual
|
|
319 |
*
|
|
320 |
* Reason for test: Verify call and line status
|
|
321 |
*
|
|
322 |
* @return - TVerdict code
|
|
323 |
*/
|
|
324 |
{
|
|
325 |
/* *******
|
|
326 |
* LTSY Issue: LTSY is not returning acknowledgement that the Sim is ALS enanbled.
|
|
327 |
* Waiting for response from Teleca to see if we have to call another api first.
|
|
328 |
*
|
|
329 |
* CTSY's SetALSLine behaviour is as follows:
|
|
330 |
* - it evaluates that SIM does not support ALS.... alsSupportedBySim: 0
|
|
331 |
* - so 'ME' based ALS is used (what is this?)
|
|
332 |
* - so when we call SetALSLine(), it sets its CenRep MEAlsLineInfo to what we pass it (EAlternateLineAuxiliary)
|
|
333 |
* and CMmPhoneTsy::iAlsLine to EAlternateLineAuxiliary. Then completes the Notify & calls ReqCompleted().
|
|
334 |
*
|
|
335 |
* CTSY's GetALSLine behaviour:
|
|
336 |
* - it evaluates that SIM does not support ALS.... alsSupportedBySim: 0
|
|
337 |
* - gets Default als info from Central Repository as EAlternateLineAuxiliary
|
|
338 |
* - sets client's variable as EAlternateLineAuxiliary, then calls ReqCompleted()
|
|
339 |
*
|
|
340 |
* Because CTSY can not recognize the SIM to be ALS (& assumes its "ME" ALS line is Aux)
|
|
341 |
* the Dial fails to complete. CTelObject::ReqCompleted, IPC=80, TsyHandle=24, Error=-282591234
|
|
342 |
* *******/
|
|
343 |
//
|
|
344 |
// SET UP
|
|
345 |
//
|
|
346 |
|
|
347 |
// Call TNetworkTsyTestHelper::WaitForRegisteredOnHomeNetworkL
|
|
348 |
RMobilePhone& phone = iEtelSessionMgr.GetPhoneL(KMainServer,KMainPhone);
|
|
349 |
CHECK_EQUALS_L(iNetworkTestHelper.WaitForRegisteredOnHomeNetworkL(phone), KErrNone,
|
|
350 |
_L("TNetworkTsyTestHelper::WaitForRegisteredOnHomeNetworkL returned with an error"));
|
|
351 |
|
|
352 |
RMmCustomAPI& customApi = iEtelSessionMgr.GetCustomApiL(KMainServer, KMainPhone, KMainCustomApi);
|
|
353 |
User::After(10000000);
|
|
354 |
|
|
355 |
ERR_PRINTF2(_L("<font color=Orange>@CTSYKnownFailure: defect id = %d</font>"), 10059);
|
|
356 |
|
|
357 |
//********
|
|
358 |
// Recommended by Olavi.... Call GetCustomerServiceProfile() to check if ALS set
|
|
359 |
TExtEtelRequestStatus getCustomerServiceProfileStatus(customApi, ECustomSetDriveModeIPC);
|
|
360 |
CleanupStack::PushL(getCustomerServiceProfileStatus);
|
|
361 |
RMobilePhone::TMobilePhoneCspFileV1 cspProfile;
|
|
362 |
RMobilePhone::TMobilePhoneCspFileV1Pckg cspProfilePckg(cspProfile);
|
|
363 |
phone.GetCustomerServiceProfile(getCustomerServiceProfileStatus, cspProfilePckg);
|
|
364 |
ASSERT_EQUALS(WaitForRequestWithTimeOut(getCustomerServiceProfileStatus, ETimeLong), KErrNone,
|
|
365 |
_L("RMobilePhone::GetCustomerServiceProfile timed out"));
|
|
366 |
ASSERT_EQUALS(getCustomerServiceProfileStatus.Int(), KErrNone,
|
|
367 |
_L("RMobilePhone::GetCustomerServiceProfile returned an error"));
|
|
368 |
|
|
369 |
// check if cspProfile.iCphsTeleservices == RMobilePhone::KCspALS
|
|
370 |
DEBUG_PRINTF2(_L("cspProfile.iCphsTeleservices: %d"), cspProfile.iCphsTeleservices);
|
|
371 |
// ASSERT_BITS_SET(cspProfile.iCphsTeleservices, RMobilePhone::KCspALS,
|
|
372 |
// _L("RMobilePhone::GetCustomerServiceProfile did not return correct values."));
|
|
373 |
|
|
374 |
CleanupStack::PopAndDestroy(); // getCustomerServiceProfileStatus
|
|
375 |
// ... end of Olavi
|
|
376 |
//********
|
|
377 |
|
|
378 |
// Use CustomApi to request we check whether SIM supports ALS by calling RMmCustomAPI::CheckAlsPpSupport.
|
|
379 |
// This also initialises CTSY's CenRep.
|
|
380 |
TExtEtelRequestStatus checkAlsPpSupportStatus(customApi, ECustomSetDriveModeIPC);
|
|
381 |
CleanupStack::PushL(checkAlsPpSupportStatus);
|
|
382 |
RMmCustomAPI::TAlsSupport alsSupported;
|
|
383 |
customApi.CheckAlsPpSupport(checkAlsPpSupportStatus, alsSupported);
|
|
384 |
ASSERT_EQUALS(WaitForRequestWithTimeOut(checkAlsPpSupportStatus, ETimeMedium), KErrNone,
|
|
385 |
_L("RRMmCustomAPI::CheckAlsPpSupport timed out"));
|
|
386 |
ASSERT_EQUALS(checkAlsPpSupportStatus.Int(), KErrNone,
|
|
387 |
_L("RMmCustomAPI::CheckAlsPpSupport returned an error"));
|
|
388 |
ASSERT_EQUALS(alsSupported, RMmCustomAPI::EAlsSupportOn,
|
|
389 |
_L("RRMmCustomAPI::CheckAlsPpSupport did not return correct status for SIM's ALS Support."));
|
|
390 |
DEBUG_PRINTF2(_L("CheckAlsPpSupport returned alsSupported:%d"), alsSupported);
|
|
391 |
|
|
392 |
// Check Als blocked status
|
|
393 |
RMmCustomAPI::TGetAlsBlockStatus alsBlockStatus;
|
|
394 |
customApi.GetAlsBlocked(alsBlockStatus);
|
|
395 |
DEBUG_PRINTF2(_L("GetAlsBlocked returned alsBlockStatus:%d"), alsSupported);
|
|
396 |
|
|
397 |
// Insert SIM which supports a primary voice line and an aux voice line.
|
|
398 |
DisplayUserInteractionPromptL(_L("Ensure you are using a SIM that has ALS enabled."), ETimeLong);
|
|
399 |
|
|
400 |
// Post notifier for RMobilePhone::NotifyALSLineChange
|
|
401 |
TExtEtelRequestStatus notifyALSLineChangeStatus(phone, EMobilePhoneNotifyALSLineChange);
|
|
402 |
CleanupStack::PushL(notifyALSLineChangeStatus);
|
|
403 |
RMobilePhone::TMobilePhoneALSLine alsLineNotif;
|
|
404 |
phone.NotifyALSLineChange(notifyALSLineChangeStatus, alsLineNotif);
|
|
405 |
|
|
406 |
// Set the ALS line with RMobilePhone::SetALSLine with aALSLine=EAlternateLineAuxiliary
|
|
407 |
RMobilePhone::TMobilePhoneALSLine alsLineSet = RMobilePhone::EAlternateLineAuxiliary;
|
|
408 |
TExtEtelRequestStatus notifyMobilePhoneSetALSLineStatus(phone, EMobilePhoneSetALSLine);
|
|
409 |
CleanupStack::PushL(notifyMobilePhoneSetALSLineStatus);
|
|
410 |
phone.SetALSLine(notifyMobilePhoneSetALSLineStatus, alsLineSet);
|
|
411 |
ASSERT_EQUALS(WaitForRequestWithTimeOut(notifyMobilePhoneSetALSLineStatus, ETimeMedium), KErrNone,
|
|
412 |
_L("RMobilePhone::SetALSLine timed-out."));
|
|
413 |
ASSERT_EQUALS(notifyMobilePhoneSetALSLineStatus.Int(), KErrNone,
|
|
414 |
_L("RMobilePhone::SetALSLine returned error status."));
|
|
415 |
|
|
416 |
// Check RMobilePhone::NotifyALSLineChange completes with aALSLine=EAlternateLineAuxiliary
|
|
417 |
ASSERT_EQUALS(WaitForRequestWithTimeOut(notifyALSLineChangeStatus, ETimeMedium), KErrNone,
|
|
418 |
_L("RMobilePhone::NotifyALSLineChange timed-out."));
|
|
419 |
ASSERT_EQUALS(notifyALSLineChangeStatus.Int(), KErrNone,
|
|
420 |
_L("RMobilePhone::NotifyALSLineChange returned with an error status."));
|
|
421 |
ASSERT_EQUALS(alsLineNotif, alsLineSet,
|
|
422 |
_L("RMobilePhone::NotifyALSLineChange returned unexpected ALS line."));
|
|
423 |
|
|
424 |
// Check RMobilePhone::GetALSLine returns aALSLine=EAlternateLineAuxiliary
|
|
425 |
RMobilePhone::TMobilePhoneALSLine alsLineGet;
|
|
426 |
ASSERT_EQUALS(phone.GetALSLine(alsLineGet), KErrNone, _L("RMobilePhone::GetALSLine returned error."));
|
|
427 |
ASSERT_EQUALS(alsLineGet, alsLineSet,
|
|
428 |
_L("RMobilePhone::GetALSLine returned incorrect ALS line."));
|
|
429 |
|
|
430 |
// Get voice line 1.
|
|
431 |
RMobileLine& voiceLine = iEtelSessionMgr.GetLineL(KMainServer, KMainPhone, KAuxLine);
|
|
432 |
|
|
433 |
// Get call 1
|
|
434 |
RMobileCall& call1 = iEtelSessionMgr.GetCallL(KMainServer, KMainPhone, KAuxLine, KCall1);
|
|
435 |
|
|
436 |
// Check RLine::GetCaps on line 1 returns caps in set of KCapsAuxVoice
|
|
437 |
RLine::TCaps lineCaps;
|
|
438 |
ASSERT_EQUALS(voiceLine.GetCaps(lineCaps), KErrNone,
|
|
439 |
_L("RMobileLine::GetCaps returned an error"));
|
|
440 |
ASSERT_BITS_SET(lineCaps.iFlags, RMobileLine::KCapsAuxVoice, KNoUnwantedBits,
|
|
441 |
_L("RLine::GetCaps returned wrong caps"));
|
|
442 |
|
|
443 |
//
|
|
444 |
// SET UP END
|
|
445 |
//
|
|
446 |
|
|
447 |
StartTest();
|
|
448 |
|
|
449 |
//
|
|
450 |
// TEST START
|
|
451 |
//
|
|
452 |
|
|
453 |
// Check RLine::GetCaps supports caps in set of KCapsVoice.
|
|
454 |
CHECK_BITS_SET_L(lineCaps.iFlags, RLine::KCapsVoice, KNoUnwantedBits,
|
|
455 |
_L("RLine::GetCaps returned wrong caps"));
|
|
456 |
|
|
457 |
// Post Notifier for RCall::NotifyStatusChange
|
|
458 |
TCoreEtelRequestStatus<RCall> notifyStatusChangeStatus(call1, &RCall::NotifyStatusChangeCancel);
|
|
459 |
CleanupStack::PushL(notifyStatusChangeStatus);
|
|
460 |
RCall::TStatus callStatus;
|
|
461 |
call1.NotifyStatusChange(notifyStatusChangeStatus, callStatus);
|
|
462 |
|
|
463 |
// Post Notifier for RMobileCall::NotifyMobileCallStatusChange
|
|
464 |
TExtEtelRequestStatus notifyMobileCallStatusChangeStatus(call1, EMobileCallNotifyMobileCallStatusChange);
|
|
465 |
CleanupStack::PushL(notifyMobileCallStatusChangeStatus);
|
|
466 |
RMobileCall::TMobileCallStatus mobileCallStatus;
|
|
467 |
call1.NotifyMobileCallStatusChange(notifyMobileCallStatusChangeStatus, mobileCallStatus);
|
|
468 |
|
|
469 |
// Post a notifier for RLine::NotifyStatusChange
|
|
470 |
TCoreEtelRequestStatus<RLine> notifyLineStatusChangeStatus (voiceLine,&RLine::NotifyStatusChangeCancel);
|
|
471 |
CleanupStack::PushL(notifyLineStatusChangeStatus);
|
|
472 |
RCall::TStatus lineStatus;
|
|
473 |
voiceLine.NotifyStatusChange(notifyLineStatusChangeStatus, lineStatus);
|
|
474 |
|
|
475 |
// Post a notifier for RMobileLine::NotifyMobileLineStatusChange
|
|
476 |
TExtEtelRequestStatus notifyMobileLineChangeStatus(voiceLine, EMobileLineNotifyMobileLineStatusChange);
|
|
477 |
CleanupStack::PushL(notifyMobileLineChangeStatus);
|
|
478 |
RMobileCall::TMobileCallStatus mobileLineStatus;
|
|
479 |
voiceLine.NotifyMobileLineStatusChange(notifyMobileLineChangeStatus, mobileLineStatus);
|
|
480 |
|
|
481 |
// Dial a number that answers with RCall::Dial
|
|
482 |
TPtrC number;
|
|
483 |
ASSERT_TRUE(GetStringFromConfig(KIniVoiceNumSection, KIniVoiceNumber1, number) != EFalse,
|
|
484 |
_L("GetStringFromConfig did not complete as expected"));
|
|
485 |
DEBUG_PRINTF1(_L("Board Now Dialling: "));
|
|
486 |
TCoreEtelRequestStatus<RCall> dialStatus(call1, &RCall::DialCancel);
|
|
487 |
CleanupStack::PushL(dialStatus);
|
|
488 |
call1.Dial(dialStatus, number);
|
|
489 |
ASSERT_EQUALS(WaitForRequestWithTimeOut(dialStatus, ETimeMedium), KErrNone, _L("RCall::Dial timed-out"));
|
|
490 |
ASSERT_EQUALS(dialStatus.Int(), KErrNone, _L("RCall::Dial returned with an error"));
|
|
491 |
|
|
492 |
// === Check call status ===
|
|
493 |
|
|
494 |
// Check RCall::NotifyStatusChange completes with EStatusDialling -> EStatusConnecting -> EStatusConnected.
|
|
495 |
TInt expectedStatus = KErrNone;
|
|
496 |
RCall::TStatus expectedCallStatus = RCall::EStatusDialling;
|
|
497 |
iCallControlTestHelper.WaitForCallNotifyStatusChange(call1,
|
|
498 |
notifyStatusChangeStatus,
|
|
499 |
callStatus,
|
|
500 |
expectedCallStatus,
|
|
501 |
expectedStatus);
|
|
502 |
|
|
503 |
call1.NotifyStatusChange(notifyStatusChangeStatus, callStatus);
|
|
504 |
expectedCallStatus = RCall::EStatusConnecting;
|
|
505 |
iCallControlTestHelper.WaitForCallNotifyStatusChange(call1,
|
|
506 |
notifyStatusChangeStatus,
|
|
507 |
callStatus,
|
|
508 |
expectedCallStatus,
|
|
509 |
expectedStatus);
|
|
510 |
|
|
511 |
call1.NotifyStatusChange(notifyStatusChangeStatus, callStatus);
|
|
512 |
expectedCallStatus = RCall::EStatusConnected;
|
|
513 |
iCallControlTestHelper.WaitForCallNotifyStatusChange(call1,
|
|
514 |
notifyStatusChangeStatus,
|
|
515 |
callStatus,
|
|
516 |
expectedCallStatus,
|
|
517 |
expectedStatus);
|
|
518 |
|
|
519 |
// Check RCall::GetStatus returns EStatusConnected.
|
|
520 |
ASSERT_EQUALS(call1.GetStatus(callStatus), KErrNone,
|
|
521 |
_L("RCall::GetStatus returned an error."));
|
|
522 |
ASSERT_EQUALS(callStatus, RCall::EStatusConnected,
|
|
523 |
_L("RCall::GetStatus did not return EStatusConnected."));
|
|
524 |
|
|
525 |
// Check RMobileCall::NotifyMobileCallStatusChange completes with EStatusDialling -> EStatusConnecting -> EStatusConnected.
|
|
526 |
const TInt wantedStatus = KErrNone;
|
|
527 |
RMobileCall::TMobileCallStatus expectedMobileCallStatus = RMobileCall::EStatusDialling;
|
|
528 |
iCallControlTestHelper.WaitForMobileCallNotifyMobileCallStatusChange(call1,
|
|
529 |
notifyMobileCallStatusChangeStatus,
|
|
530 |
mobileCallStatus,
|
|
531 |
expectedMobileCallStatus,
|
|
532 |
wantedStatus);
|
|
533 |
|
|
534 |
call1.NotifyMobileCallStatusChange(notifyMobileCallStatusChangeStatus, mobileCallStatus);
|
|
535 |
expectedMobileCallStatus = RMobileCall::EStatusConnecting;
|
|
536 |
iCallControlTestHelper.WaitForMobileCallNotifyMobileCallStatusChange(call1,
|
|
537 |
notifyMobileCallStatusChangeStatus,
|
|
538 |
mobileCallStatus,
|
|
539 |
expectedMobileCallStatus,
|
|
540 |
wantedStatus);
|
|
541 |
|
|
542 |
call1.NotifyMobileCallStatusChange(notifyMobileCallStatusChangeStatus, mobileCallStatus);
|
|
543 |
expectedMobileCallStatus = RMobileCall::EStatusConnected;
|
|
544 |
iCallControlTestHelper.WaitForMobileCallNotifyMobileCallStatusChange(call1,
|
|
545 |
notifyMobileCallStatusChangeStatus,
|
|
546 |
mobileCallStatus,
|
|
547 |
expectedMobileCallStatus,
|
|
548 |
wantedStatus);
|
|
549 |
|
|
550 |
// Check RMobileCall::GetMobileCallStatus returns status of EStatusConnected.
|
|
551 |
ASSERT_EQUALS(call1.GetMobileCallStatus(mobileCallStatus), KErrNone,
|
|
552 |
_L("RMobileCall::GetMobileStatus returned an error"));
|
|
553 |
ASSERT_EQUALS(mobileCallStatus, RMobileCall::EStatusConnected,
|
|
554 |
_L("RMobileCall::GetMobileStatus did not return a status EStatusConnected"));
|
|
555 |
|
|
556 |
// === Check line status ===
|
|
557 |
|
|
558 |
// Check RLine::NotifyStatusChange completes with EStatusDialling -> EStatusConnecting -> EStatusConnected.
|
|
559 |
RCall::TStatus expectedLineStatus = RCall::EStatusDialling;
|
|
560 |
iCallControlTestHelper.WaitForLineNotifyStatusChange(voiceLine,
|
|
561 |
notifyLineStatusChangeStatus,
|
|
562 |
lineStatus,
|
|
563 |
expectedLineStatus,
|
|
564 |
expectedStatus);
|
|
565 |
|
|
566 |
expectedLineStatus = RCall::EStatusConnecting;
|
|
567 |
voiceLine.NotifyStatusChange(notifyLineStatusChangeStatus, lineStatus);
|
|
568 |
iCallControlTestHelper.WaitForLineNotifyStatusChange(voiceLine,
|
|
569 |
notifyLineStatusChangeStatus,
|
|
570 |
lineStatus,
|
|
571 |
expectedLineStatus,
|
|
572 |
expectedStatus);
|
|
573 |
|
|
574 |
expectedLineStatus = RCall::EStatusConnected;
|
|
575 |
voiceLine.NotifyStatusChange(notifyLineStatusChangeStatus, lineStatus);
|
|
576 |
iCallControlTestHelper.WaitForLineNotifyStatusChange(voiceLine,
|
|
577 |
notifyLineStatusChangeStatus,
|
|
578 |
lineStatus,
|
|
579 |
expectedLineStatus,
|
|
580 |
expectedStatus);
|
|
581 |
|
|
582 |
// Check RLine::GetStatus returns EStatusConnected
|
|
583 |
ASSERT_EQUALS(voiceLine.GetStatus(lineStatus), KErrNone,
|
|
584 |
_L("RLine::GetStatus returned an error"));
|
|
585 |
ASSERT_EQUALS(lineStatus, RCall::EStatusConnected,
|
|
586 |
_L("RLine::GetStatus did not set line status to EStatusConnected as expected"));
|
|
587 |
|
|
588 |
// Check RMobileLine::NotifyMobileLineStatusChange completes with with EStatusDialling -> EStatusConnecting -> EStatusConnected.
|
|
589 |
RMobileCall::TMobileCallStatus expectedMobileLineStatus = RMobileCall::EStatusDialling;
|
|
590 |
iCallControlTestHelper.WaitForMobileLineNotifyMobileLineStatusChange(voiceLine,
|
|
591 |
notifyMobileLineChangeStatus,
|
|
592 |
mobileLineStatus,
|
|
593 |
expectedMobileLineStatus,
|
|
594 |
expectedStatus);
|
|
595 |
|
|
596 |
voiceLine.NotifyMobileLineStatusChange(notifyMobileLineChangeStatus, mobileLineStatus);
|
|
597 |
expectedMobileLineStatus = RMobileCall::EStatusConnecting;
|
|
598 |
iCallControlTestHelper.WaitForMobileLineNotifyMobileLineStatusChange(voiceLine,
|
|
599 |
notifyMobileLineChangeStatus,
|
|
600 |
mobileLineStatus,
|
|
601 |
expectedMobileLineStatus,
|
|
602 |
expectedStatus);
|
|
603 |
|
|
604 |
voiceLine.NotifyMobileLineStatusChange(notifyMobileLineChangeStatus, mobileLineStatus);
|
|
605 |
expectedMobileLineStatus = RMobileCall::EStatusConnected;
|
|
606 |
iCallControlTestHelper.WaitForMobileLineNotifyMobileLineStatusChange(voiceLine,
|
|
607 |
notifyMobileLineChangeStatus,
|
|
608 |
mobileLineStatus,
|
|
609 |
expectedMobileLineStatus,
|
|
610 |
expectedStatus);
|
|
611 |
|
|
612 |
// Check RMobileLine::GetMobileLineStatus returns EStatusConnected
|
|
613 |
ASSERT_EQUALS(voiceLine.GetMobileLineStatus(mobileLineStatus), KErrNone,
|
|
614 |
_L("RMobileLine::GetMobileLineStatus returned an error"));
|
|
615 |
ASSERT_EQUALS(mobileLineStatus, RMobileCall::EStatusConnected,
|
|
616 |
_L("RMobileLine::GetMobileLineStatus did not set status to EStatusConnected"));
|
|
617 |
|
|
618 |
// Post Notifiers
|
|
619 |
call1.NotifyStatusChange(notifyStatusChangeStatus, callStatus);
|
|
620 |
call1.NotifyMobileCallStatusChange(notifyMobileCallStatusChangeStatus, mobileCallStatus);
|
|
621 |
voiceLine.NotifyStatusChange(notifyLineStatusChangeStatus, lineStatus);
|
|
622 |
voiceLine.NotifyMobileLineStatusChange(notifyMobileLineChangeStatus, mobileLineStatus);
|
|
623 |
|
|
624 |
// Hang up with RCall::HangUp
|
|
625 |
ASSERT_EQUALS(call1.HangUp(), KErrNone, _L("RMobileCall::HangUp returned error."));
|
|
626 |
|
|
627 |
// === Check call status ===
|
|
628 |
|
|
629 |
// Check RCall::NotifyStatusChange completes with EStatusHangingUp -> EStatusIdle.
|
|
630 |
expectedCallStatus = RCall::EStatusHangingUp;
|
|
631 |
iCallControlTestHelper.WaitForCallNotifyStatusChange(call1,
|
|
632 |
notifyStatusChangeStatus,
|
|
633 |
callStatus,
|
|
634 |
expectedCallStatus,
|
|
635 |
expectedStatus);
|
|
636 |
|
|
637 |
call1.NotifyStatusChange(notifyStatusChangeStatus, callStatus);
|
|
638 |
expectedCallStatus = RCall::EStatusIdle;
|
|
639 |
iCallControlTestHelper.WaitForCallNotifyStatusChange(call1,
|
|
640 |
notifyStatusChangeStatus,
|
|
641 |
callStatus,
|
|
642 |
expectedCallStatus,
|
|
643 |
expectedStatus);
|
|
644 |
|
|
645 |
// Check RCall::GetStatus returns EStatusIdle.
|
|
646 |
ASSERT_EQUALS(call1.GetStatus(callStatus), KErrNone,
|
|
647 |
_L("RCall::GetStatus returned an error."));
|
|
648 |
ASSERT_EQUALS(callStatus, RCall::EStatusIdle,
|
|
649 |
_L("RCall::GetStatus did not return EStatusConnected."));
|
|
650 |
|
|
651 |
// Check RMobileCall::NotifyMobileCallStatusChange completes with EStatusDisconnecting -> EStatusIdle.
|
|
652 |
expectedMobileCallStatus = RMobileCall::EStatusDisconnecting;
|
|
653 |
iCallControlTestHelper.WaitForMobileCallNotifyMobileCallStatusChange(call1,
|
|
654 |
notifyMobileCallStatusChangeStatus,
|
|
655 |
mobileCallStatus,
|
|
656 |
expectedMobileCallStatus,
|
|
657 |
wantedStatus);
|
|
658 |
|
|
659 |
call1.NotifyMobileCallStatusChange(notifyMobileCallStatusChangeStatus, mobileCallStatus);
|
|
660 |
expectedMobileCallStatus = RMobileCall::EStatusIdle;
|
|
661 |
iCallControlTestHelper.WaitForMobileCallNotifyMobileCallStatusChange(call1,
|
|
662 |
notifyMobileCallStatusChangeStatus,
|
|
663 |
mobileCallStatus,
|
|
664 |
expectedMobileCallStatus,
|
|
665 |
wantedStatus);
|
|
666 |
|
|
667 |
// Check RMobileCall::GetMobileCallStatus returns status of EStatusIdle.
|
|
668 |
ASSERT_EQUALS(call1.GetMobileCallStatus(mobileCallStatus), KErrNone,
|
|
669 |
_L("RMobileCall::GetMobileStatus returned an error"));
|
|
670 |
ASSERT_EQUALS(mobileCallStatus, RMobileCall::EStatusIdle,
|
|
671 |
_L("RMobileCall::GetMobileStatus did not return a status EStatusConnected"));
|
|
672 |
|
|
673 |
// === Check line status ===
|
|
674 |
|
|
675 |
// Check RLine::NotifyStatusChange completes with EStatusHangingUp -> EStatusIdle
|
|
676 |
expectedLineStatus = RCall::EStatusHangingUp;
|
|
677 |
iCallControlTestHelper.WaitForLineNotifyStatusChange(voiceLine,
|
|
678 |
notifyLineStatusChangeStatus,
|
|
679 |
lineStatus,
|
|
680 |
expectedLineStatus,
|
|
681 |
expectedStatus);
|
|
682 |
|
|
683 |
expectedLineStatus = RCall::EStatusIdle;
|
|
684 |
voiceLine.NotifyStatusChange(notifyLineStatusChangeStatus, lineStatus);
|
|
685 |
iCallControlTestHelper.WaitForLineNotifyStatusChange(voiceLine,
|
|
686 |
notifyLineStatusChangeStatus,
|
|
687 |
lineStatus,
|
|
688 |
expectedLineStatus,
|
|
689 |
expectedStatus);
|
|
690 |
|
|
691 |
// Check RLine::GetStatus returns EStatusIdle
|
|
692 |
ASSERT_EQUALS(voiceLine.GetStatus(lineStatus), KErrNone,
|
|
693 |
_L("RLine::GetStatus returned an error"));
|
|
694 |
ASSERT_EQUALS(lineStatus, RCall::EStatusIdle,
|
|
695 |
_L("RLine::GetStatus did not set line status to EStatusConnected as expected"));
|
|
696 |
|
|
697 |
// Check RMobileLine::NotifyMobileLineStatusChange completes with EStatusDisconnecting -> EStatusIdle
|
|
698 |
expectedMobileLineStatus = RMobileCall::EStatusDisconnecting;
|
|
699 |
iCallControlTestHelper.WaitForMobileLineNotifyMobileLineStatusChange(voiceLine,
|
|
700 |
notifyMobileLineChangeStatus,
|
|
701 |
mobileLineStatus,
|
|
702 |
expectedMobileLineStatus,
|
|
703 |
expectedStatus);
|
|
704 |
|
|
705 |
voiceLine.NotifyMobileLineStatusChange(notifyMobileLineChangeStatus, mobileLineStatus);
|
|
706 |
expectedMobileLineStatus = RMobileCall::EStatusIdle;
|
|
707 |
iCallControlTestHelper.WaitForMobileLineNotifyMobileLineStatusChange(voiceLine,
|
|
708 |
notifyMobileLineChangeStatus,
|
|
709 |
mobileLineStatus,
|
|
710 |
expectedMobileLineStatus,
|
|
711 |
expectedStatus);
|
|
712 |
|
|
713 |
// Check RMobileLine::GetMobileLineStatus returns EStatusIdle
|
|
714 |
ASSERT_EQUALS(voiceLine.GetMobileLineStatus(mobileLineStatus), KErrNone,
|
|
715 |
_L("RMobileLine::GetMobileLineStatus returned an error"));
|
|
716 |
ASSERT_EQUALS(mobileLineStatus, RMobileCall::EStatusIdle,
|
|
717 |
_L("RMobileLine::GetMobileLineStatus did not set status to EStatusConnected"));
|
|
718 |
|
|
719 |
//
|
|
720 |
// TEST END
|
|
721 |
//
|
|
722 |
|
|
723 |
StartCleanup();
|
|
724 |
|
|
725 |
CleanupStack::PopAndDestroy(8, &checkAlsPpSupportStatus);
|
|
726 |
|
|
727 |
return TestStepResult();
|
|
728 |
}
|
|
729 |
|
|
730 |
TPtrC CCTSYIntegrationTestAlternateLineService0003::GetTestStepName()
|
|
731 |
/**
|
|
732 |
* @return The test step name.
|
|
733 |
*/
|
|
734 |
{
|
|
735 |
return _L("CCTSYIntegrationTestAlternateLineService0003");
|
|
736 |
}
|
|
737 |
|
|
738 |
|
|
739 |
|