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