cbsref/telephonyrefplugins/atltsy/integrationtest/src/testltsycallcontrolphoneterminateallcalls.cpp
branchRCL_3
changeset 20 07a122eea281
parent 19 630d2f34d719
child 21 4814c5a49428
equal deleted inserted replaced
19:630d2f34d719 20:07a122eea281
     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 "testltsycallcontrolphoneterminateallcalls.h"
       
    19 
       
    20 CTestLtsyCallControlPhoneTerminateAllCalls::CTestLtsyCallControlPhoneTerminateAllCalls(CTestLtsyModel& aModel)
       
    21 	: CTestLtsyCallControlBase(aModel)
       
    22 	{
       
    23 	
       
    24 	}
       
    25 
       
    26 
       
    27 CTestLtsyCallControlPhoneTerminateAllCalls::~CTestLtsyCallControlPhoneTerminateAllCalls()
       
    28 	{
       
    29 	
       
    30 	}
       
    31 
       
    32 TVerdict CTestLtsyCallControlPhoneTerminateAllCalls::doTestStepL()
       
    33 	{
       
    34 	INFO_PRINTF1(_L("starting CTestLtsyCallControlPhoneTerminateAllCalls::doTestStepL()"));
       
    35 	
       
    36 	TRAPD(err,OpenCallOneL());
       
    37 	if (err != KErrNone)
       
    38 		{
       
    39 		SetTestStepResult(EFail);
       
    40 		INFO_PRINTF2(_L("The error was %d when opne call one"),err);
       
    41 		return TestStepResult();
       
    42 		}			
       
    43 	
       
    44 	DialCallOne();
       
    45 
       
    46 	TRAP(err,OpenCallTwoL());
       
    47 	if (err != KErrNone)
       
    48 		{
       
    49 		SetTestStepResult(EFail);
       
    50 		INFO_PRINTF2(_L("The error was %d when opne call two"),err);
       
    51 		return TestStepResult();
       
    52 		}		
       
    53 	
       
    54 	DialCallTwo();
       
    55 
       
    56 	TRAP(err, PhoneTerminateAllCallsL());
       
    57 	if (err != KErrNone)
       
    58 		{
       
    59 		SetTestStepResult(EFail);
       
    60 		INFO_PRINTF2(_L("The error was %d when phone terminate all calls"),err);
       
    61 		return TestStepResult();			
       
    62 		}	
       
    63 	
       
    64 	CloseCallOne();
       
    65 	
       
    66 	CloseCallTwo();
       
    67 	
       
    68 	return TestStepResult();
       
    69 	}	
       
    70 	
       
    71 //End of file