os/security/contentmgmt/referencedrmagent/tcaf/source/CafUtilsStep.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
/*
sl@0
     2
* Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
* All rights reserved.
sl@0
     4
* This component and the accompanying materials are made available
sl@0
     5
* under the terms of the License "Eclipse Public License v1.0"
sl@0
     6
* which accompanies this distribution, and is available
sl@0
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
*
sl@0
     9
* Initial Contributors:
sl@0
    10
* Nokia Corporation - initial contribution.
sl@0
    11
*
sl@0
    12
* Contributors:
sl@0
    13
*
sl@0
    14
* Description: 
sl@0
    15
*
sl@0
    16
*/
sl@0
    17
sl@0
    18
sl@0
    19
#ifndef __CAFUTILS_STEP_H__
sl@0
    20
#define __CAFUTILS_STEP_H__
sl@0
    21
sl@0
    22
#include <test/testexecutestepbase.h>
sl@0
    23
sl@0
    24
#include "cafstep.h"
sl@0
    25
sl@0
    26
// Constants used to name test cases 
sl@0
    27
_LIT(KCAFCDirStreamStep,"CAFCDirStreamStep");
sl@0
    28
_LIT(KCAFRAttributeSetStreamStep,"CAFRAttributeSetStreamStep");
sl@0
    29
_LIT(KCAFRStringAttributeSetStreamStep,"CAFRStringAttributeSetStreamStep");
sl@0
    30
_LIT(KCAFSupplierOutputFileStreamStep,"CAFSupplierOutputFileStreamStep");
sl@0
    31
_LIT(KCAFMetaDataArrayStep,"CAFMetaDataArrayStep");
sl@0
    32
_LIT(KCAFEmbeddedObjectStep,"CAFEmbeddedObjectStep");
sl@0
    33
_LIT(KCAFVirtualPathStep,"CAFVirtualPathStep");
sl@0
    34
_LIT(KCAFRightsInfoStep,"CAFRightsInfoStep");
sl@0
    35
_LIT(KCAFStreamablePtrArrayStep,"CAFStreamablePtrArrayStep");
sl@0
    36
sl@0
    37
#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
sl@0
    38
_LIT(KCAFHelperStep,"CAFHelperStep");     
sl@0
    39
#endif //#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT 
sl@0
    40
sl@0
    41
class CCAFServer;
sl@0
    42
sl@0
    43
/* 
sl@0
    44
* Used to test streaming of CDirStreamable objects
sl@0
    45
*
sl@0
    46
* @internalComponent 
sl@0
    47
*/
sl@0
    48
class CCafCDirStreamStep : public CCAFStep
sl@0
    49
	{
sl@0
    50
public:
sl@0
    51
	CCafCDirStreamStep(CCAFServer& aParent);
sl@0
    52
	~CCafCDirStreamStep();
sl@0
    53
	virtual TVerdict doTestStepL();
sl@0
    54
private:
sl@0
    55
	CCAFServer& iParent;
sl@0
    56
	};
sl@0
    57
sl@0
    58
sl@0
    59
class CCafRAttributeSetStreamStep : public CCAFStep
sl@0
    60
	{
sl@0
    61
public:
sl@0
    62
	CCafRAttributeSetStreamStep(CCAFServer& aParent);
sl@0
    63
	~CCafRAttributeSetStreamStep();
sl@0
    64
	virtual TVerdict doTestStepL();
sl@0
    65
private:
sl@0
    66
	CCAFServer& iParent;
sl@0
    67
	};
sl@0
    68
sl@0
    69
sl@0
    70
class CCafRStringAttributeSetStreamStep : public CCAFStep
sl@0
    71
	{
sl@0
    72
public:
sl@0
    73
	CCafRStringAttributeSetStreamStep(CCAFServer& aParent);
sl@0
    74
	~CCafRStringAttributeSetStreamStep();
sl@0
    75
	virtual TVerdict doTestStepL();
sl@0
    76
private:
sl@0
    77
	CCAFServer& iParent;
sl@0
    78
	};
sl@0
    79
sl@0
    80
sl@0
    81
class CCafSupplierOutputFileStreamStep : public CCAFStep
sl@0
    82
	{
sl@0
    83
public:
sl@0
    84
	CCafSupplierOutputFileStreamStep(CCAFServer& aParent);
sl@0
    85
	~CCafSupplierOutputFileStreamStep();
sl@0
    86
	virtual TVerdict doTestStepL();
sl@0
    87
private:
sl@0
    88
	CCAFServer& iParent;
sl@0
    89
	};
sl@0
    90
sl@0
    91
sl@0
    92
sl@0
    93
class CCafMetaDataArrayStep : public CCAFStep
sl@0
    94
	{
sl@0
    95
public:
sl@0
    96
	CCafMetaDataArrayStep(CCAFServer& aParent);
sl@0
    97
	~CCafMetaDataArrayStep();
sl@0
    98
	virtual TVerdict doTestStepL();
sl@0
    99
private:
sl@0
   100
	CCAFServer& iParent;
sl@0
   101
	};
sl@0
   102
sl@0
   103
class CCafEmbeddedObjectStep : public CCAFStep
sl@0
   104
	{
sl@0
   105
public:
sl@0
   106
	CCafEmbeddedObjectStep(CCAFServer& aParent);
sl@0
   107
	~CCafEmbeddedObjectStep();
sl@0
   108
	virtual TVerdict doTestStepL();
sl@0
   109
private:
sl@0
   110
	CCAFServer& iParent;
sl@0
   111
	};
sl@0
   112
	
sl@0
   113
class CCafVirtualPathStep : public CCAFStep
sl@0
   114
	{
sl@0
   115
public:
sl@0
   116
	CCafVirtualPathStep(CCAFServer& aParent);
sl@0
   117
	~CCafVirtualPathStep();
sl@0
   118
	virtual TVerdict doTestStepL();
sl@0
   119
private:
sl@0
   120
	CCAFServer& iParent;
sl@0
   121
	};	
sl@0
   122
sl@0
   123
class CCafRightsInfoStep : public CCAFStep
sl@0
   124
	{
sl@0
   125
public:
sl@0
   126
	CCafRightsInfoStep(CCAFServer& aParent);
sl@0
   127
	~CCafRightsInfoStep();
sl@0
   128
	virtual TVerdict doTestStepL();
sl@0
   129
private:
sl@0
   130
	CCAFServer& iParent;
sl@0
   131
	};	
sl@0
   132
sl@0
   133
class CCafStreamablePtrArrayStep : public CCAFStep
sl@0
   134
	{
sl@0
   135
public:
sl@0
   136
	CCafStreamablePtrArrayStep(CCAFServer& aParent);
sl@0
   137
	~CCafStreamablePtrArrayStep();
sl@0
   138
	virtual TVerdict doTestStepL();
sl@0
   139
private:
sl@0
   140
	CCAFServer& iParent;
sl@0
   141
	};	
sl@0
   142
sl@0
   143
#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
sl@0
   144
class CCafHelperStep : public CCAFStep     
sl@0
   145
    {     
sl@0
   146
public:     
sl@0
   147
    CCafHelperStep();     
sl@0
   148
    ~CCafHelperStep();     
sl@0
   149
    virtual TVerdict doTestStepL();     
sl@0
   150
      
sl@0
   151
private:     
sl@0
   152
    TInt TestFileHandleCaseL(TInt aError, const TDesC& aFileName);     
sl@0
   153
    TInt TestHeaderDataCaseL(TInt aError);     
sl@0
   154
    };     
sl@0
   155
#endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT        
sl@0
   156
     
sl@0
   157
	
sl@0
   158
#endif
sl@0
   159