|
1 /* |
|
2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __CAFUTILS_STEP_H__ |
|
20 #define __CAFUTILS_STEP_H__ |
|
21 |
|
22 #include <test/testexecutestepbase.h> |
|
23 |
|
24 #include "cafstep.h" |
|
25 |
|
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"); |
|
36 |
|
37 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
38 _LIT(KCAFHelperStep,"CAFHelperStep"); |
|
39 #endif //#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
40 |
|
41 class CCAFServer; |
|
42 |
|
43 /* |
|
44 * Used to test streaming of CDirStreamable objects |
|
45 * |
|
46 * @internalComponent |
|
47 */ |
|
48 class CCafCDirStreamStep : public CCAFStep |
|
49 { |
|
50 public: |
|
51 CCafCDirStreamStep(CCAFServer& aParent); |
|
52 ~CCafCDirStreamStep(); |
|
53 virtual TVerdict doTestStepL(); |
|
54 private: |
|
55 CCAFServer& iParent; |
|
56 }; |
|
57 |
|
58 |
|
59 class CCafRAttributeSetStreamStep : public CCAFStep |
|
60 { |
|
61 public: |
|
62 CCafRAttributeSetStreamStep(CCAFServer& aParent); |
|
63 ~CCafRAttributeSetStreamStep(); |
|
64 virtual TVerdict doTestStepL(); |
|
65 private: |
|
66 CCAFServer& iParent; |
|
67 }; |
|
68 |
|
69 |
|
70 class CCafRStringAttributeSetStreamStep : public CCAFStep |
|
71 { |
|
72 public: |
|
73 CCafRStringAttributeSetStreamStep(CCAFServer& aParent); |
|
74 ~CCafRStringAttributeSetStreamStep(); |
|
75 virtual TVerdict doTestStepL(); |
|
76 private: |
|
77 CCAFServer& iParent; |
|
78 }; |
|
79 |
|
80 |
|
81 class CCafSupplierOutputFileStreamStep : public CCAFStep |
|
82 { |
|
83 public: |
|
84 CCafSupplierOutputFileStreamStep(CCAFServer& aParent); |
|
85 ~CCafSupplierOutputFileStreamStep(); |
|
86 virtual TVerdict doTestStepL(); |
|
87 private: |
|
88 CCAFServer& iParent; |
|
89 }; |
|
90 |
|
91 |
|
92 |
|
93 class CCafMetaDataArrayStep : public CCAFStep |
|
94 { |
|
95 public: |
|
96 CCafMetaDataArrayStep(CCAFServer& aParent); |
|
97 ~CCafMetaDataArrayStep(); |
|
98 virtual TVerdict doTestStepL(); |
|
99 private: |
|
100 CCAFServer& iParent; |
|
101 }; |
|
102 |
|
103 class CCafEmbeddedObjectStep : public CCAFStep |
|
104 { |
|
105 public: |
|
106 CCafEmbeddedObjectStep(CCAFServer& aParent); |
|
107 ~CCafEmbeddedObjectStep(); |
|
108 virtual TVerdict doTestStepL(); |
|
109 private: |
|
110 CCAFServer& iParent; |
|
111 }; |
|
112 |
|
113 class CCafVirtualPathStep : public CCAFStep |
|
114 { |
|
115 public: |
|
116 CCafVirtualPathStep(CCAFServer& aParent); |
|
117 ~CCafVirtualPathStep(); |
|
118 virtual TVerdict doTestStepL(); |
|
119 private: |
|
120 CCAFServer& iParent; |
|
121 }; |
|
122 |
|
123 class CCafRightsInfoStep : public CCAFStep |
|
124 { |
|
125 public: |
|
126 CCafRightsInfoStep(CCAFServer& aParent); |
|
127 ~CCafRightsInfoStep(); |
|
128 virtual TVerdict doTestStepL(); |
|
129 private: |
|
130 CCAFServer& iParent; |
|
131 }; |
|
132 |
|
133 class CCafStreamablePtrArrayStep : public CCAFStep |
|
134 { |
|
135 public: |
|
136 CCafStreamablePtrArrayStep(CCAFServer& aParent); |
|
137 ~CCafStreamablePtrArrayStep(); |
|
138 virtual TVerdict doTestStepL(); |
|
139 private: |
|
140 CCAFServer& iParent; |
|
141 }; |
|
142 |
|
143 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
144 class CCafHelperStep : public CCAFStep |
|
145 { |
|
146 public: |
|
147 CCafHelperStep(); |
|
148 ~CCafHelperStep(); |
|
149 virtual TVerdict doTestStepL(); |
|
150 |
|
151 private: |
|
152 TInt TestFileHandleCaseL(TInt aError, const TDesC& aFileName); |
|
153 TInt TestHeaderDataCaseL(TInt aError); |
|
154 }; |
|
155 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
156 |
|
157 |
|
158 #endif |
|
159 |