cbsref/telephonyrefplugins/atltsy/integrationtest/src/testltsycallcontroldialselfcall.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 "testltsycallcontroldialselfcall.h"
       
    19 
       
    20 CTestLtsyCallControlDialSelfCall::CTestLtsyCallControlDialSelfCall(CTestLtsyModel& aModel)
       
    21 	: CTestLtsyCallControlBase(aModel)
       
    22 	{
       
    23 	
       
    24 	}
       
    25 
       
    26 CTestLtsyCallControlDialSelfCall::~CTestLtsyCallControlDialSelfCall()
       
    27 	{
       
    28 	
       
    29 	}
       
    30 
       
    31 TVerdict CTestLtsyCallControlDialSelfCall::doTestStepL()
       
    32 	{
       
    33 	INFO_PRINTF1(_L("starting CTestLtsyCallControlDialSelfCall::doTestStepL()"));
       
    34 	
       
    35 	if(TestStepResult() == EPass)
       
    36 		{
       
    37 		//Open Call
       
    38 		TRAPD(err,OpenCallOneL());
       
    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 		TRAP(err, CallOneDialSelfNumber());
       
    47 		if (err == KErrNone)
       
    48 			{
       
    49 			SetTestStepResult(EFail);
       
    50 			INFO_PRINTF2(_L("The error was %d when dial bad telephone number"),err);
       
    51 			return TestStepResult();			
       
    52 			}
       
    53 						
       
    54 		//Close call
       
    55 		CloseCallOne();
       
    56 		}
       
    57 	
       
    58 	return TestStepResult();
       
    59 	}
       
    60 
       
    61 //End of file