telephonyserverplugins/common_tsy/test/integration/src/comparisonfunctions.cpp
branchRCL_3
changeset 65 630d2f34d719
parent 0 3553901f7fa8
child 66 07a122eea281
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
   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);
   209 			_LIT(KAssertRPacketContextErrorEqualsTextA,"FAILURE");
   213 			_LIT(KAssertRPacketContextErrorEqualsTextA,"FAILURE");
   210 			_LIT(KAssertRPacketContextErrorEqualsTextB," Got apn=%S,username=%S,password=%S");
   214 			_LIT(KAssertRPacketContextErrorEqualsTextB," Got apn=%S,username=%S,password=%S");
   211 			_LIT(KAssertRPacketContextErrorEqualsTextC," Expected apn=%S,username=%S,password=%S");
   215 			_LIT(KAssertRPacketContextErrorEqualsTextC," Expected apn=%S,username=%S,password=%S");
   212 			ERR_PRINTF1(KAssertRPacketContextErrorEqualsTextA);
   216 			ERR_PRINTF1(KAssertRPacketContextErrorEqualsTextA);
   213 			ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextB, 
   217 			ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextB, 
   214 				&iValue.iAccessPointName,
   218 				&apn,
   215 				&iValue.iProtocolConfigOption.iAuthInfo.iUsername,
   219 				&username,
   216 				&iValue.iProtocolConfigOption.iAuthInfo.iPassword);
   220 				&password);
       
   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);
   217 			ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextC,
   227 			ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextC,
   218 				&iExpected.iAccessPointName,
   228 				&apn,
   219 				&iExpected.iProtocolConfigOption.iAuthInfo.iUsername,
   229 				&username,
   220 				&iExpected.iProtocolConfigOption.iAuthInfo.iPassword);	
   230 				&password);	
   221 			}
   231 			}
   222 		return EFalse;
   232 		return EFalse;
   223 		}
   233 		}
   224 	}
   234 	}
   225 
   235 
   244 
   254 
   245 	else
   255 	else
   246 		{
   256 		{
   247 		if(aLogError == ELogError)
   257 		if(aLogError == ELogError)
   248 			{
   258 			{
       
   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 
   249 			_LIT(KAssertRPacketContextErrorEqualsTextA,"FAILURE");
   264 			_LIT(KAssertRPacketContextErrorEqualsTextA,"FAILURE");
   250 			_LIT(KAssertRPacketContextErrorEqualsTextB," Got apn=%S,username=%S,password=%S");
   265 			_LIT(KAssertRPacketContextErrorEqualsTextB," Got apn=%S,username=%S,password=%S");
   251 			_LIT(KAssertRPacketContextErrorEqualsTextC," Expected apn=%S,username=%S,password=%S");
   266 			_LIT(KAssertRPacketContextErrorEqualsTextC," Expected apn=%S,username=%S,password=%S");
   252 			ERR_PRINTF1(KAssertRPacketContextErrorEqualsTextA);
   267 			ERR_PRINTF1(KAssertRPacketContextErrorEqualsTextA);
   253 			ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextB, 
   268 			ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextB, 
   254 				&iValue.iAccessPointName,
   269 				&apn,
   255 				&iValue.iProtocolConfigOption.iAuthInfo.iUsername,
   270 				&username,
   256 				&iValue.iProtocolConfigOption.iAuthInfo.iPassword);
   271 				&password);
       
   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);
   257 			ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextC,
   278 			ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextC,
   258 				&iExpected.iAccessPointName,
   279 				&apn,
   259 				&iExpected.iProtocolConfigOption.iAuthInfo.iUsername,
   280 				&username,
   260 				&iExpected.iProtocolConfigOption.iAuthInfo.iPassword);	
   281 				&password);	
       
   282 
   261 			}
   283 			}
   262 		return EFalse;
   284 		return EFalse;
   263 		}
   285 		}
   264 	}
   286 	}
   265 
   287 
   284 
   306 
   285 	else
   307 	else
   286 		{
   308 		{
   287 		if(aLogError == ELogError)
   309 		if(aLogError == ELogError)
   288 			{
   310 			{
       
   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);
   289 			_LIT(KAssertRPacketContextErrorEqualsTextA,"FAILURE");
   315 			_LIT(KAssertRPacketContextErrorEqualsTextA,"FAILURE");
   290 			_LIT(KAssertRPacketContextErrorEqualsTextB," Got apn=%S,username=%S,password=%S");
   316 			_LIT(KAssertRPacketContextErrorEqualsTextB," Got apn=%S,username=%S,password=%S");
   291 			_LIT(KAssertRPacketContextErrorEqualsTextC," Expected apn=%S,username=%S,password=%S");
   317 			_LIT(KAssertRPacketContextErrorEqualsTextC," Expected apn=%S,username=%S,password=%S");
   292 			ERR_PRINTF1(KAssertRPacketContextErrorEqualsTextA);
   318 			ERR_PRINTF1(KAssertRPacketContextErrorEqualsTextA);
   293 			ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextB, 
   319 			ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextB, 
   294 				&iValue.iAccessPointName,
   320 				&apn,
   295 				&iValue.iProtocolConfigOption.iAuthInfo.iUsername,
   321 				&username,
   296 				&iValue.iProtocolConfigOption.iAuthInfo.iPassword);
   322 				&password);
       
   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);
   297 			ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextC,
   329 			ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextC,
   298 				&iExpected.iAccessPointName,
   330 				&apn,
   299 				&iExpected.iProtocolConfigOption.iAuthInfo.iUsername,
   331 				&username,
   300 				&iExpected.iProtocolConfigOption.iAuthInfo.iPassword);	
   332 				&password);	
   301 			}
   333 			}
   302 		return EFalse;
   334 		return EFalse;
   303 		}
   335 		}
   304 	}
   336 	}
   305 
   337