cbsref/telephonyrefplugins/atltsy/integrationtest/src/testltsycallcontrolnotifyincomingcallcase1.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 "testltsycallcontrolnotifyincomingcallcase1.h"
       
    19 
       
    20 
       
    21 CTestLtsyCallControlNotifyIncomingCallCase1::CTestLtsyCallControlNotifyIncomingCallCase1(CTestLtsyModel& aModel)
       
    22 	: CTestLtsyCallControlBase(aModel)
       
    23 	{
       
    24 	
       
    25 	}
       
    26 
       
    27 
       
    28 CTestLtsyCallControlNotifyIncomingCallCase1::~CTestLtsyCallControlNotifyIncomingCallCase1()
       
    29 	{
       
    30 	
       
    31 	}
       
    32 
       
    33 TVerdict CTestLtsyCallControlNotifyIncomingCallCase1::doTestStepL()
       
    34 	{
       
    35 	INFO_PRINTF1(_L("starting CTestLtsyCallControlNotifyIncomingCallCase1::doTestStepL()"));
       
    36 	
       
    37 	if(TestStepResult() == EPass)
       
    38 		{
       
    39 		TRAPD(err,NotifyIncomingCallOneL());
       
    40 		if (err != KErrNone)
       
    41 			{
       
    42 			SetTestStepResult(EFail);
       
    43 			INFO_PRINTF2(_L("The error was %d when notify incoming call"),err);
       
    44 			return TestStepResult();
       
    45 			}
       
    46 		
       
    47 		TRAP(err, AnswerIncomingCallOneL());
       
    48 		if (err != KErrNone)
       
    49 			{
       
    50 			SetTestStepResult(EFail);
       
    51 			INFO_PRINTF2(_L("The error was %d when answer incoming call"),err);
       
    52 			return TestStepResult();
       
    53 			}
       
    54 		
       
    55 		//Close call
       
    56 		CloseCallOne();
       
    57 		}
       
    58 	
       
    59 	return TestStepResult();
       
    60 	}
       
    61 
       
    62 //End of file