telephonyserverplugins/multimodetsy/test/Te_Misc/Te_MiscTestStepBase.cpp
branchopencode
changeset 24 6638e7f4bd8f
parent 0 3553901f7fa8
--- a/telephonyserverplugins/multimodetsy/test/Te_Misc/Te_MiscTestStepBase.cpp	Mon May 03 13:37:20 2010 +0300
+++ b/telephonyserverplugins/multimodetsy/test/Te_Misc/Te_MiscTestStepBase.cpp	Thu May 06 15:10:38 2010 +0100
@@ -1,68 +1,68 @@
-// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
-// All rights reserved.
-// This component and the accompanying materials are made available
-// under the terms of "Eclipse Public License v1.0"
-// which accompanies this distribution, and is available
-// at the URL "http://www.eclipse.org/legal/epl-v10.html".
-//
-// Initial Contributors:
-// Nokia Corporation - initial contribution.
-//
-// Contributors:
-//
-// Description:
-//
-
-#include "Te_MiscTestStepBase.h"
-
-TVerdict CMiscTestStep::doTestStepPreambleL()
-	{
-	__UHEAP_MARK;
-
-	TInt ret = iTelServer.Connect();
-	if (ret!=KErrNone)
-		{
-		INFO_PRINTF1(_L("Failed to connect to telephony server"));
-		User::Leave(ret);
-		}
-   	ret=iTelServer.LoadPhoneModule(KMmtsyName);
-	if (ret!=KErrNone)
-		{
-		INFO_PRINTF1(_L("Failed to load phone module"));
-		iTelServer.Close();
-		User::Leave(ret);
-		}
-	ret=iPhone.Open(iTelServer,KPhoneName) ;
-	if (ret!=KErrNone)
-		{
-		INFO_PRINTF1(_L("Failed to open phone module"));
-		iTelServer.UnloadPhoneModule(KMmtsyName);
-		iTelServer.Close();
-		User::Leave(ret);
-		}
-//
-//	This test requires a mobile phone to be connected to the serial port
-//      specified in the .cfg file for the initialise below to work
-//
-	ret=iPhone.Initialise();
-	if (ret!=KErrNone)
-		{
-		INFO_PRINTF2(_L("Failed to initialise the phone (%d)"), ret);
-		iPhone.Close();
-		iTelServer.UnloadPhoneModule(KMmtsyName);
-		iTelServer.Close();
-		User::Leave(ret);
-		}
-
-	return TestStepResult();
-	}
-
-TVerdict CMiscTestStep::doTestStepPostambleL()
-	{
-	iPhone.Close();
-	iTelServer.UnloadPhoneModule(KMmtsyName);
-	iTelServer.Close();
-
-	__UHEAP_MARKEND;
-	return TestStepResult();
-	}
+// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+//
+
+#include "Te_MiscTestStepBase.h"
+
+TVerdict CMiscTestStep::doTestStepPreambleL()
+	{
+	__UHEAP_MARK;
+
+	TInt ret = iTelServer.Connect();
+	if (ret!=KErrNone)
+		{
+		INFO_PRINTF1(_L("Failed to connect to telephony server"));
+		User::Leave(ret);
+		}
+   	ret=iTelServer.LoadPhoneModule(KMmtsyName);
+	if (ret!=KErrNone)
+		{
+		INFO_PRINTF1(_L("Failed to load phone module"));
+		iTelServer.Close();
+		User::Leave(ret);
+		}
+	ret=iPhone.Open(iTelServer,KPhoneName) ;
+	if (ret!=KErrNone)
+		{
+		INFO_PRINTF1(_L("Failed to open phone module"));
+		iTelServer.UnloadPhoneModule(KMmtsyName);
+		iTelServer.Close();
+		User::Leave(ret);
+		}
+//
+//	This test requires a mobile phone to be connected to the serial port
+//      specified in the .cfg file for the initialise below to work
+//
+	ret=iPhone.Initialise();
+	if (ret!=KErrNone)
+		{
+		INFO_PRINTF2(_L("Failed to initialise the phone (%d)"), ret);
+		iPhone.Close();
+		iTelServer.UnloadPhoneModule(KMmtsyName);
+		iTelServer.Close();
+		User::Leave(ret);
+		}
+
+	return TestStepResult();
+	}
+
+TVerdict CMiscTestStep::doTestStepPostambleL()
+	{
+	iPhone.Close();
+	iTelServer.UnloadPhoneModule(KMmtsyName);
+	iTelServer.Close();
+
+	__UHEAP_MARKEND;
+	return TestStepResult();
+	}