equal
deleted
inserted
replaced
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; |