telephonyserverplugins/common_tsy/test/integration/src/comparisonfunctions.cpp
branchRCL_3
changeset 66 07a122eea281
parent 65 630d2f34d719
--- a/telephonyserverplugins/common_tsy/test/integration/src/comparisonfunctions.cpp	Tue Aug 31 16:23:08 2010 +0300
+++ b/telephonyserverplugins/common_tsy/test/integration/src/comparisonfunctions.cpp	Wed Sep 01 12:40:21 2010 +0100
@@ -206,28 +206,18 @@
 		{
 		if(aLogError == ELogError)
 			{
-			TBuf<255> apn, username, password;
-			apn.Copy(iValue.iAccessPointName);
-			username.Copy(iValue.iProtocolConfigOption.iAuthInfo.iUsername);
-			password.Copy(iValue.iProtocolConfigOption.iAuthInfo.iPassword);
 			_LIT(KAssertRPacketContextErrorEqualsTextA,"FAILURE");
 			_LIT(KAssertRPacketContextErrorEqualsTextB," Got apn=%S,username=%S,password=%S");
 			_LIT(KAssertRPacketContextErrorEqualsTextC," Expected apn=%S,username=%S,password=%S");
 			ERR_PRINTF1(KAssertRPacketContextErrorEqualsTextA);
 			ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextB, 
-				&apn,
-				&username,
-				&password);
-			apn.SetLength(0);
-			username.SetLength(0);
-			password.SetLength(0);
-			apn.Copy(iExpected.iAccessPointName);
-			username.Copy(iExpected.iProtocolConfigOption.iAuthInfo.iUsername);
-			password.Copy(iExpected.iProtocolConfigOption.iAuthInfo.iPassword);
+				&iValue.iAccessPointName,
+				&iValue.iProtocolConfigOption.iAuthInfo.iUsername,
+				&iValue.iProtocolConfigOption.iAuthInfo.iPassword);
 			ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextC,
-				&apn,
-				&username,
-				&password);	
+				&iExpected.iAccessPointName,
+				&iExpected.iProtocolConfigOption.iAuthInfo.iUsername,
+				&iExpected.iProtocolConfigOption.iAuthInfo.iPassword);	
 			}
 		return EFalse;
 		}
@@ -256,30 +246,18 @@
 		{
 		if(aLogError == ELogError)
 			{
-			TBuf<255> apn, username, password;
-			apn.Copy(iValue.iAccessPointName);
-			username.Copy(iValue.iProtocolConfigOption.iAuthInfo.iUsername);
-			password.Copy(iValue.iProtocolConfigOption.iAuthInfo.iPassword);
-
 			_LIT(KAssertRPacketContextErrorEqualsTextA,"FAILURE");
 			_LIT(KAssertRPacketContextErrorEqualsTextB," Got apn=%S,username=%S,password=%S");
 			_LIT(KAssertRPacketContextErrorEqualsTextC," Expected apn=%S,username=%S,password=%S");
 			ERR_PRINTF1(KAssertRPacketContextErrorEqualsTextA);
 			ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextB, 
-				&apn,
-				&username,
-				&password);
-			apn.SetLength(0);
-			username.SetLength(0);
-			password.SetLength(0);
-			apn.Copy(iExpected.iAccessPointName);
-			username.Copy(iExpected.iProtocolConfigOption.iAuthInfo.iUsername);
-			password.Copy(iExpected.iProtocolConfigOption.iAuthInfo.iPassword);
+				&iValue.iAccessPointName,
+				&iValue.iProtocolConfigOption.iAuthInfo.iUsername,
+				&iValue.iProtocolConfigOption.iAuthInfo.iPassword);
 			ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextC,
-				&apn,
-				&username,
-				&password);	
-
+				&iExpected.iAccessPointName,
+				&iExpected.iProtocolConfigOption.iAuthInfo.iUsername,
+				&iExpected.iProtocolConfigOption.iAuthInfo.iPassword);	
 			}
 		return EFalse;
 		}
@@ -308,28 +286,18 @@
 		{
 		if(aLogError == ELogError)
 			{
-			TBuf<255> apn, username, password;
-			apn.Copy(iValue.iAccessPointName);
-			username.Copy(iValue.iProtocolConfigOption.iAuthInfo.iUsername);
-			password.Copy(iValue.iProtocolConfigOption.iAuthInfo.iPassword);
 			_LIT(KAssertRPacketContextErrorEqualsTextA,"FAILURE");
 			_LIT(KAssertRPacketContextErrorEqualsTextB," Got apn=%S,username=%S,password=%S");
 			_LIT(KAssertRPacketContextErrorEqualsTextC," Expected apn=%S,username=%S,password=%S");
 			ERR_PRINTF1(KAssertRPacketContextErrorEqualsTextA);
 			ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextB, 
-				&apn,
-				&username,
-				&password);
-			apn.SetLength(0);
-			username.SetLength(0);
-			password.SetLength(0);
-			apn.Copy(iExpected.iAccessPointName);
-			username.Copy(iExpected.iProtocolConfigOption.iAuthInfo.iUsername);
-			password.Copy(iExpected.iProtocolConfigOption.iAuthInfo.iPassword);
+				&iValue.iAccessPointName,
+				&iValue.iProtocolConfigOption.iAuthInfo.iUsername,
+				&iValue.iProtocolConfigOption.iAuthInfo.iPassword);
 			ERR_PRINTF4(KAssertRPacketContextErrorEqualsTextC,
-				&apn,
-				&username,
-				&password);	
+				&iExpected.iAccessPointName,
+				&iExpected.iProtocolConfigOption.iAuthInfo.iUsername,
+				&iExpected.iProtocolConfigOption.iAuthInfo.iPassword);	
 			}
 		return EFalse;
 		}