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 |
|
sl@0
|
20 |
|
sl@0
|
21 |
#if (!defined __CONTENT_STEP_H__)
|
sl@0
|
22 |
#define __CONTENT_STEP_H__
|
sl@0
|
23 |
#include <test/testexecutestepbase.h>
|
sl@0
|
24 |
|
sl@0
|
25 |
#include "cafstep.h"
|
sl@0
|
26 |
|
sl@0
|
27 |
// Constants used to name test cases
|
sl@0
|
28 |
_LIT(KCAFContentAttributeStep,"CAFContentAttributeStep");
|
sl@0
|
29 |
_LIT(KCAFContentAttributeSetStep,"CAFContentAttributeSetStep");
|
sl@0
|
30 |
_LIT(KCAFContentStringAttributeStep,"CAFContentStringAttributeStep");
|
sl@0
|
31 |
_LIT(KCAFContentStringAttributeSetStep,"CAFContentStringAttributeSetStep");
|
sl@0
|
32 |
_LIT(KCAFContentNotifyStep,"CAFContentNotifyStep");
|
sl@0
|
33 |
_LIT(KCAFContentSetPropertyStep,"CAFContentSetPropertyStep");
|
sl@0
|
34 |
_LIT(KCAFContentDisplayInfoStep,"CAFContentDisplayInfoStep");
|
sl@0
|
35 |
_LIT(KCAFContentAgentSpecificStep,"CAFContentAgentSpecificStep");
|
sl@0
|
36 |
_LIT(KCAFContentRequestRightsStep,"CAFContentRequestRightsStep");
|
sl@0
|
37 |
_LIT(KCAFContentEmbeddedObjectsStep,"CAFContentEmbeddedObjectsStep");
|
sl@0
|
38 |
_LIT(KCAFContentEmbeddedObjectTypeStep,"CAFContentEmbeddedObjectTypeStep");
|
sl@0
|
39 |
_LIT(KCAFContentSearchStep,"CAFContentSearchStep");
|
sl@0
|
40 |
_LIT(KCAFContentContainerStep,"CAFContentContainerStep");
|
sl@0
|
41 |
|
sl@0
|
42 |
/*
|
sl@0
|
43 |
* Used to test CManager::GetAttribute()
|
sl@0
|
44 |
* The INI file specifies the file to delete and the expected return code.
|
sl@0
|
45 |
* For instance this can be used to try and delete a file that does not exist or a file
|
sl@0
|
46 |
* that is read-only or has rights that don't allow it to be deleted
|
sl@0
|
47 |
* INI file paramerters
|
sl@0
|
48 |
*
|
sl@0
|
49 |
*
|
sl@0
|
50 |
* @internalComponent Exposure internally
|
sl@0
|
51 |
*/
|
sl@0
|
52 |
class CCAFContentAttributeStep : public CCAFStep
|
sl@0
|
53 |
{
|
sl@0
|
54 |
public:
|
sl@0
|
55 |
CCAFContentAttributeStep(CCAFServer& aParent);
|
sl@0
|
56 |
~CCAFContentAttributeStep();
|
sl@0
|
57 |
virtual TVerdict doTestStepL();
|
sl@0
|
58 |
#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
|
sl@0
|
59 |
TVerdict doWmdrmTestStepL();
|
sl@0
|
60 |
#endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
|
sl@0
|
61 |
private:
|
sl@0
|
62 |
CCAFServer& iParent;
|
sl@0
|
63 |
};
|
sl@0
|
64 |
|
sl@0
|
65 |
/*
|
sl@0
|
66 |
* Used to test CManager::GetAttributeSet()
|
sl@0
|
67 |
* The INI file specifies the file to delete and the expected return code.
|
sl@0
|
68 |
* For instance this can be used to try and delete a file that does not exist or a file
|
sl@0
|
69 |
* that is read-only or has rights that don't allow it to be deleted
|
sl@0
|
70 |
* INI file paramerters
|
sl@0
|
71 |
*
|
sl@0
|
72 |
*
|
sl@0
|
73 |
* @internalComponent Exposure internally
|
sl@0
|
74 |
*/
|
sl@0
|
75 |
class CCAFContentAttributeSetStep : public CCAFStep
|
sl@0
|
76 |
{
|
sl@0
|
77 |
public:
|
sl@0
|
78 |
CCAFContentAttributeSetStep(CCAFServer& aParent);
|
sl@0
|
79 |
~CCAFContentAttributeSetStep();
|
sl@0
|
80 |
virtual TVerdict doTestStepL();
|
sl@0
|
81 |
#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
|
sl@0
|
82 |
TVerdict doWmdrmTestStepL();
|
sl@0
|
83 |
#endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
|
sl@0
|
84 |
private:
|
sl@0
|
85 |
CCAFServer& iParent;
|
sl@0
|
86 |
};
|
sl@0
|
87 |
|
sl@0
|
88 |
/*
|
sl@0
|
89 |
* Used to test CData::GetAttribute()
|
sl@0
|
90 |
* The INI file specifies the file to delete and the expected return code.
|
sl@0
|
91 |
* For instance this can be used to try and delete a file that does not exist or a file
|
sl@0
|
92 |
* that is read-only or has rights that don't allow it to be deleted
|
sl@0
|
93 |
* INI file paramerters
|
sl@0
|
94 |
*
|
sl@0
|
95 |
*
|
sl@0
|
96 |
* @internalComponent Exposure internally
|
sl@0
|
97 |
*/
|
sl@0
|
98 |
class CCAFContentStringAttributeStep : public CCAFStep
|
sl@0
|
99 |
{
|
sl@0
|
100 |
public:
|
sl@0
|
101 |
CCAFContentStringAttributeStep(CCAFServer& aParent);
|
sl@0
|
102 |
~CCAFContentStringAttributeStep();
|
sl@0
|
103 |
virtual TVerdict doTestStepL();
|
sl@0
|
104 |
#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
|
sl@0
|
105 |
TVerdict doWmdrmTestStepL();
|
sl@0
|
106 |
#endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
|
sl@0
|
107 |
|
sl@0
|
108 |
private:
|
sl@0
|
109 |
CCAFServer& iParent;
|
sl@0
|
110 |
};
|
sl@0
|
111 |
|
sl@0
|
112 |
/*
|
sl@0
|
113 |
* Used to test CContent::GetStringAttributeSet()
|
sl@0
|
114 |
* The INI file specifies the file to delete and the expected return code.
|
sl@0
|
115 |
* For instance this can be used to try and delete a file that does not exist or a file
|
sl@0
|
116 |
* that is read-only or has rights that don't allow it to be deleted
|
sl@0
|
117 |
* INI file paramerters
|
sl@0
|
118 |
*
|
sl@0
|
119 |
*
|
sl@0
|
120 |
* @internalComponent Exposure internally
|
sl@0
|
121 |
*/
|
sl@0
|
122 |
class CCAFContentStringAttributeSetStep : public CCAFStep
|
sl@0
|
123 |
{
|
sl@0
|
124 |
public:
|
sl@0
|
125 |
CCAFContentStringAttributeSetStep(CCAFServer& aParent);
|
sl@0
|
126 |
~CCAFContentStringAttributeSetStep();
|
sl@0
|
127 |
virtual TVerdict doTestStepL();
|
sl@0
|
128 |
#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
|
sl@0
|
129 |
TVerdict doWmdrmTestStepL();
|
sl@0
|
130 |
#endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
|
sl@0
|
131 |
|
sl@0
|
132 |
private:
|
sl@0
|
133 |
CCAFServer& iParent;
|
sl@0
|
134 |
};
|
sl@0
|
135 |
|
sl@0
|
136 |
/*
|
sl@0
|
137 |
* Used to test CContent::NotifyStatusChange()
|
sl@0
|
138 |
* The INI file specifies the file to delete and the expected return code.
|
sl@0
|
139 |
* For instance this can be used to try and delete a file that does not exist or a file
|
sl@0
|
140 |
* that is read-only or has rights that don't allow it to be deleted
|
sl@0
|
141 |
* INI file paramerters
|
sl@0
|
142 |
*
|
sl@0
|
143 |
*
|
sl@0
|
144 |
* @internalComponent Exposure internally
|
sl@0
|
145 |
*/
|
sl@0
|
146 |
class CCAFContentNotifyStep : public CCAFStep
|
sl@0
|
147 |
{
|
sl@0
|
148 |
public:
|
sl@0
|
149 |
CCAFContentNotifyStep(CCAFServer& aParent);
|
sl@0
|
150 |
~CCAFContentNotifyStep();
|
sl@0
|
151 |
virtual TVerdict doTestStepL();
|
sl@0
|
152 |
private:
|
sl@0
|
153 |
CCAFServer& iParent;
|
sl@0
|
154 |
};
|
sl@0
|
155 |
|
sl@0
|
156 |
/*
|
sl@0
|
157 |
* Used to test CContent::SetProperty()
|
sl@0
|
158 |
* The INI file specifies the file to delete and the expected return code.
|
sl@0
|
159 |
* For instance this can be used to try and delete a file that does not exist or a file
|
sl@0
|
160 |
* that is read-only or has rights that don't allow it to be deleted
|
sl@0
|
161 |
* INI file paramerters
|
sl@0
|
162 |
*
|
sl@0
|
163 |
*
|
sl@0
|
164 |
* @internalComponent Exposure internally
|
sl@0
|
165 |
*/
|
sl@0
|
166 |
class CCAFContentSetPropertyStep : public CCAFStep
|
sl@0
|
167 |
{
|
sl@0
|
168 |
public:
|
sl@0
|
169 |
CCAFContentSetPropertyStep(CCAFServer& aParent);
|
sl@0
|
170 |
~CCAFContentSetPropertyStep();
|
sl@0
|
171 |
virtual TVerdict doTestStepL();
|
sl@0
|
172 |
private:
|
sl@0
|
173 |
CCAFServer& iParent;
|
sl@0
|
174 |
};
|
sl@0
|
175 |
|
sl@0
|
176 |
/*
|
sl@0
|
177 |
* Used to test CContent::DisplayInfo()
|
sl@0
|
178 |
* The INI file specifies the file to delete and the expected return code.
|
sl@0
|
179 |
* For instance this can be used to try and delete a file that does not exist or a file
|
sl@0
|
180 |
* that is read-only or has rights that don't allow it to be deleted
|
sl@0
|
181 |
* INI file paramerters
|
sl@0
|
182 |
*
|
sl@0
|
183 |
*
|
sl@0
|
184 |
* @internalComponent Exposure internally
|
sl@0
|
185 |
*/
|
sl@0
|
186 |
class CCAFContentDisplayInfoStep : public CCAFStep
|
sl@0
|
187 |
{
|
sl@0
|
188 |
public:
|
sl@0
|
189 |
CCAFContentDisplayInfoStep(CCAFServer& aParent);
|
sl@0
|
190 |
~CCAFContentDisplayInfoStep();
|
sl@0
|
191 |
virtual TVerdict doTestStepL();
|
sl@0
|
192 |
private:
|
sl@0
|
193 |
CCAFServer& iParent;
|
sl@0
|
194 |
};
|
sl@0
|
195 |
|
sl@0
|
196 |
/*
|
sl@0
|
197 |
* Used to test CContent::AgentSpecificCommand()
|
sl@0
|
198 |
* The INI file specifies the file to delete and the expected return code.
|
sl@0
|
199 |
* For instance this can be used to try and delete a file that does not exist or a file
|
sl@0
|
200 |
* that is read-only or has rights that don't allow it to be deleted
|
sl@0
|
201 |
* INI file paramerters
|
sl@0
|
202 |
*
|
sl@0
|
203 |
*
|
sl@0
|
204 |
* @internalComponent Exposure internally
|
sl@0
|
205 |
*/
|
sl@0
|
206 |
class CCAFContentAgentSpecificStep : public CCAFStep
|
sl@0
|
207 |
{
|
sl@0
|
208 |
public:
|
sl@0
|
209 |
CCAFContentAgentSpecificStep(CCAFServer& aParent);
|
sl@0
|
210 |
~CCAFContentAgentSpecificStep();
|
sl@0
|
211 |
virtual TVerdict doTestStepL();
|
sl@0
|
212 |
private:
|
sl@0
|
213 |
CCAFServer& iParent;
|
sl@0
|
214 |
};
|
sl@0
|
215 |
|
sl@0
|
216 |
|
sl@0
|
217 |
/*
|
sl@0
|
218 |
* Used to test CContent::RequestRights()
|
sl@0
|
219 |
* The INI file specifies the file to delete and the expected return code.
|
sl@0
|
220 |
* For instance this can be used to try and delete a file that does not exist or a file
|
sl@0
|
221 |
* that is read-only or has rights that don't allow it to be deleted
|
sl@0
|
222 |
* INI file paramerters
|
sl@0
|
223 |
*
|
sl@0
|
224 |
*
|
sl@0
|
225 |
* @internalComponent Exposure internally
|
sl@0
|
226 |
*/
|
sl@0
|
227 |
class CCAFContentRequestRightsStep : public CCAFStep
|
sl@0
|
228 |
{
|
sl@0
|
229 |
public:
|
sl@0
|
230 |
CCAFContentRequestRightsStep(CCAFServer& aParent);
|
sl@0
|
231 |
~CCAFContentRequestRightsStep();
|
sl@0
|
232 |
virtual TVerdict doTestStepL();
|
sl@0
|
233 |
private:
|
sl@0
|
234 |
CCAFServer& iParent;
|
sl@0
|
235 |
};
|
sl@0
|
236 |
|
sl@0
|
237 |
|
sl@0
|
238 |
/*
|
sl@0
|
239 |
* Used to test CContent::GetEmbeddedObjects()
|
sl@0
|
240 |
* The INI file specifies the file to delete and the expected return code.
|
sl@0
|
241 |
* For instance this can be used to try and delete a file that does not exist or a file
|
sl@0
|
242 |
* that is read-only or has rights that don't allow it to be deleted
|
sl@0
|
243 |
* INI file paramerters
|
sl@0
|
244 |
*
|
sl@0
|
245 |
*
|
sl@0
|
246 |
* @internalComponent Exposure internally
|
sl@0
|
247 |
*/
|
sl@0
|
248 |
class CCAFContentEmbeddedObjectsStep : public CCAFStep
|
sl@0
|
249 |
{
|
sl@0
|
250 |
public:
|
sl@0
|
251 |
CCAFContentEmbeddedObjectsStep(CCAFServer& aParent);
|
sl@0
|
252 |
~CCAFContentEmbeddedObjectsStep();
|
sl@0
|
253 |
virtual TVerdict doTestStepL();
|
sl@0
|
254 |
private:
|
sl@0
|
255 |
CCAFServer& iParent;
|
sl@0
|
256 |
};
|
sl@0
|
257 |
|
sl@0
|
258 |
/*
|
sl@0
|
259 |
* Used to test CContent::GetEmbeddedObjects()
|
sl@0
|
260 |
* The INI file specifies the file to delete and the expected return code.
|
sl@0
|
261 |
* For instance this can be used to try and delete a file that does not exist or a file
|
sl@0
|
262 |
* that is read-only or has rights that don't allow it to be deleted
|
sl@0
|
263 |
* INI file paramerters
|
sl@0
|
264 |
*
|
sl@0
|
265 |
*
|
sl@0
|
266 |
* @internalComponent Exposure internally
|
sl@0
|
267 |
*/
|
sl@0
|
268 |
class CCAFContentEmbeddedObjectTypeStep : public CCAFStep
|
sl@0
|
269 |
{
|
sl@0
|
270 |
public:
|
sl@0
|
271 |
CCAFContentEmbeddedObjectTypeStep(CCAFServer& aParent);
|
sl@0
|
272 |
~CCAFContentEmbeddedObjectTypeStep();
|
sl@0
|
273 |
virtual TVerdict doTestStepL();
|
sl@0
|
274 |
private:
|
sl@0
|
275 |
CCAFServer& iParent;
|
sl@0
|
276 |
};
|
sl@0
|
277 |
|
sl@0
|
278 |
/*
|
sl@0
|
279 |
* Used to test CContent::Search()
|
sl@0
|
280 |
* The INI file specifies the file to delete and the expected return code.
|
sl@0
|
281 |
* For instance this can be used to try and delete a file that does not exist or a file
|
sl@0
|
282 |
* that is read-only or has rights that don't allow it to be deleted
|
sl@0
|
283 |
* INI file paramerters
|
sl@0
|
284 |
*
|
sl@0
|
285 |
*
|
sl@0
|
286 |
* @internalComponent Exposure internally
|
sl@0
|
287 |
*/
|
sl@0
|
288 |
class CCAFContentSearchStep : public CCAFStep
|
sl@0
|
289 |
{
|
sl@0
|
290 |
public:
|
sl@0
|
291 |
CCAFContentSearchStep(CCAFServer& aParent);
|
sl@0
|
292 |
~CCAFContentSearchStep();
|
sl@0
|
293 |
virtual TVerdict doTestStepL();
|
sl@0
|
294 |
private:
|
sl@0
|
295 |
CCAFServer& iParent;
|
sl@0
|
296 |
};
|
sl@0
|
297 |
|
sl@0
|
298 |
/*
|
sl@0
|
299 |
* Used to test CContent::OpenContainer()
|
sl@0
|
300 |
* The INI file specifies the file to delete and the expected return code.
|
sl@0
|
301 |
* For instance this can be used to try and delete a file that does not exist or a file
|
sl@0
|
302 |
* that is read-only or has rights that don't allow it to be deleted
|
sl@0
|
303 |
* INI file paramerters
|
sl@0
|
304 |
*
|
sl@0
|
305 |
*
|
sl@0
|
306 |
* @internalComponent Exposure internally
|
sl@0
|
307 |
*/
|
sl@0
|
308 |
class CCAFContentContainerStep : public CCAFStep
|
sl@0
|
309 |
{
|
sl@0
|
310 |
public:
|
sl@0
|
311 |
CCAFContentContainerStep(CCAFServer& aParent);
|
sl@0
|
312 |
~CCAFContentContainerStep();
|
sl@0
|
313 |
virtual TVerdict doTestStepL();
|
sl@0
|
314 |
private:
|
sl@0
|
315 |
CCAFServer& iParent;
|
sl@0
|
316 |
};
|
sl@0
|
317 |
|
sl@0
|
318 |
|
sl@0
|
319 |
|
sl@0
|
320 |
#endif
|