os/security/contentmgmt/referencedrmagent/tcaf/source/CafUtilsStep.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/security/contentmgmt/referencedrmagent/tcaf/source/CafUtilsStep.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,159 @@
     1.4 +/*
     1.5 +* Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of the License "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description: 
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +#ifndef __CAFUTILS_STEP_H__
    1.23 +#define __CAFUTILS_STEP_H__
    1.24 +
    1.25 +#include <test/testexecutestepbase.h>
    1.26 +
    1.27 +#include "cafstep.h"
    1.28 +
    1.29 +// Constants used to name test cases 
    1.30 +_LIT(KCAFCDirStreamStep,"CAFCDirStreamStep");
    1.31 +_LIT(KCAFRAttributeSetStreamStep,"CAFRAttributeSetStreamStep");
    1.32 +_LIT(KCAFRStringAttributeSetStreamStep,"CAFRStringAttributeSetStreamStep");
    1.33 +_LIT(KCAFSupplierOutputFileStreamStep,"CAFSupplierOutputFileStreamStep");
    1.34 +_LIT(KCAFMetaDataArrayStep,"CAFMetaDataArrayStep");
    1.35 +_LIT(KCAFEmbeddedObjectStep,"CAFEmbeddedObjectStep");
    1.36 +_LIT(KCAFVirtualPathStep,"CAFVirtualPathStep");
    1.37 +_LIT(KCAFRightsInfoStep,"CAFRightsInfoStep");
    1.38 +_LIT(KCAFStreamablePtrArrayStep,"CAFStreamablePtrArrayStep");
    1.39 +
    1.40 +#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
    1.41 +_LIT(KCAFHelperStep,"CAFHelperStep");     
    1.42 +#endif //#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT 
    1.43 +
    1.44 +class CCAFServer;
    1.45 +
    1.46 +/* 
    1.47 +* Used to test streaming of CDirStreamable objects
    1.48 +*
    1.49 +* @internalComponent 
    1.50 +*/
    1.51 +class CCafCDirStreamStep : public CCAFStep
    1.52 +	{
    1.53 +public:
    1.54 +	CCafCDirStreamStep(CCAFServer& aParent);
    1.55 +	~CCafCDirStreamStep();
    1.56 +	virtual TVerdict doTestStepL();
    1.57 +private:
    1.58 +	CCAFServer& iParent;
    1.59 +	};
    1.60 +
    1.61 +
    1.62 +class CCafRAttributeSetStreamStep : public CCAFStep
    1.63 +	{
    1.64 +public:
    1.65 +	CCafRAttributeSetStreamStep(CCAFServer& aParent);
    1.66 +	~CCafRAttributeSetStreamStep();
    1.67 +	virtual TVerdict doTestStepL();
    1.68 +private:
    1.69 +	CCAFServer& iParent;
    1.70 +	};
    1.71 +
    1.72 +
    1.73 +class CCafRStringAttributeSetStreamStep : public CCAFStep
    1.74 +	{
    1.75 +public:
    1.76 +	CCafRStringAttributeSetStreamStep(CCAFServer& aParent);
    1.77 +	~CCafRStringAttributeSetStreamStep();
    1.78 +	virtual TVerdict doTestStepL();
    1.79 +private:
    1.80 +	CCAFServer& iParent;
    1.81 +	};
    1.82 +
    1.83 +
    1.84 +class CCafSupplierOutputFileStreamStep : public CCAFStep
    1.85 +	{
    1.86 +public:
    1.87 +	CCafSupplierOutputFileStreamStep(CCAFServer& aParent);
    1.88 +	~CCafSupplierOutputFileStreamStep();
    1.89 +	virtual TVerdict doTestStepL();
    1.90 +private:
    1.91 +	CCAFServer& iParent;
    1.92 +	};
    1.93 +
    1.94 +
    1.95 +
    1.96 +class CCafMetaDataArrayStep : public CCAFStep
    1.97 +	{
    1.98 +public:
    1.99 +	CCafMetaDataArrayStep(CCAFServer& aParent);
   1.100 +	~CCafMetaDataArrayStep();
   1.101 +	virtual TVerdict doTestStepL();
   1.102 +private:
   1.103 +	CCAFServer& iParent;
   1.104 +	};
   1.105 +
   1.106 +class CCafEmbeddedObjectStep : public CCAFStep
   1.107 +	{
   1.108 +public:
   1.109 +	CCafEmbeddedObjectStep(CCAFServer& aParent);
   1.110 +	~CCafEmbeddedObjectStep();
   1.111 +	virtual TVerdict doTestStepL();
   1.112 +private:
   1.113 +	CCAFServer& iParent;
   1.114 +	};
   1.115 +	
   1.116 +class CCafVirtualPathStep : public CCAFStep
   1.117 +	{
   1.118 +public:
   1.119 +	CCafVirtualPathStep(CCAFServer& aParent);
   1.120 +	~CCafVirtualPathStep();
   1.121 +	virtual TVerdict doTestStepL();
   1.122 +private:
   1.123 +	CCAFServer& iParent;
   1.124 +	};	
   1.125 +
   1.126 +class CCafRightsInfoStep : public CCAFStep
   1.127 +	{
   1.128 +public:
   1.129 +	CCafRightsInfoStep(CCAFServer& aParent);
   1.130 +	~CCafRightsInfoStep();
   1.131 +	virtual TVerdict doTestStepL();
   1.132 +private:
   1.133 +	CCAFServer& iParent;
   1.134 +	};	
   1.135 +
   1.136 +class CCafStreamablePtrArrayStep : public CCAFStep
   1.137 +	{
   1.138 +public:
   1.139 +	CCafStreamablePtrArrayStep(CCAFServer& aParent);
   1.140 +	~CCafStreamablePtrArrayStep();
   1.141 +	virtual TVerdict doTestStepL();
   1.142 +private:
   1.143 +	CCAFServer& iParent;
   1.144 +	};	
   1.145 +
   1.146 +#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
   1.147 +class CCafHelperStep : public CCAFStep     
   1.148 +    {     
   1.149 +public:     
   1.150 +    CCafHelperStep();     
   1.151 +    ~CCafHelperStep();     
   1.152 +    virtual TVerdict doTestStepL();     
   1.153 +      
   1.154 +private:     
   1.155 +    TInt TestFileHandleCaseL(TInt aError, const TDesC& aFileName);     
   1.156 +    TInt TestHeaderDataCaseL(TInt aError);     
   1.157 +    };     
   1.158 +#endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT        
   1.159 +     
   1.160 +	
   1.161 +#endif
   1.162 +