networksecurity/tlsprovider/Test/tlstest2/startupcommsstep.cpp
branchRCL_3
changeset 22 8d540f55e491
parent 21 abbed5a4b42a
equal deleted inserted replaced
21:abbed5a4b42a 22:8d540f55e491
     1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2008-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".
    35 
    35 
    36 TVerdict CStartupCommsStep::doTestStepL()
    36 TVerdict CStartupCommsStep::doTestStepL()
    37 	{
    37 	{
    38 	SetTestStepResult(EFail);
    38 	SetTestStepResult(EFail);
    39 	
    39 	
    40 #ifndef SIROCCO_CODE_MIGRATION
       
    41 	TInt ret = User::LoadPhysicalDevice(PDD_NAME);
    40 	TInt ret = User::LoadPhysicalDevice(PDD_NAME);
    42 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
    41 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
    43 
    42 
    44 #ifndef __WINS__
    43 #ifndef __WINS__
    45 	ret = User::LoadPhysicalDevice(PDD2_NAME);
    44 	ret = User::LoadPhysicalDevice(PDD2_NAME);
    49 
    48 
    50 	ret = User::LoadLogicalDevice(LDD_NAME);
    49 	ret = User::LoadLogicalDevice(LDD_NAME);
    51 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
    50 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
    52 	ret = StartC32();
    51 	ret = StartC32();
    53 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
    52 	User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
    54 #endif //SIROCCO_CODE_MIGRATION
       
    55 	SetTestStepResult(EPass);
    53 	SetTestStepResult(EPass);
       
    54 
    56 	return TestStepResult();
    55 	return TestStepResult();
    57 	}
    56 	}