204 |
204 |
205 else |
205 else |
206 { |
206 { |
207 if(aLogError == ELogError) |
207 if(aLogError == ELogError) |
208 { |
208 { |
209 TBuf<255> apn, username, password; |
|
210 apn.Copy(iValue.iAccessPointName); |
|
211 username.Copy(iValue.iProtocolConfigOption.iAuthInfo.iUsername); |
|
212 password.Copy(iValue.iProtocolConfigOption.iAuthInfo.iPassword); |
|
213 _LIT(KAssertRPacketContextErrorEqualsTextA,"FAILURE"); |
209 _LIT(KAssertRPacketContextErrorEqualsTextA,"FAILURE"); |
214 _LIT(KAssertRPacketContextErrorEqualsTextB," Got apn=%S,username=%S,password=%S"); |
210 _LIT(KAssertRPacketContextErrorEqualsTextB," Got apn=%S,username=%S,password=%S"); |
215 _LIT(KAssertRPacketContextErrorEqualsTextC," Expected apn=%S,username=%S,password=%S"); |
211 _LIT(KAssertRPacketContextErrorEqualsTextC," Expected apn=%S,username=%S,password=%S"); |
216 ERR_PRINTF1(KAssertRPacketContextErrorEqualsTextA); |
212 ERR_PRINTF1(KAssertRPacketContextErrorEqualsTextA); |
217 ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextB, |
213 ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextB, |
218 &apn, |
214 &iValue.iAccessPointName, |
219 &username, |
215 &iValue.iProtocolConfigOption.iAuthInfo.iUsername, |
220 &password); |
216 &iValue.iProtocolConfigOption.iAuthInfo.iPassword); |
221 apn.SetLength(0); |
|
222 username.SetLength(0); |
|
223 password.SetLength(0); |
|
224 apn.Copy(iExpected.iAccessPointName); |
|
225 username.Copy(iExpected.iProtocolConfigOption.iAuthInfo.iUsername); |
|
226 password.Copy(iExpected.iProtocolConfigOption.iAuthInfo.iPassword); |
|
227 ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextC, |
217 ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextC, |
228 &apn, |
218 &iExpected.iAccessPointName, |
229 &username, |
219 &iExpected.iProtocolConfigOption.iAuthInfo.iUsername, |
230 &password); |
220 &iExpected.iProtocolConfigOption.iAuthInfo.iPassword); |
231 } |
221 } |
232 return EFalse; |
222 return EFalse; |
233 } |
223 } |
234 } |
224 } |
235 |
225 |
254 |
244 |
255 else |
245 else |
256 { |
246 { |
257 if(aLogError == ELogError) |
247 if(aLogError == ELogError) |
258 { |
248 { |
259 TBuf<255> apn, username, password; |
|
260 apn.Copy(iValue.iAccessPointName); |
|
261 username.Copy(iValue.iProtocolConfigOption.iAuthInfo.iUsername); |
|
262 password.Copy(iValue.iProtocolConfigOption.iAuthInfo.iPassword); |
|
263 |
|
264 _LIT(KAssertRPacketContextErrorEqualsTextA,"FAILURE"); |
249 _LIT(KAssertRPacketContextErrorEqualsTextA,"FAILURE"); |
265 _LIT(KAssertRPacketContextErrorEqualsTextB," Got apn=%S,username=%S,password=%S"); |
250 _LIT(KAssertRPacketContextErrorEqualsTextB," Got apn=%S,username=%S,password=%S"); |
266 _LIT(KAssertRPacketContextErrorEqualsTextC," Expected apn=%S,username=%S,password=%S"); |
251 _LIT(KAssertRPacketContextErrorEqualsTextC," Expected apn=%S,username=%S,password=%S"); |
267 ERR_PRINTF1(KAssertRPacketContextErrorEqualsTextA); |
252 ERR_PRINTF1(KAssertRPacketContextErrorEqualsTextA); |
268 ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextB, |
253 ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextB, |
269 &apn, |
254 &iValue.iAccessPointName, |
270 &username, |
255 &iValue.iProtocolConfigOption.iAuthInfo.iUsername, |
271 &password); |
256 &iValue.iProtocolConfigOption.iAuthInfo.iPassword); |
272 apn.SetLength(0); |
|
273 username.SetLength(0); |
|
274 password.SetLength(0); |
|
275 apn.Copy(iExpected.iAccessPointName); |
|
276 username.Copy(iExpected.iProtocolConfigOption.iAuthInfo.iUsername); |
|
277 password.Copy(iExpected.iProtocolConfigOption.iAuthInfo.iPassword); |
|
278 ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextC, |
257 ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextC, |
279 &apn, |
258 &iExpected.iAccessPointName, |
280 &username, |
259 &iExpected.iProtocolConfigOption.iAuthInfo.iUsername, |
281 &password); |
260 &iExpected.iProtocolConfigOption.iAuthInfo.iPassword); |
282 |
|
283 } |
261 } |
284 return EFalse; |
262 return EFalse; |
285 } |
263 } |
286 } |
264 } |
287 |
265 |
306 |
284 |
307 else |
285 else |
308 { |
286 { |
309 if(aLogError == ELogError) |
287 if(aLogError == ELogError) |
310 { |
288 { |
311 TBuf<255> apn, username, password; |
|
312 apn.Copy(iValue.iAccessPointName); |
|
313 username.Copy(iValue.iProtocolConfigOption.iAuthInfo.iUsername); |
|
314 password.Copy(iValue.iProtocolConfigOption.iAuthInfo.iPassword); |
|
315 _LIT(KAssertRPacketContextErrorEqualsTextA,"FAILURE"); |
289 _LIT(KAssertRPacketContextErrorEqualsTextA,"FAILURE"); |
316 _LIT(KAssertRPacketContextErrorEqualsTextB," Got apn=%S,username=%S,password=%S"); |
290 _LIT(KAssertRPacketContextErrorEqualsTextB," Got apn=%S,username=%S,password=%S"); |
317 _LIT(KAssertRPacketContextErrorEqualsTextC," Expected apn=%S,username=%S,password=%S"); |
291 _LIT(KAssertRPacketContextErrorEqualsTextC," Expected apn=%S,username=%S,password=%S"); |
318 ERR_PRINTF1(KAssertRPacketContextErrorEqualsTextA); |
292 ERR_PRINTF1(KAssertRPacketContextErrorEqualsTextA); |
319 ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextB, |
293 ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextB, |
320 &apn, |
294 &iValue.iAccessPointName, |
321 &username, |
295 &iValue.iProtocolConfigOption.iAuthInfo.iUsername, |
322 &password); |
296 &iValue.iProtocolConfigOption.iAuthInfo.iPassword); |
323 apn.SetLength(0); |
|
324 username.SetLength(0); |
|
325 password.SetLength(0); |
|
326 apn.Copy(iExpected.iAccessPointName); |
|
327 username.Copy(iExpected.iProtocolConfigOption.iAuthInfo.iUsername); |
|
328 password.Copy(iExpected.iProtocolConfigOption.iAuthInfo.iPassword); |
|
329 ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextC, |
297 ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextC, |
330 &apn, |
298 &iExpected.iAccessPointName, |
331 &username, |
299 &iExpected.iProtocolConfigOption.iAuthInfo.iUsername, |
332 &password); |
300 &iExpected.iProtocolConfigOption.iAuthInfo.iPassword); |
333 } |
301 } |
334 return EFalse; |
302 return EFalse; |
335 } |
303 } |
336 } |
304 } |
337 |
305 |