datacommsserver/esockserver/test/te_mecunittest/inc/mecunitteststepbase.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     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 // mecunitteststepbase.h
       
    16 //
       
    17 
       
    18 /**
       
    19 @file
       
    20 
       
    21 This is the base class for all test steps in the DUN test suite
       
    22 */
       
    23 
       
    24 #ifndef MECUNITTESTSTEPBASE_H
       
    25 #define MECUNITTESTSTEPBASE_H
       
    26 
       
    27 
       
    28 #include <test/testexecutestepbase.h>
       
    29 #include "testextensions.h"
       
    30 
       
    31 namespace ESock
       
    32 {
       
    33 	class RMetaExtensionContainer;
       
    34 }
       
    35 
       
    36 class CMecUnitTestStepBase : public CTestStep
       
    37 	{
       
    38 public:
       
    39 	virtual ~CMecUnitTestStepBase();
       
    40 
       
    41 public:
       
    42     explicit CMecUnitTestStepBase(const TDesC& aTestName)
       
    43         {
       
    44         SetTestStepName(aTestName);
       
    45         }
       
    46 
       
    47 protected:
       
    48 	void CreateAndAppendExtensionL(ESock::RMetaExtensionContainer& aMec, TUint32 aExtensionType, TUint32 aVersion);
       
    49 	inline void CreateAndAppendExtensionL(ESock::RMetaExtensionContainer& aMec, TUint32 aExtensionType)
       
    50 		{
       
    51 		CreateAndAppendExtensionL(aMec, aExtensionType, KExtVersion1);
       
    52 		}
       
    53 
       
    54 	
       
    55     virtual TVerdict RunTestStepL() = 0;
       
    56     
       
    57 private:
       
    58     virtual TVerdict doTestStepL();
       
    59 //    virtual TVerdict doTestStepPreambleL();
       
    60 //    virtual TVerdict doTestStepPostambleL();
       
    61     };
       
    62 
       
    63 
       
    64 #endif
       
    65 // MECUNITTESTSTEPBASE_H
       
    66 
       
    67