author | Oscar Gonzalez <oscar.1.gonzalez@nokia.com> |
Wed, 02 Jun 2010 16:33:50 +0100 | |
branch | opencode |
changeset 32 | 58332560b319 |
parent 24 | 6638e7f4bd8f |
permissions | -rw-r--r-- |
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 |
// |
|
15 |
||
16 |
#include "comparisonfunctions.h" |
|
17 |
||
18 |
TCmpRCallTCallInfo::TCmpRCallTCallInfo |
|
19 |
(RCall::TCallInfo& aExpected, RCall::TCallInfo& aValue, CCTSYIntegrationTestSuiteStepBase& aTestStep) |
|
20 |
: TCmpBase<RCall::TCallInfo>(aExpected, aValue, aTestStep) |
|
21 |
{ |
|
22 |
} |
|
23 |
||
24 |
TBool TCmpRCallTCallInfo::IsEqual(TLogError aLogError) |
|
25 |
/** |
|
26 |
* Check that all the parameters in RCall::TCallInfo are identical. |
|
27 |
*/ |
|
28 |
{ |
|
29 |
if (iExpected.iCallName == iValue.iCallName && |
|
30 |
iExpected.iLineName == iValue.iLineName && |
|
31 |
iExpected.iHookStatus == iValue.iHookStatus && |
|
32 |
iExpected.iDuration == iValue.iDuration) |
|
33 |
{ |
|
34 |
return ETrue; |
|
35 |
} |
|
36 |
else |
|
37 |
{ |
|
38 |
if(aLogError == ELogError) |
|
39 |
{ |
|
40 |
_LIT(KAssertRCallErrorEqualsTextA,"FAILURE"); |
|
41 |
_LIT(KAssertRCallErrorEqualsTextB," Got callname=%S,linename=%S,hookstatus=%d,duration=%d"); |
|
42 |
_LIT(KAssertRCallErrorEqualsTextC," Expected callname=%S,linename=%S,hookstatus=%d,duration=%d"); |
|
43 |
ERR_PRINTF1(KAssertRCallErrorEqualsTextA); |
|
44 |
ERR_PRINTF5(KAssertRCallErrorEqualsTextB, &iExpected.iCallName, &iExpected.iLineName, iExpected.iHookStatus, iExpected.iDuration.Int() ); |
|
45 |
ERR_PRINTF5(KAssertRCallErrorEqualsTextC, &iValue.iCallName, &iValue.iLineName, iValue.iHookStatus, iValue.iDuration.Int() ); |
|
46 |
} |
|
47 |
return EFalse; |
|
48 |
} |
|
49 |
} |
|
50 |
||
51 |
||
52 |
TCmpRCallTCallInfoNoHookValidName::TCmpRCallTCallInfoNoHookValidName |
|
53 |
(RCall::TCallInfo& aExpected, RCall::TCallInfo& aValue, CCTSYIntegrationTestSuiteStepBase& aTestStep) |
|
54 |
: TCmpBase<RCall::TCallInfo>(aExpected, aValue, aTestStep) |
|
55 |
{ |
|
56 |
} |
|
57 |
||
58 |
TBool TCmpRCallTCallInfoNoHookValidName::IsEqual(TLogError aLogError) |
|
59 |
/** |
|
60 |
* Check that the call name and line name are not empty, |
|
61 |
* call status is correct and duration is > 0. |
|
62 |
*/ |
|
63 |
{ |
|
64 |
if(iExpected.iCallName.Length() > 0 && |
|
65 |
iExpected.iLineName.Length() > 0 && |
|
66 |
iExpected.iStatus == iValue.iStatus && |
|
67 |
iExpected.iDuration.Int() > 0) |
|
68 |
{ |
|
69 |
return ETrue; |
|
70 |
} |
|
71 |
else |
|
72 |
{ |
|
73 |
if(aLogError == ELogError) |
|
74 |
{ |
|
75 |
_LIT(KAssertRCallErrorEqualsTextA,"FAILURE"); |
|
76 |
_LIT(KAssertRCallErrorEqualsTextB," Got callname=%S,linename=%S,status=%d,duration=%d"); |
|
77 |
_LIT(KAssertRCallErrorEqualsTextC," Expected callname=%S,linename=%S,status=%d,duration=%d"); |
|
78 |
ERR_PRINTF1(KAssertRCallErrorEqualsTextA); |
|
79 |
ERR_PRINTF5(KAssertRCallErrorEqualsTextB, &iExpected.iCallName, &iExpected.iLineName, iExpected.iStatus, iExpected.iDuration.Int() ); |
|
80 |
ERR_PRINTF5(KAssertRCallErrorEqualsTextC, &iValue.iCallName, &iValue.iLineName, iValue.iStatus, iValue.iDuration.Int() ); |
|
81 |
} |
|
82 |
return EFalse; |
|
83 |
} |
|
84 |
} |
|
85 |
||
86 |
TCmpRMobileCallTMobileCallCaps::TCmpRMobileCallTMobileCallCaps |
|
87 |
(RMobileCall::TMobileCallCapsV1& aExpected, RMobileCall::TMobileCallCapsV1& aValue, CCTSYIntegrationTestSuiteStepBase& aTestStep) |
|
88 |
: TCmpBase<RMobileCall::TMobileCallCapsV1>(aExpected, aValue, aTestStep) |
|
89 |
{ |
|
90 |
} |
|
91 |
||
92 |
TBool TCmpRMobileCallTMobileCallCaps::IsEqual(TLogError aLogError) |
|
93 |
/** |
|
94 |
* Check that the Call Control Caps and Call Event Caps flags are are as expected, |
|
95 |
*/ |
|
96 |
{ |
|
97 |
if(( (iValue.iCallControlCaps & iExpected.iCallControlCaps) == iExpected.iCallControlCaps) && |
|
98 |
( (iValue.iCallEventCaps & iExpected.iCallEventCaps) == iExpected.iCallEventCaps)) |
|
99 |
{ |
|
100 |
return ETrue; |
|
101 |
} |
|
102 |
else |
|
103 |
{ |
|
104 |
if(aLogError == ELogError) |
|
105 |
{ |
|
106 |
_LIT(KAssertRCallErrorEqualsTextA,"FAILURE"); |
|
107 |
_LIT(KAssertRCallErrorEqualsTextB," Got CallControlCaps=0x%x,CallEventCaps=0x%x"); |
|
108 |
_LIT(KAssertRCallErrorEqualsTextC," Expected CallControlCaps=0x%x,CallEventCaps=0x%x"); |
|
109 |
ERR_PRINTF1(KAssertRCallErrorEqualsTextA); |
|
110 |
ERR_PRINTF3(KAssertRCallErrorEqualsTextB, iValue.iCallControlCaps, iValue.iCallEventCaps); |
|
111 |
ERR_PRINTF3(KAssertRCallErrorEqualsTextC, iExpected.iCallControlCaps, iExpected.iCallEventCaps); |
|
112 |
} |
|
113 |
return EFalse; |
|
114 |
} |
|
115 |
||
116 |
||
117 |
||
118 |
} |
|
119 |
||
120 |
||
121 |
TCmpRMobileCallTMobileCallRemotePartyInfo::TCmpRMobileCallTMobileCallRemotePartyInfo |
|
122 |
(RMobileCall::TMobileCallRemotePartyInfoV1& aExpected, RMobileCall::TMobileCallRemotePartyInfoV1& aValue, CCTSYIntegrationTestSuiteStepBase& aTestStep) |
|
123 |
: TCmpBase<RMobileCall::TMobileCallRemotePartyInfoV1>(aExpected, aValue, aTestStep) |
|
124 |
{ |
|
125 |
} |
|
126 |
||
127 |
||
128 |
TBool TCmpRMobileCallTMobileCallRemotePartyInfo::IsEqual(TLogError aLogError) |
|
129 |
/** |
|
130 |
* Check that the Direction and Remote Number flags are are as expected, |
|
131 |
*/ |
|
132 |
{ |
|
133 |
if(( iValue.iDirection == iExpected.iDirection) && |
|
134 |
(iValue.iRemoteNumber.iTelNumber == iExpected.iRemoteNumber.iTelNumber) ) |
|
135 |
{ |
|
136 |
return ETrue; |
|
137 |
} |
|
138 |
else |
|
139 |
{ |
|
140 |
if(aLogError == ELogError) |
|
141 |
{ |
|
142 |
_LIT(KAssertRCallErrorEqualsTextA,"FAILURE"); |
|
143 |
_LIT(KAssertRCallErrorEqualsTextB," Got Direction=%X,Remote Number=%X"); |
|
144 |
_LIT(KAssertRCallErrorEqualsTextC," Expected Direction=%X,Remote Number=%X"); |
|
145 |
ERR_PRINTF1(KAssertRCallErrorEqualsTextA); |
|
146 |
ERR_PRINTF3(KAssertRCallErrorEqualsTextB, &iValue.iDirection, &iValue.iRemoteNumber.iTelNumber); |
|
147 |
ERR_PRINTF3(KAssertRCallErrorEqualsTextC,&iExpected.iDirection, &iExpected.iRemoteNumber.iTelNumber); |
|
148 |
} |
|
149 |
return EFalse; |
|
150 |
} |
|
151 |
} |
|
152 |
||
153 |
||
154 |
||
155 |
TCmpTMobilePhoneLockInfoV1NoStatus::TCmpTMobilePhoneLockInfoV1NoStatus |
|
156 |
(RMobilePhone::TMobilePhoneLockInfoV1& aExpected, RMobilePhone::TMobilePhoneLockInfoV1& aValue, CCTSYIntegrationTestSuiteStepBase& aTestStep) |
|
157 |
: TCmpBase<RMobilePhone::TMobilePhoneLockInfoV1>(aExpected, aValue, aTestStep) |
|
158 |
{ |
|
159 |
} |
|
160 |
||
161 |
TBool TCmpTMobilePhoneLockInfoV1NoStatus::IsEqual(TLogError aLogError) |
|
162 |
/** |
|
163 |
* Check that the required parameters in RMobilePhone::TMobilePhoneLockInfoV1 are identical. |
|
164 |
*/ |
|
165 |
{ |
|
166 |
if (iExpected.iSetting == iValue.iSetting |
|
167 |
/* && iExpected.iStatus == iValue.iStatus*/) |
|
168 |
{ |
|
169 |
return ETrue; |
|
170 |
} |
|
171 |
else |
|
172 |
{ |
|
173 |
if(aLogError == ELogError) |
|
174 |
{ |
|
175 |
_LIT(KAssertRMobilePhoneErrorEqualsTextA,"FAILURE"); |
|
176 |
_LIT(KAssertRMobilePhoneErrorEqualsTextB," Got iSetting=%d, iStatus=%d"); |
|
177 |
_LIT(KAssertRMobilePhoneErrorEqualsTextC," Expected iSetting=%d, iStatus=%d"); |
|
178 |
ERR_PRINTF1(KAssertRMobilePhoneErrorEqualsTextA); |
|
179 |
ERR_PRINTF3(KAssertRMobilePhoneErrorEqualsTextB, iExpected.iSetting,iExpected.iStatus); |
|
180 |
ERR_PRINTF3(KAssertRMobilePhoneErrorEqualsTextC, iValue.iSetting, iValue.iStatus); |
|
181 |
} |
|
182 |
return EFalse; |
|
183 |
} |
|
184 |
} |
|
185 |
||
186 |
||
187 |
TCmpRPacketContextTContextConfigGPRS::TCmpRPacketContextTContextConfigGPRS |
|
188 |
(RPacketContext::TContextConfigGPRS& aExpected, RPacketContext::TContextConfigGPRS& aValue, CCTSYIntegrationTestSuiteStepBase& aTestStep) |
|
189 |
: TCmpBase<RPacketContext::TContextConfigGPRS>(aExpected, aValue, aTestStep) |
|
190 |
{ |
|
191 |
} |
|
192 |
||
193 |
TBool TCmpRPacketContextTContextConfigGPRS::IsEqual(TLogError aLogError) |
|
194 |
/** |
|
195 |
* Check that the required parameters in RPacketContext::TContextConfigGPRS are identical. |
|
196 |
*/ |
|
197 |
{ |
|
198 |
if( iExpected.iAccessPointName == iValue.iAccessPointName && |
|
199 |
iExpected.iProtocolConfigOption.iAuthInfo.iUsername == iValue.iProtocolConfigOption.iAuthInfo.iUsername && |
|
200 |
iExpected.iProtocolConfigOption.iAuthInfo.iPassword == iValue.iProtocolConfigOption.iAuthInfo.iPassword) |
|
201 |
{ |
|
202 |
return ETrue; |
|
203 |
} |
|
204 |
||
205 |
else |
|
206 |
{ |
|
207 |
if(aLogError == ELogError) |
|
208 |
{ |
|
32
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
209 |
TBuf<255> apn, username, password; |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
210 |
apn.Copy(iValue.iAccessPointName); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
211 |
username.Copy(iValue.iProtocolConfigOption.iAuthInfo.iUsername); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
212 |
password.Copy(iValue.iProtocolConfigOption.iAuthInfo.iPassword); |
24 | 213 |
_LIT(KAssertRPacketContextErrorEqualsTextA,"FAILURE"); |
214 |
_LIT(KAssertRPacketContextErrorEqualsTextB," Got apn=%S,username=%S,password=%S"); |
|
215 |
_LIT(KAssertRPacketContextErrorEqualsTextC," Expected apn=%S,username=%S,password=%S"); |
|
216 |
ERR_PRINTF1(KAssertRPacketContextErrorEqualsTextA); |
|
217 |
ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextB, |
|
32
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
218 |
&apn, |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
219 |
&username, |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
220 |
&password); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
221 |
apn.SetLength(0); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
222 |
username.SetLength(0); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
223 |
password.SetLength(0); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
224 |
apn.Copy(iExpected.iAccessPointName); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
225 |
username.Copy(iExpected.iProtocolConfigOption.iAuthInfo.iUsername); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
226 |
password.Copy(iExpected.iProtocolConfigOption.iAuthInfo.iPassword); |
24 | 227 |
ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextC, |
32
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
228 |
&apn, |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
229 |
&username, |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
230 |
&password); |
24 | 231 |
} |
232 |
return EFalse; |
|
233 |
} |
|
234 |
} |
|
235 |
||
236 |
||
237 |
TCmpRPacketContextTContextConfigR99_R4::TCmpRPacketContextTContextConfigR99_R4 |
|
238 |
(RPacketContext::TContextConfigR99_R4& aExpected, RPacketContext::TContextConfigR99_R4& aValue, CCTSYIntegrationTestSuiteStepBase& aTestStep) |
|
239 |
: TCmpBase<RPacketContext::TContextConfigR99_R4>(aExpected, aValue, aTestStep) |
|
240 |
{ |
|
241 |
} |
|
242 |
||
243 |
TBool TCmpRPacketContextTContextConfigR99_R4::IsEqual(TLogError aLogError) |
|
244 |
/** |
|
245 |
* Check that the required parameters in RPacketContext::TContextConfigR99_R4 are identical. |
|
246 |
*/ |
|
247 |
{ |
|
248 |
if( iExpected.iAccessPointName == iValue.iAccessPointName && |
|
249 |
iExpected.iProtocolConfigOption.iAuthInfo.iUsername == iValue.iProtocolConfigOption.iAuthInfo.iUsername && |
|
250 |
iExpected.iProtocolConfigOption.iAuthInfo.iPassword == iValue.iProtocolConfigOption.iAuthInfo.iPassword) |
|
251 |
{ |
|
252 |
return ETrue; |
|
253 |
} |
|
254 |
||
255 |
else |
|
256 |
{ |
|
257 |
if(aLogError == ELogError) |
|
258 |
{ |
|
32
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
259 |
TBuf<255> apn, username, password; |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
260 |
apn.Copy(iValue.iAccessPointName); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
261 |
username.Copy(iValue.iProtocolConfigOption.iAuthInfo.iUsername); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
262 |
password.Copy(iValue.iProtocolConfigOption.iAuthInfo.iPassword); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
263 |
|
24 | 264 |
_LIT(KAssertRPacketContextErrorEqualsTextA,"FAILURE"); |
265 |
_LIT(KAssertRPacketContextErrorEqualsTextB," Got apn=%S,username=%S,password=%S"); |
|
266 |
_LIT(KAssertRPacketContextErrorEqualsTextC," Expected apn=%S,username=%S,password=%S"); |
|
267 |
ERR_PRINTF1(KAssertRPacketContextErrorEqualsTextA); |
|
268 |
ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextB, |
|
32
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
269 |
&apn, |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
270 |
&username, |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
271 |
&password); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
272 |
apn.SetLength(0); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
273 |
username.SetLength(0); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
274 |
password.SetLength(0); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
275 |
apn.Copy(iExpected.iAccessPointName); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
276 |
username.Copy(iExpected.iProtocolConfigOption.iAuthInfo.iUsername); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
277 |
password.Copy(iExpected.iProtocolConfigOption.iAuthInfo.iPassword); |
24 | 278 |
ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextC, |
32
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
279 |
&apn, |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
280 |
&username, |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
281 |
&password); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
282 |
|
24 | 283 |
} |
284 |
return EFalse; |
|
285 |
} |
|
286 |
} |
|
287 |
||
288 |
||
289 |
TCmpRPacketContextTContextConfig_R5::TCmpRPacketContextTContextConfig_R5 |
|
290 |
(RPacketContext::TContextConfig_R5& aExpected, RPacketContext::TContextConfig_R5& aValue, CCTSYIntegrationTestSuiteStepBase& aTestStep) |
|
291 |
: TCmpBase<RPacketContext::TContextConfig_R5>(aExpected, aValue, aTestStep) |
|
292 |
{ |
|
293 |
} |
|
294 |
||
295 |
TBool TCmpRPacketContextTContextConfig_R5::IsEqual(TLogError aLogError) |
|
296 |
/** |
|
297 |
* Check that the required parameters in RPacketContext::TContextConfig_R5 are identical. |
|
298 |
*/ |
|
299 |
{ |
|
300 |
if( iExpected.iAccessPointName == iValue.iAccessPointName && |
|
301 |
iExpected.iProtocolConfigOption.iAuthInfo.iUsername == iValue.iProtocolConfigOption.iAuthInfo.iUsername && |
|
302 |
iExpected.iProtocolConfigOption.iAuthInfo.iPassword == iValue.iProtocolConfigOption.iAuthInfo.iPassword) |
|
303 |
{ |
|
304 |
return ETrue; |
|
305 |
} |
|
306 |
||
307 |
else |
|
308 |
{ |
|
309 |
if(aLogError == ELogError) |
|
310 |
{ |
|
32
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
311 |
TBuf<255> apn, username, password; |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
312 |
apn.Copy(iValue.iAccessPointName); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
313 |
username.Copy(iValue.iProtocolConfigOption.iAuthInfo.iUsername); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
314 |
password.Copy(iValue.iProtocolConfigOption.iAuthInfo.iPassword); |
24 | 315 |
_LIT(KAssertRPacketContextErrorEqualsTextA,"FAILURE"); |
316 |
_LIT(KAssertRPacketContextErrorEqualsTextB," Got apn=%S,username=%S,password=%S"); |
|
317 |
_LIT(KAssertRPacketContextErrorEqualsTextC," Expected apn=%S,username=%S,password=%S"); |
|
318 |
ERR_PRINTF1(KAssertRPacketContextErrorEqualsTextA); |
|
319 |
ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextB, |
|
32
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
320 |
&apn, |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
321 |
&username, |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
322 |
&password); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
323 |
apn.SetLength(0); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
324 |
username.SetLength(0); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
325 |
password.SetLength(0); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
326 |
apn.Copy(iExpected.iAccessPointName); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
327 |
username.Copy(iExpected.iProtocolConfigOption.iAuthInfo.iUsername); |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
328 |
password.Copy(iExpected.iProtocolConfigOption.iAuthInfo.iPassword); |
24 | 329 |
ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextC, |
32
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
330 |
&apn, |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
331 |
&username, |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
332 |
&password); |
24 | 333 |
} |
334 |
return EFalse; |
|
335 |
} |
|
336 |
} |
|
337 |