cbsref/telephonyrefplugins/atltsy/integrationtest/src/testltsycallcontroldialhangupcase.cpp
branchRCL_3
changeset 65 630d2f34d719
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
       
     1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // 
       
    15 // 
       
    16 
       
    17 //user include
       
    18 #include "testltsycallcontroldialhangupcase.h"
       
    19 
       
    20 CTestLtsyCallControlDialHangupCase::CTestLtsyCallControlDialHangupCase(CTestLtsyModel& aModel)
       
    21 	: CTestLtsyCallControlBase(aModel)
       
    22 	{
       
    23 	
       
    24 	}
       
    25 
       
    26 CTestLtsyCallControlDialHangupCase::~CTestLtsyCallControlDialHangupCase()
       
    27 	{
       
    28 	
       
    29 	}
       
    30 
       
    31 TVerdict CTestLtsyCallControlDialHangupCase::doTestStepL()
       
    32 	{
       
    33 	INFO_PRINTF1(_L("starting CTestLtsyCallControlDialHangupCase::doTestStepL()"));
       
    34 	
       
    35 	if(TestStepResult() == EPass)
       
    36 		{
       
    37 		//Open Call
       
    38 		TRAPD(err,OpenCallTwoL());
       
    39 		if (err != KErrNone)
       
    40 			{
       
    41 			SetTestStepResult(EFail);
       
    42 			INFO_PRINTF2(_L("The error was %d when opne call two"),err);
       
    43 			return TestStepResult();
       
    44 			}
       
    45 		
       
    46 		DialCallTwo();
       
    47 		
       
    48 		User::After(1000*1000);
       
    49 		
       
    50 		//Hang up call
       
    51 		TRAP(err, HangupCallTwoL());
       
    52 		if (err != KErrNone)
       
    53 			{
       
    54 			SetTestStepResult(EFail);
       
    55 			INFO_PRINTF2(_L("The error was %d when hang up call two"),err);
       
    56 			return TestStepResult();
       
    57 			}
       
    58 		
       
    59 		//Close call
       
    60 		CloseCallTwo();
       
    61 		}
       
    62 	
       
    63 	return TestStepResult();
       
    64 	}
       
    65 
       
    66 //End of file