cbsref/telephonyrefplugins/atltsy/integrationtest/src/testltsyphoneselectnetwork.cpp
branchRCL_3
changeset 20 07a122eea281
parent 19 630d2f34d719
child 21 4814c5a49428
equal deleted inserted replaced
19:630d2f34d719 20:07a122eea281
     1 //  TestLtsyPhoneSelectNetwork.cpp
       
     2 //  Copyright (c) Symbian Software Ltd 2008. All rights reserved.
       
     3 //
       
     4 //  Implementation of the Class CTestLtsyPhoneSelectNetwork
       
     5 
       
     6 // user include
       
     7 #include "TestLtsyPhoneSelectNetwork.h"
       
     8 
       
     9 
       
    10 /**
       
    11 * Constructor
       
    12 * 
       
    13 */
       
    14 CTestLtsyPhoneSelectNetwork::CTestLtsyPhoneSelectNetwork( CTestLtsyModel& aTestModel) 
       
    15     :CTestLtsyPhoneStepBase(aTestModel)
       
    16 	{
       
    17 	}
       
    18 
       
    19 /**
       
    20 * Destructor
       
    21 *
       
    22 */	
       
    23 CTestLtsyPhoneSelectNetwork::~CTestLtsyPhoneSelectNetwork()
       
    24 	{
       
    25 	}
       
    26 
       
    27 /**
       
    28  * It implements the required functionality of the test step.
       
    29  * This step will open a shared phone
       
    30  * @return TVerdict - result of the test step
       
    31  * @leave - System wide error codes
       
    32  */
       
    33 TVerdict CTestLtsyPhoneSelectNetwork::doTestStepL()
       
    34 	{
       
    35 	if(TestStepResult() == EPass)
       
    36 		{
       
    37     	TRAPD(err,SelectNetwork());
       
    38     	if(err != KErrNone)
       
    39     		{
       
    40     		ERR_PRINTF2(_L("The error was returned %d!! when open Phone"),err);
       
    41     	    SetTestStepResult(EFail);
       
    42     		}
       
    43 		}
       
    44 	
       
    45 	return TestStepResult();
       
    46 	}
       
    47 
       
    48 	
       
    49 // end of file