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 __RIGHTS_MANAGER_STEP_H__)
|
sl@0
|
22 |
#define __RIGHTS_MANAGER_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(KCAFRightsManagerStep,"CAFRightsManagerStep");
|
sl@0
|
29 |
_LIT(KCAFRightsManagerListStep,"CAFRightsManagerListStep");
|
sl@0
|
30 |
|
sl@0
|
31 |
class CCAFServer;
|
sl@0
|
32 |
|
sl@0
|
33 |
|
sl@0
|
34 |
/*
|
sl@0
|
35 |
* Used to test CManager::CreateRightsManager()
|
sl@0
|
36 |
* The INI file specifies the file to delete and the expected return code.
|
sl@0
|
37 |
* For instance this can be used to try and delete a file that does not exist or a file
|
sl@0
|
38 |
* that is read-only or has rights that don't allow it to be deleted
|
sl@0
|
39 |
* INI file paramerters
|
sl@0
|
40 |
*
|
sl@0
|
41 |
*
|
sl@0
|
42 |
* result - the expected return code
|
sl@0
|
43 |
*
|
sl@0
|
44 |
* @internalComponent Exposure internally
|
sl@0
|
45 |
*/
|
sl@0
|
46 |
class CCAFRightsManagerStep : public CCAFStep
|
sl@0
|
47 |
{
|
sl@0
|
48 |
public:
|
sl@0
|
49 |
CCAFRightsManagerStep(CCAFServer& aParent);
|
sl@0
|
50 |
~CCAFRightsManagerStep();
|
sl@0
|
51 |
virtual TVerdict doTestStepL();
|
sl@0
|
52 |
private:
|
sl@0
|
53 |
CCAFServer& iParent;
|
sl@0
|
54 |
};
|
sl@0
|
55 |
|
sl@0
|
56 |
|
sl@0
|
57 |
|
sl@0
|
58 |
/*
|
sl@0
|
59 |
* Used to test CManager::Listxxxx() functions
|
sl@0
|
60 |
* The INI file specifies the file to delete and the expected return code.
|
sl@0
|
61 |
* For instance this can be used to try and delete a file that does not exist or a file
|
sl@0
|
62 |
* that is read-only or has rights that don't allow it to be deleted
|
sl@0
|
63 |
* INI file paramerters
|
sl@0
|
64 |
*
|
sl@0
|
65 |
*
|
sl@0
|
66 |
* result - the expected return code
|
sl@0
|
67 |
*
|
sl@0
|
68 |
* @internalComponent Exposure internally
|
sl@0
|
69 |
*/
|
sl@0
|
70 |
class CCAFRightsManagerListStep : public CCAFStep
|
sl@0
|
71 |
{
|
sl@0
|
72 |
public:
|
sl@0
|
73 |
CCAFRightsManagerListStep(CCAFServer& aParent);
|
sl@0
|
74 |
~CCAFRightsManagerListStep();
|
sl@0
|
75 |
virtual TVerdict doTestStepL();
|
sl@0
|
76 |
private:
|
sl@0
|
77 |
CCAFServer& iParent;
|
sl@0
|
78 |
};
|
sl@0
|
79 |
|
sl@0
|
80 |
#endif
|
sl@0
|
81 |
|