os/security/cryptoservices/filebasedcertificateandkeystores/test/ttesttools/ttesttoolstep.h
First public contribution.
2 * Copyright (c) 2007-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.
15 * test step declaration
24 #ifndef __TTESTTOOLSTEP_H__
25 #define __TTESTTOOLSTEP_H__
27 #include <test/testexecutestepbase.h>
28 #include "ttesttoolserver.h"
30 #include "ttesttoolengine.h"
32 _LIT(KTestToolListCertStep, "ListCertStep");
33 _LIT(KTestToolGetTrustAppsStep, "GetTrustAppsStep");
34 _LIT(KTestToolListKeyStep, "ListKeyStep");
35 _LIT(KTestToolGetPolicyStep, "GetPolicyStep");
36 _LIT(KTestToolParseFileStep, "ParseFileStep");
37 _LIT(KTestToolGetTrustStep, "GetTrustStep");
38 _LIT(KTestToolCheckFileStep, "CheckFile");
40 _LIT(KExpectedLabel, "expectedlabel");
41 _LIT(KExpectedUser, "expecteduser");
42 _LIT(KExpectedLabel1, "expectedlabel1");
43 _LIT(KExpectedError, "expectederror");
44 _LIT(KExpectedLabel2, "expectedlabel2");
45 _LIT(KExpectedNumLabel, "numtimes");
46 _LIT(KExpectedUserExist, "user");
47 _LIT(KStore, "store");
48 _LIT(KExpectedOwner,"owner");
49 _LIT(KExpectedListStore,"liststore");
50 _LIT(KActualOutput, "actualoutput");
51 _LIT(KExpectedTrust, "trust");
52 _LIT(KFileName, "file");
53 _LIT(KCheckType, "check");
56 class CTestToolListCertStep : public CTestStep
59 CTestToolListCertStep();
60 ~CTestToolListCertStep();
61 virtual TVerdict doTestStepPreambleL();
62 virtual TVerdict doTestStepPostambleL();
63 virtual TVerdict doTestStepL();
67 TPtrC iExpectedLabel1;
68 TPtrC iExpectedLabel2;
73 TInt iExpectedNumLabel;
80 class CTestToolGetTrustAppsStep : public CTestStep
83 CTestToolGetTrustAppsStep();
84 ~CTestToolGetTrustAppsStep();
85 virtual TVerdict doTestStepPreambleL();
86 virtual TVerdict doTestStepPostambleL();
87 virtual TVerdict doTestStepL();
91 RPointerArray<HBufC> iApps;
95 class CTestToolGetTrustStep : public CTestStep
98 CTestToolGetTrustStep();
99 ~CTestToolGetTrustStep();
100 virtual TVerdict doTestStepPreambleL();
101 virtual TVerdict doTestStepPostambleL();
102 virtual TVerdict doTestStepL();
106 TPtrC iExpectedLabel;
107 TBool iExpectedTrust;
111 class CTestToolListKeyStep : public CTestStep
114 CTestToolListKeyStep();
115 ~CTestToolListKeyStep();
116 virtual TVerdict doTestStepPreambleL();
117 virtual TVerdict doTestStepPostambleL();
118 virtual TVerdict doTestStepL();
122 TPtrC iExpectedLabel1;
123 TPtrC iExpectedLabel2;
126 TInt iListStoreExist;
127 TInt iExpectedNumLabel;
133 class CTestToolGetPolicyStep : public CTestStep
136 CTestToolGetPolicyStep();
137 ~CTestToolGetPolicyStep();
138 virtual TVerdict doTestStepPreambleL();
139 virtual TVerdict doTestStepPostambleL();
140 virtual TVerdict doTestStepL();
144 TPtrC iExpectedLabel;
147 TInt iExpectedUserExist;
150 class CTestToolParseFileStep : public CTestStep
153 CTestToolParseFileStep();
154 ~CTestToolParseFileStep();
155 virtual TVerdict doTestStepPreambleL();
156 virtual TVerdict doTestStepPostambleL();
157 virtual TVerdict doTestStepL();
158 HBufC8* GetErrorFromOutputFileLC(const TDesC8& aBuffer);
160 RPointerArray<HBufC> iArgs;
161 TPtrC iExpectedError;
165 class CTestToolCheckFileStep : public CTestStep
168 CTestToolCheckFileStep();
169 ~CTestToolCheckFileStep();
170 virtual TVerdict doTestStepPreambleL();
171 virtual TVerdict doTestStepPostambleL();
172 virtual TVerdict doTestStepL();
178 #endif // __TTESTTOOLSTEP_H__