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