First public contribution.
     2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
 
     4 * This component and the accompanying materials are made available
 
     5 * under the terms of the License "Eclipse Public License v1.0"
 
     6 * which accompanies this distribution, and is available
 
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
 
     9 * Initial Contributors:
 
    10 * Nokia Corporation - initial contribution.
 
    19 #ifndef __CAFUTILS_STEP_H__
 
    20 #define __CAFUTILS_STEP_H__
 
    22 #include <test/testexecutestepbase.h>
 
    26 // Constants used to name test cases 
 
    27 _LIT(KCAFCDirStreamStep,"CAFCDirStreamStep");
 
    28 _LIT(KCAFRAttributeSetStreamStep,"CAFRAttributeSetStreamStep");
 
    29 _LIT(KCAFRStringAttributeSetStreamStep,"CAFRStringAttributeSetStreamStep");
 
    30 _LIT(KCAFSupplierOutputFileStreamStep,"CAFSupplierOutputFileStreamStep");
 
    31 _LIT(KCAFMetaDataArrayStep,"CAFMetaDataArrayStep");
 
    32 _LIT(KCAFEmbeddedObjectStep,"CAFEmbeddedObjectStep");
 
    33 _LIT(KCAFVirtualPathStep,"CAFVirtualPathStep");
 
    34 _LIT(KCAFRightsInfoStep,"CAFRightsInfoStep");
 
    35 _LIT(KCAFStreamablePtrArrayStep,"CAFStreamablePtrArrayStep");
 
    37 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
 
    38 _LIT(KCAFHelperStep,"CAFHelperStep");     
 
    39 #endif //#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT 
 
    44 * Used to test streaming of CDirStreamable objects
 
    48 class CCafCDirStreamStep : public CCAFStep
 
    51 	CCafCDirStreamStep(CCAFServer& aParent);
 
    52 	~CCafCDirStreamStep();
 
    53 	virtual TVerdict doTestStepL();
 
    59 class CCafRAttributeSetStreamStep : public CCAFStep
 
    62 	CCafRAttributeSetStreamStep(CCAFServer& aParent);
 
    63 	~CCafRAttributeSetStreamStep();
 
    64 	virtual TVerdict doTestStepL();
 
    70 class CCafRStringAttributeSetStreamStep : public CCAFStep
 
    73 	CCafRStringAttributeSetStreamStep(CCAFServer& aParent);
 
    74 	~CCafRStringAttributeSetStreamStep();
 
    75 	virtual TVerdict doTestStepL();
 
    81 class CCafSupplierOutputFileStreamStep : public CCAFStep
 
    84 	CCafSupplierOutputFileStreamStep(CCAFServer& aParent);
 
    85 	~CCafSupplierOutputFileStreamStep();
 
    86 	virtual TVerdict doTestStepL();
 
    93 class CCafMetaDataArrayStep : public CCAFStep
 
    96 	CCafMetaDataArrayStep(CCAFServer& aParent);
 
    97 	~CCafMetaDataArrayStep();
 
    98 	virtual TVerdict doTestStepL();
 
   103 class CCafEmbeddedObjectStep : public CCAFStep
 
   106 	CCafEmbeddedObjectStep(CCAFServer& aParent);
 
   107 	~CCafEmbeddedObjectStep();
 
   108 	virtual TVerdict doTestStepL();
 
   113 class CCafVirtualPathStep : public CCAFStep
 
   116 	CCafVirtualPathStep(CCAFServer& aParent);
 
   117 	~CCafVirtualPathStep();
 
   118 	virtual TVerdict doTestStepL();
 
   123 class CCafRightsInfoStep : public CCAFStep
 
   126 	CCafRightsInfoStep(CCAFServer& aParent);
 
   127 	~CCafRightsInfoStep();
 
   128 	virtual TVerdict doTestStepL();
 
   133 class CCafStreamablePtrArrayStep : public CCAFStep
 
   136 	CCafStreamablePtrArrayStep(CCAFServer& aParent);
 
   137 	~CCafStreamablePtrArrayStep();
 
   138 	virtual TVerdict doTestStepL();
 
   143 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
 
   144 class CCafHelperStep : public CCAFStep     
 
   149     virtual TVerdict doTestStepL();     
 
   152     TInt TestFileHandleCaseL(TInt aError, const TDesC& aFileName);     
 
   153     TInt TestHeaderDataCaseL(TInt aError);     
 
   155 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT