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