applayerprotocols/httptransportfw/Test/t_utils/httptestutils.cpp
branchRCL_3
changeset 20 a0da872af3fa
parent 19 c0c2f28ace9c
equal deleted inserted replaced
19:c0c2f28ace9c 20:a0da872af3fa
     1 // Copyright (c) 2001-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   567 	LogIt(_L("***SCRIPT STARTING***\n"));
   567 	LogIt(_L("***SCRIPT STARTING***\n"));
   568 	}
   568 	}
   569 
   569 
   570 EXPORT_C void CHTTPTestUtils::InitCommsL()
   570 EXPORT_C void CHTTPTestUtils::InitCommsL()
   571 	{
   571 	{
   572 #ifndef SIROCCO_CODE_MIGRATION  
       
   573 	TInt ret = User::LoadPhysicalDevice(PDD_NAME);
   572 	TInt ret = User::LoadPhysicalDevice(PDD_NAME);
   574 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
   573 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
   575 
   574 
   576 #ifndef __WINS__
   575 #ifndef __WINS__
   577 	ret = User::LoadPhysicalDevice(PDD2_NAME);
   576 	ret = User::LoadPhysicalDevice(PDD2_NAME);
   581 
   580 
   582 	ret = User::LoadLogicalDevice(LDD_NAME);
   581 	ret = User::LoadLogicalDevice(LDD_NAME);
   583 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
   582 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
   584 	ret = StartC32();
   583 	ret = StartC32();
   585 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
   584 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
   586 #endif //SIROCCO_CODE_MIGRATION
       
   587 	}
   585 	}
   588 
   586 
   589 EXPORT_C void CHTTPTestUtils::HoldOpenConnectionL()
   587 EXPORT_C void CHTTPTestUtils::HoldOpenConnectionL()
   590 	{
   588 	{
   591 	RSocketServ sockSrvHnd;
   589 	RSocketServ sockSrvHnd;