applayerprotocols/httptransportfw/Test/t_utils/httptestutils.cpp
changeset 35 4828f38c48f6
parent 0 b16258d2340f
child 40 a0da872af3fa
equal deleted inserted replaced
28:dd1f62411ef8 35:4828f38c48f6
     1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2001-2010 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  
   572 	TInt ret = User::LoadPhysicalDevice(PDD_NAME);
   573 	TInt ret = User::LoadPhysicalDevice(PDD_NAME);
   573 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
   574 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
   574 
   575 
   575 #ifndef __WINS__
   576 #ifndef __WINS__
   576 	ret = User::LoadPhysicalDevice(PDD2_NAME);
   577 	ret = User::LoadPhysicalDevice(PDD2_NAME);
   580 
   581 
   581 	ret = User::LoadLogicalDevice(LDD_NAME);
   582 	ret = User::LoadLogicalDevice(LDD_NAME);
   582 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
   583 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
   583 	ret = StartC32();
   584 	ret = StartC32();
   584 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
   585 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
       
   586 #endif //SIROCCO_CODE_MIGRATION
   585 	}
   587 	}
   586 
   588 
   587 EXPORT_C void CHTTPTestUtils::HoldOpenConnectionL()
   589 EXPORT_C void CHTTPTestUtils::HoldOpenConnectionL()
   588 	{
   590 	{
   589 	RSocketServ sockSrvHnd;
   591 	RSocketServ sockSrvHnd;