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.
21 #if (!defined __CONTENT_STEP_H__)
22 #define __CONTENT_STEP_H__
23 #include <test/testexecutestepbase.h>
27 // Constants used to name test cases
28 _LIT(KCAFContentAttributeStep,"CAFContentAttributeStep");
29 _LIT(KCAFContentAttributeSetStep,"CAFContentAttributeSetStep");
30 _LIT(KCAFContentStringAttributeStep,"CAFContentStringAttributeStep");
31 _LIT(KCAFContentStringAttributeSetStep,"CAFContentStringAttributeSetStep");
32 _LIT(KCAFContentNotifyStep,"CAFContentNotifyStep");
33 _LIT(KCAFContentSetPropertyStep,"CAFContentSetPropertyStep");
34 _LIT(KCAFContentDisplayInfoStep,"CAFContentDisplayInfoStep");
35 _LIT(KCAFContentAgentSpecificStep,"CAFContentAgentSpecificStep");
36 _LIT(KCAFContentRequestRightsStep,"CAFContentRequestRightsStep");
37 _LIT(KCAFContentEmbeddedObjectsStep,"CAFContentEmbeddedObjectsStep");
38 _LIT(KCAFContentEmbeddedObjectTypeStep,"CAFContentEmbeddedObjectTypeStep");
39 _LIT(KCAFContentSearchStep,"CAFContentSearchStep");
40 _LIT(KCAFContentContainerStep,"CAFContentContainerStep");
43 * Used to test CManager::GetAttribute()
44 * The INI file specifies the file to delete and the expected return code.
45 * For instance this can be used to try and delete a file that does not exist or a file
46 * that is read-only or has rights that don't allow it to be deleted
47 * INI file paramerters
50 * @internalComponent Exposure internally
52 class CCAFContentAttributeStep : public CCAFStep
55 CCAFContentAttributeStep(CCAFServer& aParent);
56 ~CCAFContentAttributeStep();
57 virtual TVerdict doTestStepL();
58 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
59 TVerdict doWmdrmTestStepL();
60 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
66 * Used to test CManager::GetAttributeSet()
67 * The INI file specifies the file to delete and the expected return code.
68 * For instance this can be used to try and delete a file that does not exist or a file
69 * that is read-only or has rights that don't allow it to be deleted
70 * INI file paramerters
73 * @internalComponent Exposure internally
75 class CCAFContentAttributeSetStep : public CCAFStep
78 CCAFContentAttributeSetStep(CCAFServer& aParent);
79 ~CCAFContentAttributeSetStep();
80 virtual TVerdict doTestStepL();
81 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
82 TVerdict doWmdrmTestStepL();
83 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
89 * Used to test CData::GetAttribute()
90 * The INI file specifies the file to delete and the expected return code.
91 * For instance this can be used to try and delete a file that does not exist or a file
92 * that is read-only or has rights that don't allow it to be deleted
93 * INI file paramerters
96 * @internalComponent Exposure internally
98 class CCAFContentStringAttributeStep : public CCAFStep
101 CCAFContentStringAttributeStep(CCAFServer& aParent);
102 ~CCAFContentStringAttributeStep();
103 virtual TVerdict doTestStepL();
104 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
105 TVerdict doWmdrmTestStepL();
106 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
113 * Used to test CContent::GetStringAttributeSet()
114 * The INI file specifies the file to delete and the expected return code.
115 * For instance this can be used to try and delete a file that does not exist or a file
116 * that is read-only or has rights that don't allow it to be deleted
117 * INI file paramerters
120 * @internalComponent Exposure internally
122 class CCAFContentStringAttributeSetStep : public CCAFStep
125 CCAFContentStringAttributeSetStep(CCAFServer& aParent);
126 ~CCAFContentStringAttributeSetStep();
127 virtual TVerdict doTestStepL();
128 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
129 TVerdict doWmdrmTestStepL();
130 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
137 * Used to test CContent::NotifyStatusChange()
138 * The INI file specifies the file to delete and the expected return code.
139 * For instance this can be used to try and delete a file that does not exist or a file
140 * that is read-only or has rights that don't allow it to be deleted
141 * INI file paramerters
144 * @internalComponent Exposure internally
146 class CCAFContentNotifyStep : public CCAFStep
149 CCAFContentNotifyStep(CCAFServer& aParent);
150 ~CCAFContentNotifyStep();
151 virtual TVerdict doTestStepL();
157 * Used to test CContent::SetProperty()
158 * The INI file specifies the file to delete and the expected return code.
159 * For instance this can be used to try and delete a file that does not exist or a file
160 * that is read-only or has rights that don't allow it to be deleted
161 * INI file paramerters
164 * @internalComponent Exposure internally
166 class CCAFContentSetPropertyStep : public CCAFStep
169 CCAFContentSetPropertyStep(CCAFServer& aParent);
170 ~CCAFContentSetPropertyStep();
171 virtual TVerdict doTestStepL();
177 * Used to test CContent::DisplayInfo()
178 * The INI file specifies the file to delete and the expected return code.
179 * For instance this can be used to try and delete a file that does not exist or a file
180 * that is read-only or has rights that don't allow it to be deleted
181 * INI file paramerters
184 * @internalComponent Exposure internally
186 class CCAFContentDisplayInfoStep : public CCAFStep
189 CCAFContentDisplayInfoStep(CCAFServer& aParent);
190 ~CCAFContentDisplayInfoStep();
191 virtual TVerdict doTestStepL();
197 * Used to test CContent::AgentSpecificCommand()
198 * The INI file specifies the file to delete and the expected return code.
199 * For instance this can be used to try and delete a file that does not exist or a file
200 * that is read-only or has rights that don't allow it to be deleted
201 * INI file paramerters
204 * @internalComponent Exposure internally
206 class CCAFContentAgentSpecificStep : public CCAFStep
209 CCAFContentAgentSpecificStep(CCAFServer& aParent);
210 ~CCAFContentAgentSpecificStep();
211 virtual TVerdict doTestStepL();
218 * Used to test CContent::RequestRights()
219 * The INI file specifies the file to delete and the expected return code.
220 * For instance this can be used to try and delete a file that does not exist or a file
221 * that is read-only or has rights that don't allow it to be deleted
222 * INI file paramerters
225 * @internalComponent Exposure internally
227 class CCAFContentRequestRightsStep : public CCAFStep
230 CCAFContentRequestRightsStep(CCAFServer& aParent);
231 ~CCAFContentRequestRightsStep();
232 virtual TVerdict doTestStepL();
239 * Used to test CContent::GetEmbeddedObjects()
240 * The INI file specifies the file to delete and the expected return code.
241 * For instance this can be used to try and delete a file that does not exist or a file
242 * that is read-only or has rights that don't allow it to be deleted
243 * INI file paramerters
246 * @internalComponent Exposure internally
248 class CCAFContentEmbeddedObjectsStep : public CCAFStep
251 CCAFContentEmbeddedObjectsStep(CCAFServer& aParent);
252 ~CCAFContentEmbeddedObjectsStep();
253 virtual TVerdict doTestStepL();
259 * Used to test CContent::GetEmbeddedObjects()
260 * The INI file specifies the file to delete and the expected return code.
261 * For instance this can be used to try and delete a file that does not exist or a file
262 * that is read-only or has rights that don't allow it to be deleted
263 * INI file paramerters
266 * @internalComponent Exposure internally
268 class CCAFContentEmbeddedObjectTypeStep : public CCAFStep
271 CCAFContentEmbeddedObjectTypeStep(CCAFServer& aParent);
272 ~CCAFContentEmbeddedObjectTypeStep();
273 virtual TVerdict doTestStepL();
279 * Used to test CContent::Search()
280 * The INI file specifies the file to delete and the expected return code.
281 * For instance this can be used to try and delete a file that does not exist or a file
282 * that is read-only or has rights that don't allow it to be deleted
283 * INI file paramerters
286 * @internalComponent Exposure internally
288 class CCAFContentSearchStep : public CCAFStep
291 CCAFContentSearchStep(CCAFServer& aParent);
292 ~CCAFContentSearchStep();
293 virtual TVerdict doTestStepL();
299 * Used to test CContent::OpenContainer()
300 * The INI file specifies the file to delete and the expected return code.
301 * For instance this can be used to try and delete a file that does not exist or a file
302 * that is read-only or has rights that don't allow it to be deleted
303 * INI file paramerters
306 * @internalComponent Exposure internally
308 class CCAFContentContainerStep : public CCAFStep
311 CCAFContentContainerStep(CCAFServer& aParent);
312 ~CCAFContentContainerStep();
313 virtual TVerdict doTestStepL();